Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

remove hardcoded test settings #19

Merged
merged 5 commits into from
Sep 18, 2024

Conversation

ericbuckley
Copy link
Collaborator

@ericbuckley ericbuckley commented Sep 15, 2024

Description

Simplifying database settings via one environment variable and updating test cases to use that rather than having everything hard-coded.

Additional Notes

pyway is the one exception to where the database parameters require individual values rather than a database URI. This is however deprecated functionality, as we'll be moving away from this and in favor of alembic so we can more easily support different database servers (also pyway doesn't support Microsoft SQL Server, which is what NBS uses).

Checklist

Please review and complete the following checklist before submitting your pull request:

  • I have ensured that the pull request is of a manageable size, allowing it to be reviewed within a single session.
  • I have reviewed my changes to ensure they are clear, concise, and well-documented.
  • I have updated the documentation, if applicable.
  • I have added or updated test cases to cover my changes, if applicable.
  • I have minimized the number of reviewers to include only those essential for the review.
  • I have notified teammates in the review thread to build awareness.

Checklist for Reviewers

Please review and complete the following checklist during the review process:

  • The code follows best practices and conventions.
  • The changes implement the desired functionality or fix the reported issue.
  • The tests cover the new changes and pass successfully.
  • Any potential edge cases or error scenarios have been considered.

@ericbuckley ericbuckley self-assigned this Sep 16, 2024
@ericbuckley ericbuckley added the enhancement New feature or request label Sep 16, 2024
@ericbuckley ericbuckley marked this pull request as ready for review September 16, 2024 15:52
.env Show resolved Hide resolved
Copy link
Collaborator

@alhayward alhayward left a comment

Choose a reason for hiding this comment

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

This simplifies things a lot. Thank you!

@ericbuckley ericbuckley merged commit 164780e into main Sep 18, 2024
4 checks passed
@ericbuckley ericbuckley deleted the ericbuckley/remove-hardcoded-test-settings branch September 18, 2024 02:38
ericbuckley added a commit that referenced this pull request Sep 18, 2024
Within #19 we simplified the settings to use the new DB_URI env
variable to define connection settings.  We forgot to also update
update postgres database setup in the GH testing workflow to follow
this pattern.
@ericbuckley ericbuckley mentioned this pull request Sep 18, 2024
10 tasks
ericbuckley added a commit that referenced this pull request Sep 19, 2024
## Description
The latest version of pyway, 0.3.30, is not able to read the existing
migrations directory. Since these migrations are deprecated in favor of
alembic, the easiest path forward is to pin pyway to version 0.3.29
until its removed from the project.

Within #19 we simplified the settings to use the new DB_URI env variable
to define connection settings. We forgot to also update postgres
database setup in the GH testing workflow to follow this pattern.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants