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 project switch on create cluster page #2047

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

grolu
Copy link
Contributor

@grolu grolu commented Aug 22, 2024

  • Add navigation guard on create cluster page when route changes
  • Reset namespace if navigation failed
  • Fixed clean check on create cluster editor page

What this PR does / why we need it:

Which issue(s) this PR fixes:
Fixes #923

Special notes for your reviewer:

Release note:

NONE

- Reset namespace if navigation failed
@gardener-robot gardener-robot added the needs/review Needs review label Aug 22, 2024
@gardener-robot-ci-1 gardener-robot-ci-1 added the reviewed/ok-to-test Has approval for testing (check PR in detail before setting this label because PR is run on CI/CD) label Aug 22, 2024
@gardener-robot gardener-robot added the size/xs Size of pull request is tiny (see gardener-robot robot/bots/size.py) label Aug 22, 2024
@gardener-robot-ci-2 gardener-robot-ci-2 added needs/ok-to-test Needs approval for testing (check PR in detail before setting this label because PR is run on CI/CD) and removed reviewed/ok-to-test Has approval for testing (check PR in detail before setting this label because PR is run on CI/CD) labels Aug 22, 2024
@gardener-robot-ci-1 gardener-robot-ci-1 added reviewed/ok-to-test Has approval for testing (check PR in detail before setting this label because PR is run on CI/CD) and removed reviewed/ok-to-test Has approval for testing (check PR in detail before setting this label because PR is run on CI/CD) labels Sep 23, 2024
@@ -52,6 +54,10 @@ export function createRouter () {
} else {
logger.info('Navigation failure: %s', failure)
}

// Reset namespace if navigation failed
Copy link
Member

Choose a reason for hiding this comment

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

The rules should be updated only after successful navigation. To me this looks like a hack. I will try to find a better solution soon.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
needs/ok-to-test Needs approval for testing (check PR in detail before setting this label because PR is run on CI/CD) needs/review Needs review size/xs Size of pull request is tiny (see gardener-robot robot/bots/size.py)
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Changing project on Create Cluster Page
5 participants