Project

General

Profile

Actions

Bug #3586

closed

[API] Job "priority" field defaults to "null", should default to "0"

Added by Peter Amstutz over 9 years ago. Updated over 9 years ago.

Status:
Resolved
Priority:
Normal
Assigned To:
Category:
API
Target version:
Story points:
0.5

Description

The "priority" field is used to sort the job queue, and it defaults to null. Unfortunately, the database automatically puts "null" values first in the sorting order, preventing priority from working as intended. The API server should assign a default numeric priority of 0 when creating the model and a NOT NULL constraint should be added to the schema.


Subtasks 2 (0 open2 closed)

Task #3749: Review 3586-job-priorityResolvedPeter Amstutz08/28/2014Actions
Task #3748: Add migrationResolvedPeter Amstutz08/28/2014Actions
Actions

Also available in: Atom PDF