Uploaded image for project: 'PuppetDB'
  1. PuppetDB
  2. PDB-1071

PDB TK based query services needs to support order-by

    Details

    • Type: New Feature
    • Status: Closed
    • Priority: Normal
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: PDB 3.0.0
    • Component/s: None
    • Labels:
      None

      Description

      Currently order-by is a thing defined outside of our query language. Specifically as a separate "order-by" parameter in the web request. The new TK service for querying PDB allows for passing in a query, but does not allow for passing in ordering. Ordering for the sync messages is critical. We want to order the source of the sync by certname so that the destination and also order by certname and stream the results out of the db, matching with the incoming sync command.

      This will involve modifying the query service function to include the order-by parameter. If it's easy, we should probably also add in the other paging options (though we don't currently need them). Would probably make the most sense to just pass in a map with all of the data needed for the query (query itself, order-by, limit, offset).

        Attachments

          Activity

            jsd-sla-details-panel

              People

              • Assignee:
                rob.browning Rob Browning
                Reporter:
                ryan.senior Ryan Senior
              • Votes:
                0 Vote for this issue
                Watchers:
                1 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: