Skip to content

fix: disable setup page once setup has been completed #9198

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

Merged
merged 12 commits into from
Aug 22, 2023

Conversation

aslilac
Copy link
Member

@aslilac aslilac commented Aug 18, 2023

Fixes #9157

Setup will fail if a first user has been configured, and we already have this state on the client, so we should just use it to navigate you away

@aslilac
Copy link
Member Author

aslilac commented Aug 18, 2023

the tests are broken locally right now, and debugging this through CI is rough 💀

// If we've already completed setup, navigate to the login page
if (
!authState.matches("loadingInitialAuthData") &&
!authState.matches("configuringTheFirstUser")
Copy link
Collaborator

Choose a reason for hiding this comment

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

Nit: Maybe we could do:

const isSetupComple = !authState.matches("loadingInitialAuthData") &&  !authState.matches("configuringTheFirstUser")

@aslilac aslilac merged commit 31ffb56 into main Aug 22, 2023
@aslilac aslilac deleted the disable-setup-page-after-setup branch August 22, 2023 20:57
@github-actions github-actions bot locked and limited conversation to collaborators Aug 22, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

/setup endpoint available when owner existing
2 participants