Skip to content

Review request for Microsoft.ConfidentialLedger to add version preview/2024-01-26 #27564

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

taicchoumsft
Copy link
Member

@taicchoumsft taicchoumsft commented Jan 29, 2024

Data Plane API - Pull Request

Confidential Ledger is adding a new API to list users. A new preview API (2024-01-26-preview) is added, and a new API to list users

API Info: The Basics

Most of the information about your service should be captured in the issue that serves as your API Spec engagement record.

Is this review for (select one):

  • a private preview
  • a public preview
  • GA release

Change Scope

This section will help us focus on the specific parts of your API that are new or have been modified.
Please share a link to the design document for the new APIs, a link to the previous API Spec document (if applicable), and the root paths that have been updated.

  • Design Document: Doc
  • Previous API Spec Doc:
  • Updated paths: /app/users

Viewing API changes

For convenient view of the API changes made by this PR, refer to the URLs provided in the table
in the Generated ApiView comment added to this PR. You can use ApiView to show API versions diff.

Suppressing failures

If one or multiple validation error/warning suppression(s) is detected in your PR, please follow the
Swagger-Suppression-Process
to get approval.

❔Got questions? Need additional info?? We are here to help!

Contact us!

The Azure API Review Board is dedicated to helping you create amazing APIs. You can read about our mission and learn more about our process on our wiki.

Click here for links to tools, specs, guidelines & other good stuff

Tooling

Guidelines & Specifications

Helpful Links

Checks stuck in `queued` state? If the PR CI checks appear to be stuck in `queued` state, please add a comment with contents `/azp run`. This should result in a new comment denoting a `PR validation pipeline` has started and the checks should be updated after few minutes.

fix #28064

Copy link

openapi-pipeline-app bot commented Jan 29, 2024

Next Steps to Merge

✅ All automated merging requirements have been met! To get your PR merged, see aka.ms/azsdk/specreview/merge.

Copy link

openapi-pipeline-app bot commented Jan 29, 2024

Swagger Validation Report

️️✔️BreakingChange succeeded [Detail] [Expand]
There are no breaking changes.
️❌Breaking Change(Cross-Version): 1 Errors, 0 Warnings failed [Detail]
Compared specs (v0.10.7) new version base version
common.json 2024-01-26-preview(05b3913) 2022-05-13(main)
common.json 2024-01-26-preview(05b3913) 2023-01-18-preview(main)
confidentialledger.json 2024-01-26-preview(05b3913) 2023-01-18-preview(main)
identityservice.json 2024-01-26-preview(05b3913) 2022-05-13(main)
identityservice.json 2024-01-26-preview(05b3913) 2023-01-18-preview(main)

The following breaking changes are detected by comparison with the latest stable version:

Rule Message
Runtime Exception "new":"https://github.com/Azure/azure-rest-api-specs/blob/05b3913210acf132c99d1866e9febf4c522da9ef/specification/confidentialledger/data-plane/Microsoft.ConfidentialLedger/preview/2024-01-26-preview/confidentialledger.json",
"old":"https://github.com/Azure/azure-rest-api-specs/blob/main/specification/confidentialledger/data-plane/Microsoft.ConfidentialLedger/stable/2022-05-13/confidentialledger.json",
"details":"Command failed: dotnet "/mnt/vss/_work/_tasks/AzureApiValidation_5654d05d-82c1-48da-ad8f-161b817f6d41/0.0.96/common/temp/node_modules/.pnpm/@Azure[email protected]/node_modules/@azure/oad/dlls/OpenApiDiff.dll" -o /tmp/oad-LmZNYK/old-resolved.json -n /tmp/oad-LRqxhN/new-resolved.json\nUnhandled exception. Newtonsoft.Json.JsonReaderException: JSON integer 9223372036854776000 is too large or small for an Int64. Path 'parameters.CommitParameter.maximum',
line 1,
position 40197.\n at Newtonsoft.Json.JsonTextReader.ParseNumber(ReadType readType)\n at Newtonsoft.Json.JsonTextReader.ParseValue()\n at Newtonsoft.Json.Linq.JContainer.ReadContentFrom(JsonReader r,
JsonLoadSettings settings)\n at Newtonsoft.Json.Linq.JContainer.ReadTokenFrom(JsonReader reader,
JsonLoadSettings options)\n at Newtonsoft.Json.Linq.JObject.Load(JsonReader reader,
JsonLoadSettings settings)\n at Newtonsoft.Json.Linq.JObject.Parse(String json,
JsonLoadSettings settings)\n at Newtonsoft.Json.Linq.JObject.Parse(String json)\n at AutoRest.Swagge"
️️✔️CredScan succeeded [Detail] [Expand]
There is no credential detected.
️⚠️LintDiff: 94 Warnings warning [Detail]
Compared specs (v2.2.0) new version base version
package-2024-01-26-preview-ledger package-2024-01-26-preview-ledger(05b3913) default(main)
package-2024-01-26-preview-identity package-2024-01-26-preview-identity(05b3913) default(main)

