Skip to content
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

[24.1] Add error handling in WorkflowInvocationState #18726

Conversation

ahmedhamidawan
Copy link
Member

@ahmedhamidawan ahmedhamidawan commented Aug 20, 2024

Fixes #18723

Without this fix, if you get to the WorkflowInvocationState route for another user's invocation, there is a 403 error which is unhandled since there is a computed invocation ref that we constantly poll. Adding a initialLoading ref that ensures the first fetch for the invocation was valid (or the error is caught) fixes this.

invocation_state_unhandled_error

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.

Fixes galaxyproject#18723

Without this fix, if you get to the `WorkflowInvocationState` route for another user's invocation, there is a 404 error which is unhandled since there is a computed `invocation` ref that we constantly poll.
Adding a `initialLoading` ref that ensures the first fetch for the invocation was valid (or the error is caught) fixes this.
@ahmedhamidawan ahmedhamidawan changed the title [24.1] Add error handling and initial loading state to Invocation State [24.1] Add error handling in WorkflowInvocationState Aug 20, 2024
@dannon dannon merged commit be7ec30 into galaxyproject:release_24.1 Aug 21, 2024
29 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants