[PR #5109] [MERGED] fix: fill current value to existing value #5062

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

📋 Pull Request Information

Original PR: https://github.com/hoppscotch/hoppscotch/pull/5109
Author: @nivedin
Created: 5/29/2025
Status: Merged
Merged: 5/29/2025
Merged by: @jamesgeorge007

Base: patchHead: fix/env-fallback-mechanism


📝 Commits (2)

  • aa19819 chore: set current value to value on initial migration
  • 6b247a3 chore: add fallback to store current value or initial value

📊 Changes

12 files changed (+41 additions, -35 deletions)

View changed files

📝 packages/hoppscotch-cli/src/utils/request.ts (+1 -1)
📝 packages/hoppscotch-common/src/components/environments/my/Details.vue (+1 -1)
📝 packages/hoppscotch-common/src/components/environments/teams/Details.vue (+1 -1)
📝 packages/hoppscotch-common/src/helpers/editor/extensions/HoppEnvironment.ts (+1 -1)
📝 packages/hoppscotch-common/src/helpers/import-export/export/environment.ts (+1 -1)
📝 packages/hoppscotch-common/src/helpers/import-export/import/insomniaEnv.ts (+1 -1)
📝 packages/hoppscotch-common/src/helpers/import-export/import/postmanEnv.ts (+1 -1)
📝 packages/hoppscotch-common/src/helpers/utils/environments.ts (+14 -2)
📝 packages/hoppscotch-common/src/newstore/environments.ts (+11 -18)
📝 packages/hoppscotch-common/src/services/inspection/inspectors/environment.inspector.ts (+7 -6)
📝 packages/hoppscotch-data/src/environment/index.ts (+1 -1)
📝 packages/hoppscotch-data/src/environment/v/2.ts (+1 -1)

📄 Description

This PR fixes the issue where current value is empty on migration.


🔄 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/5109 **Author:** [@nivedin](https://github.com/nivedin) **Created:** 5/29/2025 **Status:** ✅ Merged **Merged:** 5/29/2025 **Merged by:** [@jamesgeorge007](https://github.com/jamesgeorge007) **Base:** `patch` ← **Head:** `fix/env-fallback-mechanism` --- ### 📝 Commits (2) - [`aa19819`](https://github.com/hoppscotch/hoppscotch/commit/aa1981920e748201aa6a5852f35aee7e7fe73b42) chore: set current value to value on initial migration - [`6b247a3`](https://github.com/hoppscotch/hoppscotch/commit/6b247a3effd78f8ca799579b583c4ec5a7ec1997) chore: add fallback to store current value or initial value ### 📊 Changes **12 files changed** (+41 additions, -35 deletions) <details> <summary>View changed files</summary> 📝 `packages/hoppscotch-cli/src/utils/request.ts` (+1 -1) 📝 `packages/hoppscotch-common/src/components/environments/my/Details.vue` (+1 -1) 📝 `packages/hoppscotch-common/src/components/environments/teams/Details.vue` (+1 -1) 📝 `packages/hoppscotch-common/src/helpers/editor/extensions/HoppEnvironment.ts` (+1 -1) 📝 `packages/hoppscotch-common/src/helpers/import-export/export/environment.ts` (+1 -1) 📝 `packages/hoppscotch-common/src/helpers/import-export/import/insomniaEnv.ts` (+1 -1) 📝 `packages/hoppscotch-common/src/helpers/import-export/import/postmanEnv.ts` (+1 -1) 📝 `packages/hoppscotch-common/src/helpers/utils/environments.ts` (+14 -2) 📝 `packages/hoppscotch-common/src/newstore/environments.ts` (+11 -18) 📝 `packages/hoppscotch-common/src/services/inspection/inspectors/environment.inspector.ts` (+7 -6) 📝 `packages/hoppscotch-data/src/environment/index.ts` (+1 -1) 📝 `packages/hoppscotch-data/src/environment/v/2.ts` (+1 -1) </details> ### 📄 Description This PR fixes the issue where current value is empty on migration. --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
kerem 2026-03-17 02:32:44 +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#5062
No description provided.