Skip to content

Conversation

@RuoyuWang-MS
Copy link
Contributor


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

Related command

az spring app create command add --deployment-name argument.

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 pull request is merged into main branch, a new pull request will be created to update src/index.json automatically.
The precondition is to put your code inside this repository and upgrade the version in the pull request but do not modify src/index.json.

@yonzhan
Copy link
Collaborator

yonzhan commented Jan 9, 2023

Spring

c.argument('loaded_public_certificate_file', options_list=['--loaded-public-certificate-file', '-f'], type=str,
help='A json file path indicates the certificates which would be loaded to app')
c.argument('deployment_name', type=str,
help='Name of the active deployment. Deployment named "default" will be created if this argument not provided', validator=validate_name)
Copy link
Member

Choose a reason for hiding this comment

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

We should use the named argument default="default" to set the default value. With this we don't need to highlight it in the help text.

Check the --sku argument for reference. In the help output, it shows:

    --sku                                                   : Name of SKU. Enterprise is still in
                                                              Preview.  Allowed values: Basic,
                                                              Enterprise, Standard.  Default:
                                                              Standard.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Good point! I will modify the help text as follows:

    --deployment-name                                           : Name of the active deployment.
                                                                  Default: default.

Copy link
Member

@allxiao allxiao left a comment

Choose a reason for hiding this comment

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

please check the argument spec

c.argument('loaded_public_certificate_file', options_list=['--loaded-public-certificate-file', '-f'], type=str,
help='A json file path indicates the certificates which would be loaded to app')
c.argument('deployment_name', type=str, default='default',
help='Name of the active deployment.', validator=validate_name)
Copy link
Member

Choose a reason for hiding this comment

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

is this active deployment or default deployment? According to line 148 in app.py, this should be default deployment.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Sure. Will change to default deployment

@RuoyuWang-MS
Copy link
Contributor Author

@zhoxing-ms Hi Xing. Would you please help review it again when you are free? Please merge this PR if it is ready to merge. Thanks a lot!

@zhoxing-ms zhoxing-ms merged commit ca6a5af into Azure:main Jan 31, 2023
@azclibot
Copy link
Collaborator

[Release] Update index.json for extension [ spring ] : https://dev.azure.com/azclitools/internal/_build/results?buildId=29541&view=results

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