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

Fix up helptext and validation to be a bit saner #85

Merged
merged 3 commits into from
Sep 26, 2023

Conversation

jamiedparsons
Copy link
Collaborator

I've created explicit helptext commands on each of the configuration objects. That means that we don't have to use the defaults for the helptext anymore, so can set actual defaults if we want to. That also means that none of the validation/post_init functions have to worry about fields being set to helptext strings.

I've also tidied up validation, such that all the validation commands are called in a cascading manner when we are ready, rather than in an adhoc manner from other functions.

The live publisher test is failing, but it is something to do with not finding a proxy publisher resource. This is unrelated to this change and we are just about to remove the proxy publisher stuff, so I'm not going to worry about it for now.

Copy link
Collaborator

@PerfectChaos PerfectChaos left a comment

Choose a reason for hiding this comment

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

Generally looking good - just minor comments, nitpicks and possible improvements in the area of but not directly related to your changes.

src/aosm/azext_aosm/_configuration.py Outdated Show resolved Hide resolved
src/aosm/azext_aosm/_configuration.py Outdated Show resolved Hide resolved
src/aosm/azext_aosm/_configuration.py Show resolved Hide resolved
src/aosm/azext_aosm/_configuration.py Outdated Show resolved Hide resolved
src/aosm/azext_aosm/_configuration.py Show resolved Hide resolved
src/aosm/azext_aosm/_configuration.py Show resolved Hide resolved
@jamiedparsons jamiedparsons merged commit 84eff1f into add-aosm-extension Sep 26, 2023
@jamiedparsons jamiedparsons deleted the JDP/fix_helptext_and_validation branch September 26, 2023 11:05
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