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

Resolve conflict with alert configurations by overriding command namespace #1470

Merged
merged 4 commits into from
Dec 8, 2023

Conversation

andrewsomething
Copy link
Member

This resolves an issue with the doctl monitoring alerts create/update commands introduced when we added the uptime alert commands. The way doctl's config file currently works, settings can only be three levels deep. This led to the alert commands conflicting with each other. For example, the configuration for the type flag for both ended up at alert.create.type.

This PR resolves the problem adding a cmdOption to override the config namespace for a command without needing to change the sub-command layout. The monitoring alert config keeps its existing location (alert.create.<flag>) while the uptime alerts are now at uptime-alert.create.<flag>.

@andrewsomething andrewsomething requested a review from a team December 7, 2023 22:36
@andrewsomething andrewsomething force-pushed the asb/APICLI-2259/alerts branch 2 times, most recently from d296744 to 2f07ac9 Compare December 8, 2023 15:42
Copy link
Member

@danaelhe danaelhe left a comment

Choose a reason for hiding this comment

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

good idea!! 🚀

@andrewsomething andrewsomething merged commit 49fccfc into main Dec 8, 2023
12 checks passed
@andrewsomething andrewsomething deleted the asb/APICLI-2259/alerts branch December 8, 2023 16:48
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.

None yet

2 participants