Skip to content

Conversation

@panchagnula
Copy link
Contributor

@panchagnula panchagnula commented Mar 26, 2019


This checklist is used to make sure that common guidelines for a pull request are followed.

  • The PR has modified HISTORY.rst describing any customer-facing, functional changes. Note that this does not include changes only to help content. (see Modifying change log).

  • I adhere to the Command Guidelines.

Copy link
Member

Choose a reason for hiding this comment

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

This should use the CLI's built-in deprecation mechanisms.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

@tjprescott can you point me to an example of this when deprecating a property - the examples i saw were all where the command was being deprecated. thank you!

Copy link
Contributor

Choose a reason for hiding this comment

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

Copy link
Contributor Author

Choose a reason for hiding this comment

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

thank you.

Copy link
Member

@tjprescott tjprescott left a comment

Choose a reason for hiding this comment

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

Please use the built-in deprecation mechanism in the CLI.

@panchagnula
Copy link
Contributor Author

Also @tjprescott i see this error in the build -> "azure-cli-appservice 0.2.17 has requirement azure-mgmt-web==0.41.0, but you'll have azure-mgmt-web 0.40.0 which is incompatible." though i updated the setup.py as a part of my PR. I don't understand this error?

@yugangw-msft
Copy link
Contributor

@panchagnula, the reason is the botservice also references the azure-mgmt-web, so do update their command module as well

@panchagnula panchagnula force-pushed the sisirap-newSDKWebappApps branch from c8c2c15 to 3e6d77d Compare April 3, 2019 06:18
Copy link
Member

@tjprescott tjprescott left a comment

Choose a reason for hiding this comment

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

LGTM.

@tjprescott
Copy link
Member

@yugangw-msft look good to you?

Copy link
Contributor

@yugangw-msft yugangw-msft left a comment

Choose a reason for hiding this comment

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

One question to clarify, after that this PR can be merged

@@ -1186,10 +1186,6 @@ def test_webapp_assign_system_identity(self, resource_group):
self.cmd('webapp identity show -g {} -n {}'.format(resource_group, webapp_name), checks=[
self.check('principalId', result['principalId'])
])
self.cmd('role assignment list -g {} --assignee {}'.format(resource_group, result['principalId']), checks=[
Copy link
Contributor

Choose a reason for hiding this comment

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

why remove 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.

Two reasons

  1. the check did not seem to add any value to this specific test for MSI assignment for webapps
  2. This call for role assignment list is returning an empty object -> even without my changes , ex. if i run this on PROD CLI
    image

I was trying not to take dependency on non webapp calls here - also honestly i don't understand the role assignment call & what the expected value should be here. If you believe this is valuable for the test i can create a bug to investigate & add this back, but i don't think this is blocking this PR. what do you think?

Copy link
Contributor

@yugangw-msft yugangw-msft Apr 3, 2019

Choose a reason for hiding this comment

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

We have a big regression here, if role assignment list returns nothing. Note, 'webapp identity assign is supposed to create such a role assignment for you. Please do cross check here. W/o role assignment, the identity is pretty much useless.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Cross checked & if this is a regression i will start an investigation with the backend folks on this, but this is the behavior i am seeing on PROD as well. Can we keep this investigation orthogonal to the PR?

Copy link
Contributor

@yugangw-msft yugangw-msft Apr 3, 2019

Choose a reason for hiding this comment

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

// CC: @praries880 who is working on the Java SDK support on this. Please post update here. If turns on a service end issue, please share with us the ICM ticket

@yugangw-msft yugangw-msft merged commit 6f60d9c into Azure:dev Apr 3, 2019
@panchagnula panchagnula deleted the sisirap-newSDKWebappApps branch April 6, 2019 01:57
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.

4 participants