ocis icon indicating copy to clipboard operation
ocis copied to clipboard

Listing activities with limit doesn't handle sorting correctly

Open AlexAndBear opened this issue 1 year ago • 0 comments

Describe the bug

When listing activities with a limit,the limit is applied, but the sorting order is not correctly handled.

Steps to Reproduce:

  1. Have a list of 10 activities.
  2. Set a limit of 5 activities.
  3. Set the sort query to desc.

Expected Behavior: The API should sort all activities and then return the last 5 activities when the sort query is set to desc.

Actual Behavior: The API sorts the activities but returns the first 5 activities, ignoring the correct subset of activities that should be returned after sorting.

AlexAndBear avatar Sep 24 '24 18:09 AlexAndBear