mirror of
https://github.com/hoppscotch/hoppscotch.git
synced 2026-04-25 16:55:59 +03:00
[PR #3445] [MERGED] HBE-296 feat: introducing 'infra' type and splitting model properties between 'admin' and 'infra' #4381
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#4381
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/3445
Author: @mirarifhasan
Created: 10/11/2023
Status: ✅ Merged
Merged: 10/30/2023
Merged by: @mirarifhasan
Base:
release/2023.12.0← Head:feature/infra-type-addition📝 Commits (10+)
72a753bfeat: infra type added in admin modulecb84440feat: infra-resolver added in admin module156d128feat: feedback resolvedfad4a64feat: deprecated tag added in some admin ResolveFieldse4030c4build: update pnpm-lock file04aaa10feat: add field in infra type1790163feat: admin extends user partially489370ffeat: admin extends user with omitting some fields8465c83chore: remove unused imports18449e0build: conflict resolve in pnpm lock file📊 Changes
7 files changed (+2873 additions, -4263 deletions)
View changed files
📝
packages/hoppscotch-backend/src/admin/admin.model.ts(+7 -2)📝
packages/hoppscotch-backend/src/admin/admin.module.ts(+2 -1)📝
packages/hoppscotch-backend/src/admin/admin.resolver.ts(+18 -3)➕
packages/hoppscotch-backend/src/admin/infra.model.ts(+10 -0)➕
packages/hoppscotch-backend/src/admin/infra.resolver.ts(+205 -0)📝
packages/hoppscotch-backend/src/gql-schema.ts(+2 -0)📝
pnpm-lock.yaml(+2629 -4257)📄 Description
Issue Number
Closes HBE-296
Description
Previously all
admin-dashboardrelated graphql query was done underadmintype. But that ware not sound like admin properties.(i.e.
usersCount,teamCollectionsCountdoes not sound like admin property)For that, we introduce a new type
infra. This (infra) type will contain all the things related to the matrix and other stuff (example given below in ref-2).admintype will be there as well with admin-specific properties.So, now the
adminandinfraquery and their properties looks like below:Checks
Additional Information
Merge #3415 PR to avoid build failure in Test action.
How to test
adminqueryinfraquery🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.