Skip to content

Data browser does not cancel obsolete long-loading request on sorting field change #2820

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
4 tasks done
mtrezza opened this issue May 23, 2025 · 2 comments · Fixed by #2839
Closed
4 tasks done

Data browser does not cancel obsolete long-loading request on sorting field change #2820

mtrezza opened this issue May 23, 2025 · 2 comments · Fixed by #2839
Labels
state:released-alpha Released as alpha version type:bug Impaired feature or lacking behavior that is likely assumed

Comments

@mtrezza
Copy link
Member

mtrezza commented May 23, 2025

New Issue Checklist

Issue Description

A long-loading request is not cancelled when changing the sorting field in the data browser. This causes the result of the long-loading request overwriting the result of the currently displayed data, while the field sorting indicator still shows the current sorting.

This is similar to #2671, it may be a separate issue or that the bug was not fixed completely.

Steps to reproduce

  1. Navigate to data browser.
  2. In a class with many objects where fieldA is an indexed field and fieldB is a non-indexed field.
  3. Click on header cell to sort by fieldB, then immediately on header cell to sort by fieldA.
  4. The results sorted by fieldA are displayed immediately.
  5. When the long-loading request sorted by fieldB finished, it will overwrite the results in the data browser while the header row still shows sorted by fieldA.

Expected Outcome

The long-longing request sorted by fieldB should be cancelled.

If possible, not only should the results not be displayed, but the HTTP request should be cancelled, so the server knows that the client doesn't need the response anymore and avoids sending the response unnecessarily. This doesn't require any changes in Parse Server, it's managed by the underlying HTTP library on the server side.

Environment

Dashboard

  • Parse Dashboard version: 7.2.0-alpha.3
Copy link

parse-github-assistant bot commented May 23, 2025

🚀 Thanks for opening this issue!

ℹ️ You can help us to fix this issue faster by opening a pull request with a failing test. See our Contribution Guide for how to make a pull request, or read our New Contributor's Guide if this is your first time contributing.

@mtrezza mtrezza added the type:bug Impaired feature or lacking behavior that is likely assumed label May 23, 2025
@mtrezza mtrezza changed the title Data browser request does not cancel long-loading request Data browser does not cancel obsolete long-loading request on sorting field change May 23, 2025
@parseplatformorg
Copy link
Contributor

🎉 This change has been released in version 7.2.1-alpha.1

@parseplatformorg parseplatformorg added the state:released-alpha Released as alpha version label Jun 2, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
state:released-alpha Released as alpha version type:bug Impaired feature or lacking behavior that is likely assumed
Projects
None yet
2 participants