Add ability to sort while queuing

Created on 21 November 2023, 7 months ago

Problem/Motivation

When running the orange-dam:queue-content-by-type command it would be helpful under certain circumstances to sort the result set. This can become very complicated very fast, and the Orange Logic API itself is tricky/hallucinatory when issuing sort flags.

Due to all this complexity, it might be better to initially limit the scope of this request to simply allow for passing a --sort option where the user can pass in an Orange Logic API sort type (sort6, "Oldest first", etc) and leave it at that.

The scenario I am trying to address is where the API limits a result set and I am unable to retrieve all the records. In order to queue a complete set, I would like to be able to queue half the set in one order, and then queue the other half sorted in the opposite order. Doing so should yield the complete set.

I have the changes already and they seem to work. Merge request incoming.

Feature request
Status

Fixed

Version

1.0

Component

Code

Created by

🇺🇸United States apotek

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Merge Requests

Comments & Activities

  • Pipeline finished with Skipped
    about 1 year ago
    #12344
  • Pipeline finished with Skipped
    about 1 year ago
    #12406
  • Pipeline finished with Skipped
    about 1 year ago
    #12733
  • Pipeline finished with Skipped
    11 months ago
    #15668
  • Pipeline finished with Skipped
    11 months ago
    #16317
  • Pipeline finished with Canceled
    10 months ago
    Total: 68s
    #18366
  • Pipeline finished with Success
    10 months ago
    Total: 401s
    #18367
  • Issue created by @apotek
  • Status changed to Needs review 7 months ago
  • 🇺🇸United States apotek
  • Merge request !48Add option to queue with --sort option → (Merged) created by apotek
  • Status changed to RTBC 7 months ago
  • 🇺🇸United States apotek

    Extensively tested on three large data sets. I used Orange Logic sort scheme "sort6" and "sort7" to get result lists in ascending and descending order sorted by Title.

    Given the pervasive oddness around sorting in Orange Logic's API (problems in documentation as well as implementation) this is about as good as we can support right now.

  • Status changed to Fixed 7 months ago
  • 🇺🇸United States apotek
  • 🇺🇸United States markdorison

    Want me to cut a release with this included?

  • Automatically closed - issue fixed for 2 weeks with no activity.

  • Pipeline finished with Skipped
    7 months ago
    #60602
  • Pipeline finished with Failed
    6 months ago
    #67714
  • Pipeline finished with Success
    6 months ago
    Total: 317s
    #68786
  • Pipeline finished with Failed
    6 months ago
    Total: 191s
    #71096
  • Pipeline finished with Failed
    6 months ago
    Total: 188s
    #73826
  • Pipeline finished with Failed
    6 months ago
    Total: 473s
    #74495
  • Pipeline finished with Canceled
    5 months ago
    #82436
  • Pipeline finished with Success
    5 months ago
    #82437
  • Pipeline finished with Success
    5 months ago
    #82440
  • Pipeline finished with Success
    5 months ago
    Total: 183s
    #83061
  • Pipeline finished with Success
    5 months ago
    Total: 178s
    #88406
  • Pipeline finished with Success
    5 months ago
    Total: 177s
    #92744
  • Pipeline finished with Failed
    4 months ago
    Total: 327s
    #99693
  • Pipeline finished with Failed
    4 months ago
    Total: 912s
    #111633
  • Pipeline finished with Success
    3 months ago
    Total: 233s
    #130101
  • Pipeline finished with Success
    3 months ago
    Total: 291s
    #130108
  • Pipeline finished with Failed
    3 months ago
    Total: 293s
    #132084
  • Pipeline finished with Failed
    3 months ago
    Total: 234s
    #132578
  • Pipeline finished with Failed
    3 months ago
    Total: 288s
    #132713
  • Pipeline finished with Failed
    3 months ago
    Total: 256s
    #132776
  • Pipeline finished with Failed
    3 months ago
    Total: 253s
    #132798
  • Pipeline finished with Failed
    3 months ago
    Total: 229s
    #136399
  • Pipeline finished with Success
    3 months ago
    #143515
  • Pipeline finished with Running
    3 months ago
    #143523
  • Pipeline finished with Success
    3 months ago
    Total: 370s
    #143522
  • Pipeline finished with Success
    3 months ago
    Total: 190s
    #144006
  • Pipeline finished with Success
    3 months ago
    Total: 215s
    #144025
  • Pipeline finished with Failed
    3 months ago
    Total: 272s
    #144096
  • Pipeline finished with Success
    3 months ago
    Total: 331s
    #145131
  • Pipeline finished with Skipped
    2 months ago
    #147386
  • Pipeline finished with Success
    2 months ago
    Total: 40s
    #148434
  • Pipeline finished with Failed
    2 months ago
    Total: 469s
    #149763
  • Pipeline finished with Failed
    2 months ago
    Total: 585s
    #150358
  • Pipeline finished with Failed
    2 months ago
    Total: 471s
    #150390
  • Pipeline finished with Success
    2 months ago
    Total: 577s
    #151316
  • Pipeline finished with Skipped
    2 months ago
    #160000
Production build 0.69.0 2024