Uploaded image for project: 'Xray for Jira Cloud'
  1. Xray for Jira Cloud
  2. XRAYCLOUD-10440

GraphQL query is not respecting Start and limit conditions in certain cases

    XporterXMLWordPrintable

Details

    • Bug
    • Status: Waiting Approval
    • Medium
    • Resolution: Unresolved
    • Xray Cloud 7.5.0
    • None
    • GraphQL
    • None
    • Jira Cloud, Postman

    Description

      Description

      GraphQL query is not respecting Start and limit conditions in certain cases

      Pre-conditions

      N/A

      How to reproduce

      Execute the following GraphQL queries:

      • GetTestSets() GraphQL query (start=25):
      • getTestSets(start: 25, limit: 2, modifiedSince: "", jql:"CREATED > '2000-01-01' ORDER BY CREATED ASC"){
         start total results { issueId tests(start: 0, limit: 100) { start total results { issueId } } } }
      • GraphQL query (start=26):
        getTestSets(start: 26, limit: 2, modifiedSince: "", jql:"CREATED > '2000-01-01' ORDER BY CREATED ASC"){
          start 
          total 
          results {
            issueId
            tests(start: 0, limit: 100) {
              start 
              total 
              results {
                issueId
              }
            }
          }
        }

         

      Actual result/Attachments

      For getTestSets()

      For Start = 25 and limit = 2; only 1 result is printed
      
      {"data":{"getTestSets":{"start":25,"total":160,"results":[ {"issueId":"536055","tests":{"start":0,"total":0,"results":[]}} ]}}}
      
      
      For Start = 26; limit = 2; the result 536055 is printed again, so the Start is not respected.
      
      {"data":{"getTestSets":{"start":26,"total":160,"results":[
        {"issueId":"536055","tests":{"start":0,"total":0,"results":[]}},
        {"issueId":"536072","tests":{"start":0,"total":0,"results":[]}}
      ]}}} 

      For getTestSets() results, the Start 25 with limit -2 is expected to show two results, but only one result, 536055. So, the Limit is not respected. The same result,  536055, is printed again with Start = 26, so the Start condition is not respected in this case.

       

      Expected result

      GraphQL query must respect Start and Limit conditions

      Version

      • Xray Cloud 7.5.0

      Attachments

        Activity

          People

            bernardo.cottim Bernardo Cottim
            jayanthi.murthi Jayanthi Murthi
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated: