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

106 change status schema #112

Merged
merged 10 commits into from
Feb 28, 2024
Merged

106 change status schema #112

merged 10 commits into from
Feb 28, 2024

Conversation

powersaudrey25
Copy link
Contributor

@powersaudrey25 powersaudrey25 commented Feb 25, 2024

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

@powersaudrey25 powersaudrey25 linked an issue Feb 25, 2024 that may be closed by this pull request
@powersaudrey25 powersaudrey25 marked this pull request as draft February 25, 2024 05:50
@powersaudrey25 powersaudrey25 force-pushed the 106-change-status-schema branch from c8bebb5 to 656ffaf Compare February 25, 2024 06:04
@powersaudrey25 powersaudrey25 marked this pull request as ready for review February 26, 2024 21:38
Copy link
Contributor

@mbrzus mbrzus left a 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!

Copy link
Contributor

@Ivan-E-Johnson Ivan-E-Johnson left a comment

Choose a reason for hiding this comment

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

Looks Good!

Zachary Morris and others added 9 commits February 28, 2024 10:48
…Complete', 'Pending' in the event.py model for backend
…mething other than new valid kinds and changed them 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
@Ivan-E-Johnson Ivan-E-Johnson force-pushed the 106-change-status-schema branch from dd9b87f to c287d91 Compare February 28, 2024 17:04
Copy link

Quality Gate Passed Quality Gate passed

Issues
1 New issue
0 Accepted issues

Measures
0 Security Hotspots
No data about Coverage
0.0% Duplication on New Code

See analysis details on SonarCloud

@Ivan-E-Johnson Ivan-E-Johnson merged commit 2dce9b7 into main Feb 28, 2024
7 checks passed
@Ivan-E-Johnson Ivan-E-Johnson deleted the 106-change-status-schema branch February 28, 2024 17:12
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Change Status Schema
4 participants