Skip to content

Add some content to Swagger from docs.msft.com#1549

Merged
dsgouda merged 1 commit intoAzure:currentfrom
matthchr:feature/batch-swagger-docs
Aug 17, 2017
Merged

Add some content to Swagger from docs.msft.com#1549
dsgouda merged 1 commit intoAzure:currentfrom
matthchr:feature/batch-swagger-docs

Conversation

@matthchr
Copy link
Copy Markdown
Member

@matthchr matthchr commented Aug 16, 2017

  • This is in preparation for using the Swagger specification as the documentation
    authority that generates docs.msft.com documentation.

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
Copy Markdown
Member Author

Swagger folks: Is there any reason I can't add tags or reviewers to this PR...?

@matthchr
Copy link
Copy Markdown
Member Author

@itowlson @darylmsft @tamram - Please review

@matthchr matthchr changed the title Add some content to Swagger from docs.msft.com [REVIEW BUT DONT MERGE YET] Add some content to Swagger from docs.msft.com Aug 16, 2017
Copy link
Copy Markdown
Contributor

@dsgouda dsgouda left a comment

Choose a reason for hiding this comment

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

Look like non-breaking changes. LGTM apart from a minor suggestion, will approve once ready to merge.

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

@dsgouda
Copy link
Copy Markdown
Contributor

dsgouda commented Aug 16, 2017

@erickson-doug since this is a doc related change, PTAL

@dsgouda
Copy link
Copy Markdown
Contributor

dsgouda commented Aug 16, 2017

@matthchr are you waiting on reviews from others before merging?

@matthchr
Copy link
Copy Markdown
Member Author

@dsgouda Yes, please wait for some of my colleagues to review before merging. I will let you know when we're 100% ready to merge.

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

If not specified [](start = 200, length = 16)

If what is not specified? Suggest something like: "If you do not specify a $filter clause including a startTime or endTime, these filters default to the start and end time of the last aggregation interval; that is..."

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

reccomended [](start = 718, length = 11)

typo 'recommended'

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

remove any successfully added tasks [](start = 778, length = 35)

this is confusingly phrased. I think we are saying "In a retry, it is most efficient to resubmit only tasks that failed to add, and to omit tasks that were successfully added on the first attempt." Or something like that?

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

Yea, I like your language there, used it.

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

This [](start = 351, length = 4)

Suggest tweaking this to "Reactivation will fail..." as the antecedent of 'this' is unclear

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Or "this operation" would also work


In reply to: 133617601 [](ancestors = 133617601)

Copy link
Copy Markdown
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
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

this [](start = 481, length = 4)

"reactivation", or "it" if you changed the previous sentence to refer to "reactivation"

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

GetRemoteDesktop [](start = 298, length = 16)

Probably ought to change this to the MSDNified name e.g. "the 'connect to a compute node using Remote Desktop Protocol' API" or whatever they call it

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

The MSDNified name will go away though in the new world order, so I think it's better to use a name that is more Swagger-like since I think that's going to make it easier to discover across the clients/generated markdown.

Ideally this would be some sort of "link"

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

cloud service configuration [](start = 175, length = 27)

"cloudServiceConfiguration" or "created in a cloud service configuration" (that is, if you are going to separate the words then don't say you're referring to the property)

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

GetRemoteLoginSettings [](start = 277, length = 22)

is there a MSDN name for this?

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

There is, but again same as above it will go away when we start generating this content from Swagger I think.

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

tasks [](start = 60, length = 5)

task's with an apostrophe surely?

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

tasks [](start = 98, length = 5)

ditto

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

S [](start = 48, length = 1)

casing is inconsistent - for job action you did not capitalise enum value descriptions

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

disable - disable the job. This is equivalent to calling the disable job API, with a disableTasks value of requeue. terminate [](start = 61, length = 125)

maybe there is no better option with the present d.m.c/AutoRest situation but having a sentence after one enum value and then going straight into the name of the next is really hard to read. I don't know if embedded newlines or any other formatting will save us - if not perhaps we need something like:

"none - ....; disable - disables the job; terminate - terminates the job. The disable option is equivalent to... In the terminate option, the terminateReason..."

Still gets messy though. We need them to fix this paragraphing issue!

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

I added newlines here as per @dsgouda's feedback

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

If applied [](start = 422, length = 10)

minor: perhaps "If the job option is applied to a job schedule..."

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Specifies whether [](start = 20, length = 17)

Is 'specifies' safe here? I thought we preferred phrases that could be prefixed with "Gets or sets", e.g. "Whether...", but perhaps that's no longer needed?

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

It is not safe here, fixed.

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Specifies [](start = 20, length = 9)

Same question about 'specifies'

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

It is common to use a GUID for the id. [](start = 167, length = 38)

remove this

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Specifies [](start = 20, length = 9)

same comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

It is common to use a GUID for the id. [](start = 167, length = 38)

remove this

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

id [](start = 287, length = 2)

