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

Refine SSO configure prompt titles #9203

Open
wants to merge 5 commits into
base: v2
Choose a base branch
from

Conversation

AndrewAsseily
Copy link
Contributor

Issue #, if available:

  • CLI-3756

Description of changes:

By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of your choice.

Comment on lines +3 to +4
"category": "sso",
"description": "cosmetics changes for better clarity"
Copy link
Member

Choose a reason for hiding this comment

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

This ends up in the changelog. Try to pretty explicit about what is changing, we don't need to be too brief.

Suggested change
"category": "sso",
"description": "cosmetics changes for better clarity"
"category": "``configure``"
"description": "Clarify prompt titles and default values in the ``aws configure sso`` wizard"

Comment on lines +367 to +370
config = profile_map[profile_name]
if 'output' not in config:
config['output'] = 'json'
return config
Copy link
Member

Choose a reason for hiding this comment

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

I'd avoid this if possible. We're setting the default value here:

ConstantProvider(value='json'),

We should strive to keep a single source-of-truth and avoid handling specific properties in an otherwise generic method.

Where possible it's also nice to avoid CLI-specific code in the botocore folder, to ease porting updates from actual botocore.

Comment on lines +492 to +493
if config_name == 'output' and not current_value:
current_value = 'json'
Copy link
Member

Choose a reason for hiding this comment

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

Is this going to persist output = json in the profile which we don't do today?

If so, I'd try to avoid a change in behavior with a quick cosmetic change, largely so we don't have to hunt down all of the implications.

  1. If using current_value -> new_value, is there a way to not persist it if the user just pressed enter to accept the default.
  2. Or, can we just communicate the default behavior through the text and prompt_fmt strings, then still actually collect and "save" None?

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