-
Notifications
You must be signed in to change notification settings - Fork 41
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
creating anomaly_db_transfer #1214
creating anomaly_db_transfer #1214
Conversation
This script should only need to be run once on production to transfer the existing postgres anomaly database over to models. This code will need to be run after code to access anomaly information from the model database is implemented |
@BradleySappington sounds good, so if I understand correctly, this will transfer our information gathered in the anomaly table on |
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.
This looks good to me, and I think it will be very helpful to have this info in the models instead of the postgres table.
Spot checks with my local models and the dev db look good on test files with known anomalies look good -- I see the new entries in the Anomalies table and updating them via the app, rerunning the update, and checking again updates them appropriately.
@mfixstsci we have separate test, dev, and production postgres databases. This will transfer the existing DB information into the related django db. So if we run on Dev (which I did), it will update the dev server models with dev data (not production). |
@mfixstsci ready for merge |
closes #1187 |
@mfixstsci SERVER UPDATE AFTER MERGE: |
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.
Thank you @BradleySappington
@BradleySappington with my comments addressed and @melanieclarke's review, I am rebasing and merging. Then I will go ahead and run the commands on the servers! |
@BradleySappington I merged the PR and then ran the commands on the |
Created transfer script from postgres anomaly database to django models.
Add fields to anomalies model