mirror of
https://github.com/hoppscotch/hoppscotch.git
synced 2026-04-26 01:06:00 +03:00
[PR #4459] [CLOSED] Fix export order of requests in collections (issue 4375) #4815
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#4815
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/4459
Author: @sz-2302
Created: 10/21/2024
Status: ❌ Closed
Base:
main← Head:fix/export-order📝 Commits (4)
da519acAdd request sorting by index to myCollections exportecefd50Add request sorting by index to teamCollections export629a514Handle drag-and-drop request reordering and assign new indices6d83a69Add request sorting by index📊 Changes
5 files changed (+94 additions, -14 deletions)
View changed files
📝
packages/hoppscotch-common/src/components/collections/Collection.vue(+6 -0)📝
packages/hoppscotch-common/src/helpers/backend/mutations/TeamCollection.ts(+42 -7)📝
packages/hoppscotch-common/src/helpers/import-export/export/myCollections.ts(+6 -2)📝
packages/hoppscotch-common/src/helpers/import-export/export/teamCollections.ts(+11 -3)📝
packages/hoppscotch-common/src/helpers/import-export/import/myCollections.ts(+29 -2)📄 Description
This pull request addresses an issue where the export of collections does not preserve the order of REST requests, making collaboration difficult and affecting request execution order.
What's changed:
myCollectionsExporterandteamCollectionsExporterfunctions to ensure requests are sorted by their original index before export.Collection.vueto update the requestindexon drag-and-drop reordering, ensuring the correct order is maintained during export.Notes to reviewers:
This PR ensures that requests are consistently ordered in both personal and team collections, solving the issue of shuffled requests upon export.
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.