-
Notifications
You must be signed in to change notification settings - Fork 37
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
MB-2799 Import fake pricing data to staging/experimental #4255
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It looks like the contract code is set to Pricing
. Is that what we want for the test data? I'm thinking we may need to make it more obvious this is test data rather than real pricing. Also, my PR #4250 assumed it was named TRUSS
(which I just made up), so I'll need to change that accordingly to whatever the name is here.
Note that if we do decide to change the code, we'll need to restore the experimental DB to make the migration run again there (infra can help us with that -- we've done it several times before).
OK i definitely missed that the code 'Pricing' stuck, i meant for it to be 'june_2020' @jacquelineIO do you have any guidance on what Contract Code we want attached to this fake data? |
I went ahead and had infra roll back the experimental database so we can run this migration against experimental again when we're ready (let's make it the last thing we do after reviewer approval but before merging). See #4279 for a fix that will need to be merged into this PR after #4279 is approved. Also, I think we should consider changing the name of the migration since With the fix from #4279, I checked all the |
to change the name of the migraiton to |
I don't think the script has to change. You should be able to change the migration filename after the |
ok so you're talking about manually changing it right? |
Right. But if you wanted to change the |
This reverts commit 0b98179.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM! I tried a make run_staging_migrations
and compared the re_*
tables in my deployed_migrations
database against my local DB that had an imported version of the fake data via the pricing parser. Everything aligned (and the problem with the lack of leading zeros was gone). I looked at S3 for each environment and saw the same migration in experimental/staging and a no-op in prod (as expected).
In anticipation of this getting merged, I'll go ahead and update my PR #4250 to default to using the TRUSS_TEST
contract code.
Description
Follows steps outlined in https://dp3.atlassian.net/browse/MB-2262 to import and upload fake pricing data via secure migration
WIll not be deployed to production
Deployed to Staging & Experimental only
Steps for deploying to experimental:
https://github.com/transcom/mymove/wiki/deploy-to-experimental
https://github.com/transcom/mymove/wiki/migrate-the-database#secure-migrations-for-one-environment
Reviewer Notes
aws-vault login $AWS_PROFILE
S3
Look for
20200615192021_import_pricing_data_june_2020.up.sql
in the following folderstranscom-ppp-app-experimental-us-west-2/secure-migrations
transcom-ppp-app-staging-us-west-2/secure-migrations
transcom-ppp-app-prod-us-west-2/secure-migrations
(this file should only contain a comment, no sql)Code Review Verification Steps
Querying the Database Safely
have been satisfied.
References
Screenshots
If this PR makes visible UI changes, an image of the finished UI can help reviewers and casual
observers understand the context of the changes. A before image is optional and
can be included at the submitter's discretion.
Consider using an animated image to show an entire workflow instead of using multiple images. You may want to use GIPHY CAPTURE for this! 📸
Please frame screenshots to show enough useful context but also highlight the affected regions.