mirror of
https://github.com/hoppscotch/hoppscotch.git
synced 2026-04-25 16:55:59 +03:00
[PR #3779] [MERGED] feat: secret variables in environments #4522
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#4522
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/3779
Author: @nivedin
Created: 1/25/2024
Status: ✅ Merged
Merged: 2/8/2024
Merged by: @AndrewBastin
Base:
release/2023.12.4← Head:feat/secret-env-variable📝 Commits (10+)
ceeeebfrefactor: update env data schema35eec63refactor: add secret toggle to smart env36b520crefactor: type fixafae225refactor: update env componentse4070ferefactor: add feilds to web platform sync327f8e4refactor: add secret env service and persistanceff18186refactor: add secret env to input tippy313c5ecrefactor: update req runner07110f8chore: fix old import env bugec4e575refactor: update unsecret method when req run📊 Changes
55 files changed (+2137 additions, -435 deletions)
View changed files
📝
packages/hoppscotch-common/locales/en.json(+8 -0)📝
packages/hoppscotch-common/src/components/environments/Add.vue(+3 -1)📝
packages/hoppscotch-common/src/components/environments/ImportExport.vue(+5 -5)📝
packages/hoppscotch-common/src/components/environments/Selector.vue(+15 -6)📝
packages/hoppscotch-common/src/components/environments/index.vue(+23 -5)📝
packages/hoppscotch-common/src/components/environments/my/Details.vue(+221 -79)📝
packages/hoppscotch-common/src/components/environments/my/Environment.vue(+5 -0)📝
packages/hoppscotch-common/src/components/environments/my/index.vue(+9 -2)📝
packages/hoppscotch-common/src/components/environments/teams/Details.vue(+262 -119)📝
packages/hoppscotch-common/src/components/environments/teams/Environment.vue(+8 -1)📝
packages/hoppscotch-common/src/components/environments/teams/index.vue(+9 -2)📝
packages/hoppscotch-common/src/components/http/CodegenModal.vue(+2 -0)📝
packages/hoppscotch-common/src/components/http/Headers.vue(+3 -2)📝
packages/hoppscotch-common/src/components/http/OAuth2Authorization.vue(+1 -1)📝
packages/hoppscotch-common/src/components/http/TabHead.vue(+0 -1)📝
packages/hoppscotch-common/src/components/http/TestResult.vue(+6 -5)📝
packages/hoppscotch-common/src/components/smart/EnvInput.vue(+88 -27)📝
packages/hoppscotch-common/src/composables/codemirror.ts(+7 -0)📝
packages/hoppscotch-common/src/helpers/RequestRunner.ts(+87 -10)📝
packages/hoppscotch-common/src/helpers/actions.ts(+8 -1)...and 35 more files
📄 Description
Closes HFE-220 HFE-393 HFE-358
Description
A user will now be able to create a secret variable in the personal environment;
Any owner or editor will now be able to create a “secret” variable. in a team environment;
This PR also add a additional check in the environment inspector which alerts the user if a environment variable has empty value.
Checks
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.