[PR #5105] [MERGED] fix: environment and rest tab state schema migration #5059

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

📋 Pull Request Information

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

Base: patchHead: fix/environment-sync-version


📝 Commits (7)

  • 34eb580 fix: translate to new environment version when syncing
  • 54e1d65 chore: update response version
  • 41faae4 chore: migrate environment version while syncing
  • 15b33cc chore: minor update
  • 863d03d fix: response schema validation error
  • 6ddc5d8 chore: use const version
  • 4f052e3 fix: restTab schema error

📊 Changes

15 files changed (+190 additions, -51 deletions)

View changed files

📝 packages/hoppscotch-common/src/components/http/Response.vue (+2 -1)
📝 packages/hoppscotch-common/src/helpers/import-export/import/insomniaEnv.ts (+6 -3)
📝 packages/hoppscotch-common/src/helpers/import-export/import/openapi.ts (+2 -1)
📝 packages/hoppscotch-common/src/helpers/import-export/import/postman.ts (+2 -1)
📝 packages/hoppscotch-common/src/helpers/import-export/import/postmanEnv.ts (+3 -3)
📝 packages/hoppscotch-common/src/helpers/teams/TeamEnvironmentAdapter.ts (+23 -13)
📝 packages/hoppscotch-common/src/services/persistence/validation-schemas/index.ts (+1 -1)
📝 packages/hoppscotch-data/src/environment/index.ts (+1 -1)
📝 packages/hoppscotch-data/src/environment/v/2.ts (+1 -1)
📝 packages/hoppscotch-data/src/rest/index.ts (+11 -10)
📝 packages/hoppscotch-data/src/rest/v/12.ts (+43 -0)
📝 packages/hoppscotch-data/src/rest/v/13.ts (+44 -1)
📝 packages/hoppscotch-data/src/rest/v/9.ts (+1 -1)
📝 packages/hoppscotch-selfhost-web/src/platform/environments/desktop/index.ts (+25 -7)
📝 packages/hoppscotch-selfhost-web/src/platform/environments/web/index.ts (+25 -7)

📄 Description

This PR fixes the following issue

  • The synced environments failed to migrate to new version
  • Schema error due to response version migrate fail.

🔄 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/5105 **Author:** [@nivedin](https://github.com/nivedin) **Created:** 5/28/2025 **Status:** ✅ Merged **Merged:** 5/29/2025 **Merged by:** [@jamesgeorge007](https://github.com/jamesgeorge007) **Base:** `patch` ← **Head:** `fix/environment-sync-version` --- ### 📝 Commits (7) - [`34eb580`](https://github.com/hoppscotch/hoppscotch/commit/34eb580946865592a5a5997f2664a4a0afd07a61) fix: translate to new environment version when syncing - [`54e1d65`](https://github.com/hoppscotch/hoppscotch/commit/54e1d6509aa371e7fc2fe1a4c9bd760b89396d34) chore: update response version - [`41faae4`](https://github.com/hoppscotch/hoppscotch/commit/41faae4476c9923ae71d7e601bfa242045d2e33e) chore: migrate environment version while syncing - [`15b33cc`](https://github.com/hoppscotch/hoppscotch/commit/15b33cc1235d977d73c4e87ba29eb948cb2609b2) chore: minor update - [`863d03d`](https://github.com/hoppscotch/hoppscotch/commit/863d03dc1736a8f981c5f638a71e839fecc82b33) fix: response schema validation error - [`6ddc5d8`](https://github.com/hoppscotch/hoppscotch/commit/6ddc5d8744741448f2335b82e8a33245aa4cc654) chore: use const version - [`4f052e3`](https://github.com/hoppscotch/hoppscotch/commit/4f052e31d3f5eb5651bf8914ff172ad4011239d5) fix: restTab schema error ### 📊 Changes **15 files changed** (+190 additions, -51 deletions) <details> <summary>View changed files</summary> 📝 `packages/hoppscotch-common/src/components/http/Response.vue` (+2 -1) 📝 `packages/hoppscotch-common/src/helpers/import-export/import/insomniaEnv.ts` (+6 -3) 📝 `packages/hoppscotch-common/src/helpers/import-export/import/openapi.ts` (+2 -1) 📝 `packages/hoppscotch-common/src/helpers/import-export/import/postman.ts` (+2 -1) 📝 `packages/hoppscotch-common/src/helpers/import-export/import/postmanEnv.ts` (+3 -3) 📝 `packages/hoppscotch-common/src/helpers/teams/TeamEnvironmentAdapter.ts` (+23 -13) 📝 `packages/hoppscotch-common/src/services/persistence/validation-schemas/index.ts` (+1 -1) 📝 `packages/hoppscotch-data/src/environment/index.ts` (+1 -1) 📝 `packages/hoppscotch-data/src/environment/v/2.ts` (+1 -1) 📝 `packages/hoppscotch-data/src/rest/index.ts` (+11 -10) 📝 `packages/hoppscotch-data/src/rest/v/12.ts` (+43 -0) 📝 `packages/hoppscotch-data/src/rest/v/13.ts` (+44 -1) 📝 `packages/hoppscotch-data/src/rest/v/9.ts` (+1 -1) 📝 `packages/hoppscotch-selfhost-web/src/platform/environments/desktop/index.ts` (+25 -7) 📝 `packages/hoppscotch-selfhost-web/src/platform/environments/web/index.ts` (+25 -7) </details> ### 📄 Description This PR fixes the following issue - The synced environments failed to migrate to new version - Schema error due to response version migrate fail. --- <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:28 +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#5059
No description provided.