[PR #5214] [MERGED] fix: fallback env to initial and make valid url in codegen #5107

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

📋 Pull Request Information

Original PR: https://github.com/hoppscotch/hoppscotch/pull/5214
Author: @nivedin
Created: 7/1/2025
Status: Merged
Merged: 7/10/2025
Merged by: @jamesgeorge007

Base: patchHead: fix/codegene-env-fallback


📝 Commits (5)

  • defb7c7 fix: fallback env to initial and make valid url in codegen
  • 9684df2 chore: cleanup
  • 48c8c48 chore: cleanup
  • 68a9bf8 chore: code refactor
  • fd22cf6 chore: bump httpsnippet version

📊 Changes

4 files changed (+37 additions, -28 deletions)

View changed files

📝 package.json (+0 -7)
📝 packages/hoppscotch-common/package.json (+1 -1)
📝 packages/hoppscotch-common/src/components/http/Codegen.vue (+31 -2)
📝 pnpm-lock.yaml (+5 -18)

📄 Description

Closes FE-913 #5198

This PR fixes the issue where the codegen view breaks if environment failed to fallback to initial environment value when current value is empty and URL is empty.

What's changed

The environment will fallback to initial value if current value is empty and if URL is empty add an 'https://' value so that httpsnippet does not break.


🔄 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/5214 **Author:** [@nivedin](https://github.com/nivedin) **Created:** 7/1/2025 **Status:** ✅ Merged **Merged:** 7/10/2025 **Merged by:** [@jamesgeorge007](https://github.com/jamesgeorge007) **Base:** `patch` ← **Head:** `fix/codegene-env-fallback` --- ### 📝 Commits (5) - [`defb7c7`](https://github.com/hoppscotch/hoppscotch/commit/defb7c74ce40210be90de6ae6e7adb4909386ad0) fix: fallback env to initial and make valid url in codegen - [`9684df2`](https://github.com/hoppscotch/hoppscotch/commit/9684df2ec16bd2ac02b801272a845f47c70ae4ab) chore: cleanup - [`48c8c48`](https://github.com/hoppscotch/hoppscotch/commit/48c8c48877484d38bf1a086da5cb9ddcc43fef11) chore: cleanup - [`68a9bf8`](https://github.com/hoppscotch/hoppscotch/commit/68a9bf80a2082216f4fd86c4786f594998d52c16) chore: code refactor - [`fd22cf6`](https://github.com/hoppscotch/hoppscotch/commit/fd22cf642698a51053de359e564c3c335186378d) chore: bump httpsnippet version ### 📊 Changes **4 files changed** (+37 additions, -28 deletions) <details> <summary>View changed files</summary> 📝 `package.json` (+0 -7) 📝 `packages/hoppscotch-common/package.json` (+1 -1) 📝 `packages/hoppscotch-common/src/components/http/Codegen.vue` (+31 -2) 📝 `pnpm-lock.yaml` (+5 -18) </details> ### 📄 Description Closes FE-913 #5198 This PR fixes the issue where the codegen view breaks if environment failed to fallback to initial environment value when current value is empty and URL is empty. ### What's changed The environment will fallback to initial value if current value is empty and if URL is empty add an 'https://' value so that httpsnippet does not break. --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
kerem 2026-03-17 02:35:11 +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#5107
No description provided.