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

Fix the ARM cmdlet to show the progress bar for long running operation #2941

Merged
merged 4 commits into from
Sep 22, 2016

Conversation

gandhiniraj
Copy link
Contributor

No description provided.

@azurecla
Copy link

Hi @gandhiniraj, 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 (nirajg). 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;

Copy link
Contributor

@vivsriaus vivsriaus left a comment

Choose a reason for hiding this comment

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

Couple of minor nits

@@ -332,26 +332,42 @@ internal ProgressTracker(string activityName, Func<ResourceManagerRestRestClient
this.ProgressRecord = new ProgressRecord(activityId: 0, activity: activityName, statusDescription: "Starting - 0.00% completed.");
}

Copy link
Contributor

Choose a reason for hiding this comment

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

Please include ///summary

/// <summary>
/// Logs the fact that the operation has progressed.
/// </summary>
/// <param name="result">The operation result</param>
internal void UpdateProgress(TrackingOperationResult result)
internal void UpdateProgress(TrackingOperationResult result, bool isResourceCreateOrUpdate)
Copy link
Contributor

Choose a reason for hiding this comment

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

I would change isResourceCreateOrUpdate to something more generic, like isLongRunning. This is because we need the progress for not just create or update, but for other operations like resource move

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Currently we have two categories for progress bar - if its Create/Update or everything else, hence IMHO this is sufficient

@shahabhijeet
Copy link
Member

@gandhiniraj can you add missing summary.

@cormacpayne
Copy link
Member

@gandhiniraj would you mind pulling from dev to get the latest changes that fix the on-demand build?

Also, please respond to the other review comment made by @vivsriaus

@cormacpayne
Copy link
Member

@cormacpayne cormacpayne merged commit f3976b9 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.

5 participants