Skip to content

NO TICKET: update README to reflect current status of repo & rename /migration to /transfers#68

Merged
jirhiker merged 15 commits into
pre-productionfrom
jab-README-update
Aug 11, 2025
Merged

NO TICKET: update README to reflect current status of repo & rename /migration to /transfers#68
jirhiker merged 15 commits into
pre-productionfrom
jab-README-update

Conversation

@jacob-a-brown

@jacob-a-brown jacob-a-brown commented Aug 8, 2025

Copy link
Copy Markdown
Contributor

Why

This PR addresses the following problem / context:

  • The README does not encompass the changes and updates to the repo. This includes new files, directories, and the implementation of Docker.
  • migrations/ is the same nomenclature as database migrations, so it was renamed to /transfers and migration.py/migration2.py were renamed transfer.py/transfer2.py

How

Implementation summary - the following was changed / added / removed:

  • Updated README.md
    • The steps for installation were split into different sections because some of them are different depending on your environment, such as Mac/Windows or PostgreSQL hosted locally vs using Docker

Notes

Any special considerations, workarounds, or follow-up work to note?

  • This uses the current nomenclature and files. Like all repos, the README will need to be maintained and updated as the repo is updated and changes.
  • I could add more files in the main app/ directory, but didn't want to make it overcrowded
    • .env is included to remind the user that it's necessary, even if none are hosted in GitHub. Should this reference be removed in README?

@jacob-a-brown

jacob-a-brown commented Aug 8, 2025

Copy link
Copy Markdown
Contributor Author

This is what the tables with different options looks like. If it doesn't render correctly in GitHub I'll change the format.

image

@codecov-commenter

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.

Comment thread README.md Outdated
├── alembic/ # Alembic configuration and migration scripts
├── api/ # Route declarations
├── core/ # Settings and application config
├── db/ # Database models, sessions, migrations

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Database migration scripts are stored in the alembic folder. What are sessions?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I like data_transfer. In my opinion, it is clearer than migrations, which we are already using a lot.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'll make that update and push again. I agree that it gets confusing by using migration for different things

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

To keep it simple and one word I'll just use transfer if that's okay

@ksmuczynski ksmuczynski left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Database migrations are stored within alembic/, not db/.

@jacob-a-brown

Copy link
Copy Markdown
Contributor Author

The db portion of Project Structure now reads

├── db/                     # Database models, sessions, and engine

@ksmuczynski ksmuczynski self-requested a review August 8, 2025 21:30
@jacob-a-brown jacob-a-brown changed the title NO TICKET: update README to reflect current status of repo NO TICKET: update README to reflect current status of repo & rename /migration to /transfers Aug 8, 2025
@jacob-a-brown

Copy link
Copy Markdown
Contributor Author

after PR #66 is merged into pre-production I'll merge with this branch and fix merge conflicts that may arise from renaming /migration to /transfers. Then I'll push back here for that to be present in this PR.

@jacob-a-brown

Copy link
Copy Markdown
Contributor Author

@jirhiker and @ksmuczynski I merged pre-production with this branch, made some fixes (like using HTML tables to have multi-line code blocks), and corrected some typos. This is ready for another review.

@ksmuczynski ksmuczynski self-requested a review August 11, 2025 17:22

@ksmuczynski ksmuczynski left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good!

@jirhiker jirhiker merged commit 9943cdd into pre-production Aug 11, 2025
3 checks passed
@jirhiker jirhiker deleted the jab-README-update branch December 3, 2025 04:57
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants