[PR #5162] [MERGED] chore: use initial value in runtime if current value is empty #5088

Closed
opened 2026-03-17 02:34:06 +03:00 by kerem · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/hoppscotch/hoppscotch/pull/5162
Author: @nivedin
Created: 6/17/2025
Status: Merged
Merged: 6/18/2025
Merged by: @jamesgeorge007

Base: patchHead: chore/use-current-variable-fallback


📝 Commits (5)

  • 75e9d7e chore: use initial env val if current val is empty
  • 6e297f5 chore: cleanup
  • 7ec98dc chore: env hover incorrect bug
  • f977d25 chore: add fallback for initial val
  • 8da5704 chore: make selected env priority over global

📊 Changes

6 files changed (+68 additions, -45 deletions)

View changed files

📝 packages/hoppscotch-common/src/components/environments/my/Details.vue (+6 -15)
📝 packages/hoppscotch-common/src/components/environments/teams/Details.vue (+1 -1)
📝 packages/hoppscotch-common/src/helpers/RequestRunner.ts (+47 -19)
📝 packages/hoppscotch-common/src/helpers/editor/extensions/HoppEnvironment.ts (+5 -1)
📝 packages/hoppscotch-common/src/helpers/utils/environments.ts (+2 -7)
📝 packages/hoppscotch-common/src/newstore/environments.ts (+7 -2)

📄 Description

Closes HFE-890

This PR updates the environment usage flow where the initial environment variable value is used as the environment value if current value is empty at the time of request run without persisting the value.


🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/hoppscotch/hoppscotch/pull/5162 **Author:** [@nivedin](https://github.com/nivedin) **Created:** 6/17/2025 **Status:** ✅ Merged **Merged:** 6/18/2025 **Merged by:** [@jamesgeorge007](https://github.com/jamesgeorge007) **Base:** `patch` ← **Head:** `chore/use-current-variable-fallback` --- ### 📝 Commits (5) - [`75e9d7e`](https://github.com/hoppscotch/hoppscotch/commit/75e9d7eac395db5118ba96c31eb822aecdb577ec) chore: use initial env val if current val is empty - [`6e297f5`](https://github.com/hoppscotch/hoppscotch/commit/6e297f550dfb94c68646d09841ababa5c8ab6f4e) chore: cleanup - [`7ec98dc`](https://github.com/hoppscotch/hoppscotch/commit/7ec98dccbf6328e56eab63f9d1eb53a7ccd114d9) chore: env hover incorrect bug - [`f977d25`](https://github.com/hoppscotch/hoppscotch/commit/f977d25d4fd1cb1ea7cf79c474138e5e60ca6d54) chore: add fallback for initial val - [`8da5704`](https://github.com/hoppscotch/hoppscotch/commit/8da57047ad9124093b7056ec73f9d38501861611) chore: make selected env priority over global ### 📊 Changes **6 files changed** (+68 additions, -45 deletions) <details> <summary>View changed files</summary> 📝 `packages/hoppscotch-common/src/components/environments/my/Details.vue` (+6 -15) 📝 `packages/hoppscotch-common/src/components/environments/teams/Details.vue` (+1 -1) 📝 `packages/hoppscotch-common/src/helpers/RequestRunner.ts` (+47 -19) 📝 `packages/hoppscotch-common/src/helpers/editor/extensions/HoppEnvironment.ts` (+5 -1) 📝 `packages/hoppscotch-common/src/helpers/utils/environments.ts` (+2 -7) 📝 `packages/hoppscotch-common/src/newstore/environments.ts` (+7 -2) </details> ### 📄 Description Closes HFE-890 This PR updates the environment usage flow where the initial environment variable value is used as the environment value if current value is empty at the time of request run without persisting the value. --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
kerem 2026-03-17 02:34:06 +03:00
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/hoppscotch#5088
No description provided.