NO TICKET: update README to reflect current status of repo & rename /migration to /transfers#68
Conversation
Codecov Report✅ All modified and coverable lines are covered by tests. |
| ├── alembic/ # Alembic configuration and migration scripts | ||
| ├── api/ # Route declarations | ||
| ├── core/ # Settings and application config | ||
| ├── db/ # Database models, sessions, migrations |
There was a problem hiding this comment.
Database migration scripts are stored in the alembic folder. What are sessions?
There was a problem hiding this comment.
The code in /migrations migrates some staging data from NM Aquifer to the dreama. Should we rename that for clarity? Something like data_transfer?
Also, I think that should read # Database models, sessions, engines. sessions are when connections are opened to the database, work is performed, and then committed or rolled back (and finally closed). There's at function at the bottom of db/engine.py that retrieves a session.
In the api/ scripts each endpoint has session: session_depdency, which evaluated to session: Depends(get_db_session). All that's really doing is creating a new database session for an interaction every time the endpoint function is invoked.
There was a problem hiding this comment.
There was a problem hiding this comment.
I like data_transfer. In my opinion, it is clearer than migrations, which we are already using a lot.
There was a problem hiding this comment.
I'll make that update and push again. I agree that it gets confusing by using migration for different things
There was a problem hiding this comment.
To keep it simple and one word I'll just use transfer if that's okay
ksmuczynski
left a comment
There was a problem hiding this comment.
Database migrations are stored within alembic/, not db/.
|
The db portion of |
|
after PR #66 is merged into |
|
@jirhiker and @ksmuczynski I merged |

Why
This PR addresses the following problem / context:
migrations/is the same nomenclature as database migrations, so it was renamed to/transfersandmigration.py/migration2.pywere renamedtransfer.py/transfer2.pyHow
Implementation summary - the following was changed / added / removed:
Notes
Any special considerations, workarounds, or follow-up work to note?
app/directory, but didn't want to make it overcrowded.envis included to remind the user that it's necessary, even if none are hosted in GitHub. Should this reference be removed in README?