mirror of
https://github.com/hoppscotch/hoppscotch.git
synced 2026-04-26 01:06:00 +03:00
[PR #5365] [MERGED] fix: orderIndex update to scope by collection ID #5176
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#5176
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/5365
Author: @mirarifhasan
Created: 9/1/2025
Status: ✅ Merged
Merged: 9/2/2025
Merged by: @jamesgeorge007
Base:
patch← Head:hotfix/delete-team-req📝 Commits (1)
38923b4fix: orderIndex update to scope by collectionID📊 Changes
1 file changed (+4 additions, -1 deletions)
View changed files
📝
packages/hoppscotch-backend/src/team-request/team-request.service.ts(+4 -1)📄 Description
What's changed
This pull request makes a targeted change to the logic for updating the
orderIndexof team requests in theTeamRequestService. The update ensures that only requests within the same collection are affected when decrementingorderIndexvalues.Closes #5364.
updateManyoperation inTeamRequestServiceto only affect requests with the samecollectionIDas the current team request, preventing unintended changes across collections.Reproduce the issue
In the team workspace, create two collections. Create three requests in each collection.
Now try to delete 2nd (middle) team request from any one collection.
Notes to reviewers
Simulate [Reproduce the issue] section and see if the issue resolved.
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.