Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[ACR] Updates for new RP data models #1198

Merged
merged 2 commits into from
Nov 1, 2016
Merged

Conversation

DavidObando
Copy link
Member

  1. Updated acr client to support adding/switching environment using cloud/context command modules.
  2. Updated repository return value to support table format.
  3. Updated SDK.
  4. Changed storage account update as part of "az acr update" command. Removed storage subgroup.
  5. Removed client side validation on registry name and storage account. Added a separate "az acr check-name" command to check name availability.
  6. Updated format to match new models.
  7. Changed "az acr list" command from ARM list to RP list.
  8. Added regenerate admin user credental command.

djyou added 2 commits October 27, 2016 16:50
1. Updated acr client to support adding/switching environment using
cloud/context command modules.
2. Updated repository return value to support table format.
1. Updated SDK.
2. Changed storage account update as part of "az acr update" command.
Removed storage subgroup.
3. Removed client side validation on registry name and storage account.
Added a separate "az acr check-name" command to check name availability.
4. Updated format to match new models.
5. Changed "az acr list" command from ARM list to RP list.
6. Added regenerate admin user credental command.
@azurecla
Copy link

azurecla commented Nov 1, 2016

Hi @DavidObando, I'm your friendly neighborhood Azure Pull Request Bot (You can call me AZPRBOT). Thanks for your contribution!


It looks like you're working at Microsoft (daobando). If you're full-time, we DON'T require a contribution license agreement.



If you are a vendor, DO please sign the electronic contribution license agreement. It will take 2 minutes and there's no faxing! https://cla.azure.com.

TTYL, AZPRBOT;

@DavidObando
Copy link
Member Author

/cc @sajayantony @sivagms

@sajayantony
Copy link
Contributor

/cc @amarzavery

@sajayantony
Copy link
Contributor

/cc @tjprescott

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.

Some minor things on consistency with other commands, but more importantly, this module has no test coverage.

https://github.com/Azure/azure-cli/blob/master/doc/recording_vcr_tests.md

@@ -86,39 +86,39 @@ Update a container registry
az acr update: Update a container registry.
Copy link
Member

Choose a reason for hiding this comment

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

For consistency with other CLI modules you may want to wrap this in a generic update (which adds the --add, --set and --remove flags). network nic update is a good example of an update command that exposes the generic parameters and convenience parameters (which are the ones you already expose).

invalidate assigned access of existing service principals.
--name -n [Required]: Name of container registry.
--disable-admin : Disable admin user.
--enable-admin : Enable admin user.
Copy link
Member

Choose a reason for hiding this comment

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

Generally in the CLI we don't use --enable and --disable flags as it leads to flag clutter and depending on the other arguments, could be separated in the argument list.

Instead, for creates we would have a single flag which triggers the non-default case (which would be, I assume, enable-admin). Then for the update, we would have an option --admin which would have the choice list ['enable', 'diasable']

Copy link
Contributor

@sajayantony sajayantony Nov 1, 2016

Choose a reason for hiding this comment

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

I've opened #1201 & #1202 to cover these 2 separately.
This PR is for the model update and if we are ok with that we would like to unblock the new RP roll out which is a part of the swagger update which we need to have today. Otherwise our schedule slips by about a week since the connect folks won't have time utilize the new models. Basically this PR was scoped only the model update as per @amarzavery's feedback and we have 2 more weeks to iron out any non-blocking CLI changes or argument collapsing.

We will send out a PR for the other 2 items once @djyou is back.
Basically the new RP cannot be consumed unless the CLI is merged, otherwise we would need folks to update their CLI from our branch.
@tjprescott - does that sound reasonable?

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

Choose a reason for hiding this comment

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

/cc @SteveLas

Copy link
Member

Choose a reason for hiding this comment

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

Yep I'm fine with that.

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

Successfully merging this pull request may close these issues.

6 participants