Uploaded image for project: 'Data Management'
  1. Data Management
  2. DM-7517

Fix ordering when returning jobs from the api

    XMLWordPrintable

    Details

    • Type: Story
    • Status: Done
    • Resolution: Done
    • Fix Version/s: None
    • Component/s: None
    • Labels:
      None

      Description

      Symptom: jobs are returned in the wrong order from the job api endpoint

      Cause: ordering is done by 'ci_id' which is a CharField in the Job model, fix that to have proper numerical ordering when returning jobs from the API. Write a test for that.

        Attachments

          Activity

          Hide
          afausti Angelo Fausti added a comment -

          Jobs api now return jobs ordered by date.

          Show
          afausti Angelo Fausti added a comment - Jobs api now return jobs ordered by date.
          Hide
          afausti Angelo Fausti added a comment -

          Fix pushed.

          Show
          afausti Angelo Fausti added a comment - Fix pushed.

            People

            Assignee:
            afausti Angelo Fausti
            Reporter:
            afausti Angelo Fausti
            Watchers:
            Angelo Fausti
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved:

                CI Builds

                No builds found.