mirror of
https://github.com/hoppscotch/hoppscotch.git
synced 2026-04-25 16:55:59 +03:00
[PR #4537] [MERGED] fix: resolve GraphQL collection tree and tab dissociation issues #4849
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#4849
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/4537
Author: @jamesgeorge007
Created: 11/14/2024
Status: ✅ Merged
Merged: 11/22/2024
Merged by: @jamesgeorge007
Base:
next← Head:fix/gql-collection-tree-tab-sync📝 Commits (2)
14ae565fix: resolve dissociation issues with GraphQL collection tree and tab1fa7352chore: update GQL request tab save context schema📊 Changes
6 files changed (+78 additions, -24 deletions)
View changed files
📝
packages/hoppscotch-common/src/components/collections/SaveRequest.vue(+42 -7)📝
packages/hoppscotch-common/src/components/collections/graphql/AddRequest.vue(+3 -3)📝
packages/hoppscotch-common/src/components/collections/graphql/EditRequest.vue(+19 -1)📝
packages/hoppscotch-common/src/components/collections/graphql/index.vue(+3 -11)📝
packages/hoppscotch-common/src/newstore/collections.ts(+10 -0)📝
packages/hoppscotch-common/src/services/persistence/validation-schemas/index.ts(+1 -2)📄 Description
This PR aims to resolve the issues with the GraphQL workspace, where requests from the collection tree and the ones open under tabs get dissociated following certain actions.
Closes HFE-546 #4500.
What's changed
saveGraphqlRequestAsfunction exposed from the store premises, invoking the underlying dispatcher now returns the insertion index for the request being added.undefinedresulting in dissociation with the tab.OnAddRequestmethod in theCollectionGraphqlcomponent removingindex(resolved asundefined) from the incoming data and leveraging the request index instead.CollectionsGraphqlAddRequestcomponent.requestIndexfield existence as a follow up of #4211.Notes to reviewers
Please ensure to verify actions except for moves and overwrites via the
Save as new requestfrom the spotlight with requests from the collection tree and that the association is kept with the tabs in which they're open:Save asmodal.🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.