uiowaSEP2024 / 002_ImagePro

Image processing backend
1 stars 0 forks source link

106 change status schema #112

Closed powersaudrey25 closed 6 months ago

powersaudrey25 commented 6 months ago

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

sonarcloud[bot] commented 6 months ago

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