mirror of
https://github.com/hoppscotch/hoppscotch.git
synced 2026-04-26 01:06:00 +03:00
[PR #4511] [MERGED] fix(agent): propagate default values to persistent store #4840
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#4840
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/4511
Author: @CuriousCorrelation
Created: 11/4/2024
Status: ✅ Merged
Merged: 11/6/2024
Merged by: @AndrewBastin
Base:
patch← Head:agent/fix/persist-store📝 Commits (3)
bafc483fix(agent): persist store state on successful load158a585feat(agent): descriptive error handling and source of truth2a0a582chore(agent): bump agent version tov0.1.3📊 Changes
12 files changed (+151 additions, -108 deletions)
View changed files
📝
packages/hoppscotch-agent/devenv.nix(+58 -38)📝
packages/hoppscotch-agent/package.json(+1 -1)📝
packages/hoppscotch-agent/src-tauri/Cargo.lock(+1 -1)📝
packages/hoppscotch-agent/src-tauri/Cargo.toml(+1 -1)📝
packages/hoppscotch-agent/src-tauri/src/controller.rs(+21 -21)📝
packages/hoppscotch-agent/src-tauri/src/error.rs(+18 -16)➕
packages/hoppscotch-agent/src-tauri/src/global.rs(+2 -0)📝
packages/hoppscotch-agent/src-tauri/src/lib.rs(+1 -0)📝
packages/hoppscotch-agent/src-tauri/src/state.rs(+40 -23)📝
packages/hoppscotch-agent/src-tauri/src/tray.rs(+6 -5)📝
packages/hoppscotch-agent/src-tauri/tauri.conf.json(+1 -1)📝
packages/hoppscotch-agent/src-tauri/tauri.portable.conf.json(+1 -1)📄 Description
This PR fixes an issue where sane default values set in the ephemeral store were not being propagated to the persistent store if the store was uninitialized or encountered a loading error. Now, if the persistent store is absent or fails to load, default values will be established in the ephemeral store and subsequently saved to the persistent store, syncing two both storage layers.
Closes HFE-645
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.
proxyinterceptorjsonresponse decode #4957