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

ENG 3056 Cannot delete resource when no workflow is using it #1382

Merged

Conversation

eunice-chan
Copy link
Contributor

@eunice-chan eunice-chan commented May 28, 2023

Fix bug where the user cannot delete a resource when no workflow is using it. The cause is because the confirm dialog never pops up because resource operators.status is stuck at initial. This is due to the fact handleLoadResourceOperators is never dispatched. To fix this, I dispatch handleLoadResourceOperators in the resource details page.

--

Updated to V2 route.
Tested by successfully deleting MariaDB resource.

@eunice-chan eunice-chan requested a review from likawind May 28, 2023 20:31
Copy link
Contributor

@likawind likawind left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@kenxu95 I'm fairly sure that you've migrated this request and we should use one of useResourceOperatorsGetQuery or useResourceWorkflowsGetQuery here: https://github.com/aqueducthq/aqueduct/blob/main/src/ui/common/src/handlers/v2/ResourceOperatorsGet.ts

@eunice-chan eunice-chan changed the base branch from eng-3050-fix-a-bug-where-edit-resource-dialog-crashes to main May 31, 2023 02:59
@eunice-chan eunice-chan requested a review from likawind May 31, 2023 03:02
Copy link
Contributor

@likawind likawind left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Great work and thanks for addressing feedbacks! Just a reminder to update PR description and also describe that you've done some testings to verify this feature (which I trusted you did :) )

@eunice-chan eunice-chan added the skip_integration_test Skips required integration test (only documentation/UI changes) label Jun 2, 2023
@eunice-chan eunice-chan merged commit 5c49ca1 into main Jun 2, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
skip_integration_test Skips required integration test (only documentation/UI changes)
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants