mirror of
https://github.com/hoppscotch/hoppscotch.git
synced 2026-04-26 01:06:00 +03:00
[PR #5395] refactor: eliminate duplicated code in collection sync utilities #5186
Labels
No labels
CodeDay
a11y
browser limited
bug
bug fix
cli
core
critical
design
desktop
discussion
docker
documentation
duplicate
enterprise
feature
feature
fosshack
future
good first issue
hacktoberfest
help wanted
i18n
invalid
major
minor
need information
need testing
not applicable to hoppscotch
not reproducible
pull-request
question
refactor
resolved
sandbox
self-host
spam
stale
testmu
wip
wont fix
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/hoppscotch#5186
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
📋 Pull Request Information
Original PR: https://github.com/hoppscotch/hoppscotch/pull/5395
Author: @anwarulislam
Created: 9/22/2025
Status: 🔄 Open
Base:
next← Head:refactor/unified-sync-script📝 Commits (2)
80a0e8brefactor: remove and refactor dulicated code710f2d5refactor: 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.