mirror of
https://github.com/hoppscotch/hoppscotch.git
synced 2026-04-25 16:55:59 +03:00
[PR #5428] [MERGED] refactor: cleanup sync logic and imports #5198
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#5198
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/5428
Author: @Prit1912
Created: 10/2/2025
Status: ✅ Merged
Merged: 10/8/2025
Merged by: @jamesgeorge007
Base:
next← Head:fix/letmecheck/code-refactoring-recursivelySyncCollections📝 Commits (3)
83f30ceRemoved always truthy condition from recursivelySyncCollections functionb913774Removed always truthy condition of parentCollectionIdff33630Removed duplicated imports📊 Changes
33 files changed (+71 additions, -110 deletions)
View changed files
📝
packages/hoppscotch-backend/src/pubsub/pubsub.service.ts(+1 -2)📝
packages/hoppscotch-backend/src/team-collection/team-collection.service.ts(+1 -1)📝
packages/hoppscotch-backend/src/user/user.service.ts(+1 -1)📝
packages/hoppscotch-cli/src/utils/pre-request.ts(+1 -2)📝
packages/hoppscotch-common/src/helpers/actions.ts(+1 -2)📝
packages/hoppscotch-common/src/helpers/import-export/import/hopp.ts(+2 -2)📝
packages/hoppscotch-common/src/newstore/collections.ts(+1 -1)📝
packages/hoppscotch-common/src/platform/std/inspections/extension.inspector.ts(+1 -2)📝
packages/hoppscotch-common/src/platform/std/interceptors/proxy.ts(+1 -2)📝
packages/hoppscotch-common/src/platform/std/kernel-interceptors/agent/index.ts(+7 -6)📝
packages/hoppscotch-common/src/services/current-environment-value.service.ts(+1 -3)📝
packages/hoppscotch-common/src/services/inspection/index.ts(+1 -2)📝
packages/hoppscotch-common/src/services/inspection/inspectors/environment.inspector.ts(+1 -2)📝
packages/hoppscotch-common/src/services/inspection/inspectors/response.inspector.ts(+1 -3)📝
packages/hoppscotch-common/src/services/persistence/index.ts(+1 -2)📝
packages/hoppscotch-common/src/services/secret-environment.service.ts(+1 -2)📝
packages/hoppscotch-data/src/rest/v/15/auth.ts(+4 -2)📝
packages/hoppscotch-selfhost-desktop/src/platform/collections/collections.sync.ts(+6 -9)📝
packages/hoppscotch-selfhost-desktop/src/platform/collections/gqlCollections.sync.ts(+6 -9)📝
packages/hoppscotch-selfhost-desktop/src/platform/environments/environments.sync.ts(+1 -2)...and 13 more files
📄 Description
This PR refactors the sync logic for collections, environments, history, and settings by removing always-truthy conditions from the
recursivelySyncCollectionsfunction and similar patterns. It also cleans up redundant imports across affected files.What's changed
recursivelySyncCollectionsand related sync functions to remove unnecessary always-truthy checks.Notes to reviewers
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.