[must fix]The following errors/warnings are introduced by current PR:

Only 30 items are listed, please refer to log for more details.

Rule Message Related RPC [For API reviewers]
⚠️ OperationId OperationId should be of the form 'Noun_Verb'
Location: Microsoft.ConfidentialLedger/preview/2024-01-26-preview/confidentialledger.json#L34
⚠️ ErrorResponse Error response should contain a x-ms-error-code header.
Location: Microsoft.ConfidentialLedger/preview/2024-01-26-preview/confidentialledger.json#L54
⚠️ ErrorResponse Error schema should define code and message properties as required.
Location: Microsoft.ConfidentialLedger/preview/2024-01-26-preview/confidentialledger.json#L56
⚠️ ErrorResponse The error property in the error response schema should be required.
Location: Microsoft.ConfidentialLedger/preview/2024-01-26-preview/confidentialledger.json#L56
⚠️ ListInOperationName Since operation response has model definition in array type, it should be of the form '_list'.
Location: Microsoft.ConfidentialLedger/preview/2024-01-26-preview/confidentialledger.json#L64
⚠️ OperationId OperationId should be of the form 'Noun_Verb'
Location: Microsoft.ConfidentialLedger/preview/2024-01-26-preview/confidentialledger.json#L65
⚠️ PaginationResponse Response body schema of pageable response should contain top-level array property value
Location: Microsoft.ConfidentialLedger/preview/2024-01-26-preview/confidentialledger.json#L85
⚠️ ErrorResponse Error response should contain a x-ms-error-code header.
Location: Microsoft.ConfidentialLedger/preview/2024-01-26-preview/confidentialledger.json#L89
⚠️ ErrorResponse Error schema should define code and message properties as required.
Location: Microsoft.ConfidentialLedger/preview/2024-01-26-preview/confidentialledger.json#L91
⚠️ ErrorResponse The error property in the error response schema should be required.
Location: Microsoft.ConfidentialLedger/preview/2024-01-26-preview/confidentialledger.json#L91
⚠️ OperationId OperationId should be of the form 'Noun_Verb'
Location: Microsoft.ConfidentialLedger/preview/2024-01-26-preview/confidentialledger.json#L100
⚠️ ErrorResponse Error response should contain a x-ms-error-code header.
Location: Microsoft.ConfidentialLedger/preview/2024-01-26-preview/confidentialledger.json#L120
⚠️ ErrorResponse Error schema should define code and message properties as required.
Location: Microsoft.ConfidentialLedger/preview/2024-01-26-preview/confidentialledger.json#L122
⚠️ ErrorResponse The error property in the error response schema should be required.
Location: Microsoft.ConfidentialLedger/preview/2024-01-26-preview/confidentialledger.json#L122
⚠️ ListInOperationName Since operation response has model definition in array type, it should be of the form '_list'.
Location: Microsoft.ConfidentialLedger/preview/2024-01-26-preview/confidentialledger.json#L130
⚠️ OperationId OperationId should be of the form 'Noun_Verb'
Location: Microsoft.ConfidentialLedger/preview/2024-01-26-preview/confidentialledger.json#L131
⚠️ PaginationResponse Response body schema of pageable response should contain top-level array property value
Location: Microsoft.ConfidentialLedger/preview/2024-01-26-preview/confidentialledger.json#L151
⚠️ ErrorResponse Error response should contain a x-ms-error-code header.
Location: Microsoft.ConfidentialLedger/preview/2024-01-26-preview/confidentialledger.json#L155
⚠️ ErrorResponse Error schema should define code and message properties as required.
Location: Microsoft.ConfidentialLedger/preview/2024-01-26-preview/confidentialledger.json#L157
⚠️ ErrorResponse The error property in the error response schema should be required.
Location: Microsoft.ConfidentialLedger/preview/2024-01-26-preview/confidentialledger.json#L157
⚠️ ListInOperationName Since operation response has model definition in array type, it should be of the form '_list'.
Location: Microsoft.ConfidentialLedger/preview/2024-01-26-preview/confidentialledger.json#L165
⚠️ OperationId OperationId should be of the form 'Noun_Verb'
Location: Microsoft.ConfidentialLedger/preview/2024-01-26-preview/confidentialledger.json#L166
⚠️ PaginationResponse Response body schema of pageable response should contain top-level array property value
Location: Microsoft.ConfidentialLedger/preview/2024-01-26-preview/confidentialledger.json#L195
⚠️ ErrorResponse Error response should contain a x-ms-error-code header.
Location: Microsoft.ConfidentialLedger/preview/2024-01-26-preview/confidentialledger.json#L199
⚠️ ErrorResponse Error schema should define code and message properties as required.
Location: Microsoft.ConfidentialLedger/preview/2024-01-26-preview/confidentialledger.json#L201
⚠️ ErrorResponse The error property in the error response schema should be required.
Location: Microsoft.ConfidentialLedger/preview/2024-01-26-preview/confidentialledger.json#L201
⚠️ OperationId OperationId should be of the form 'Noun_Verb'
Location: Microsoft.ConfidentialLedger/preview/2024-01-26-preview/confidentialledger.json#L208
⚠️ ErrorResponse Error response should contain a x-ms-error-code header.
Location: Microsoft.ConfidentialLedger/preview/2024-01-26-preview/confidentialledger.json#L246
⚠️ ErrorResponse Error schema should define code and message properties as required.
Location: Microsoft.ConfidentialLedger/preview/2024-01-26-preview/confidentialledger.json#L248
⚠️ ErrorResponse The error property in the error response schema should be required.
Location: Microsoft.ConfidentialLedger/preview/2024-01-26-preview/confidentialledger.json#L248


