Skip to content

Conversation

@matthchr
Copy link
Member

@matthchr matthchr commented Nov 14, 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

@matthchr
Copy link
Member Author

@xingwu1 @darylmsft - Please take a look

@smith1511 - Take a look at the commit for NATPool docs

Copy link
Member

Choose a reason for hiding this comment

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

Don't need specify "name" if not override the enum name.

Copy link
Member Author

Choose a reason for hiding this comment

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

I will fix this

Copy link
Member

Choose a reason for hiding this comment

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

currentUser vs currentuser in the "description"? None of it is good.

Copy link
Member

Choose a reason for hiding this comment

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

Why empty here?

Copy link
Member Author

Choose a reason for hiding this comment

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

Fixed

Copy link
Member

Choose a reason for hiding this comment

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

inconsistent. Some places use all lower cases. Here is different.

Copy link
Member Author

Choose a reason for hiding this comment

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

Fixed

@xingwu1
Copy link
Member

xingwu1 commented Nov 14, 2017

Major issue: I tried this spec with different languages. C# looks good. However, neither java or python honor this extension. So we can't approve this PR until major languages support it.

@darylmsft
Copy link

I think/hope Xing means "cannot approve..." right?

@matthchr
Copy link
Member Author

@xingwu1 I knew that Python didn't honor this -- can you file (or help me file) a GitHub issue for Java like the ones I filed for node and python?

I already have commitment from @amarzavery to fix Node.js this month, and I spoke with @annatisch who says that we should be able to have the fix for Python within relatively short order as well.

Given that this also fixes the C# SDK and is just generally more correct it seemed better to move and get the tooling fixed by the time we regenerate new SDKs (which probably wont be for a while).

@matthchr matthchr force-pushed the feature/batch-enum-fixes branch from 4a3154d to 87a95cc Compare November 14, 2017 23:46
Copy link
Contributor

Choose a reason for hiding this comment

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

noAction [](start = 9, length = 8)

noaction :D

Copy link
Member Author

Choose a reason for hiding this comment

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

Nice catch

Copy link
Contributor

@mcardosos mcardosos left a comment

Choose a reason for hiding this comment

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

Examples should also be updated

@mcardosos
Copy link
Contributor

@matthchr many of this changes have to do with documentation, but some other are because the swagger was not describing correctly the API, am I right?

@matthchr
Copy link
Member Author

@mcardosos - Basically yes - the Swagger was using a camelCased name because we had to in order to get well generated code. But the service actually doesn't return the text camelCase, it returns it all lowercase. BUT in all the generated languages they were case insensitive here anyway so it didn't matter.

Newtonsoft 10 came out and changed that in C# (now sometimes it IS case sensitive), so we needed to update the spec to more accurately match the behavior of the service (while still keeping the nice naming we had before by using the values extension to x-ms-enum.)

@matthchr matthchr force-pushed the feature/batch-enum-fixes branch 2 times, most recently from 9b56f85 to 8400f17 Compare November 15, 2017 17:19
@azuresdkciprbot
Copy link

Hi There,

I am the AutoRest Linter Azure bot. I am here to help. My task is to analyze the situation from the AutoRest linter perspective. Please review the below analysis result:

File: specification/batch/data-plane/readme.md
Before the PR: Warning(s): 0 Error(s): 1
After the PR: Warning(s): 0 Error(s): 1

AutoRest Linter Guidelines | AutoRest Linter Issues | Send feedback

Thanks for your co-operation.

@matthchr
Copy link
Member Author

@mcardosos I updated the samples -- take a look again?

Copy link
Contributor

Choose a reason for hiding this comment

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

terminateJob [](start = 9, length = 12)

terminatejob

Copy link
Contributor

Choose a reason for hiding this comment

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

waitingForStartTask [](start = 26, length = 19)

waitingforstarttask

Copy link
Contributor

Choose a reason for hiding this comment

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

taskCompletion [](start = 13, length = 14)

taskcompletion

@mcardosos
Copy link
Contributor

@matthchr Awesome
Thanks for updating the examples. There are just some tiny details with camel case and it should be good enough to merge :D

@matthchr matthchr force-pushed the feature/batch-enum-fixes branch from 8400f17 to cd9b7bf Compare November 20, 2017 17:51
@azuresdkciprbot
Copy link

Hi There,

I am the AutoRest Linter Azure bot. I am here to help. My task is to analyze the situation from the AutoRest linter perspective. Please review the below analysis result:

File: specification/batch/data-plane/readme.md
Before the PR: Warning(s): 0 Error(s): 1
After the PR: Warning(s): 0 Error(s): 1

AutoRest Linter Guidelines | AutoRest Linter Issues | Send feedback

Thanks for your co-operation.

@matthchr
Copy link
Member Author

Thanks @mcardosos for the good catches! I think things look okay now.

@mcardosos
Copy link
Contributor

