-
-
Notifications
You must be signed in to change notification settings - Fork 27
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
Obsolete: Initial data migration 36 #223
Obsolete: Initial data migration 36 #223
Conversation
# ------------------------ >8 ------------------------ # Do not modify or remove the line above. # Everything below it will be ignored. # # Conflicts: # docs/CONTRIBUTING.md
[pd-data-spreadsheet]: https://docs.google.com/spreadsheets/d/1x_zZ8JLS2hO-zG0jUocOJmX16jh-DF5dccrd_OEGNZ0/ | ||
[apps-script]: https://thenewstack.io/how-to-convert-google-spreadsheet-to-json-formatted-text/#:~:text=To%20do%20this,%20click%20Extensions,save%20your%20work%20so%20far. | ||
|
||
## Call Script From Migration |
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.
Wasn't able to get this working.
Ran python manage.py migrate
inside the docker container but it did not populate any information into the db
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.
@alexlaw528 It might have already been added to the db. Maybe try python manage.py migrate data 0001
to see if it rolls back the data. I'm not sure how to roll back past that.
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.
Core functionality works! I was able to populate our seed data.
Some minor cleanup requests and clarification around the seed populating through the migration.
- removed commented out prints - improved create data with a loop - fixed docs to say 9 rows in table
…to initial-data-migration-36
…to initial-data-migration-36
Fixes #36
What changes did you make?
Fang - This branch is based on your branch with main merged in. Since I merged main so it is hard to compare to your branch. However, new files should be obvious. I changed convert.py so you will need to compare to yours. I also updated data guide but I want to make additonal changes if you are good with the changes I have made.
Also, somehow add-model-api-and-endpoints got conflicts which were committed. Can you fix those?
I can checkout CONTRIBUTING.md conflicts. I would like to merge this even if not perfect as long as it does not break anything that is currently working so we don't have to worry about merge conflicts.