mirror of
https://github.com/hoppscotch/hoppscotch.git
synced 2026-04-25 08:45:58 +03:00
[PR #5968] feat(backend): add teamsOfUserByAdmin query to list all teams a user belongs to #5439
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#5439
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/5968
Author: @mirarifhasan
Created: 3/9/2026
Status: 🔄 Open
Base:
next← Head:feat/user-with-team📝 Commits (6)
0ba6dadfeat: addteamsfield resolver to User type0818fc9feat: replace UserTeamsResolver with admin teamsOfUser540ebf7chore: update gql query name70ac874feat: add user teams management component and GraphQL queryb173a07feat: add fallback for unknown team roles in user teams component30060d1feat: add conditional rendering for teams tab and track tab state📊 Changes
6 files changed (+182 additions, -5 deletions)
View changed files
📝
packages/hoppscotch-backend/src/gql-schema.ts(+0 -2)📝
packages/hoppscotch-backend/src/team/team.resolver.ts(+24 -0)📝
packages/hoppscotch-sh-admin/locales/en.json(+10 -0)➕
packages/hoppscotch-sh-admin/src/components/users/Teams.vue(+112 -0)➕
packages/hoppscotch-sh-admin/src/helpers/backend/gql/queries/TeamsOfUserByAdmin.graphql(+13 -0)📝
packages/hoppscotch-sh-admin/src/pages/users/_id.vue(+23 -3)📄 Description
Closes BE-733
What's changed
Adds a
teamsOfUserByAdminGraphQL query that returns the list of teams the user is a member of, with cursor-based pagination.Usage
Notes to reviewers
Nil
Summary by cubic
Adds an admin-only
teamsOfUserByAdmin(userUid, cursor?)GraphQL query and wires it to the admin UI to list a user’s workspace memberships with cursor pagination. Replaces the previousUser.teamsfield resolver to satisfy BE-733.teamsOfUserByAdmin(userUid: ID!, cursor?: ID)onQuery(auth + admin), and removesTeamEnvsTeamResolverandUserCollectionResolverfromRESOLVERS.Written for commit 30060d1c1878404f2470d40fcf436888154e37f1. Summary will update on new commits.
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.