seanmcne / Microsoft.Xrm.Data.PowerShell

This module uses the CRM connection from Microsoft.Xrm.Tooling.CrmConnector.Powershell and provides common functions to create, delete, query, and update data as well as functions for common tasks such as publishing, and manipulating System & CRM User Settings, etc. The module should function for both Dynamics CRM Online and On-Premise environment.
201 stars 64 forks source link

Refactor solution imports to provide PS native progress indication #481

Open matwilko opened 3 years ago

matwilko commented 3 years ago

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 commented 3 years ago

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 commented 3 years ago

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 commented 2 years ago

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 :)

matwilko commented 2 years ago

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.