Skip to content

Data browser request does not cancel current long-loading request #2671

Closed

Description

@mtrezza

New Issue Checklist

Issue Description

Setting a filter in the data browser that takes a long time for the data to load in the data browser is not cancelled when setting a new filter while the loading is ongoing. Instead, once the long-loading request completes, the data in the data browser is replaced by its result. This results in the filter dialog showing the filter of the second request and the data browser showing the data of the first request.

Steps to reproduce

  1. Navigate to data browser.
  2. Set a data filter that creates a request that requires a long time to load.
  3. While the request of step 2 is loading, change the filter dialog to a request that displays the result data immediately.
  4. After request of step 2 has finished, the data browser displays the data of the request in step 2 while the filter dialog shows the filter set in step 3.

Expected Outcome

When a new request is set, any currently running requests should be cancelled.

Environment

Dashboard

  • Parse Dashboard version: 6.1.0

Activity

  1. parse-github-assistant commented on Mar 8, 2025

    @parse-github-assistant

    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.
  2. changed the title [-]Long loading operation not cancelled[/-] [+]Data browser request does not cancel current long-loading request[/+] on Mar 8, 2025
  3. added
    type:bugImpaired feature or lacking behavior that is likely assumed
    bounty:$20Bounty applies for fixing this issue (Parse Bounty Program)
    on Mar 8, 2025
  4. dblythy commented on Apr 3, 2025

    @dblythy
    Member

    I am hoping to test the getData method with an abortController

  5. mtrezza commented on Apr 3, 2025

    @mtrezza
    MemberAuthor

    That sounds good, give it a shot!

  6. parseplatformorg commented on Apr 6, 2025

    @parseplatformorg
    Contributor

    🎉 This change has been released in version 7.1.0-alpha.3

  7. parseplatformorg commented on May 1, 2025

    @parseplatformorg
    Contributor

    🎉 This change has been released in version 7.1.0

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    bounty:$20Bounty applies for fixing this issue (Parse Bounty Program)state:releasedReleased as stable versionstate:released-alphaReleased as alpha versiontype:bugImpaired feature or lacking behavior that is likely assumed

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions