-
Notifications
You must be signed in to change notification settings - Fork 0
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
106 change status schema #112
Conversation
c8bebb5
to
656ffaf
Compare
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.
Looks good! Good work!
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.
Looks Good!
…Complete', 'Pending' in the event.py model for backend
…mething other than new valid kinds and changed them to valid kinds
…ent to valid kinds
ENH: Created migration for update to events table kind column FIX: Added commands to new migration, will re run the migration FIX: Modified jobs page on frontend to filter for new kinds FIX: Changed kind enums in frontend schema FIX: Found remaining places where still using old kinds, changed to new kinds BUG: migration did not work, redid it FIX: adjust to use new schema FIX: adjust frontend so app can build FIX: add not null constraint BUG: adding in rest of enum types FIX: Updated datetime test to use a different function BUG: Fix Migration Errors
dd9b87f
to
c287d91
Compare
|
Overview
We need to adjust our event_kind enum to have a 'Pending' and 'In Progress' role to adhere to our vision for displaying step-by-step job pipelines.
Implementation
A migration was created to implement this change.
Testing
To test these changes run APP_ENV=development alembic downgrade base and then APP_ENV=development alembic upgrade head.
If you are having trouble running migrations you will need to drop all tables and enums (message @powersaudrey25 or @zmorris248 if you have questions).
Run the orthanc logging script to create a job to verify the app is working.
Problems Faced
We originally had a migration that altered the 'kind' enum column in our 'events 'table. The migration ran successfully but our db was not actually changed. After researching we discovered you need to drop the enum column and recreate it for a change to take effect.
Notes