mirror of
https://github.com/hoppscotch/hoppscotch.git
synced 2026-04-26 01:06:00 +03:00
[PR #4624] [MERGED] fix(sh-admin): resolve record retrieval limits in pending invites section by implementing pagination #4877
Labels
No labels
CodeDay
a11y
browser limited
bug
bug fix
cli
core
critical
design
desktop
discussion
docker
documentation
duplicate
enterprise
feature
feature
fosshack
future
good first issue
hacktoberfest
help wanted
i18n
invalid
major
minor
need information
need testing
not applicable to hoppscotch
not reproducible
pull-request
question
refactor
resolved
sandbox
self-host
spam
stale
testmu
wip
wont fix
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/hoppscotch#4877
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
📋 Pull Request Information
Original PR: https://github.com/hoppscotch/hoppscotch/pull/4624
Author: @joeljstephen
Created: 12/17/2024
Status: ✅ Merged
Merged: 12/19/2024
Merged by: @jamesgeorge007
Base:
next← Head:fix/dashboard-invites-pagination📝 Commits (3)
fd55e3cfix: updated pending invites to use paginationa5fdb5echore: better variable naming and removed unnecessary logic0c27c5cchore: better logic structuring📊 Changes
3 files changed (+59 additions, -19 deletions)
View changed files
📝
packages/hoppscotch-sh-admin/src/components.d.ts(+1 -0)📝
packages/hoppscotch-sh-admin/src/helpers/backend/gql/queries/InvitedUsers.graphql(+2 -2)📝
packages/hoppscotch-sh-admin/src/pages/users/invited.vue(+56 -17)📄 Description
Ticket
Description
This PR resolves an issue where the Pending Invites page under the Users section in the Admin Dashboard was only fetching 10 records. The root cause was identified in how the frontend called the relevant query, which defaults to returning a maximum of 10 records unless specified otherwise.
To address this, pagination support is added where the frontend query now explicitly requests the desired number of records and includes additional parameters to enable fetching more data when required. This ensures that the correct number of records is displayed.
Fix Summary:
Checks
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.