Uploaded image for project: 'ERM Platform'
  1. ERM Platform
  2. ERM-2249

Paging the publicLookup endpoint is challenging

    XMLWordPrintable

Details

    • Bug
    • Status: Draft (View Workflow)
    • TBD
    • Resolution: Unresolved
    • None
    • None
    • Kiwi and Lotus

    • ERM Sprint 144
    • Bienenvolk
    • Not a bug

    Description

      Overview:
      Steps to Reproduce:

      1. Execute the /erm/sas/publicLookup with the query parameter stats=true
      2. Examine the results and note not only are the paging stats not present, the "records" field is an empty array

      Expected Results:

      The per page records and stats for continued paging

      Actual Results:

      No records in the "records" field and no paging stats
      Additional Information:
      Since "perPage" is capped at 5, paging is often necessary. Without stats, one can page by 5 (or a "perPage" < 5 if specified) via "offset" until reaching a page with no records. However, most, if not all, other ERM related collection APIs return stats properly if supplied via query parameter. Having to special case this one endpoint is not ideal.

      TestRail: Results

        Attachments

          Issue Links

            Activity

              People

                mreno Mathew Reno
                mreno Mathew Reno
                Votes:
                0 Vote for this issue
                Watchers:
                4 Start watching this issue

                Dates

                  Created:
                  Updated:

                  TestRail: Runs

                    TestRail: Cases