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

Fix a problem with deleting role templates from the respective detail pages #12270

Merged
merged 1 commit into from
Oct 16, 2024

Conversation

codyrancher
Copy link
Contributor

@codyrancher codyrancher commented Oct 15, 2024

Summary

Just as a note, this issue isn't new. It's at the very least present in 2.9.

We were attempting to navigate back to a non-existent page when deleting role templates from the corresponding detail pages. This caused the Prompt Remove dialog to show an error button and not close.

#12217

Areas or cases that should be tested

This delete problem was present in all of the role template categories (global, cluster, project/namespaces). We should verify each of these.

Areas which could experience regressions

Possibly the way we remove other resources which override the done location. I've verified against namespaces and deployment workloads.

Checklist

  • The PR is linked to an issue and the linked issue has a Milestone, or no issue is needed
  • The PR has a Milestone
  • The PR template has been filled out
  • The PR has been self reviewed
  • The PR has a reviewer assigned
  • The PR has automated tests or clear instructions for manual tests and the linked issue has appropriate QA labels, or tests are not needed
  • The PR has reviewed with UX and tested in light and dark mode, or there are no UX changes

We were attempting to navigate back to a non-existent page when deleting role templates from their corresponding detail pages. This caused the Prompt Remove dialog to show an error button and not close.

rancher#12217
@codyrancher codyrancher added this to the v2.10.0 milestone Oct 15, 2024
@codyrancher codyrancher changed the title Fix a problem with deleting role templates from their detail pages Fix a problem with deleting role templates from the respective detail pages Oct 15, 2024
Comment on lines -108 to -109
if (this.toRemove[0].doneLocationRemove) {
return this.toRemove[0].doneLocationRemove;
Copy link
Contributor Author

Choose a reason for hiding this comment

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

doneLocationRemove is no longer used in our codebase.

It was originally added to support Epinio 917ce2e

We do need to respect doneOverride here just like we do in other locations so I decided to swap the two.

@codyrancher codyrancher marked this pull request as ready for review October 16, 2024 14:44
@codyrancher codyrancher merged commit d0c3c5a into rancher:master Oct 16, 2024
41 checks passed
@codyrancher codyrancher deleted the role-template-detail-remove branch October 16, 2024 15:46
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants