mirror of
https://github.com/mountain-loop/yaak.git
synced 2026-01-11 20:00:29 +01:00
[PR #129] [MERGED] Update local model stores in all mutations #65
Reference in New Issue
Block a user
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/mountain-loop/yaak/pull/129
Author: @gschier
Created: 10/23/2024
Status: ✅ Merged
Merged: 10/23/2024
Merged by: @gschier
Base:
master← Head:local-model-store-updates📝 Commits (3)
49f3fb0Update local model stores in all updatesdebbff8Fix some delete logic50b544cFix lint errors📊 Changes
29 files changed (+270 additions, -79 deletions)
View changed files
📝
package-lock.json(+8 -8)📝
src-web/components/EnvironmentEditDialog.tsx(+1 -0)📝
src-web/components/RecentResponsesDropdown.tsx(+1 -1)📝
src-web/hooks/useCreateCookieJar.ts(+13 -1)📝
src-web/hooks/useCreateEnvironment.ts(+12 -2)📝
src-web/hooks/useCreateFolder.ts(+18 -5)📝
src-web/hooks/useCreateGrpcRequest.ts(+8 -6)📝
src-web/hooks/useCreateHttpRequest.ts(+8 -6)📝
src-web/hooks/useCreateWorkspace.ts(+15 -7)📝
src-web/hooks/useDeleteAnyGrpcRequest.tsx(+10 -0)📝
src-web/hooks/useDeleteAnyHttpRequest.tsx(+11 -1)📝
src-web/hooks/useDeleteCookieJar.tsx(+9 -0)📝
src-web/hooks/useDeleteEnvironment.tsx(+9 -0)📝
src-web/hooks/useDeleteFolder.tsx(+9 -0)📝
src-web/hooks/useDeleteGrpcConnection.ts(+9 -0)📝
src-web/hooks/useDeleteGrpcConnections.ts(+6 -0)📝
src-web/hooks/useDeleteHttpResponse.ts(+7 -0)📝
src-web/hooks/useDeleteHttpResponses.ts(+6 -0)📝
src-web/hooks/useDeleteSendHistory.tsx(+11 -2)📝
src-web/hooks/useDeleteWorkspace.tsx(+7 -0)...and 9 more files
📄 Description
For some reason, model updates sporadically fail to apply 100% of the time. After some painful debugging, it seems like the Tauri event was not making it to the window in these cases, even though everything else succeeded.
Instead of debugging this for a week, this PR simply adds the logic to update the appropriate model store within each create/update/delete mutation.
Summary by CodeRabbit
Release Notes
New Features
Bug Fixes
Documentation
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.