[PR #5536] [MERGED] fix(common): use fallback ref ID for mock server creation with legacy collections #5252

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

📋 Pull Request Information

Original PR: https://github.com/hoppscotch/hoppscotch/pull/5536
Author: @anwarulislam
Created: 10/30/2025
Status: Merged
Merged: 10/30/2025
Merged by: @jamesgeorge007

Base: nextHead: fix/mock-server-on-personal-workspace


📝 Commits (4)

  • 472d1ce fix(common): use fallback ref id for collection ID in createMockServer function
  • fb05b80 fix(common): use fallback ref id for collection ID in mock server status
  • b9b4460 fix(common): use fallback ref id for collection ID based on workspace type
  • cfd30a3 chore: remove disableMockServerInPersonalWorkspace platform feature flag

📊 Changes

5 files changed (+14 additions, -38 deletions)

View changed files

📝 packages/hoppscotch-common/src/components/collections/Collection.vue (+2 -1)
📝 packages/hoppscotch-common/src/components/collections/index.vue (+2 -2)
📝 packages/hoppscotch-common/src/components/mockServer/CreateMockServer.vue (+4 -1)
📝 packages/hoppscotch-common/src/composables/mockServerVisibility.ts (+6 -28)
📝 packages/hoppscotch-common/src/platform/index.ts (+0 -6)

📄 Description

Fallback reference IDs are now added as collection IDs in both the createMockServer function and the computation of mock server status. This facilitates the creation of a mock server for the legacy collection format.


🔄 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/5536 **Author:** [@anwarulislam](https://github.com/anwarulislam) **Created:** 10/30/2025 **Status:** ✅ Merged **Merged:** 10/30/2025 **Merged by:** [@jamesgeorge007](https://github.com/jamesgeorge007) **Base:** `next` ← **Head:** `fix/mock-server-on-personal-workspace` --- ### 📝 Commits (4) - [`472d1ce`](https://github.com/hoppscotch/hoppscotch/commit/472d1ce089fbcbd561f4633e19f6be366e1f86ca) fix(common): use fallback ref id for collection ID in createMockServer function - [`fb05b80`](https://github.com/hoppscotch/hoppscotch/commit/fb05b80b16ca27779636f260706ba8337741a1b8) fix(common): use fallback ref id for collection ID in mock server status - [`b9b4460`](https://github.com/hoppscotch/hoppscotch/commit/b9b44608fb1e906f6f71fe86b5a9a6f189e6ace2) fix(common): use fallback ref id for collection ID based on workspace type - [`cfd30a3`](https://github.com/hoppscotch/hoppscotch/commit/cfd30a35d02b488ba71068a78f2095e5e9afde28) chore: remove `disableMockServerInPersonalWorkspace` platform feature flag ### 📊 Changes **5 files changed** (+14 additions, -38 deletions) <details> <summary>View changed files</summary> 📝 `packages/hoppscotch-common/src/components/collections/Collection.vue` (+2 -1) 📝 `packages/hoppscotch-common/src/components/collections/index.vue` (+2 -2) 📝 `packages/hoppscotch-common/src/components/mockServer/CreateMockServer.vue` (+4 -1) 📝 `packages/hoppscotch-common/src/composables/mockServerVisibility.ts` (+6 -28) 📝 `packages/hoppscotch-common/src/platform/index.ts` (+0 -6) </details> ### 📄 Description Fallback reference IDs are now added as collection IDs in both the `createMockServer` function and the computation of mock server status. This facilitates the creation of a mock server for the legacy collection format. --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
kerem 2026-03-17 02:43: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#5252
No description provided.