mirror of
https://github.com/hoppscotch/hoppscotch.git
synced 2026-04-25 16:55:59 +03:00
[PR #3504] [MERGED] feat: introducing shortcode into admin module #4411
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#4411
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/3504
Author: @balub
Created: 11/7/2023
Status: ✅ Merged
Merged: 11/10/2023
Merged by: @balub
Base:
release/2023.12.0← Head:feat/admin-shortcodes📝 Commits (9)
a353835feat: added query in infra to fetch all shortcodes3503130feat: added mutation in admin to delete shortcode2b6422fchore: added new tests for methods in shortcode module47acfbechore: removed .vscode file49d85bechore: added a new ShortcodeCreator type to output of fetchAllShortcodes query29f572achore: shortcodeCreator type is now nullable96240abchore: added type defs to fetchAllShortcodes method in admin module8b2c271docs: update code comments9ea4966chore: changed target to prod in hoppscotch-old-backend📊 Changes
10 files changed (+323 additions, -19 deletions)
View changed files
➖
.vscode/extensions.json(+0 -14)📝
packages/hoppscotch-backend/src/admin/admin.module.ts(+2 -0)📝
packages/hoppscotch-backend/src/admin/admin.resolver.ts(+17 -0)📝
packages/hoppscotch-backend/src/admin/admin.service.spec.ts(+3 -0)📝
packages/hoppscotch-backend/src/admin/admin.service.ts(+33 -0)📝
packages/hoppscotch-backend/src/admin/infra.resolver.ts(+20 -0)📝
packages/hoppscotch-backend/src/shortcode/shortcode.model.ts(+44 -0)📝
packages/hoppscotch-backend/src/shortcode/shortcode.resolver.ts(+3 -2)📝
packages/hoppscotch-backend/src/shortcode/shortcode.service.spec.ts(+126 -1)📝
packages/hoppscotch-backend/src/shortcode/shortcode.service.ts(+75 -2)📄 Description
Closes HBE-289
Description
In this PR we introduce queries and mutations into the
InfraandAdmintypes respectively to be able to view and delete shortcodes present in the database. TheallShortcodesquery in theInfratype returns a newShortcodetype withcreatorUidandcreatorEmailproperties added in addition to the usualShortcodeproperties to satisfy requirements stated in ticket.Checks
Additional Information
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.