[PR #5395] refactor: eliminate duplicated code in collection sync utilities #5186

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

📋 Pull Request Information

Original PR: https://github.com/hoppscotch/hoppscotch/pull/5395
Author: @anwarulislam
Created: 9/22/2025
Status: 🔄 Open

Base: nextHead: refactor/unified-sync-script


📝 Commits (2)

  • 80a0e8b refactor: remove and refactor dulicated code
  • 710f2d5 refactor: remove unused functions and streamline sync definition

📊 Changes

7 files changed (+897 additions, -985 deletions)

View changed files

packages/hoppscotch-common/src/helpers/collections/index.ts (+22 -0)
packages/hoppscotch-common/src/helpers/collections/sync.ts (+51 -0)
packages/hoppscotch-common/src/helpers/collections/syncCore.ts (+319 -0)
packages/hoppscotch-common/src/helpers/collections/syncDefinitionFactory.ts (+360 -0)
packages/hoppscotch-common/src/helpers/collections/syncUtilities.ts (+78 -0)
📝 packages/hoppscotch-selfhost-desktop/src/platform/collections/collections.sync.ts (+34 -637)
📝 packages/hoppscotch-selfhost-desktop/src/platform/collections/gqlCollections.sync.ts (+33 -348)

📄 Description

Closes FE-1003

Consolidate common functionality and streamline the codebase by removing redundant implementations across collection sync utilities. This enhances maintainability and reduces potential errors.


🔄 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/5395 **Author:** [@anwarulislam](https://github.com/anwarulislam) **Created:** 9/22/2025 **Status:** 🔄 Open **Base:** `next` ← **Head:** `refactor/unified-sync-script` --- ### 📝 Commits (2) - [`80a0e8b`](https://github.com/hoppscotch/hoppscotch/commit/80a0e8b256040ce873d77b3081555bc58d11aa29) refactor: remove and refactor dulicated code - [`710f2d5`](https://github.com/hoppscotch/hoppscotch/commit/710f2d56925c7d3255a053ff7a63084f44bb2413) refactor: remove unused functions and streamline sync definition ### 📊 Changes **7 files changed** (+897 additions, -985 deletions) <details> <summary>View changed files</summary> ➕ `packages/hoppscotch-common/src/helpers/collections/index.ts` (+22 -0) ➕ `packages/hoppscotch-common/src/helpers/collections/sync.ts` (+51 -0) ➕ `packages/hoppscotch-common/src/helpers/collections/syncCore.ts` (+319 -0) ➕ `packages/hoppscotch-common/src/helpers/collections/syncDefinitionFactory.ts` (+360 -0) ➕ `packages/hoppscotch-common/src/helpers/collections/syncUtilities.ts` (+78 -0) 📝 `packages/hoppscotch-selfhost-desktop/src/platform/collections/collections.sync.ts` (+34 -637) 📝 `packages/hoppscotch-selfhost-desktop/src/platform/collections/gqlCollections.sync.ts` (+33 -348) </details> ### 📄 Description Closes FE-1003 Consolidate common functionality and streamline the codebase by removing redundant implementations across collection sync utilities. This enhances maintainability and reduces potential errors. --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
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#5186
No description provided.