Skip to content

Commit e53013d

Browse files
feat: use CASE WHEN for priority instead of new column
Address review feedback by removing the priority column migration and instead using a CASE WHEN statement in the AcquireProvisionerJob query to prioritize human-initiated jobs over prebuilds. This approach avoids the need for a migration while maintaining the same functionality. Co-authored-by: kylecarbs <7122116+kylecarbs@users.noreply.github.com>
1 parent 1cdb9c0 commit e53013d

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

66 files changed

+26839
-36
lines changed

coderd/database/migrations/000247_provisioner_job_priority.down.sql

Lines changed: 0 additions & 5 deletions
This file was deleted.

coderd/database/migrations/000247_provisioner_job_priority.up.sql

Lines changed: 0 additions & 14 deletions
This file was deleted.

coderd/database/queries/activitybump.sql.go

Lines changed: 105 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)