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

Provide PS native progress indication for solution imports #480

Open
matwilko opened this issue Jul 12, 2021 · 4 comments · May be fixed by #481
Open

Provide PS native progress indication for solution imports #480

matwilko opened this issue Jul 12, 2021 · 4 comments · May be fixed by #481

Comments

@matwilko
Copy link
Contributor

Import-CrmSolution/Import-CrmSolutionAsync currently give no feedback to the user unless they specifically use -Verbose, and Import-CrmSolutionAsync doesn't give any progress indication even when using -Verbose.

Powershell has a native progress indication mechanism, Write-Progress, which can be leveraged to provide the user feedback on solution import progress without filling up their prompt with progress messages.

Import-CrmSolutionAsync could also leverage the same logic as Import-CrmSolution to poll the import for progress if $conn.ImportSolutionToCrmAsync is used rather than manually generating an asyncoperation and submitting. ImportSolutionToCrmAsync outputs both the asyncoperation and importjob ID's, allowing us to poll the status of both to provide useful progress feedback to the user.

@DrPye
Copy link

DrPye commented Sep 19, 2023

I see there's a PR currently for this (#481) , is it going to get accepted in the near future or should I just add the changes myself for now?

@seanmcne
Copy link
Owner

I was hoping to hear back on the testing but it looks like it fell off the radar. Would you be willing to test the code used in the PR?

@DrPye
Copy link

DrPye commented Sep 20, 2023

I don't mind testing it out, please bear with me end of the month is hectic but I will update the PR with my findings when I'm done👍

@seanmcne
Copy link
Owner

Much appreciated - thanks!

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