Great!
There is a linter error in the swagger, but as it was not introduced on this PR, this PR is approved. Just mentioning this for awareness.

@mcardosos mcardosos merged commit 75ff961 into Azure:current Nov 20, 2017
@AutorestCI
Copy link

No modification for AutorestCI/azure-sdk-for-ruby

@AutorestCI
Copy link

No modification for AutorestCI/azure-sdk-for-node

@AutorestCI
Copy link

@matthchr matthchr deleted the feature/batch-enum-fixes branch November 20, 2017 19:24
sergey-shandar pushed a commit that referenced this pull request Nov 22, 2017
* Video Swagger API: update example response json to remove special invalid special characters (#2015)

* Add Video Search API Swagger

* Video Swagger API: update example response json to remove special invalid special characters

* take changes from azure-rest-spec-pr, make Microsoft.Subscription tenant level rp (#1984)

* Fix bad merge. (#2022)

* Add list apis for sql backup LTR policies & vaults (#2006)

* Add list LTR vaults & policies

* Added pageable

* Change output folder for Search SDKs (#2023)

* update output folders in readmes

* rename with bing in name

* App Model for Tumbling window trigger (#2028)

* App model for tumbling window trigger

* Addressed CR comments

* Renamed retry to count in RetryPolicy

* swagger definition for 26 RFI connectors (#2016)

* Updated OMS data plane C# namespace & output-folder (#2021)

* Update Azure Batch enum to use "values" - also some documentation updates (#2008)

* Enum fixes

* Improve DataDisks documentation

* Update NATPool port range documentation

* [Compute] Update Sku APIs (#2034)

* Initial commit of 2017-12-01 compute.json

* Changes for new API version 2017-12-01 compute.json

* Add Compute SKU APIs

* Add swagger spec for spell check API (#1997)

* Add swagger spec for spell check API

* Add Examples to spec

* Remove redundant forward slash in path. Specify array from body parameters.

* Fix oav errors

* Remove x-Bing_Apis-SDK

* Change spec to reflect what objects we want to expose in the response.

* Fix operationId name to avoid conflict with "SpellCheck" schema.

* Add X-BingApis-SDK back.

* Remove Unintentional change 

Packages.json change here was unintentionally added to this review
sergey-shandar pushed a commit that referenced this pull request Jan 11, 2018
* [Network-2017-11-01] Pull latest from current (#2039)

* Video Swagger API: update example response json to remove special invalid special characters (#2015)

* Add Video Search API Swagger

* Video Swagger API: update example response json to remove special invalid special characters

* take changes from azure-rest-spec-pr, make Microsoft.Subscription tenant level rp (#1984)

* Fix bad merge. (#2022)

* Add list apis for sql backup LTR policies & vaults (#2006)

* Add list LTR vaults & policies

* Added pageable

* Change output folder for Search SDKs (#2023)

* update output folders in readmes

* rename with bing in name

* App Model for Tumbling window trigger (#2028)

* App model for tumbling window trigger

* Addressed CR comments

* Renamed retry to count in RetryPolicy

* swagger definition for 26 RFI connectors (#2016)

* Updated OMS data plane C# namespace & output-folder (#2021)

* Update Azure Batch enum to use "values" - also some documentation updates (#2008)

* Enum fixes

* Improve DataDisks documentation

* Update NATPool port range documentation

* [Compute] Update Sku APIs (#2034)

* Initial commit of 2017-12-01 compute.json

* Changes for new API version 2017-12-01 compute.json

* Add Compute SKU APIs

* Add swagger spec for spell check API (#1997)

* Add swagger spec for spell check API

* Add Examples to spec

* Remove redundant forward slash in path. Specify array from body parameters.

* Fix oav errors

* Remove x-Bing_Apis-SDK

* Change spec to reflect what objects we want to expose in the response.

* Fix operationId name to avoid conflict with "SpellCheck" schema.

* Add X-BingApis-SDK back.

* Remove Unintentional change 

Packages.json change here was unintentionally added to this review

* Add 2017-11-01 folder in microsoft.network (#2019)

* Video Swagger API: update example response json to remove special invalid special characters (#2015)

* Add Video Search API Swagger

* Video Swagger API: update example response json to remove special invalid special characters

* take changes from azure-rest-spec-pr, make Microsoft.Subscription tenant level rp (#1984)

* Fix bad merge. (#2022)

* Add 2017-11-01 folder in microsoft.network

* Add Ip Tags into Swagger (#2145)

* add iptags for publicip in 2017-11-01

* read me changes for 2017-11-01

* Add Python conf for Network 2017-11-01

* Complete Python conf for 2017-11-01

* Updated LB InboundNatPool API (#2150)

* Revert "[Network-2017-11-01] Pull latest from current (#2039)"

This reverts commit a0257f9.

* Moving to stable folder to account for refactoring changes in dec 2017
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.

6 participants