mirror of
https://github.com/hoppscotch/hoppscotch.git
synced 2026-04-26 01:06:00 +03:00
[PR #3348] [MERGED] refactor: minor performance improvements on teams related operations #4351
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#4351
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/3348
Author: @AndrewBastin
Created: 9/13/2023
Status: ✅ Merged
Merged: 9/18/2023
Merged by: @AndrewBastin
Base:
main← Head:perf/reduce-backend-calls📝 Commits (8)
a674870refactor: introduce a global managed team list adapteraadcf97refactor: collection expansion fetches requests and collections parallellya107ac3refactor: move workspace store into service668d428chore: write doc comments for WorkspaceServicee89a2bcrefactor: move workspace service84df4e6chore: add tests for workspace service5678083chore: export Workspace and WorkspaceServiceEvent types of Workspace Service09b4d40fix: add missing call in the tested function📊 Changes
16 files changed (+520 additions, -202 deletions)
View changed files
📝
packages/hoppscotch-common/src/components.d.ts(+1 -1)📝
packages/hoppscotch-common/src/components/app/Header.vue(+11 -13)📝
packages/hoppscotch-common/src/components/collections/index.vue(+11 -10)📝
packages/hoppscotch-common/src/components/environments/Selector.vue(+6 -10)📝
packages/hoppscotch-common/src/components/environments/index.vue(+5 -9)📝
packages/hoppscotch-common/src/components/http/TestResult.vue(+4 -2)📝
packages/hoppscotch-common/src/components/teams/index.vue(+4 -9)📝
packages/hoppscotch-common/src/components/workspace/Current.vue(+4 -3)📝
packages/hoppscotch-common/src/components/workspace/Selector.vue(+32 -12)📝
packages/hoppscotch-common/src/helpers/teams/TeamCollectionAdapter.ts(+55 -44)📝
packages/hoppscotch-common/src/helpers/teams/TeamListAdapter.ts(+5 -2)➖
packages/hoppscotch-common/src/newstore/workspace.ts(+0 -67)➕
packages/hoppscotch-common/src/services/__tests__/workspace.service.spec.ts(+238 -0)📝
packages/hoppscotch-common/src/services/spotlight/searchers/collections.searcher.ts(+4 -4)📝
packages/hoppscotch-common/src/services/spotlight/searchers/workspace.searcher.ts(+5 -16)➕
packages/hoppscotch-common/src/services/workspace.service.ts(+135 -0)📄 Description
This PR introduces minor performance related improvements in the teams related operations.
What's changed
newstore/workspaceintoWorkspaceServiceWorkspaceServiceTeamListAdapter, the app as a whole gets a single TeamListAdapter instance that is shared by the entire app while being managed byWorkspaceService.TeamCollectionAdapternow fetches the children collection and requests in parallel instead of serially.Checks
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.