mirror of
https://github.com/hoppscotch/hoppscotch.git
synced 2026-04-26 01:06:00 +03:00
[PR #2944] [MERGED] refactor: optional variables to createEnvironment and fixing the order of initializing GqlClient #4147
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#4147
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/2944
Author: @amk-dev
Created: 3/7/2023
Status: ✅ Merged
Merged: 3/7/2023
Merged by: @AndrewBastin
Base:
staging← Head:chore/envs-common-changes📝 Commits (2)
34e7696refactor: pass variables to createEnvironment instead of using updateEnvironmentff11994chore: fix the order of initializing GQLClient to prevent runGqlSubscription from not running subscription📊 Changes
4 files changed (+11 additions, -11 deletions)
View changed files
📝
packages/hoppscotch-common/src/components/environments/my/Details.vue(+1 -2)📝
packages/hoppscotch-common/src/components/environments/my/Environment.vue(+2 -5)📝
packages/hoppscotch-common/src/index.ts(+1 -1)📝
packages/hoppscotch-common/src/newstore/environments.ts(+7 -3)📄 Description
Before
the
createEnvironmentstore action did not support variables as parameters, we were using two actionscreateEnvironmentandupdateEnvironmentjust for creation.there existed an edge case where the GQLClient was not initialized when
runGqlSubscriptionwas called, which caused the subscription to not runAfter
createEnvironmentstore action accepts optional variables parameter.Updated the order of initializing GQLClient to prevent
runGqlSubscriptionfrom not running subscription🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.