Clinical-Genomics / trailblazer

Keep track of and manage analyses
MIT License
6 stars 2 forks source link

Add endpoint for jobs and add job type field #366

Closed seallard closed 8 months ago

seallard commented 8 months ago

This PR adds a job_type to the job model and an endpoint for adding a job to an analysis.

Part of https://github.com/Clinical-Genomics/cigrid-ui/issues/492 and implementation plan.

Added

Note: When trailblazer scan (and other update commands) are run, all jobs for an analysis are deleted and re-added. This will need to be modified once we start adding jobs directly to an analysis, but will not be addressed in this PR.

This version is a

sonarcloud[bot] commented 8 months ago

Quality Gate Passed Quality Gate passed

Kudos, no new issues were introduced!

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

See analysis details on SonarCloud

seallard commented 8 months ago

Applied revision to stage

(tb-latest) ➜  trailblazer git:(add-upload-jobs) ✗ alembic --config trailblazer-stage.ini upgrade head
INFO  [alembic.runtime.migration] Context impl MySQLImpl.
INFO  [alembic.runtime.migration] Will assume non-transactional DDL.
INFO  [alembic.runtime.migration] Running upgrade 6c3da78d1af0 -> 486e8c875e0b, Add upload jobs