mirror of
https://github.com/hoppscotch/hoppscotch.git
synced 2026-04-26 09:16:03 +03:00
[PR #3687] [MERGED] fix(cli): environment resolution in the single-entry export format #4495
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#4495
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/3687
Author: @jamesgeorge007
Created: 12/21/2023
Status: ✅ Merged
Merged: 12/22/2023
Merged by: @AndrewBastin
Base:
2023.12.1← Head:hotfix/cli-env-resolution📝 Commits (4)
a9d4227fix: CLI environment resolution1647764test: increase coverageecae906chore: bump CLI version2b68e57chore: more comprehensive sample collection and environment exports📊 Changes
6 files changed (+79 additions, -6 deletions)
View changed files
📝
packages/hoppscotch-cli/package.json(+1 -1)📝
packages/hoppscotch-cli/src/__tests__/commands/test.spec.ts(+9 -0)➕
packages/hoppscotch-cli/src/__tests__/samples/req-body-env-vars-coll.json(+30 -0)➕
packages/hoppscotch-cli/src/__tests__/samples/req-body-env-vars-envs.json(+37 -0)📝
packages/hoppscotch-cli/src/__tests__/utils.ts(+1 -3)📝
packages/hoppscotch-cli/src/options/test/env.ts(+1 -2)📄 Description
Description
This PR fixes an issue with the CLI where the single environment entry export format omits the variables except the first. This led to the
ENV_EXPAND_LOOPstate when multiple environment variable entries were referred from a collection. For instance, in the request body, as mentioned in the below issue. A corresponding test case is added to verify the behavior.github.com/hoppscotch/hoppscotch@7db7b9b068/packages/hoppscotch-data/src/environment/index.ts (L34-L55)Fixes #3675.
Closes HFE-370.
Checks
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.