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

Refactor solution imports to provide PS native progress indication #481

Open
wants to merge 7 commits into
base: master
Choose a base branch
from

Conversation

matwilko
Copy link
Contributor

Fixes #480.

I should note that this still needs some testing, and I'll be using my org as guinea pigs over the next week or so to work out any kinks, but wanted to get this in front of you upfront for any comments on approach/obvious problems.

@seanmcne
Copy link
Owner

Awesome! Please let me know how this pans out, both in interactive testing but if you get the chance to also experiment with headless operations (this is used quite a bit via AzureDevOps for build/release pipelines). Thanks again for your effort & contribution! Shoot me a quick teams message or heads up when you think you've been through a bit more testing and verification.

@matwilko
Copy link
Contributor Author

Good point, I was optimizing for our developer inner-loop here - I'll add a helper method to output both Write-Progress and Write-Verbose so headless gets equivalent feedback :)

@matwilko
Copy link
Contributor Author

matwilko commented Aug 3, 2021

Apologies that this is languishing, I've had some trouble getting this merged into use internally (yay priorities!) so don't have a wider audience of testers hammering this just yet. Will let you know when it's been battle tested a little :)

Matt Wilkinson added 2 commits October 17, 2021 23:39
…Import-CrmSolution, and use $conn.ImportSolutionToCrmAsync call to get both async operation ID and import ID, rather than construct an async operation manually and not get the import ID
@matwilko
Copy link
Contributor Author

So this has now been hammered a bit internally, and after fixing some small bugs around checking completion status, this is now working well on a daily basis :)

As requested, I've added Write-Verbose alongside the Write-Progress's to write out progress in headless scenarios.

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.

Provide PS native progress indication for solution imports
2 participants