-
Notifications
You must be signed in to change notification settings - Fork 1.5k
[Core] Add service_name.json #3083
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
Conversation
src/service_name.json
Outdated
| @@ -0,0 +1,422 @@ | |||
| [ | |||
| { | |||
| "Command": "az ai-did-you-mean-this", | |||
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.
I believe this extension is deprecated already, could you pls double confirm?
| "URL": "" | ||
| }, | ||
| { | ||
| "Command": "az ai-examples", |
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.
how to maintain this file? what's process when new extension is released?
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.
Manual. We can add a linter rule to force it.
I added a new column "ExtensionName". It is required when "AzureCLIReferenceType" is Extension or "hasExtension" is 1. This column is used to check if all extensions have records.
src/service_name.json
Outdated
| "AzureServiceName": "Azure CLI", | ||
| "ConversationalServiceName": "Azure CLI", | ||
| "ExtensionName": "alias", | ||
| "URL": "https://docs.microsoft.com/cli/azure/" |
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.
Where does this URL come from? The current one is a general CLI doc link.
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.
We can set it reference of az alias
src/service_name.json
Outdated
| { | ||
| "Command": "az timeseriesinsights", | ||
| "Description": "Microsoft Azure Command-Line Tools TimeSeriesInsightsClient Extension", | ||
| "AzureServiceName": "Azure Time Series Insights", | ||
| "ConversationalServiceName": "Time Series Insights", | ||
| "ExtensionName": "timeseriesinsights", | ||
| "URL": "https://docs.microsoft.com/azure/time-series-insights/" | ||
| }, |
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.
This command group is deprecated. Now its name is "az tsi" which already included below.
| { | |
| "Command": "az timeseriesinsights", | |
| "Description": "Microsoft Azure Command-Line Tools TimeSeriesInsightsClient Extension", | |
| "AzureServiceName": "Azure Time Series Insights", | |
| "ConversationalServiceName": "Time Series Insights", | |
| "ExtensionName": "timeseriesinsights", | |
| "URL": "https://docs.microsoft.com/azure/time-series-insights/" | |
| }, |
| "Command": "az k8s-configuration", | ||
| "Description": "Manage Kubernetes configurations", | ||
| "AzureServiceName": "Azure Kubernetes", | ||
| "ConversationalServiceName": "Kubernetes Service", | ||
| "ExtensionName": "k8s-configuration", | ||
| "URL": "https://docs.microsoft.com/azure/aks/" | ||
| }, | ||
| { | ||
| "Command": "az k8sconfiguration", | ||
| "Description": "Microsoft Azure Command-Line Tools K8sconfiguration Extension", | ||
| "AzureServiceName": "Azure Kubernetes Service", | ||
| "ConversationalServiceName": "Kubernetes Service", | ||
| "ExtensionName": "k8sconfiguration", | ||
| "URL": "https://docs.microsoft.com/azure/aks/" | ||
| }, |
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.
I think k8s-configuration and k8sconfiguration are the same.
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.
Unfortunately, they are two extension. Ugly naming.
k8s-configuration 1.0.0 Microsoft Azure Command-Line Tools K8s-configuration Extension False False False
k8sconfiguration 0.2.4 Microsoft Azure Command-Line Tools K8sconfiguration Extension True False False
src/service_name.json
Outdated
| { | ||
| "Command": "az confluent", | ||
| "Description": "Manage confluent resources.", | ||
| "AzureServiceName": "", |
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.
blank?
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.
Have not found an appropriate value
src/service_name.json
Outdated
| }, | ||
| { | ||
| "Command": "az alias", | ||
| "Description": "Support for command aliases", |
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.
@yungezz , @qwordy , @jiasli , @fengzhou-msft
Important: Shuang is already keeping a new JSON file which replaces TitleMapping.json and where this information would fit perfectly. Ideally, we'd like to avoid having engineering enter autogenerated content in multiple places. Can we please check with Alice Wang and Shuang Jiang on a consolidated place for this information?
Other thoughts:
- I feel we should remove "Description" as it is a duplicate of the autogenerated content. There is no reason for making someone enter the same information in two different places, correct?
- Isn't "extensionName" also a duplicate from what is found in the _help.py or commands.py files? Shuang is currently showing this information at the top of every autogenerated extension page and he doesn't use this new file.
- URL is not necessary unless we want to a.) take responsibility for maintaining this link or b.) use it in our autogenerated content. I had it in SQL in order to find the Azure service home page for my reference (vs Googling it every time I needed it)
- I am glad to see "conversational service name" removed -- that was only for my Power BI internal reporting.
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.
Replied in Azure/azure-cli#17159
|
@dbradish-microsoft Can you revoke the "request change"? Thanks. |
|
/azp run |
|
Azure Pipelines successfully started running 1 pipeline(s). |
|
@qwordy , done. |
|
I moved content to these 2 PRs. |
|
Reopen this PR. The following two new PRs that contain linter and service_name.json are still in review. Reviewing Azure CLI Core code is always hard. As a result, I decide to split linter and service_name.json into separate PRs. Let's merge the service_name.json PR first. |
Add a file
service_name.json. It maintains service information of commands.Twin PR, Azure/azure-cli#17159. Visit it for more details.
Example
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.