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

Clean up sample data #969

Merged
merged 4 commits into from
Sep 28, 2022
Merged

Clean up sample data #969

merged 4 commits into from
Sep 28, 2022

Conversation

thekaveman
Copy link
Member

@thekaveman thekaveman commented Sep 28, 2022

Following up to #958 - we actually don't need some of the sample data anymore. Also make the sample data we do need more closely align with production data for easier testing.

Part of #776

@github-actions github-actions bot added deployment-dev [auto] Changes that will trigger a deploy if merged to dev back-end Django views, sessions, middleware, models, migrations etc. i18n Copy: Language files or Django i18n framework labels Sep 28, 2022
@thekaveman thekaveman marked this pull request as ready for review September 28, 2022 22:43
@thekaveman thekaveman requested a review from a team as a code owner September 28, 2022 22:43
@thekaveman thekaveman added this to the Courtesy Cards milestone Sep 28, 2022
@thekaveman thekaveman self-assigned this Sep 28, 2022
angela-tran
angela-tran previously approved these changes Sep 28, 2022
@thekaveman
Copy link
Member Author

Rebasing changes to fix conflicts...

@angela-tran angela-tran dismissed their stale review September 28, 2022 22:55

Approved too early

this wasn't being used and adding noise to our PO files and sample migration
more closely resemble production
more closely resemble production
@thekaveman thekaveman force-pushed the chore/sample-data-cleanup branch from d353323 to de5fcdf Compare September 28, 2022 23:07
@@ -95,35 +95,19 @@ def load_sample_data(app, *args, **kwargs):
EligibilityVerifier = app.get_model("core", "EligibilityVerifier")

verifier1 = EligibilityVerifier.objects.create(
Copy link
Member Author

Choose a reason for hiding this comment

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

c85f4d2 is the critical commit of the PR - I removed the extra sample verifier we had (previously standing in as a placeholder for the DMV), and moved the existing sample OAuth verifier up and renamed it to verifier1.

This had a big impact on the PO files

@thekaveman thekaveman marked this pull request as draft September 28, 2022 23:14
@thekaveman thekaveman marked this pull request as ready for review September 28, 2022 23:21
@thekaveman
Copy link
Member Author

I couldn't get this to run at first... make sure you run DJANGO_LOAD_SAMPLE_DATA=true bin/init.sh

Copy link
Member

@machikoyasuda machikoyasuda left a comment

Choose a reason for hiding this comment

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

image

🙏

@thekaveman thekaveman merged commit 7fd2c41 into dev Sep 28, 2022
@thekaveman thekaveman deleted the chore/sample-data-cleanup branch September 28, 2022 23:54
@machikoyasuda machikoyasuda mentioned this pull request Sep 29, 2022
3 tasks
thekaveman added a commit to cal-itp/eligibility-server that referenced this pull request Oct 3, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
back-end Django views, sessions, middleware, models, migrations etc. deployment-dev [auto] Changes that will trigger a deploy if merged to dev i18n Copy: Language files or Django i18n framework
Projects
Archived in project
Development

Successfully merging this pull request may close these issues.

3 participants