Uploaded image for project: 'Open Concept Lab Module'
  1. Open Concept Lab Module
  2. OCLM-24

Support paging when fetching updates

    XMLWordPrintable

    Details

    • Type: New Feature
    • Status: Ready for Work
    • Priority: Must
    • Resolution: Unresolved
    • Affects Version/s: 1.0
    • Fix Version/s: 1.3.0
    • Component/s: None
    • Labels:
      None
    • Complexity:
      Medium
    • Sprint:
      Open Concept Lab 1

      Description

      Limit of results returned by OCL when requesting updates by OclClient.fetchUpdates is set to 100000 items by default, but the maximum number of items per page imposed by OCL service is actually 1000. We need to do subsequent calls to fetch all remaining items if they exceed 1000 items limit.

      You need to append to the query in fetchUpdates: &limit=1000&page=(starts from 1). If there are 1000 returned items, then request the next page and repeat until there are less than 1000 returned items. You need to combine all responses into one OclResponse object and return it from fetchUpdates.

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              Unassigned
              Reporter:
              raff Rafal Korytkowski
              Votes:
              1 Vote for this issue
              Watchers:
              5 Start watching this issue

                Dates

                Created:
                Updated:

                  Time Tracking

                  Estimated:
                  Original Estimate - 3 days
                  3d
                  Remaining:
                  Time Spent - 2 days Remaining Estimate - 1 day
                  1d
                  Logged:
                  Time Spent - 2 days Remaining Estimate - 1 day
                  2d