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

          suchnit Subhrat Chaudhary added a comment - Patch in review - https://reviews.apache.org/r/74725/

          People

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

            Dates

              Created:
              Updated:
              Resolved:

              Slack

                Issue deployment