Skip to content

Conversation

strahe
Copy link
Contributor

@strahe strahe commented Sep 4, 2025

This PR adds pagination support to the ClusterTaskHistory RPC method by adding limit and offset parameters.

Changes:

  • Add limit and offset parameters to ClusterTaskHistory() method
  • Update frontend to pass [0, 0] to maintain previous default behavior

Frontend passes [0, 0] to preserve the original behavior where limit defaulted to len(taskSPIDs) and offset was 0.

@strahe strahe requested a review from a team as a code owner September 4, 2025 08:42
Copy link
Contributor

@LexLuthr LexLuthr left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

If we are adding pagination then it must be added correctly and propagated from UI.

https://github.com/filecoin-project/curio/blob/main/web/static/pages/mk12-deals/mk12-deals.mjs

No need to override from GO side.

@strahe
Copy link
Contributor Author

strahe commented Sep 4, 2025

Updated - for the overview page, I've set a default limit of 20 instead of implementing full pagination UI, as extensive pagination isn't needed here.

@magik6k magik6k merged commit de59909 into filecoin-project:main Sep 11, 2025
15 checks passed
rvagg pushed a commit that referenced this pull request Sep 12, 2025
* Add pagination to cluster task history

* Remove task history limit/offset defaults
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants