Skip to content

fix: Ensure install wizard passes in common scenarios#12778

Merged
dcramer merged 3 commits intoreleases/9.1.xfrom
fix/infer-defaults-sort-of
Apr 19, 2019
Merged

fix: Ensure install wizard passes in common scenarios#12778
dcramer merged 3 commits intoreleases/9.1.xfrom
fix/infer-defaults-sort-of

Conversation

@dcramer
Copy link
Copy Markdown
Member

@dcramer dcramer commented Apr 14, 2019

This patches around a few issues with how options are inferred in the frontend to trigger the setup wizard.

We likely need to do more work to make this correct, but this will at least solve the current state of the world.

@dcramer dcramer changed the base branch from master to releases/9.1.x April 14, 2019 17:48
// is problematic
if (
option.value !== undefined &&
option.value !== undefined && option.value !== "" && option.value !== null &&
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

So false and 0 are the only valid falsey values?

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

Yeah I'm not sure - Im not a big fan of the way this works (the install wizard options, forms used here), but its very hard to come up with a "correct" approach that could be achieved in an afternoon.

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

Specifically this behavior happened with mail.username and mail.password - those will no longer force the install wizard to prompt, it was just something I caught in parallel.

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.

2 participants