-
Notifications
You must be signed in to change notification settings - Fork 1.5k
Support Pricing Tier #1749
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
Support Pricing Tier #1749
Conversation
|
spring-cloud |
|
You may need add test cases since you add new commands |
| c.argument('location', arg_type=get_location_type( | ||
| self.cli_ctx), validator=validate_location) | ||
| c.argument('location', arg_type=get_location_type(self.cli_ctx), validator=validate_location) | ||
| c.argument('sku', type=str, validator=validate_sku, help='Name of SKU, the value is "Basic" or "Standard"') |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Why not use get_enum_type for sku?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
is it able to customize the CLI error in get_enum_type?
raise CLIError("The pricing tier only accept value [Basic, Standard]")
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The error message of get_enum_type cannot be customized and will tell users to see --help for the allowed values.
| g.custom_command('create', 'spring_cloud_create', supports_no_wait=True) | ||
| g.custom_command('update', 'spring_cloud_update', supports_no_wait=True) | ||
| g.custom_command('delete', 'spring_cloud_delete', supports_no_wait=True) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Need to add g.wait_command.
This checklist is used to make sure that common guidelines for a pull request are followed.
General Guidelines
azdev style <YOUR_EXT>locally? (pip install azdevrequired)python scripts/ci/test_index.py -qlocally?For new extensions:
About Extension Publish
There is a pipeline to automatically build, upload and publish extension wheels.
Once your PR is merged into master branch, a new PR will be created to update
src/index.jsonautomatically.The precondition is to put your code inside this repo and upgrade the version in the PR but do not modify
src/index.json.