Skip to content
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

Communication/PhoneNumbers - Add Number Lookup API #23053

Merged
merged 23 commits into from
May 18, 2023

Conversation

ericasp16
Copy link
Member

@ericasp16 ericasp16 commented Mar 13, 2023

Data Plane API - Pull Request

Add a new preview version to the Phone Numbers package and add an API for looking up phone numbers. This is a feature which will allow customers to look up recipient phone numbers before communicating with them (e.g. sending SMS).

API Info: The Basics

Most of the information about your service should be captured in the issue that serves as your 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 Open API document (swagger) if applicable, and the root paths that have been updated.

❔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

fix #23060

@ericasp16 ericasp16 requested a review from a team as a code owner March 13, 2023 19:42
@ericasp16 ericasp16 requested review from bexxx and MushMal and removed request for a team March 13, 2023 19:42
@openapi-workflow-bot
Copy link

Hi, @ericasp16 Thanks for your PR. I am workflow bot for review process. Here are some small tips.

  • Please ensure to do self-check against checklists in first PR comment.
  • PR assignee is the person auto-assigned and responsible for your current PR reviewing and merging.
  • For specs comparison cross API versions, Use API Specs Comparison Report Generator
  • If there is CI failure(s), to fix CI error(s) is mandatory for PR merging; or you need to provide justification in PR comment for explanation. How to fix?

  • Any feedback about review process or workflow bot, pls contact swagger and tools team. [email protected]

    @openapi-pipeline-app
    Copy link

    openapi-pipeline-app bot commented Mar 13, 2023

    Swagger Validation Report

    ️️✔️BreakingChange succeeded [Detail] [Expand]
    There are no breaking changes.
    ️⚠️Breaking Change(Cross-Version): 5 Warnings warning [Detail]
    compared swaggers (via Oad v0.10.4)] new version base version
    phonenumbers.json 2023-05-01-preview(dfbfd12) 2022-12-01(main)
    phonenumbers.json 2023-05-01-preview(dfbfd12) 2022-06-01-preview(main)

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

    Rule Message
    ⚠️ 1008 - ModifiedOperationId The operation id has been changed from 'PhoneNumbers_UpdateCapabilitiesOC' to 'PhoneNumbers_UpdateCapabilities'. This will impact generated code.
    New: PhoneNumbers/preview/2023-05-01-preview/phonenumbers.json#L621:7
    Old: PhoneNumbers/preview/2022-06-01-preview/phonenumbers.json#L277:7
    ⚠️ 1023 - TypeFormatChanged The new version has a different format than the previous one.
    New: PhoneNumbers/preview/2023-05-01-preview/phonenumbers.json#L1554:5
    Old: PhoneNumbers/preview/2022-06-01-preview/phonenumbers.json#L906:5
    ⚠️ 1033 - RemovedProperty The new version is missing a property found in the old version. Was 'operatorId' renamed or removed?
    New: PhoneNumbers/preview/2023-05-01-preview/phonenumbers.json#L1400:7
    Old: PhoneNumbers/preview/2022-06-01-preview/phonenumbers.json#L807:7
    ⚠️ 1033 - RemovedProperty The new version is missing a property found in the old version. Was 'operatorName' renamed or removed?
    New: PhoneNumbers/preview/2023-05-01-preview/phonenumbers.json#L1400:7
    Old: PhoneNumbers/preview/2022-06-01-preview/phonenumbers.json#L807:7
    ⚠️ 1033 - RemovedProperty The new version is missing a property found in the old version. Was 'phoneNumberSource' renamed or removed?
    New: PhoneNumbers/preview/2023-05-01-preview/phonenumbers.json#L1400:7
    Old: PhoneNumbers/preview/2022-06-01-preview/phonenumbers.json#L807:7
    ️️✔️CredScan succeeded [Detail] [Expand]
    There is no credential detected.
    ️⚠️LintDiff: 2 Warnings warning [Detail]
    compared tags (via openapi-validator v2.0.0) new version base version
    package-phonenumber-2023-05-01-preview package-phonenumber-2023-05-01-preview(dfbfd12) default(main)

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

    Rule Message Related RPC [For API reviewers]
    ⚠️ PaginationResponse Operation might be pageable. Consider adding the x-ms-pageable extension.
    Location: PhoneNumbers/preview/2023-05-01-preview/phonenumbers.json#L849
    ⚠️ ErrorResponse Error response should contain a x-ms-error-code header.
    Location: PhoneNumbers/preview/2023-05-01-preview/phonenumbers.json#L882


    The following errors/warnings exist before current PR submission:

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

    Rule Message
    ⚠️ PathParameterSchema Path parameter should specify a maximum length (maxLength) and characters allowed (pattern).
    Location: PhoneNumbers/preview/2023-05-01-preview/phonenumbers.json#L20
    ⚠️ PaginationResponse Response body schema of pageable response should contain top-level array property value
    Location: PhoneNumbers/preview/2023-05-01-preview/phonenumbers.json#L97
    ⚠️ ErrorResponse Error response should contain a x-ms-error-code header.
    Location: PhoneNumbers/preview/2023-05-01-preview/phonenumbers.json#L101
    ⚠️ PaginationResponse Response body schema of pageable response should contain top-level array property value
    Location: PhoneNumbers/preview/2023-05-01-preview/phonenumbers.json#L159
    ⚠️ ErrorResponse Error response should contain a x-ms-error-code header.
    Location: PhoneNumbers/preview/2023-05-01-preview/phonenumbers.json#L163
    ⚠️ PathParameterSchema Path parameter should specify a maximum length (maxLength) and characters allowed (pattern).
    Location: PhoneNumbers/preview/2023-05-01-preview/phonenumbers.json#L192
    ⚠️ PaginationResponse Response body schema of pageable response should contain top-level array property value
    Location: PhoneNumbers/preview/2023-05-01-preview/phonenumbers.json#L234
    ⚠️ ErrorResponse Error response should contain a x-ms-error-code header.
    Location: PhoneNumbers/preview/2023-05-01-preview/phonenumbers.json#L238
    ⚠️ PathParameterSchema Path parameter should specify a maximum length (maxLength) and characters allowed (pattern).
    Location: PhoneNumbers/preview/2023-05-01-preview/phonenumbers.json#L267
    ⚠️ PaginationResponse Response body schema of pageable response should contain top-level array property value
    Location: PhoneNumbers/preview/2023-05-01-preview/phonenumbers.json#L331
    ⚠️ ErrorResponse Error response should contain a x-ms-error-code header.
    Location: PhoneNumbers/preview/2023-05-01-preview/phonenumbers.json#L335
    ⚠️ PathParameterSchema Path parameter should specify a maximum length (maxLength) and characters allowed (pattern).
    Location: PhoneNumbers/preview/2023-05-01-preview/phonenumbers.json#L367
    ⚠️ ErrorResponse Error response should contain a x-ms-error-code header.
    Location: PhoneNumbers/preview/2023-05-01-preview/phonenumbers.json#L412
    ⚠️ PathParameterSchema Path parameter should specify a maximum length (maxLength) and characters allowed (pattern).
    Location: PhoneNumbers/preview/2023-05-01-preview/phonenumbers.json#L441
    ⚠️ ErrorResponse Error response should contain a x-ms-error-code header.
    Location: PhoneNumbers/preview/2023-05-01-preview/phonenumbers.json#L459
    ⚠️ ErrorResponse Error response should contain a x-ms-error-code header.
    Location: PhoneNumbers/preview/2023-05-01-preview/phonenumbers.json#L515
    ⚠️ PathParameterSchema Path parameter should specify a maximum length (maxLength) and characters allowed (pattern).
    Location: PhoneNumbers/preview/2023-05-01-preview/phonenumbers.json#L544
    ⚠️ ErrorResponse Error response should contain a x-ms-error-code header.
    Location: PhoneNumbers/preview/2023-05-01-preview/phonenumbers.json#L568
    ⚠️ DeleteInOperationName 'DELETE' operation 'PhoneNumbers_CancelOperation' should use method name 'Delete'. Note: If you have already shipped an SDK on top of this spec, fixing this warning may introduce a breaking change.
    Location: PhoneNumbers/preview/2023-05-01-preview/phonenumbers.json#L586
    ⚠️ OperationId OperationId for delete method should contain 'Delete'
    Location: PhoneNumbers/preview/2023-05-01-preview/phonenumbers.json#L586
    ⚠️ PathParameterSchema Path parameter should specify a maximum length (maxLength) and characters allowed (pattern).
    Location: PhoneNumbers/preview/2023-05-01-preview/phonenumbers.json#L588
    ⚠️ ErrorResponse Error response should contain a x-ms-error-code header.
    Location: PhoneNumbers/preview/2023-05-01-preview/phonenumbers.json#L603
    ⚠️ PathParameterSchema Path parameter should specify a maximum length (maxLength) and characters allowed (pattern).
    Location: PhoneNumbers/preview/2023-05-01-preview/phonenumbers.json#L634
    ⚠️ RequestBodyOptional The body parameter is not marked as required.
    Location: PhoneNumbers/preview/2023-05-01-preview/phonenumbers.json#L644
    ⚠️ ErrorResponse Error response should contain a x-ms-error-code header.
    Location: PhoneNumbers/preview/2023-05-01-preview/phonenumbers.json#L678
    ⚠️ PathParameterSchema Path parameter should specify a maximum length (maxLength) and characters allowed (pattern).
    Location: PhoneNumbers/preview/2023-05-01-preview/phonenumbers.json#L707
    ⚠️ ErrorResponse Error response should contain a x-ms-error-code header.
    Location: PhoneNumbers/preview/2023-05-01-preview/phonenumbers.json#L725
    ⚠️ DeleteInOperationName 'DELETE' operation 'PhoneNumbers_ReleasePhoneNumber' should use method name 'Delete'. Note: If you have already shipped an SDK on top of this spec, fixing this warning may introduce a breaking change.
    Location: PhoneNumbers/preview/2023-05-01-preview/phonenumbers.json#L743
    ⚠️ OperationId OperationId for delete method should contain 'Delete'
    Location: PhoneNumbers/preview/2023-05-01-preview/phonenumbers.json#L743
    ⚠️ PathParameterSchema Path parameter should specify a maximum length (maxLength) and characters allowed (pattern).
    Location: PhoneNumbers/preview/2023-05-01-preview/phonenumbers.json#L745
    ️️✔️Avocado succeeded [Detail] [Expand]
    Validation passes for Avocado.
    ️️✔️ApiReadinessCheck succeeded [Detail] [Expand]
    ️⚠️~[Staging] ServiceAPIReadinessTest: 0 Warnings warning [Detail]

    API Test is not triggered due to precheck failure. Check pipeline log for details.

    ️️✔️SwaggerAPIView succeeded [Detail] [Expand]
    ️️✔️CadlAPIView 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.
    ️️✔️PrettierCheck succeeded [Detail] [Expand]
    Validation passes for PrettierCheck.
    ️️✔️SpellCheck succeeded [Detail] [Expand]
    Validation passes for SpellCheck.
    ️️✔️Lint(RPaaS) succeeded [Detail] [Expand]
    Validation passes for Lint(RPaaS).
    ️️✔️CadlValidation succeeded [Detail] [Expand]
    Validation passes for CadlValidation.
    ️️✔️TypeSpec Validation succeeded [Detail] [Expand]
    Validation passes for TypeSpec Validation.
    ️️✔️PR Summary succeeded [Detail] [Expand]
    Validation passes for Summary.
    Posted by Swagger Pipeline | How to fix these errors?

    @openapi-pipeline-app
    Copy link

    openapi-pipeline-app bot commented Mar 13, 2023

    Swagger pipeline restarted successfully, please wait for status update in this comment.

    @openapi-pipeline-app
    Copy link

    openapi-pipeline-app bot commented Mar 13, 2023

    Generated ApiView

    Language Package Name ApiView Link
    Swagger communication-data-plane-PhoneNumbers https://apiview.dev/Assemblies/Review/7c9102da436f48118cdbc65d7e59b09f

    @openapi-workflow-bot
    Copy link

    Hi @ericasp16, Your PR has some issues. Please fix the CI sequentially by following the order of Avocado, semantic validation, model validation, breaking change, lintDiff. If you have any questions, please post your questions in this channel https://aka.ms/swaggersupport.

    TaskHow to fixPriority
    AvocadoFix-AvocadoHigh
    Semantic validationFix-SemanticValidation-ErrorHigh
    Model validationFix-ModelValidation-ErrorHigh
    LintDiffFix-LintDiffhigh
    If you need further help, please feedback via swagger feedback.

    @mikekistler mikekistler added the APIStewardshipBoard-SignedOff The Azure API Stewardship team has reviewed and approved the changes. label Apr 11, 2023
    Copy link
    Member

    @mikekistler mikekistler left a comment

    Choose a reason for hiding this comment

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

    Looks good for private preview. But please rebase onto the most recent preview.

    @AzureRestAPISpecReview AzureRestAPISpecReview added the BreakingChangeReviewRequired <valid label in PR review process>add this label when breaking change review is required label Apr 14, 2023
    @openapi-workflow-bot
    Copy link

    Hi @ericasp16, one or multiple breaking change(s) is detected in your PR. Please check out the breaking change(s), and provide business justification in the PR comment and @ PR assignee why you must have these change(s), and how external customer impact can be mitigated. Please ensure to follow breaking change policy to request breaking change review and approval before proceeding swagger PR review.
    Action: To initiate an evaluation of the breaking change, create a new intake using the template for breaking changes. Addition details on the process and office hours are on the Breaking change Wiki.
    If you want to know the production traffic statistic, please see ARM Traffic statistic.
    If you think it is false positive breaking change, please provide the reasons in the PR comment, report to Swagger Tooling Team via https://aka.ms/swaggerfeedback.
    Note: To avoid breaking change, you can refer to Shift Left Solution for detecting breaking change in early phase at your service code repository.

    @ericasp16

    This comment was marked as resolved.

    @ericasp16

    This comment was marked as resolved.

    @AzureRestAPISpecReview AzureRestAPISpecReview removed the BreakingChangeReviewRequired <valid label in PR review process>add this label when breaking change review is required label Apr 25, 2023
    @AzureRestAPISpecReview AzureRestAPISpecReview added the BreakingChangeReviewRequired <valid label in PR review process>add this label when breaking change review is required label Apr 26, 2023
    @AzureRestAPISpecReview AzureRestAPISpecReview removed the BreakingChangeReviewRequired <valid label in PR review process>add this label when breaking change review is required label Apr 27, 2023
    @ericasp16
    Copy link
    Member Author

    @mikekistler I've rebased my swagger onto the latest version, and I've fixed up the PR based on the review feedback. Can you take another look and make sure we're looking good to get this merged? Let me know if you see anything that needs follow-up. Thank you!
    Here is the diff for the latest/most relevant commits: https://github.com/Azure/azure-rest-api-specs/pull/23053/files/58109068614bc7637c574b13218d84c49a03d3e9..dfbfd1222afb5ceb582829f90ac634f50ab37196

    @ericasp16 ericasp16 requested a review from whisper6284 May 1, 2023 18:18
    @mikekistler
    Copy link
    Member

    This PR is good to go from the API Stewardship POV. @ericasp16 is this ready to merge?

    @ericasp16
    Copy link
    Member Author

    Yes, we're ready to merge.

    @jhendrixMSFT as the assignee are you able to help us get this merged? Thanks!

    Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
    Labels
    ACS APIStewardshipBoard-SignedOff The Azure API Stewardship team has reviewed and approved the changes. data-plane
    Projects
    None yet
    Development

    Successfully merging this pull request may close these issues.

    [IC3 ACS Management GW] API Review
    4 participants