probably needs to be capitalised ID

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

ids that can be parsed as integers. For example, a task can depend on task ids 9 to 12, but cannot depend on task ids [](start = 130, length = 117)

capitalise "IDs" now? (x3)

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

"mytask" to "yourtask" [](start = 248, length = 26)

for the future, perhaps, but this is kind of inherent in the type spec. I think we reworked this in the C# docs to illustrate how an integer range mapped to stringy IDs - perhaps we should review and decide which we prefer. Not needed for this port anyway

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

Yeah, fair point

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Values [](start = 26, length = 6)

the order of these seems pretty random. Might be good to try to organise them a bit more given the size of the enum (though I'm not sure whether there is an order that people would find predictable, other than plain alphabetical which may not be all that helpful)

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

They are described in the order they are listed in the enum in the spec (so from 0 to N). I think that order makes the most sense, and I can't change that order because it's technically a breaking change.

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Running tasks [](start = 1217, length = 13)

this becomes confusing especially with the flattening of the paragraphs. Perhaps "Tasks which were running on the node when it was pre-empted..."?

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

[](start = 830, length = 1)

needs a dash

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

Eyes like a hawk

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Note [](start = 26, length = 4)

this was in a title somewhere else - I think it is probably better in the description

Copy link
Copy Markdown
Member Author

@matthchr matthchr Aug 17, 2017

Choose a reason for hiding this comment

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

I can't find any places where this is in a title

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

delete [](start = 667, length = 6)

operation?

Copy link
Copy Markdown
Contributor

@itowlson itowlson left a comment

Choose a reason for hiding this comment

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

:shipit:

@matthchr matthchr force-pushed the feature/batch-swagger-docs branch from 2fec71b to 069d9ba Compare August 17, 2017 17:21
@matthchr matthchr changed the title [REVIEW BUT DONT MERGE YET] Add some content to Swagger from docs.msft.com Add some content to Swagger from docs.msft.com Aug 17, 2017
@matthchr
Copy link
Copy Markdown
Member Author

@dsgouda If the linter looks good you can feel free to merge this now

  - This is in preparation for using the Swagger specification as the documentation
    authority that generates docs.msft.com documentation.
@matthchr matthchr force-pushed the feature/batch-swagger-docs branch from 069d9ba to 8e10c31 Compare August 17, 2017 17:24
@azuresdkciprbot
Copy link
Copy Markdown

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): 1 Error(s): 6
After the PR: Warning(s): 1 Error(s): 6

AutoRest Linter Guidelines | AutoRest Linter Issues

Send feedback and make AutoRest Linter Azure Bot smarter day by day!

Thanks for your co-operation.

1 similar comment
@azuresdkciprbot
Copy link
Copy Markdown

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): 1 Error(s): 6
After the PR: Warning(s): 1 Error(s): 6

AutoRest Linter Guidelines | AutoRest Linter Issues

Send feedback and make AutoRest Linter Azure Bot smarter day by day!

Thanks for your co-operation.

Copy link
Copy Markdown
Contributor

@dsgouda dsgouda left a comment

Choose a reason for hiding this comment

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

LGTM

@dsgouda dsgouda merged commit b955458 into Azure:current Aug 17, 2017
@AutorestCI
Copy link
Copy Markdown

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

@AutorestCI
Copy link
Copy Markdown

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

@AutorestCI
Copy link
Copy Markdown

@matthchr matthchr deleted the feature/batch-swagger-docs branch August 17, 2017 21:04
schaabs pushed a commit to schaabs/azure-rest-api-specs that referenced this pull request Aug 18, 2017
olydis pushed a commit that referenced this pull request Aug 18, 2017
* Revert "[Event Grid] Event grid C# code generation section. (#1561)"

This reverts commit 461a494.

* Revert "Bug Fix when linter runs on json file without being included in tag (#1560)"

This reverts commit d6bc117.

* Revert "Remove databaseName uri param from Databases_Import op. (#1558)"

This reverts commit 69d0a5d.

* Revert "Added 200 response for event grid event subscription delete operation. (#1555)"

This reverts commit ad55af7.

* Revert "Add some content to Swagger from docs.msft.com (#1549)"

This reverts commit b955458.

* Revert "[Azure Analysis Services] Add gateway info to version 0714 and version 0801 (#1526)"

This reverts commit bf407b7.

* Revert "Copied service endpoints specs to 2017-08-01 (#1548)"

This reverts commit 64c905a.

* Revert "Removed `x-ms-pageable` from Network Interface's `GetEffectiveRouteTable` and `ListEffectiveNetworkSecurityGroups` methods (#1547)"

This reverts commit da940d5.

* Revert "Added service endpoints APIs (#1533)"

This reverts commit f69dc64.

* Revert "Added support for ECC to Key Vault (#1538)"

This reverts commit 4a9084f.
mccleanp pushed a commit that referenced this pull request Mar 23, 2022
change the folder name to 2020-06-10-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.

6 participants