Uploaded image for project: 'Ranger'
  1. Ranger
  2. RANGER-3923 Dataset policies
  3. RANGER-4517

Sort param sortType not considered if sortBy not passed

    XMLWordPrintableJSON

Details

    • Sub-task
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • None
    • 3.0.0, 2.5.0
    • admin
    • None

    Description

      The sort param sortType is not considered if sortBy is not passed in the query-param. Please consider following case:

      • The GET API /service/gds/dataset has default sortType=asc and sortBy=datasetId.
      • Please find the query-param input and actual responses received:

       

      Request - sortBy Request - sortType Response - sortBy Response - sortType
      Not passed Not passed datasetId asc
      datasetName Not passed datasetName asc
      datasetName desc datasetName desc
      Not passed desc datasetId asc
      datasetId desc datasetId desc

      As noticed above if the sortBy is not passed in the request query-param sortType param is not considered.

       

      Attachments

        Activity

          People

            suchnit Subhrat Chaudhary
            suchnit Subhrat Chaudhary
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: