[PR #4814] [MERGED] fix: order request while fetching from db #4949

Closed
opened 2026-03-17 02:26:29 +03:00 by kerem · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/hoppscotch/hoppscotch/pull/4814
Author: @nivedin
Created: 3/4/2025
Status: Merged
Merged: 3/4/2025
Merged by: @jamesgeorge007

Base: patchHead: fix/reorder-request-bug


📝 Commits (1)

  • fa260ff fix: add orderBy to getRequestsInCollection

📊 Changes

1 file changed (+7 additions, -6 deletions)

View changed files

📝 packages/hoppscotch-backend/src/team-request/team-request.service.ts (+7 -6)

📄 Description

Closes #4567

This PR fixes the bug while re-ordering request inside a collection does not persist when refreshing.

What's changed

Added orderBy to getRequestsInCollection function to fetch the request in to sort by orderIndex


🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/hoppscotch/hoppscotch/pull/4814 **Author:** [@nivedin](https://github.com/nivedin) **Created:** 3/4/2025 **Status:** ✅ Merged **Merged:** 3/4/2025 **Merged by:** [@jamesgeorge007](https://github.com/jamesgeorge007) **Base:** `patch` ← **Head:** `fix/reorder-request-bug` --- ### 📝 Commits (1) - [`fa260ff`](https://github.com/hoppscotch/hoppscotch/commit/fa260ffd8c5099e1baab658120f801fcd719cd98) fix: add `orderBy` to `getRequestsInCollection` ### 📊 Changes **1 file changed** (+7 additions, -6 deletions) <details> <summary>View changed files</summary> 📝 `packages/hoppscotch-backend/src/team-request/team-request.service.ts` (+7 -6) </details> ### 📄 Description Closes #4567 This PR fixes the bug while re-ordering request inside a collection does not persist when refreshing. ### What's changed Added `orderBy` to `getRequestsInCollection` function to fetch the request in to sort by orderIndex --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
kerem 2026-03-17 02:26:29 +03:00
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/hoppscotch#4949
No description provided.