Skip to content

[26.0] Fix AbortSignal being serialized as dataset view query parameter#22326

Open
mvdbeek wants to merge 1 commit intogalaxyproject:release_26.0from
mvdbeek:fix-dataset-view-abort-signal
Open

[26.0] Fix AbortSignal being serialized as dataset view query parameter#22326
mvdbeek wants to merge 1 commit intogalaxyproject:release_26.0from
mvdbeek:fix-dataset-view-abort-signal

Conversation

@mvdbeek
Copy link
Copy Markdown
Member

@mvdbeek mvdbeek commented Mar 31, 2026

LastQueue passes an AbortSignal as the second positional argument to fetch handlers, but fetchDatasetDetails had view: string as its second parameter. This caused the AbortSignal object to be serialized into the query string, producing URLs like:
/api/datasets/...?view[aborted]=false&view[throwIfAborted]=...

Move view into the params object and accept the signal as the second argument, passing it through to openapi-fetch so requests are properly cancellable. Also update the FetchHandler type in keyedCache to reflect that handlers may receive a signal.

How to test the changes?

(Select all options that apply)

  • I've included appropriate automated tests.
  • This is a refactoring of components with existing test coverage.
  • Instructions for manual testing are as follows:
    1. [add testing steps and prerequisites here if you didn't write automated tests covering all your changes]

License

  • I agree to license these and all my past contributions to the core galaxy codebase under the MIT license.

LastQueue passes an AbortSignal as the second positional argument to
fetch handlers, but fetchDatasetDetails had `view: string` as its
second parameter. This caused the AbortSignal object to be serialized
into the query string, producing URLs like:
/api/datasets/...?view[aborted]=false&view[throwIfAborted]=...

Move `view` into the params object and accept the signal as the second
argument, passing it through to openapi-fetch so requests are properly
cancellable. Also update the FetchHandler type in keyedCache to
reflect that handlers may receive a signal.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

Status: Needs Review

Development

Successfully merging this pull request may close these issues.

2 participants