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

Azure Maps DEM Post Deprecation Clean Up #24038

Merged
merged 1 commit into from
Jun 7, 2023

Conversation

ismael-ms
Copy link
Contributor

Data Plane API - Pull Request

The DEM tiles (tilesets with ID microsoft.dem and microsoft.dem.contours) were deprecated on 05/05/23. Now that some time has passed, the deprecation banner is no longer necessary, so I've removed them from the Render V2 APIs. I also removed references to the tilesets from the tilesetID list. This is not a breaking change as the tilesets have already gone through the deprecation cycle.

Previous related PRs:
#23290
#23307

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.

  • Link to API Spec engagement record issue:

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: N/A
  • Previous API Spec Doc: N/A
  • Updated paths: specification/maps/data-plane/Render/stable/2022-08-01/render.json

❔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

@ismael-ms ismael-ms requested a review from a team as a code owner May 17, 2023 23:51
@ismael-ms ismael-ms requested review from vicancy and johanste and removed request for a team May 17, 2023 23:51
@openapi-workflow-bot
Copy link

Hi, @ismael-ms 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 May 17, 2023

    Swagger Validation Report

    ️❌BreakingChange: 4 Errors, 0 Warnings failed [Detail]
    compared swaggers (via Oad v0.10.4)] new version base version
    render.json 2022-08-01(6df3839) 2022-08-01(main)
    Rule Message
    1019 - RemovedEnumValue The new version is removing enum value(s) 'microsoft.dem, microsoft.dem.contours' from the old version.
    Old: Render/stable/2022-08-01/render.json#L294:9
    1019 - RemovedEnumValue The new version is removing enum value(s) 'microsoft.dem, microsoft.dem.contours' from the old version.
    Old: Render/stable/2022-08-01/render.json#L368:9
    1019 - RemovedEnumValue The new version is removing enum value(s) 'microsoft.dem, microsoft.dem.contours' from the old version.
    Old: Render/stable/2022-08-01/render.json#L404:9
    1019 - RemovedEnumValue The new version is removing enum value(s) 'microsoft.dem, microsoft.dem.contours' from the old version.
    New: Render/stable/2022-08-01/render.json#L145:5
    Old: Render/stable/2022-08-01/render.json#L145:5
    ️️✔️Breaking Change(Cross-Version) succeeded [Detail] [Expand]
    There are no breaking changes.
    ️️✔️CredScan succeeded [Detail] [Expand]
    There is no credential detected.
    ️⚠️LintDiff: 0 Warnings warning [Detail]
    compared tags (via openapi-validator v2.1.2) new version base version
    2022-08-01 2022-08-01(6df3839) 2022-08-01(main)

    The following errors/warnings exist before current PR submission:

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

    Rule Message
    ValidFormats 'file' is not a known format.
    Location: Render/stable/2022-08-01/render.json#L331
    ValidFormats 'file' is not a known format.
    Location: Render/stable/2022-08-01/render.json#L482
    ValidFormats 'file' is not a known format.
    Location: Render/stable/2022-08-01/render.json#L692
    IntegerTypeMustHaveFormat The integer type does not have a format, please add it.
    Location: Render/stable/2022-08-01/render.json#L951
    IntegerTypeMustHaveFormat The integer type does not have a format, please add it.
    Location: Render/stable/2022-08-01/render.json#L958
    ⚠️ ErrorResponse Error response should contain a x-ms-error-code header.
    Location: Render/stable/2022-08-01/render.json#L341
    ⚠️ ErrorResponse The error property in the error response schema should be required.
    Location: Render/stable/2022-08-01/render.json#L341
    ⚠️ ErrorResponse Error schema should define code and message properties as required.
    Location: Render/stable/2022-08-01/render.json#L341
    ⚠️ SchemaTypeAndFormat Schema with type: integer should specify format
    Location: Render/stable/2022-08-01/render.json#L373
    ⚠️ SchemaTypeAndFormat Schema with type: integer should specify format
    Location: Render/stable/2022-08-01/render.json#L373
    ⚠️ ErrorResponse Error response should contain a x-ms-error-code header.
    Location: Render/stable/2022-08-01/render.json#L377
    ⚠️ ErrorResponse The error property in the error response schema should be required.
    Location: Render/stable/2022-08-01/render.json#L377
    ⚠️ ErrorResponse Error schema should define code and message properties as required.
    Location: Render/stable/2022-08-01/render.json#L377
    ⚠️ PageableOperation Based on the response model schema, operation 'Render_GetMapAttribution' might be pageable. Consider adding the x-ms-pageable extension.
    Location: Render/stable/2022-08-01/render.json#L384
    ⚠️ PaginationResponse Operation might be pageable. Consider adding the x-ms-pageable extension.
    Location: Render/stable/2022-08-01/render.json#L384
    ⚠️ ErrorResponse Error response should contain a x-ms-error-code header.
    Location: Render/stable/2022-08-01/render.json#L434
    ⚠️ ErrorResponse The error property in the error response schema should be required.
    Location: Render/stable/2022-08-01/render.json#L434
    ⚠️ ErrorResponse Error schema should define code and message properties as required.
    Location: Render/stable/2022-08-01/render.json#L434
    ⚠️ ErrorResponse Error response should contain a x-ms-error-code header.
    Location: Render/stable/2022-08-01/render.json#L492
    ⚠️ ErrorResponse The error property in the error response schema should be required.
    Location: Render/stable/2022-08-01/render.json#L492
    ⚠️ ErrorResponse Error schema should define code and message properties as required.
    Location: Render/stable/2022-08-01/render.json#L492
    ⚠️ PathParameterSchema Path parameter should specify a maximum length (maxLength) and characters allowed (pattern).
    Location: Render/stable/2022-08-01/render.json#L514
    ⚠️ ErrorResponse Error response should contain a x-ms-error-code header.
    Location: Render/stable/2022-08-01/render.json#L525
    ⚠️ ErrorResponse The error property in the error response schema should be required.
    Location: Render/stable/2022-08-01/render.json#L525
    ⚠️ ErrorResponse Error schema should define code and message properties as required.
    Location: Render/stable/2022-08-01/render.json#L525
    ⚠️ PathParameterSchema Path parameter should specify a maximum length (maxLength) and characters allowed (pattern).
    Location: Render/stable/2022-08-01/render.json#L547
    ⚠️ ErrorResponse Error response should contain a x-ms-error-code header.
    Location: Render/stable/2022-08-01/render.json#L702
    ⚠️ ErrorResponse The error property in the error response schema should be required.
    Location: Render/stable/2022-08-01/render.json#L702
    ⚠️ ErrorResponse Error schema should define code and message properties as required.
    Location: Render/stable/2022-08-01/render.json#L702
    ⚠️ PageableOperation Based on the response model schema, operation 'Render_GetCopyrightFromBoundingBox' might be pageable. Consider adding the x-ms-pageable extension.
    Location: Render/stable/2022-08-01/render.json#L709
    ️️✔️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 May 17, 2023

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

    @openapi-pipeline-app
    Copy link

    openapi-pipeline-app bot commented May 17, 2023

    Generated ApiView

    Language Package Name ApiView Link
    Swagger maps-data-plane-Render https://apiview.dev/Assemblies/Review/5a145457940a4a3d8c6c59a601fdf919

    @ghost ghost added the Maps label May 17, 2023
    @AzureRestAPISpecReview AzureRestAPISpecReview added BreakingChangeReviewRequired <valid label in PR review process>add this label when breaking change review is required data-plane labels May 17, 2023
    @openapi-workflow-bot
    Copy link

    Hi @ismael-ms, 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.

    @ismael-ms
    Copy link
    Contributor Author

    Hi @ismael-ms, 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.

    Hello @anuchandy, this should not be considered a breaking change as the information I'm removing pertains to a deprecation that has already taken place per Azure update here: https://azure.microsoft.com/en-us/updates/azure-maps-elevation-apis-and-render-v2-dem-tiles-will-be-retired-on-5-may-2023/.

    In this PR, I'm only removing the deprecation banner for the Render V2 - Get Map Tile - REST API (Azure Maps) | Microsoft Learn
    and Render V2 - Get Map Tileset - REST API (Azure Maps) | Microsoft Learn APIs as they used the deprecated microsoft.dem and microsoft.dem.contours tilesets. That data has been deprecated but not the APIs. I've also removed references of the dem tiles in the tilesetid definition.

    @ismael-ms
    Copy link
    Contributor Author

    Hi @anuchandy, please let me know if there are any blockers in this PR or if it is okay to move forward with it. Thank you.

    @johanste
    Copy link
    Member

    johanste commented Jun 6, 2023

    Approving since the breaking change has been approved.

    @anuchandy anuchandy added the Approved-BreakingChange DO NOT USE! OBSOLETE label. See https://github.com/Azure/azure-sdk-tools/issues/6374 label Jun 7, 2023
    @anuchandy anuchandy merged commit d1bd73c into main Jun 7, 2023
    @anuchandy anuchandy deleted the ismael-ms-maps-Render-2022-08-01 branch June 7, 2023 16:20
    harryli0108 pushed a commit to harryli0108/azure-rest-api-specs that referenced this pull request Jul 28, 2023
    …4038)
    
    Merging. Notes - 
    
    1. The enum values in the API 2022-08-01 version are deprecated - approved by the Azure retirement team.
    2. While the API version is stable, non of the SDKs are GA-ed; [all](https://learn.microsoft.com/en-us/azure/azure-maps/rest-sdk-developer-guide) are shipped only in preview mode.
    Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
    Labels
    Approved-BreakingChange DO NOT USE! OBSOLETE label. See https://github.com/Azure/azure-sdk-tools/issues/6374 BreakingChangeReviewRequired <valid label in PR review process>add this label when breaking change review is required data-plane Maps
    Projects
    None yet
    Development

    Successfully merging this pull request may close these issues.

    4 participants