mirror of
https://github.com/hoppscotch/hoppscotch.git
synced 2026-04-26 01:06:00 +03:00
[PR #5055] [MERGED] feat: initial and current value for environment variables #5033
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#5033
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/5055
Author: @nivedin
Created: 5/6/2025
Status: ✅ Merged
Merged: 5/23/2025
Merged by: @jamesgeorge007
Base:
next← Head:feat/initial-current-environment📝 Commits (10+)
334fcf5feat: add v2 environment version9b4be2fchore: add fields for current and initial valuesa87e230chore: update request runnere7ab2a7chore: add current environment serviceb1d11bachore: update environment storea57ef99chore: update importers6649afbchore: update environment adapter78224c5chore: update env tooltip and inspecterd6ba5cachore: update persistancecf4379fchore: remove console📊 Changes
60 files changed (+1684 additions, -431 deletions)
View changed files
📝
packages/hoppscotch-cli/src/__tests__/e2e/commands/test.spec.ts(+1 -0)📝
packages/hoppscotch-cli/src/__tests__/e2e/fixtures/environments/aws-signature-auth-envs.json(+13 -5)📝
packages/hoppscotch-cli/src/__tests__/e2e/fixtures/environments/digest-auth-envs.json(+7 -4)📝
packages/hoppscotch-cli/src/__tests__/e2e/fixtures/environments/env-v1.json(+9 -9)➕
packages/hoppscotch-cli/src/__tests__/e2e/fixtures/environments/env-v2.json(+13 -0)📝
packages/hoppscotch-cli/src/__tests__/e2e/fixtures/environments/request-vars-envs.json(+13 -4)📝
packages/hoppscotch-cli/src/__tests__/e2e/fixtures/environments/secret-envs-persistence-scripting-envs.json(+11 -1)📝
packages/hoppscotch-cli/src/__tests__/e2e/fixtures/environments/secret-envs.json(+19 -3)📝
packages/hoppscotch-cli/src/__tests__/e2e/fixtures/environments/secret-supplied-values-envs.json(+19 -9)📝
packages/hoppscotch-cli/src/__tests__/unit/getters.spec.ts(+28 -12)📝
packages/hoppscotch-cli/src/commands/test.ts(+2 -1)📝
packages/hoppscotch-cli/src/options/test/env.ts(+9 -4)📝
packages/hoppscotch-cli/src/utils/getters.ts(+20 -2)📝
packages/hoppscotch-cli/src/utils/request.ts(+4 -2)📝
packages/hoppscotch-common/locales/en.json(+4 -2)📝
packages/hoppscotch-common/src/components/environments/Add.vue(+69 -27)📝
packages/hoppscotch-common/src/components/environments/ImportExport.vue(+3 -3)📝
packages/hoppscotch-common/src/components/environments/Selector.vue(+37 -11)📝
packages/hoppscotch-common/src/components/environments/index.vue(+2 -1)📝
packages/hoppscotch-common/src/components/environments/my/Details.vue(+107 -37)...and 40 more files
📄 Description
Closes HFE-841 HFE-846 HFE-875 #4531
This PR add's Initial and current value for environment variables
Initial value is the value defined directly in the environment. This value gets synced to the cloud and is shared with your team.
Current value is what gets used when you actually send a request in Hoppscotch. It’s stored locally in your browser and isn’t synced to the cloud.
Notes to reviewers
Todo
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.