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

Purview Share Test Api Specification Update - Version 2023-05-30-preview #23993

Merged
merged 6 commits into from
May 23, 2023

Conversation

kevinmichaelbowersox
Copy link
Member

Data Plane API - Pull Request

Purview Share Test Api Specification Update - Version 2023-05-30-preview

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:
  • Previous API Spec 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

@kevinmichaelbowersox kevinmichaelbowersox requested review from tg-msft and removed request for a team May 15, 2023 18:43
@openapi-workflow-bot
Copy link

Hi, @kevinmichaelbowersox 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. vscswagger@microsoft.com

    @openapi-pipeline-app
    Copy link

    openapi-pipeline-app bot commented May 15, 2023

    Swagger Validation Report

    ️️✔️BreakingChange succeeded [Detail] [Expand]
    There are no breaking changes.
    ️⚠️Breaking Change(Cross-Version): 9 Warnings warning [Detail]
    compared swaggers (via Oad v0.10.4)] new version base version
    share.json 2023-05-30-preview(5e26bc5) 2023-02-15-preview(main)

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

    Rule Message
    ⚠️ 1007 - RemovedClientParameter The new version is missing a client parameter that was found in the old version. Was 'skipToken' removed or renamed?
    New: Azure.Analytics.Purview.Share/preview/2023-05-30-preview/share.json#L2077:3
    Old: Azure.Analytics.Purview.Share/preview/2023-02-15-preview/share.json#L1986:3
    ⚠️ 1023 - TypeFormatChanged The new version has a different format than the previous one.
    New: Azure.Analytics.Purview.Share/preview/2023-05-30-preview/share.json#L1531:9
    Old: Azure.Analytics.Purview.Share/preview/2023-02-15-preview/share.json#L1491:9
    ⚠️ 1023 - TypeFormatChanged The new version has a different format than the previous one.
    New: Azure.Analytics.Purview.Share/preview/2023-05-30-preview/share.json#L1627:9
    Old: Azure.Analytics.Purview.Share/preview/2023-02-15-preview/share.json#L1585:9
    ⚠️ 1023 - TypeFormatChanged The new version has a different format than the previous one.
    New: Azure.Analytics.Purview.Share/preview/2023-05-30-preview/share.json#L1606:9
    Old: Azure.Analytics.Purview.Share/preview/2023-02-15-preview/share.json#L1565:9
    ⚠️ 1023 - TypeFormatChanged The new version has a different format than the previous one.
    New: Azure.Analytics.Purview.Share/preview/2023-05-30-preview/share.json#L2078:5
    Old: Azure.Analytics.Purview.Share/preview/2023-02-15-preview/share.json#L1987:5
    ⚠️ 1046 - RemovedOptionalParameter The optional parameter 'skipToken' was removed in the new version.
    Old: Azure.Analytics.Purview.Share/preview/2023-02-15-preview/share.json#L204:9
    ⚠️ 1046 - RemovedOptionalParameter The optional parameter 'skipToken' was removed in the new version.
    Old: Azure.Analytics.Purview.Share/preview/2023-02-15-preview/share.json#L262:9
    ⚠️ 1046 - RemovedOptionalParameter The optional parameter 'skipToken' was removed in the new version.
    Old: Azure.Analytics.Purview.Share/preview/2023-02-15-preview/share.json#L317:9
    ⚠️ 1046 - RemovedOptionalParameter The optional parameter 'skipToken' was removed in the new version.
    Old: Azure.Analytics.Purview.Share/preview/2023-02-15-preview/share.json#L559:9
    ️️✔️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
    package-2023-05-30-preview package-2023-05-30-preview(5e26bc5) default(main)

    The following errors/warnings exist before current PR submission:

    Rule Message
    ⚠️ OperationId OperationId for put method should contain both 'Create' and 'Update'
    Location: Azure.Analytics.Purview.Share/preview/2023-05-30-preview/share.json#L66
    ⚠️ OperationId OperationId for put method should contain both 'Create' and 'Update'
    Location: Azure.Analytics.Purview.Share/preview/2023-05-30-preview/share.json#L412
    ⚠️ EnumInsteadOfBoolean Booleans properties are not descriptive in all cases and can make them to use, evaluate whether is makes sense to keep the property as boolean or turn it into an enum.
    Location: Azure.Analytics.Purview.Share/preview/2023-05-30-preview/share.json#L2038
    ️️✔️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 15, 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 failed [Detail]
    • Failed [Logs]Release - Generate from 40a9532. SDK Automation 14.0.0
      Only show 18 items here, please refer to log for details.
      cmderr	[Invoke-GenerateAndBuildV2.ps1] �[36;1m 712 | �[0m         �[36;1mGeneratePackage -projectFolder $projectFolder -sdkRootPath $s�[0m …
      cmderr	[Invoke-GenerateAndBuildV2.ps1] �[36;1m     | �[31;1m         ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
      cmderr	[Invoke-GenerateAndBuildV2.ps1] �[31;1m�[36;1m     | �[31;1mFailed to generate sdk. exit code: False
      cmderr	[Invoke-GenerateAndBuildV2.ps1] �[0m
      cmderr	[Invoke-GenerateAndBuildV2.ps1] �[31;1mGet-ChildItem: �[0m/mnt/vss/_work/1/s/azure-sdk-for-net/eng/scripts/automation/GenerateAndBuildLib.ps1:800
      cmderr	[Invoke-GenerateAndBuildV2.ps1] �[36;1mLine |
      cmderr	[Invoke-GenerateAndBuildV2.ps1] �[36;1m 800 | �[0m … rtifacts += �[36;1mGet-ChildItem $artifactsPath -Filter *.nupkg -exclude *.s�[0m …
      cmderr	[Invoke-GenerateAndBuildV2.ps1] �[36;1m     | �[31;1m               ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
      cmderr	[Invoke-GenerateAndBuildV2.ps1] �[31;1m�[36;1m     | �[31;1mCannot find path
      cmderr	[Invoke-GenerateAndBuildV2.ps1] �[36;1m     | �[31;1m'/mnt/vss/_work/1/s/azure-sdk-for-net/artifacts/packages/Debug/' because
      cmderr	[Invoke-GenerateAndBuildV2.ps1] �[36;1m     | �[31;1mit does not exist.
      cmderr	[Invoke-GenerateAndBuildV2.ps1] �[0m
      cmderr	[Invoke-GenerateAndBuildV2.ps1] �[31;1mGeneratePackage: �[0m/mnt/vss/_work/1/s/azure-sdk-for-net/eng/scripts/automation/GenerateAndBuildLib.ps1:712
      cmderr	[Invoke-GenerateAndBuildV2.ps1] �[36;1mLine |
      cmderr	[Invoke-GenerateAndBuildV2.ps1] �[36;1m 712 | �[0m         �[36;1mGeneratePackage -projectFolder $projectFolder -sdkRootPath $s�[0m …
      cmderr	[Invoke-GenerateAndBuildV2.ps1] �[36;1m     | �[31;1m         ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
      cmderr	[Invoke-GenerateAndBuildV2.ps1] �[31;1m�[36;1m     | �[31;1mFailed to generate sdk artifact
      cmderr	[Invoke-GenerateAndBuildV2.ps1] �[0m
    • Azure.Analytics.Purview.Account [View full logs]  [Release SDK Changes]
      info	[Changelog]
    • Azure.Analytics.Purview.Administration [View full logs]  [Release SDK Changes]
      info	[Changelog]
    • Azure.Analytics.Purview.Catalog [View full logs]  [Release SDK Changes]
      info	[Changelog]
    • Azure.Analytics.Purview.Scanning [View full logs]  [Release SDK Changes]
      info	[Changelog]
    • Azure.Analytics.Purview.Share [View full logs]  [Release SDK Changes]
      info	[Changelog]
    • Azure.Analytics.Purview.Sharing [View full logs]  [Release SDK Changes]
      info	[Changelog]
    • Azure.Analytics.Purview.Workflows [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 May 15, 2023

    Generated ApiView

    Language Package Name ApiView Link
    Swagger purview-data-plane-Azure.Analytics.Purview.Share https://apiview.dev/Assemblies/Review/0b35f0273d3441cd877faec702046bf8

    @kevinmichaelbowersox
    Copy link
    Member Author

    Care for this PR will be performed by @faisalaltell12

    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. 👍

    I left a few minor comments that hopefully are easy fixes.

    "properties": {
    "nextLink": {
    "description": "The Url of next result page.",
    "type": "string"
    Copy link
    Member

    Choose a reason for hiding this comment

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

    The nextLink property should be format: url.

    Suggested change
    "type": "string"
    "type": "string",
    "format": "url"

    }
    },
    "ShareResourceList": {
    "description": "A page of Microsoft.Azure.Purview.Share.ApiService.V3.DataTransferObjects.ShareResource results.",
    Copy link
    Member

    Choose a reason for hiding this comment

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

    Suggested change
    "description": "A page of Microsoft.Azure.Purview.Share.ApiService.V3.DataTransferObjects.ShareResource results.",
    "description": "A page of ShareResource results.",

    "type": "string"
    },
    "value": {
    "description": "Collection of items of type DataTransferObjects.",
    Copy link
    Member

    Choose a reason for hiding this comment

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

    Suggested change
    "description": "Collection of items of type DataTransferObjects.",
    "description": "Collection of items of type ShareResource.",

    Comment on lines 1768 to 1770
    "shareCounts": {
    "$ref": "#/definitions/ShareCounts"
    },
    Copy link
    Member

    Choose a reason for hiding this comment

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

    Why nest these down inside a "ShareCounts" object? I think it will be better for users to simply put the two properties from "ShareCounts" here at the top level.

    @faisalaltell12
    Copy link
    Contributor

    Looks good. 👍

    I left a few minor comments that hopefully are easy fixes.

    Thank you Mike, the tough part is getting the local build - swashbuckle process specifically - to automatically apply those changes. That way on future API versions we have less developer intervention (y) Got it all working finally!

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

    @kevinmichaelbowersox
    @faisalaltell12
    We got 2 approval and Mike signed off the PR. We should be able to merge it when you are ready.

    (BTW, swashbuckle is not recommended...)

    @mikekistler
    Copy link
    Member

    Looks good! 👍

    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. data-plane Purview
    Projects
    None yet
    Development

    Successfully merging this pull request may close these issues.

    6 participants