Uploaded image for project: 'OpenLMIS General'
  1. OLMIS-4128

Set maximum page size in services / update paginated APIs to allow 2000+ items

    Details

    • Type: Task
    • Status: Done
    • Priority: Minor
    • Resolution: Done
    • Affects versions: None
    • Fix versions: 3.7
    • Components: None
    • Labels:
    • Sprint:
      Team Mind the Parrot 126
    • Story Points:
      2

      Description

      Our services (except Reference Data and Stock Management) have max page size set to 2000. If someone wants to get more than 2000 elements it is impossible.
      Here is a review from Reference Data service with solution.

      Acceptance Criteria

      • Fix this bug with a generic solution in each service effected: Requisition, Auth, Fulfillment, CCE and Report.
      • Made the same change to the Template service.
      • Use Integer Max Value as a default page size.
      • Test at least 1-2 paginated endpoints in each service (add more than 2000 rows and make sure the API retrieves them correctly).

      Please verify this ticket again when related bug OLMIS-6374 Done will be fixed.

        Checklists

          Attachments

            Issue links

              Activity

                People

                • Assignee:
                  mwedel Mateusz Wedeł
                  Reporter:
                  mkwiatkowski Mateusz Kwiatkowski
                • Votes:
                  0 Vote for this issue
                  Watchers:
                  7 Start watching this issue

                  Dates

                  • Created:
                    Updated:
                    Resolved:

                    Time Tracking

                    Estimated:
                    Original Estimate - 3 days
                    3d
                    Remaining:
                    Remaining Estimate - 0 minutes
                    0m
                    Logged:
                    Time Spent - 3 days
                    3d