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

Renaming definitions from Bulk Jobs to Import Jobs #22488

Merged
merged 2 commits into from
Feb 8, 2023

Conversation

abhinav-ghai
Copy link
Member

Data Plane API - Pull Request

Renaming some definition names and description to suit our naming pattern. API remains same.

API Info: The Basics

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

  • Link to engagement record issue:

Is this review for (select one):

  • a private preview
  • a public preview
  • GA release

Change Scope

This PR involves renaming certain artifacts so that the generated docs reflect proper naming scheme.

  • Design Document:
  • Previous Open API Doc:
  • Updated paths:

❔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

@abhinav-ghai abhinav-ghai requested a review from a team as a code owner February 7, 2023 10:03
@abhinav-ghai abhinav-ghai requested review from JeffreyRichter and MushMal and removed request for a team February 7, 2023 10:03
@openapi-workflow-bot
Copy link

Hi, @abhinav-ghai 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 Feb 7, 2023

    Swagger Validation Report

    ️❌BreakingChange: 8 Errors, 0 Warnings failed [Detail]
    compared swaggers (via Oad v0.10.4)] new version base version
    digitaltwins.json 2023-02-27-preview(cc1848b) 2023-02-27-preview(main)
    Rule Message
    1006 - RemovedDefinition The new version is missing a definition that was found in the old version. Was 'BulkImportJob' removed or renamed?
    New: Microsoft.DigitalTwins/preview/2023-02-27-preview/digitaltwins.json#L1450:3
    Old: Microsoft.DigitalTwins/preview/2023-02-27-preview/digitaltwins.json#L1450:3
    1007 - RemovedClientParameter The new version is missing a client parameter that was found in the old version. Was 'bulkImportJobId' removed or renamed?
    New: Microsoft.DigitalTwins/preview/2023-02-27-preview/digitaltwins.json#L1822:3
    Old: Microsoft.DigitalTwins/preview/2023-02-27-preview/digitaltwins.json#L1822:3
    1017 - ReferenceRedirection The '$ref' property points to different models in the old and new versions.
    New: Microsoft.DigitalTwins/preview/2023-02-27-preview/digitaltwins.json#L1271:13
    Old: Microsoft.DigitalTwins/preview/2023-02-27-preview/digitaltwins.json#L1271:13
    1017 - ReferenceRedirection The '$ref' property points to different models in the old and new versions.
    New: Microsoft.DigitalTwins/preview/2023-02-27-preview/digitaltwins.json#L1752:11
    Old: Microsoft.DigitalTwins/preview/2023-02-27-preview/digitaltwins.json#L1752:11
    1017 - ReferenceRedirection The '$ref' property points to different models in the old and new versions.
    New: Microsoft.DigitalTwins/preview/2023-02-27-preview/digitaltwins.json#L1316:13
    Old: Microsoft.DigitalTwins/preview/2023-02-27-preview/digitaltwins.json#L1316:13
    1017 - ReferenceRedirection The '$ref' property points to different models in the old and new versions.
    New: Microsoft.DigitalTwins/preview/2023-02-27-preview/digitaltwins.json#L1327:13
    Old: Microsoft.DigitalTwins/preview/2023-02-27-preview/digitaltwins.json#L1327:13
    1017 - ReferenceRedirection The '$ref' property points to different models in the old and new versions.
    New: Microsoft.DigitalTwins/preview/2023-02-27-preview/digitaltwins.json#L1361:13
    Old: Microsoft.DigitalTwins/preview/2023-02-27-preview/digitaltwins.json#L1361:13
    1017 - ReferenceRedirection The '$ref' property points to different models in the old and new versions.
    New: Microsoft.DigitalTwins/preview/2023-02-27-preview/digitaltwins.json#L1436:13
    Old: Microsoft.DigitalTwins/preview/2023-02-27-preview/digitaltwins.json#L1436:13
    ️️✔️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.0.0) new version base version
    package-preview-2023-02-27 package-preview-2023-02-27(cc1848b) package-preview-2023-02-27(main)

    The following errors/warnings exist before current PR submission:

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

    Rule Message
    OperationIdNounVerb Per the Noun_Verb convention for Operation Ids, the noun 'Query' should not appear after the underscore. Note: If you have already shipped an SDK on top of this spec, fixing this warning may introduce a breaking change.
    Location: Microsoft.DigitalTwins/preview/2023-02-27-preview/digitaltwins.json#L268
    MissingTypeObject The schema 'ErrorResponse' is considered an object but without a 'type:object', please add the missing 'type:object'.
    Location: Microsoft.DigitalTwins/preview/2023-02-27-preview/digitaltwins.json#L1762
    MissingTypeObject The schema 'Error' is considered an object but without a 'type:object', please add the missing 'type:object'.
    Location: Microsoft.DigitalTwins/preview/2023-02-27-preview/digitaltwins.json#L1774
    MissingTypeObject The schema 'InnerError' is considered an object but without a 'type:object', please add the missing 'type:object'.
    Location: Microsoft.DigitalTwins/preview/2023-02-27-preview/digitaltwins.json#L1801
    XmsParameterLocation The parameter 'api-version' is defined in global parameters section without 'x-ms-parameter-location' extension. This would add the parameter as the client property. Please ensure that this is exactly you want. If so, apply the extension 'x-ms-parameter-location': 'client'. Else, apply the extension 'x-ms-parameter-location': 'method'.
    Location: Microsoft.DigitalTwins/preview/2023-02-27-preview/digitaltwins.json#L1880
    IntegerTypeMustHaveFormat The integer type does not have a format, please add it.
    Location: Microsoft.DigitalTwins/preview/2023-02-27-preview/digitaltwins.json#L1888
    XmsEnumValidation The enum types should have x-ms-enum type extension set with appropriate options.
    Location: Microsoft.DigitalTwins/preview/2023-02-27-preview/digitaltwins.json#L1900
    ⚠️ Post201Response Using post for a create operation is discouraged.
    Location: Microsoft.DigitalTwins/preview/2023-02-27-preview/digitaltwins.json#L59
    ⚠️ ErrorResponse Error response should contain a x-ms-error-code header.
    Location: Microsoft.DigitalTwins/preview/2023-02-27-preview/digitaltwins.json#L65
    ⚠️ ErrorResponse Error schema should define code and message properties as required.
    Location: Microsoft.DigitalTwins/preview/2023-02-27-preview/digitaltwins.json#L67
    ⚠️ ErrorResponse Error response should contain a x-ms-error-code header.
    Location: Microsoft.DigitalTwins/preview/2023-02-27-preview/digitaltwins.json#L119
    ⚠️ ErrorResponse Error schema should define code and message properties as required.
    Location: Microsoft.DigitalTwins/preview/2023-02-27-preview/digitaltwins.json#L121
    ⚠️ PathParameterSchema Path parameter should specify a maximum length (maxLength) and characters allowed (pattern).
    Location: Microsoft.DigitalTwins/preview/2023-02-27-preview/digitaltwins.json#L152
    ⚠️ ErrorResponse Error response should contain a x-ms-error-code header.
    Location: Microsoft.DigitalTwins/preview/2023-02-27-preview/digitaltwins.json#L169
    ⚠️ ErrorResponse Error schema should define code and message properties as required.
    Location: Microsoft.DigitalTwins/preview/2023-02-27-preview/digitaltwins.json#L171
    ⚠️ PatchContentType A patch operation should consume 'application/merge-patch+json' content type.
    Location: Microsoft.DigitalTwins/preview/2023-02-27-preview/digitaltwins.json#L183
    ⚠️ PathParameterSchema Path parameter should specify a maximum length (maxLength) and characters allowed (pattern).
    Location: Microsoft.DigitalTwins/preview/2023-02-27-preview/digitaltwins.json#L192
    ⚠️ ErrorResponse Error response should contain a x-ms-error-code header.
    Location: Microsoft.DigitalTwins/preview/2023-02-27-preview/digitaltwins.json#L215
    ⚠️ ErrorResponse Error schema should define code and message properties as required.
    Location: Microsoft.DigitalTwins/preview/2023-02-27-preview/digitaltwins.json#L217
    ⚠️ PathParameterSchema Path parameter should specify a maximum length (maxLength) and characters allowed (pattern).
    Location: Microsoft.DigitalTwins/preview/2023-02-27-preview/digitaltwins.json#L235
    ⚠️ ErrorResponse Error response should contain a x-ms-error-code header.
    Location: Microsoft.DigitalTwins/preview/2023-02-27-preview/digitaltwins.json#L246
    ⚠️ ErrorResponse Error schema should define code and message properties as required.
    Location: Microsoft.DigitalTwins/preview/2023-02-27-preview/digitaltwins.json#L248
    ⚠️ ListInOperationName Since operation response has model definition in array type, it should be of the form '_list'.
    Location: Microsoft.DigitalTwins/preview/2023-02-27-preview/digitaltwins.json#L264
    ⚠️ PaginationResponse Operation might be pageable. Consider adding the x-ms-pageable extension.
    Location: Microsoft.DigitalTwins/preview/2023-02-27-preview/digitaltwins.json#L264
    ⚠️ ErrorResponse Error response should contain a x-ms-error-code header.
    Location: Microsoft.DigitalTwins/preview/2023-02-27-preview/digitaltwins.json#L311
    ⚠️ ErrorResponse Error schema should define code and message properties as required.
    Location: Microsoft.DigitalTwins/preview/2023-02-27-preview/digitaltwins.json#L313
    ⚠️ PathParameterSchema Path parameter should specify a maximum length (maxLength) and characters allowed (pattern).
    Location: Microsoft.DigitalTwins/preview/2023-02-27-preview/digitaltwins.json#L341
    ⚠️ ErrorResponse Error response should contain a x-ms-error-code header.
    Location: Microsoft.DigitalTwins/preview/2023-02-27-preview/digitaltwins.json#L361
    ⚠️ ErrorResponse Error schema should define code and message properties as required.
    Location: Microsoft.DigitalTwins/preview/2023-02-27-preview/digitaltwins.json#L363
    ⚠️ PutRequestResponseScheme A PUT operation request body schema should be the same as its 200 response schema, to allow reusing the same entity between GET and PUT. If the schema of the PUT request body is a superset of the GET response body, make sure you have a PATCH operation to make the resource updatable. Operation: 'DigitalTwins_Add' Request Model: 'parameters[1].schema' Response Model: 'responses[200].schema'
    Location: Microsoft.DigitalTwins/preview/2023-02-27-preview/digitaltwins.json#L369
    ️️✔️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]
    ️️✔️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.
    ️️✔️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 Feb 7, 2023

    Swagger Generation Artifacts

    ️️✔️ApiDocPreview succeeded [Detail] [Expand]
     Please click here to preview with your @microsoft account. 
    ️️✔️SDK Breaking Change Tracking succeeded [Detail] [Expand]

    Breaking Changes Tracking

    ️️✔️ azure-sdk-for-net-track2 succeeded [Detail] [Expand]
    • ️✔️Succeeded [Logs]Release - Generate from 48c0c20. SDK Automation 14.0.0
      command	pwsh ./eng/scripts/Automation-Sdk-Init.ps1 ../azure-sdk-for-net_tmp/initInput.json ../azure-sdk-for-net_tmp/initOutput.json
      command	pwsh ./eng/scripts/Invoke-GenerateAndBuildV2.ps1 ../azure-sdk-for-net_tmp/generateInput.json ../azure-sdk-for-net_tmp/generateOutput.json
    • ️✔️Azure.DigitalTwins.Core [View full logs]  [Release SDK Changes]
      info	[Changelog]
    Posted by Swagger Pipeline | How to fix these errors?

    @openapi-pipeline-app
    Copy link

    openapi-pipeline-app bot commented Feb 7, 2023

    Generated ApiView

    Language Package Name ApiView Link
    .Net Azure.DigitalTwins.Core There is no API change compared with the previous version

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

    Hi @abhinav-ghai, 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.

    @abhinav-ghai
    Copy link
    Member Author

    We haven't released the SDK or Docs from this swagger yet, so these are not breaking changes.

    @JeffreyRichter JeffreyRichter added the Approved-BreakingChange DO NOT USE! OBSOLETE label. See https://github.com/Azure/azure-sdk-tools/issues/6374 label Feb 7, 2023
    Copy link
    Member

    @MushMal MushMal left a comment

    Choose a reason for hiding this comment

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

    LGTM

    @anuchandy anuchandy merged commit 48c0c20 into Azure:main Feb 8, 2023
    aviyerMSFT pushed a commit to aviyerMSFT/azure-rest-api-specs that referenced this pull request Mar 22, 2023
    * Renaming definitions from Bulk Jobs to Import Jobs
    
    * Rename files to exclude Bulk from examples
    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
    Projects
    None yet
    Development

    Successfully merging this pull request may close these issues.

    6 participants