Skip to content

Admin Export Template Image: Add Ops, TA Cmdlet and security check for exporting template image out of ARA #2963

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

Merged
merged 10 commits into from
Sep 22, 2016

Conversation

arcadiahlyy
Copy link
Contributor

No description provided.

@azurecla
Copy link

Hi @arcadiahlyy, 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 (hele). 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;

@shahabhijeet
Copy link
Contributor

@azuresdkci test this please

@arcadiahlyy arcadiahlyy reopened this Sep 20, 2016
@azurecla
Copy link

Hi @arcadiahlyy, 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 (hele). 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;

@hovsepm
Copy link
Contributor

hovsepm commented Sep 20, 2016

@azuresdkci retest this please

@cormacpayne
Copy link
Member

@arcadiahlyy Hey Lei, would you mind pulling from dev to get the latest changes that fix the on-demand build?

@cormacpayne
Copy link
Member

@markcowl
Copy link
Member

@arcadiahlyy Please fix the shouldprocess implementation. If you cna do this early this morning, we may be able to take the change for this release, otherwise this will not be possible.

@cormacpayne
Copy link
Member

@cormacpayne
Copy link
Member

{
OperationResultWithTrackingId response = null;

if (ShouldProcess(CollectionName, "Overwrite existing template image while exporting the template image of collection"))
Copy link
Member

Choose a reason for hiding this comment

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

This is incorrect - every change should be protected by ShouldProcess. If there is a special condition that happens on some Exports that could result in an overwrite, if that condition exists, you should protect the change with Force | ShoudlContinue

It is not appropriate to make a processing decision that requires a user prompt, or in this case, a processing decision that happens based on the user's ConfirmationPreference setting

{
OperationResultWithTrackingId response = null;

if (ShouldProcess(CollectionName, "Overwrite existing user disks while exporting user disks of collection"))
Copy link
Member

Choose a reason for hiding this comment

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

Same comment as above

@markcowl
Copy link
Member

LGTM once the build passes

@cormacpayne cormacpayne merged commit cecc059 into Azure:dev Sep 22, 2016
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