The following errors/warnings exist before current PR submission:

Rule Message
⚠️ OperationId OperationId should be of the form 'Noun_Verb'
Location: Microsoft.ConfidentialLedger/preview/2024-01-26-preview/identityservice.json#L34
⚠️ PathParameterSchema Path parameter should specify a maximum length (maxLength) and characters allowed (pattern).
Location: Microsoft.ConfidentialLedger/preview/2024-01-26-preview/identityservice.json#L45
⚠️ ErrorResponse Error response should contain a x-ms-error-code header.
Location: Microsoft.ConfidentialLedger/preview/2024-01-26-preview/identityservice.json#L60
⚠️ ErrorResponse Error schema should define code and message properties as required.
Location: Microsoft.ConfidentialLedger/preview/2024-01-26-preview/identityservice.json#L62
⚠️ ErrorResponse The error property in the error response schema should be required.
Location: Microsoft.ConfidentialLedger/preview/2024-01-26-preview/identityservice.json#L62
️️✔️Avocado succeeded [Detail] [Expand]
Validation passes for Avocado.
️️✔️SwaggerAPIView succeeded [Detail] [Expand]
️️✔️TypeSpecAPIView succeeded [Detail] [Expand]
️️✔️ModelValidation succeeded [Detail] [Expand]
Validation passes for ModelValidation.
️️✔️SemanticValidation succeeded [Detail] [Expand]
Validation passes for SemanticValidation.
️️✔️PoliCheck succeeded [Detail] [Expand]
Validation passed for PoliCheck.
️️✔️SpellCheck succeeded [Detail] [Expand]
Validation passes for SpellCheck.
️️✔️Lint(RPaaS) succeeded [Detail] [Expand]
Validation passes for Lint(RPaaS).
️️✔️PR Summary succeeded [Detail] [Expand]
Validation passes for Summary.
️️✔️Automated merging requirements met succeeded [Detail] [Expand]
Posted by Swagger Pipeline | How to fix these errors?

Copy link

openapi-pipeline-app bot commented Jan 29, 2024

Swagger Generation Artifacts

️️✔️ApiDocPreview succeeded [Detail] [Expand]
 Please click here to preview with your @microsoft account. 
Posted by Swagger Pipeline | How to fix these errors?

Copy link

openapi-pipeline-app bot commented Jan 29, 2024

Generated ApiView

Language Package Name ApiView Link
Swagger Microsoft.ConfidentialLedger https://apiview.dev/Assemblies/Review/8c5b914dce434cac96b59a29df7ab349?revisionId=f7647f51093045b58212e6b9ecbd8032

Copy link

