[PR #5928] fix(admin): replace deprecated allUsers with allUsersV2 #5425

Open
opened 2026-03-17 02:52:18 +03:00 by kerem · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/hoppscotch/hoppscotch/pull/5928
Author: @PranayPaka
Created: 3/3/2026
Status: 🔄 Open

Base: mainHead: fix/admin-userslist-v2


📝 Commits (2)

  • 5ebc73e fix(admin): replace deprecated allUsers with allUsersV2
  • fdd77a3 Update packages/hoppscotch-sh-admin/src/pages/teams/index.vue

📊 Changes

2 files changed (+7 additions, -8 deletions)

View changed files

📝 packages/hoppscotch-sh-admin/src/components/teams/Invite.vue (+4 -5)
📝 packages/hoppscotch-sh-admin/src/pages/teams/index.vue (+3 -3)

📄 Description

What's changed

  • Replaced deprecated infra.allUsers usage with infra.allUsersV2 in the admin UI.
  • Updated UsersListDocument to UsersListV2Document.
  • Adjusted data access from x.infra.allUsers to x.infra.allUsersV2.

Notes to reviewers

The backend schema marks infra.allUsers as deprecated in favor of allUsersV2.
This change aligns the admin UI with the current schema and removes deprecated API usage.

No functional changes were introduced — the UI continues to fetch and display users as before.


Summary by cubic

Switched admin team invite queries to allUsersV2 to match the current backend schema. No UI or behavior changes.

  • Refactors
    • Invite.vue: UsersListDocument → UsersListV2Document; moved to infra.allUsersV2; variables now use searchString/skip/take.
    • teams/index.vue: minor formatting cleanup; no API or behavior changes.

Written for commit fdd77a30e1. Summary will update on new commits.


🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/hoppscotch/hoppscotch/pull/5928 **Author:** [@PranayPaka](https://github.com/PranayPaka) **Created:** 3/3/2026 **Status:** 🔄 Open **Base:** `main` ← **Head:** `fix/admin-userslist-v2` --- ### 📝 Commits (2) - [`5ebc73e`](https://github.com/hoppscotch/hoppscotch/commit/5ebc73e0722125d29ba477f159819779de2fd0f0) fix(admin): replace deprecated allUsers with allUsersV2 - [`fdd77a3`](https://github.com/hoppscotch/hoppscotch/commit/fdd77a30e1d6ba6d2c2fa06e9acf6e02adcc6efb) Update packages/hoppscotch-sh-admin/src/pages/teams/index.vue ### 📊 Changes **2 files changed** (+7 additions, -8 deletions) <details> <summary>View changed files</summary> 📝 `packages/hoppscotch-sh-admin/src/components/teams/Invite.vue` (+4 -5) 📝 `packages/hoppscotch-sh-admin/src/pages/teams/index.vue` (+3 -3) </details> ### 📄 Description ### What's changed - Replaced deprecated `infra.allUsers` usage with `infra.allUsersV2` in the admin UI. - Updated `UsersListDocument` to `UsersListV2Document`. - Adjusted data access from `x.infra.allUsers` to `x.infra.allUsersV2`. ### Notes to reviewers The backend schema marks `infra.allUsers` as deprecated in favor of `allUsersV2`. This change aligns the admin UI with the current schema and removes deprecated API usage. No functional changes were introduced — the UI continues to fetch and display users as before. <!-- This is an auto-generated description by cubic. --> --- ## Summary by cubic Switched admin team invite queries to allUsersV2 to match the current backend schema. No UI or behavior changes. - **Refactors** - Invite.vue: UsersListDocument → UsersListV2Document; moved to infra.allUsersV2; variables now use searchString/skip/take. - teams/index.vue: minor formatting cleanup; no API or behavior changes. <sup>Written for commit fdd77a30e1d6ba6d2c2fa06e9acf6e02adcc6efb. Summary will update on new commits.</sup> <!-- End of auto-generated description by cubic. --> --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/hoppscotch#5425
No description provided.