-
Notifications
You must be signed in to change notification settings - Fork 3.3k
[Core] Add service_name.json #17159
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
[Core] Add service_name.json #17159
Conversation
| "URL": "https://docs.microsoft.com/azure/cost-management-billing/manage/create-subscription" | ||
| }, | ||
| { | ||
| "Command": "az acr", |
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 file will be manually maintained in future right?
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.
Yes
src/azure-cli/service_name.json
Outdated
| { | ||
| "Command": "az cloud", | ||
| "Description": "Manage registered Azure clouds.", | ||
| "AzureServiceName": "Azure cloud services", |
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 is Not auzre cloud service, but should belongs to CLI core part. Pls work with Delora to fix excel.
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.
fixed
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.
As mentioned, I would like to eliminate core and put all core stuff under the Azure CLI "service" heading
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.
All Azure CLI core stuff are named "Azure CLI" in AzureServiceName now
src/azure-cli/service_name.json
Outdated
| { | ||
| "Command": "az account", | ||
| "Description": "Manage Azure subscription information.", | ||
| "AzureServiceName": "Azure core", |
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 is not Azure core, but Azure CLI core, pls help to work with delora to fix the excel
src/azure-cli/service_name.json
Outdated
| { | ||
| "Command": "az rest", | ||
| "Description": "Invoke a custom request.", | ||
| "AzureServiceName": "Azure core", |
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 is Azure CLI core, not Azure core. same as above
|
hi @fengzhou-msft could you pls review this one? thanks |
src/azure-cli/service_name.json
Outdated
| "Command": "az acs", | ||
| "Description": "Manage Azure Container Services.", | ||
| "AzureServiceName": "Azure Container Services", | ||
| "ConversationalServiceName": "Container Services", |
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.
What is the difference between AzureServiceName and ConversationalServiceName? If I want to aggregate all the commands from the same service in the reference documents, which one should be the key?
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.
AzureServiceName has "Azure" while ConversationalServiceName does not based on observation.
@dbradish-microsoft Can you help answer it?
|
A question about the json format, should we add a key for each item so the item can be retrieved quickly with the key like: |
It is also a viable structure. |
| "ExtensionName": "", | ||
| "URL": "https://docs.microsoft.com/azure/container-registry/" | ||
| }, | ||
| { |
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
This is a duplicate comment also found in PR 3083
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.
(1) The information of service_name.json is part of Azure CLI. We seldom put content in Azure CLI Doc repo. (2) TitleMapping.json is aggregated data. service_name.json is raw data. It is easier to read and maintain. Each entry is a command (group).
- Each command has a description. It is a duplicate info.
- The extension name is not an explicit value in _help.py or commands.py. It is also used to check which extension does not have an entry.
- Since we have already written them, I prefer keeping them. Autogenerated content can provide this link to allow readers to jump to the service page.
- Yes. This column causes confusion.
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.
@qwordy, You do realize that TitleMapping.json is going away, correct? I'm honestly not trying to put my nose into the "how" of the Azure DevOps work items for references, but I do feel that I made a tone of new work for engineering that I'd like to minimize so that you all still kind of like me for the next couple of years.
The above link is for the Azure DevOps epic. Here are the related features which all require new reference metadata content. Attached to the features is an example JSON file I created in an effort to communicate the request detail:
Missing extension information -- done
Combine core and extension references on the TOC -- the subject of this PR
Autogen of Azure service reference summaries
Add reference name, command and parameter types, status, version and deprecated message at the parameter level
Catch-all feature for any remaining data-driven metadata not already completed
Shuang's new JSON file for reference metadata is here
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.
@dbradish-microsoft @daxianji007 Are these two files beneficial? My assumption is we maintain service_name.json and .docsreference.azurecli.json is generated. If it is more convenient to keep only one file, it is OK to abandon this PR.
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.
@qwordy @dbradish-microsoft I am afraid the file ".docsreference.azurecli.json" cannot be automatically generated. It has some (and will have more) conceptual content, such as TitleMapping and Service Page Description. From my point of view, one file is certainly more convenient for both maintenance and Docs generation. I can also accept spliting the mapping into two service_name.json in 2 repos (actually the new pipeline is ready for both way). It is up to you.
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.
@daxianji007, I agree with "the file .docsreference.azurecli.json cannot be autogenerated...", but I am not understanding the "two service_name.json in 2 repos" that we just added. The engineering team is going to have to maintain 3 different files with this design, correct? Is there a way to give @yungezz and her team a single data entry file to maintain?
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.
@daxianji007 @dbradish-microsoft
I am OK with both solutions. If one file is more convenient, let's just abandon service_name.json and close these 2 PRs. One last question, who will maintain .docsreference.azurecli.json?
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.
|
@dbradish-microsoft Can you revoke the "request change"? Thanks. |
|
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. |
Description
Add a file
service_name.json. It maintains service information of commands.We propose to add a "reference summaries" section. It groups command by service or topic. It offers a more organized way for users to view commands. This file is the source data of this doc page.
https://docs.microsoft.com/en-us/cli/azure/azure-cli-reference-for-data-share?view=azure-cli-latest
Twin PR, Azure/azure-cli-extensions#3083
Example
Testing Guide
History Notes
[Component Name 1] BREAKING CHANGE: az command a: Make some customer-facing breaking change.
[Component Name 2] az command b: Add some customer-facing feature.
This checklist is used to make sure that common guidelines for a pull request are followed.
The PR title and description has followed the guideline in Submitting Pull Requests.
I adhere to the Command Guidelines.
I adhere to the Error Handling Guidelines.