Skip to content

Feat/dt 294 adapt plot info#52

Open
victoria-cherkas wants to merge 6 commits intomainfrom
feat/DT-294-adapt_plot_info
Open

Feat/dt 294 adapt plot info#52
victoria-cherkas wants to merge 6 commits intomainfrom
feat/DT-294-adapt_plot_info

Conversation

@victoria-cherkas
Copy link
Contributor

No description provided.

@click.option(
"--skip-ssm-fallback",
is_flag=True,
default=False,
Copy link
Contributor Author

Choose a reason for hiding this comment

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

I think I would default to True here so that the implementation at CSCS would not need to change its args.

Copy link
Collaborator

Choose a reason for hiding this comment

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

As --skip-ssm-fallback is a flag, defaulting it to true might not be practical because then setting it without a value would be the same as not setting it? Would it be better to invert the logic to a --use-ssm-fallback flag so that setting it without a value has an effect? Alternatively, could the --ssm-parameter-path be used for this functionality and the fallback is skipped if --ssm-parameter-path is not present? Unless there is an advantage to keep the --ssm-parameter-path even when the fallback should be skipped.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

True, sorry i misinterpreted the flag. Yes I would be fine to leave as is, True = skip. But I think I prefer the suggestion that if --ssm-parameter-path is set to True or if SSM_PARAMETER_PATH env var is defined, i would run the fallback, and otherwise skip.

Copy link
Collaborator

@pirmink pirmink left a comment

Choose a reason for hiding this comment

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

Looks good, while I support @victoria-cherkas suggestions.

@click.option(
"--skip-ssm-fallback",
is_flag=True,
default=False,
Copy link
Collaborator

Choose a reason for hiding this comment

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

As --skip-ssm-fallback is a flag, defaulting it to true might not be practical because then setting it without a value would be the same as not setting it? Would it be better to invert the logic to a --use-ssm-fallback flag so that setting it without a value has an effect? Alternatively, could the --ssm-parameter-path be used for this functionality and the fallback is skipped if --ssm-parameter-path is not present? Unless there is an advantage to keep the --ssm-parameter-path even when the fallback should be skipped.

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.

3 participants