Hi @taicchoumsft! For review efficiency consideration, when creating a new API version, it is required to place API specs of the base version in the first commit, and push new version updates into successive commits. You can use OpenAPIHub to initialize the PR for adding a new version.
For more details refer to the wiki.

@taicchoumsft taicchoumsft marked this pull request as ready for review January 30, 2024 23:25
@taicchoumsft taicchoumsft requested a review from a team as a code owner January 30, 2024 23:25
@taicchoumsft taicchoumsft requested review from DominikMe and johanste and removed request for a team January 30, 2024 23:25
@microsoft-github-policy-service microsoft-github-policy-service bot added no-recent-activity There has been no recent activity on this issue. and removed no-recent-activity There has been no recent activity on this issue. labels Feb 19, 2024
@microsoft-github-policy-service microsoft-github-policy-service bot added the no-recent-activity There has been no recent activity on this issue. label Mar 4, 2024
@taicchoumsft taicchoumsft removed the no-recent-activity There has been no recent activity on this issue. label Mar 4, 2024
@mikekistler mikekistler added the APIStewardshipBoard-SignedOff The Azure API Stewardship team has reviewed and approved the changes. label Mar 12, 2024
@taicchoumsft
Copy link
Member Author

The required check Breaking Change(Cross-Version) is failing due to changes that are not related to this new API version (see details).

Given that the #21659 also had the same detected breaking changes and was eventually approved, I've added the BreakingChange-Approved-Previously label.

@taicchoumsft taicchoumsft added the BreakingChange-Approved-Previously Changes were reviewed and approved in a previous PR label Mar 26, 2024
@taicchoumsft
Copy link
Member Author

@DominikMe , @johanste , can we request for a review on this PR? Is there anything we need to do to move this along? Thanks in advance!

@taicchoumsft
Copy link
Member Author

/pr RequestMerge

Copy link
Member

@johanste johanste left a comment

Choose a reason for hiding this comment

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

Please update/remove the need for the trailing slash on the new list operation.

taicchoumsft and others added 3 commits April 18, 2024 20:34
…tialLedger/preview/2024-01-26-preview/confidentialledger.json


Remove trailing slash

Co-authored-by: Johan Stenberg (MSFT) <[email protected]>
@taicchoumsft taicchoumsft added the Confidential Ledger Confidential Ledger service label Apr 22, 2024
@ramoka178 ramoka178 merged commit e758ec6 into main Apr 22, 2024
32 checks passed
@ramoka178 ramoka178 deleted the taicchoumsft-confidentialledger-Microsoft.ConfidentialLedger-2023-01-18-preview branch April 22, 2024 18:48
mpodwysocki pushed a commit to Azure/azure-sdk-for-js that referenced this pull request Dec 13, 2024
…31987)

### Packages impacted by this PR
@azure-rest/confidential-ledger

### Issues associated with this PR
Add a single API - the ability to *list* users from the "app/users"
endpoint. Please see the
[doc](https://microsoft-my.sharepoint-df.com/:w:/g/personal/tachou_microsoft_com1/EVUirfTSrlhJslGy0i_eCOgBP_wb0gDTlBZOBynm5wWoCw?e=oaZcv4)
here.

### Describe the problem that is addressed by this PR
Customers can `GET` details of a user from the `app/users/{userId}`
endpoint, but needed to know the `userId` beforehand. The API was
amended in `preview-2024-01-26` to include the ability to list all users
from the `app/users` endpoint.

### What are the possible designs available to address the problem? If
there are more than one possible design, why was the one in this PR
chosen?


### Are there test cases added in this PR? _(If not, why?)_
Yes

### Provide a list of related PRs _(if any)_
[Spec API
Change](Azure/azure-rest-api-specs#27564)

### Command used to generate this PR:**_(Applicable only to SDK release
request PRs)_


### Checklists
- [X] Added impacted package name to the issue description
- [ ] Does this PR needs any fixes in the SDK Generator?** _(If so,
create an Issue in the
[Autorest/typescript](https://github.com/Azure/autorest.typescript)
repository and link it here)_
- [X] Added a changelog (if necessary)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
APIStewardshipBoard-SignedOff The Azure API Stewardship team has reviewed and approved the changes. Approved-LintDiff BreakingChange-Approved-Previously Changes were reviewed and approved in a previous PR Confidential Ledger Confidential Ledger service data-plane new-api-version
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[Azure Confidential Computing Ledger - Azure Confidential Ledger] API Review
5 participants