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

Change wizard's questions, defaults #2861

Merged
merged 1 commit into from
Oct 12, 2022
Merged

Conversation

ozamosi
Copy link
Contributor

@ozamosi ozamosi commented Oct 12, 2022

This removes a few of the questions.

I removed the path, because I couldn't decide which path it should be - cluster, "current", or workload? If you change it, what happens to all the other ones, do they adjust "automatically" or not?

For ssh-hostname and token-auth, it just looked like extra work to figure out how it works.

For teams, I'm unsure how to test them, so leaving that as out of scope.

On the other hand, it does add a question for your PAT. Because if we don't ask for a PAT, then flux will, and I don't want it to, so now we ask for it.

Meanwhile, for defaults, I've added defaults everywhere, and removed the old isRequired because everything we ask is really required.

For defaults, I've made the code highly opportunistic - if it guesses wrong, that's OK, you can just change it, so let's guess everything. As a result, I've removed any text that mentions the default - the default is now whatever we guessed.

For booleans, you almost by definition have a default (because the absence of it being true means it's false) - I'm sure my defaults aren't the best ones, but that's OK, because you can change them (for what it's worth, "private" only affects repository creation, so it's only if it's a brand new repo that's important).

@ozamosi ozamosi requested a review from a team October 12, 2022 10:49
This removes a few of the questions.

I removed the path, because I couldn't decide which path it should
be - cluster, "current", or workload? If you change it, what happens
to all the other ones, do they adjust "automatically" or not?

For ssh-hostname and token-auth, it just looked like extra work to
figure out how it works.

For teams, I'm unsure how to test them, so leaving that as out of scope.

On the other hand, it does add a question for your PAT. Because if we
don't ask for a PAT, then flux will, and I don't want it to, so now we
ask for it.

Meanwhile, for defaults, I've added defaults everywhere, and removed
the old isRequired because everything we ask is really required.

For defaults, I've made the code highly opportunistic - if it guesses
wrong, that's OK, you can just change it, so let's guess
everything. As a result, I've removed any text that mentions the
default - the default is now whatever we guessed.

For booleans, you almost by definition have a default (because the
absence of it being true means it's false) - I'm sure my defaults
aren't the best ones, but that's OK, because you can change them (for
what it's worth, "private" only affects repository creation, so it's
only if it's a brand new repo that's important).
@ozamosi ozamosi force-pushed the wizard-questions-defaults branch from 72399d2 to ab18697 Compare October 12, 2022 11:34
@ozamosi ozamosi merged commit 36c2fca into main Oct 12, 2022
@ozamosi ozamosi deleted the wizard-questions-defaults branch October 12, 2022 11:44
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