Skip to content

Conversation

@1openwindow
Copy link
Contributor


This checklist is used to make sure that common guidelines for a pull request are followed.

General Guidelines

  • Have you run azdev style <YOUR_EXT> locally? (pip install azdev required)
  • Have you run python scripts/ci/test_index.py -q locally?

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.json automatically.
The precondition is to put your code inside this repo and upgrade the version in the PR but do not modify src/index.json.

@yonzhan yonzhan requested a review from qwordy May 21, 2020 08:10
@yonzhan yonzhan added this to the S170 milestone May 21, 2020
@yonzhan
Copy link
Collaborator

yonzhan commented May 21, 2020

spring-cloud

@qwordy
Copy link
Member

qwordy commented May 25, 2020

You may need add test cases since you add new commands

@1openwindow 1openwindow changed the title Support Pricing Tier Support Pricing Tier [DO NOT MERGE] Jun 4, 2020
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"')
Copy link
Member

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?

Copy link
Contributor Author

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]")

Copy link
Member

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.

@1openwindow 1openwindow changed the title Support Pricing Tier [DO NOT MERGE] Support Pricing Tier Jun 9, 2020
Comment on lines +18 to +20
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)
Copy link
Member

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.

@fengzhou-msft fengzhou-msft merged commit 7dc5bf8 into Azure:master Jun 9, 2020
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.

5 participants