Skip to content

feat: paginate user proposal table#1598

Open
William-Edwards-STFC wants to merge 13 commits into
developfrom
1609-paginate-user-proposal-table
Open

feat: paginate user proposal table#1598
William-Edwards-STFC wants to merge 13 commits into
developfrom
1609-paginate-user-proposal-table

Conversation

@William-Edwards-STFC

Copy link
Copy Markdown
Contributor

Description

In this PR I have paginated user proposals table. I added first, offset and total count to the query. I created a new paginated proposals resolver and object for it to resolve to.

Motivation and Context

STFC super users with 300+ proposals are unable to load the homepage table. This solves that by loading only a page at a time.

How Has This Been Tested

I have tested this by impersonating a user with over 100 claims. I then went into the network tab and could see that it was requesting every time I changed the page of the table.

Fixes

UserOfficeProject/issue-tracker#1609

Changes

Added a new resolver in user.
Added offset, limit and total count to query.
Updated proposal table and proposal user table to use pagination.
I used raw sql for total count but I checked through the code base and that seems to be the way its being done elsewhere.

Tests included/Docs Updated?

  • I have added tests to cover my changes.
  • All relevant doc has been updated

@William-Edwards-STFC William-Edwards-STFC requested a review from a team as a code owner June 24, 2026 08:13
@William-Edwards-STFC William-Edwards-STFC requested review from deepaksftc and removed request for a team June 24, 2026 08:13
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant