Skip to content

Fixed incorrect type formats in SQL database#1107

Merged
balajikris merged 10 commits intoAzure:masterfrom
jaredmoo:typefixes
Apr 19, 2017
Merged

Fixed incorrect type formats in SQL database#1107
balajikris merged 10 commits intoAzure:masterfrom
jaredmoo:typefixes

Conversation

@jaredmoo
Copy link
Contributor

@jaredmoo jaredmoo commented Apr 10, 2017

This checklist is used to make sure that common issues in a pull request are addressed. This will expedite the process of getting your pull request merged and avoid extra work on your part to fix issues discovered during the review process.

PR information

  • The title of the PR is clear and informative.
  • There are a small number of commits, each of which have an informative message. This means that previously merged commits do not appear in the history of the PR. For information on cleaning up the commits in your pull request, see this page.
  • Except for special cases involving multiple contributors, the PR is started from a fork of the main repository, not a branch.
  • If applicable, the PR references the bug/issue that it fixes.
  • Swagger files are correctly named (e.g. the api-version in the path should match the api-version in the spec).

Quality of Swagger

@sameralameer
Copy link

Apologies for the Delay @jaredmoo, we lately had a surge of PRs, someone will get on this shortly

@jaredmoo
Copy link
Contributor Author

jaredmoo commented Apr 11, 2017

Thanks Samer :) there might be some validation warnings I need to fix, will look into those soon

@salameer salameer assigned balajikris and unassigned alvadb Apr 11, 2017
@salameer
Copy link
Member

Gotcha

@balajikris
Copy link
Contributor

balajikris commented Apr 11, 2017

I ran the linter and semantic check tools and this change appears to be clean. I found no errors from the tools. Will sign off, after I do a manual review.

Tasks:

  • CI passes
  • Autorest linter passes (filed work items)
  • open-api-validation tool run passes
  • manual review

balajikris
balajikris previously approved these changes Apr 12, 2017
Copy link
Contributor

@balajikris balajikris left a comment

Choose a reason for hiding this comment

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

LGTM.

@balajikris
Copy link
Contributor

okay my bad here. I forgot to pass in the composite swagger entry point to the tool and the tool happily returned no errors. If I do however pass in the compositeSwagger entry point, it throws a bunch of errors.

I'll go through the list again. 👍

@balajikris balajikris dismissed their stale review April 12, 2017 19:14

I submitted incorrectly

@balajikris
Copy link
Contributor

Status as of 4/13: emailed @jaredmoo about the list of linter errors and examples errors that we should consider addressing.

Copy link
Contributor

@balajikris balajikris left a comment

Choose a reason for hiding this comment

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

Emailed a set of linter errors and example errors that we need to address.

"readOnly": true,
"type": "string",
"description": "The unique ID of the service objective."
"format": "uuid",
Copy link
Contributor

Choose a reason for hiding this comment

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

autorest linter tags this as

WARNING: Guid used at the #/Definitions/ServiceObjectiveCapability/.../id. Usage of Guid is not recommanded. If GUIDs are absolutely required in your service, please get sign off from the Azure API review board.

@ravbhatnagar : what's the recommended change here? I do not have enough context on why guids are bad and what's the right way to fix this. I'll appreciate it if you can fill me and Jared in here.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Unfortunately no change is possible. This is what the service is returning, and changing it at this point would be a REST API breaking change. We will have to consider removing this guid from the next api version.

Copy link
Contributor

Choose a reason for hiding this comment

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

Hmm. Thought as much. Thanks for confirming

@balajikris
Copy link
Contributor

Summary of errors we will track by bugs:

  1. ERROR: Please provide x-ms-examples describing minimum/maximum property set for response/request payloads for operations.
    Path: file:///C:/workspace/azure-rest-api-specs/arm-sql/compositeSql.json#/paths

    [Jared Moore] Let’s file a separate issue for this

  2. ERROR: The tracked resource, 'Database', must have a list by resource group operation.
    Path: file:///C:/workspace/azure-rest-api-specs/arm-sql/compositeSql.json#/definitions/Database
    ERROR: The tracked resource, 'ElasticPool', must have a list by resource group operation.
    Path: file:///C:/workspace/azure-rest-api-specs/arm-sql/compositeSql.json#/definitions/ElasticPool
    ERROR: The tracked resource, 'Database', must have a list by subscriptions operation.
    Path: file:///C:/workspace/azure-rest-api-specs/arm-sql/compositeSql.json#/definitions/Database

    [Jared Moore] Let’s file a separate issue for this. It’s not implemented in the service right now.

  3. ERROR: The tracked resource, 'ElasticPool', must have a list by subscriptions operation.
    Path: file:///C:/workspace/azure-rest-api-specs/arm-sql/compositeSql.json#/definitions/ElasticPool
    ERROR: Tracked resource 'Database' must have patch operation that at least supports the update of tags.
    Path: file:///C:/workspace/azure-rest-api-specs/arm-sql/compositeSql.json#/definitions/Database
    ERROR: Tracked resource 'Server' must have patch operation that at least supports the update of tags.
    Path: file:///C:/workspace/azure-rest-api-specs/arm-sql/compositeSql.json#/definitions/Server
    ERROR: Tracked resource 'ElasticPool' must have patch operation that at least supports the update of tags.
    Path: file:///C:/workspace/azure-rest-api-specs/arm-sql/compositeSql.json#/definitions/ElasticPool

    [Jared Moore] Let’s file a separate issue for this. It’s not implemented in the service right now.

  4. ERROR: Model definition 'FirewallRule' must have the properties 'name', 'id' and 'type' in its hierarchy and these properties must be marked as readonly.
    Path: file:///C:/workspace/azure-rest-api-specs/arm-sql/compositeSql.json#/definitions/FirewallRule

    [Jared Moore] The service really doesn’t send ‘type’ for FirewallRule. This is a bug but not one that I can easily fix. Will file issue for this.

@jaredmoo
Copy link
Contributor Author

Thanks, let me just double check there are no more changes needed

@balajikris
Copy link
Contributor

Reviewed again after the last commit. things are still good 👍

@balajikris balajikris merged commit 4b0aa25 into Azure:master Apr 19, 2017
@AutorestCI
Copy link

No modification for NodeJS

@AutorestCI
Copy link

@AutorestCI
Copy link

mccleanp pushed a commit that referenced this pull request Mar 23, 2022
…er-2020-01-01-preview

Dev vnfmanager microsoft.vnf manager 2020 01 01 preview
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

7 participants