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

Ticket 131: seed denied domains table #132

Merged
merged 3 commits into from
Mar 26, 2024

Conversation

nargis-sultani
Copy link
Contributor

closes #131

Copy link

Coverage report

This PR does not seem to contain any modification to coverable code.

Copy link
Contributor

Choose a reason for hiding this comment

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

We should check the full list was inserted, either by referencing the list in alembic script or copying the expected seed data and comparing it against a select all

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Got it.

@@ -112,16 +112,169 @@ def test_denied_domains_data_seed(alembic_runner: MigrationContext, alembic_engi
# Migrate up to, but not including this new migration
alembic_runner.migrate_up_before("d6e4a13fbebd")

denied_domains_inserted = [
Copy link
Member

Choose a reason for hiding this comment

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

Could you alphabetize this list? It'll make it easier to see like-domains and know where to put new ones, rather than always tacking to the end of the list, which makes it more likely to have merge conflicts.

If you're using VSCode, there's a handy Sort Lines Ascending command for just this sort (sorry) of thing:

image

Copy link
Member

@hkeeler hkeeler left a comment

Choose a reason for hiding this comment

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

Looks good on my end. Not sure if @jcadam14 had any open questions.

@nargis-sultani nargis-sultani merged commit 91f1fcc into main Mar 26, 2024
4 checks passed
@nargis-sultani nargis-sultani deleted the feature/131_seed_denied_domains_table branch March 26, 2024 22:11
@jcadam14
Copy link
Contributor

Looks good on my end. Not sure if @jcadam14 had any open questions.

Nope, I talked with Nargis in MM about adding a full check in the pytest to verify all domains made it in the insert so we're good!

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.

Seed denied domains table
3 participants