mirror of
https://github.com/hoppscotch/hoppscotch.git
synced 2026-04-26 01:06:00 +03:00
[PR #4263] [MERGED] fix: sync all settings actions in SH #4729
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#4729
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/4263
Author: @jamesgeorge007
Created: 8/14/2024
Status: ✅ Merged
Merged: 8/19/2024
Merged by: @AndrewBastin
Base:
patch← Head:fix/sh-settings-sync📝 Commits (2)
e9fdc1bfix: sync all settings actions in SH84aeda1fix: prevent exceptions while toggling synchronization settings📊 Changes
4 files changed (+22 additions, -4 deletions)
View changed files
📝
packages/hoppscotch-selfhost-desktop/src/lib/sync/index.ts(+2 -2)📝
packages/hoppscotch-selfhost-desktop/src/platform/settings/settings.sync.ts(+9 -0)📝
packages/hoppscotch-selfhost-web/src/lib/sync/index.ts(+2 -2)📝
packages/hoppscotch-selfhost-web/src/platform/settings/settings.sync.ts(+9 -0)📄 Description
What's changed
Previously, actions over the following settings were not getting synced in SH:
Expand navigation&Sidebar on leftunderExperiments.Collections,Environments&Historysynchronization settings under the profile page.This was the case since the relevant store dispatcher methods were not present under the store sync definition maintained at the platform level. This PR resolves this behaviour by extending the above definition accordingly. There was also a known issue with toggling the synchronization settings (
Collections,Environments&History) under the profile page resulting in an exception which is fixed by adding safeguards with the usage ofstartSubscriptions()&stopSubscriptions()function calls from the syncing context.Closes HFE-324 HFE-561.
Notes to reviewers
While verifying the wrap lines preference toggle sync behaviour, make sure to check all request tabs applicable to the action.
github.com/hoppscotch/hoppscotch@3f78bf1062/packages/hoppscotch-common/src/newstore/settings.ts (L32-L49)🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.