Skip to content

ManagementGroups API update (2017-11-01-preview)#2094

Merged
jhendrixMSFT merged 10 commits intoAzure:masterfrom
grzegorzzygmunt:current
Jan 25, 2018
Merged

ManagementGroups API update (2017-11-01-preview)#2094
jhendrixMSFT merged 10 commits intoAzure:masterfrom
grzegorzzygmunt:current

Conversation

@grzegorzzygmunt
Copy link
Contributor

@grzegorzzygmunt grzegorzzygmunt commented Dec 5, 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

"tags": [
"ManagementGroups"
],
"operationId": "ManagementGroups_Create",
Copy link
Member

Choose a reason for hiding this comment

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

For methods like this the convention is to name them CreateOrUpdate.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Fixed.

@jhendrixMSFT jhendrixMSFT added the WaitForARMFeedback <valid label in PR review process> add this label when ARM review is required label Dec 6, 2017
"$ref": "#/parameters/ApiVersionParameter"
}
],
"responses": {
Copy link
Contributor

Choose a reason for hiding this comment

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

response body missing

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Added

}
}
},
"/providers/Microsoft.Management/managementGroups/{groupId}/subscriptions/{subscriptionId}": {
Copy link
Contributor

Choose a reason for hiding this comment

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

Just trying to remember what we discussed - did we say we wont expose GET API through this path?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Added GET API to make things consistent.

@jhendrixMSFT
Copy link
Member

Ping @grzegorzzygmunt, have you had a chance to review @ravbhatnagar feedback?

@jhendrixMSFT
Copy link
Member

Latest iteration has some linter errors, can you please take a look? https://travis-ci.org/Azure/azure-rest-api-specs/jobs/315603525

}
}
},
"ManagementGroupChildInfo": {
Copy link
Contributor

Choose a reason for hiding this comment

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

Please add id, name and type top level properties for this.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Removing GET for now to match private preview API release. GET for the subscription under management group will be added in the next version of the API.

Copy link
Member

Choose a reason for hiding this comment

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

@ravbhatnagar Mind confirming whether or not this is sufficient?

@ravbhatnagar
Copy link
Contributor

@jhendrixMSFT - good to merge after the above issue raised by me has been fixed.

@marstr marstr changed the base branch from current to master December 28, 2017 17:58
@marstr
Copy link
Member

marstr commented Jan 16, 2018

Looking for this to be reassigned due to the load of PRs I'm taking on in regards to the December refactoring.

@jhendrixMSFT
Copy link
Member

@grzegorzzygmunt Looks like the feedback from @ravbhatnagar hasn't been addressed yet.

@ravbhatnagar
Copy link
Contributor

This looks good. Please confirm with @grzegorzzygmunt if this is the current shape of the APIs or have there been any changes. From talking with some folks on the Management groups team, there may have been some changes. Good to merge if we get confirmation from @grzegorzzygmunt

@ravbhatnagar ravbhatnagar added ARMSignedOff <valid label in PR review process>add this label when ARM approve updates after review and removed WaitForARMFeedback <valid label in PR review process> add this label when ARM review is required labels Jan 18, 2018
@grzegorzzygmunt
Copy link
Contributor Author

grzegorzzygmunt commented Jan 18, 2018 via email

@jhendrixMSFT
Copy link
Member

@grzegorzzygmunt I think the only remaining thing is to update the readme, or was that intentionally omitted?

@jhendrixMSFT
Copy link
Member

Ping @grzegorzzygmunt do you intend to update the readme?

@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/resources/resource-manager/readme.md
Before the PR: Warning(s): 0 Error(s): 71
After the PR: Warning(s): 0 Error(s): 71

AutoRest Linter Guidelines | AutoRest Linter Issues | Send feedback

Thanks for your co-operation.

@jhendrixMSFT
Copy link
Member

It appears that there are two copies of management.json.

  • specification/resources/resource-manager/Microsoft.Management/2017-11-01-preview/management.json
  • specification/resources/resource-manager/Microsoft.Management/preview/2017-11-01-preview/management.json
    With the new directory structure all preview swaggers should be in a preview directory, so I think the first one should be removed.

@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/resources/resource-manager/readme.md
Before the PR: Warning(s): 0 Error(s): 71
After the PR: Warning(s): 0 Error(s): 71

AutoRest Linter Guidelines | AutoRest Linter Issues | Send feedback

Thanks for your co-operation.

@jhendrixMSFT
Copy link
Member

@amarzavery @mcardosos I'm unsure how to handle this model validation error. It looks related to issue Azure/oav#155 which has since been closed (fixed?). Are we supposed to add x-nullable: true to the swagger?

@mcardosos
Copy link
Contributor

I tried adding x-nullable: true to swagger and that didn't work, also debugged a little bit. The issue is in OAV.

@jhendrixMSFT
Copy link
Member

@mcardosos thanks for investigating, I've opened issue Azure/oav#198 to track it.

@jhendrixMSFT jhendrixMSFT merged commit 0e08062 into Azure:master Jan 25, 2018
@AutorestCI
Copy link

Was unable to find SDK Azure/azure-sdk-for-python PR for this closed PR.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

ARMSignedOff <valid label in PR review process>add this label when ARM approve updates after review

Projects

None yet

Development

Successfully merging this pull request may close these issues.

8 participants