• Minor

      Issue Summary

      The GET /addons API incorrectly calculating the object count when querying a list of add-ons. This miscalculation leads to the omission of the "next" attribute from the _links section prematurely in the paginated results. As a result, when navigating through pages using the "next" attribute, the last page of results is never reached unless manually forced.

      Steps to Reproduce

      • Make a request to the API with the following parameters:
      • Manually navigate to the next page by incrementing the offset:
      • Observe that additional results are returned, confirming that the previous omission was incorrect.

      Expected Results

      The "next" attribute should be present in the _links section until the actual final page of results is reached, allowing full pagination through all available add-ons.

      Actual Results

      The "next" attribute is missing prematurely, preventing access to the complete list of add-ons through pagination.

      Workaround

      Currently there is no known workaround for this behavior. A workaround will be added here when available

          Form Name

            [MP-286] Incorrect object count in GET /addons API

            Total number of plugins count was approximate earlier and hence there was a edge cases where there were some plugins left after fetching all the pages. 

            Changed the count to exact now from approximate now. 

            Nipun Chawla added a comment - Total number of plugins count was approximate earlier and hence there was a edge cases where there were some plugins left after fetching all the pages.  Changed the count to exact now from approximate now. 

              6b180d2cd7bd Nipun Chawla
              26a024868f5f Sherica Ocbania
              Affected customers:
              1 This affects my team
              Watchers:
              4 Start watching this issue

                Created:
                Updated:
                Resolved: