-
Notifications
You must be signed in to change notification settings - Fork 1.5k
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
Print the upgrade table during upgrade --all
#1866
Conversation
/azp run |
Azure Pipelines successfully started running 1 pipeline(s). |
|
nit: this could now be hasPackageAgreements |= true; Refers to: src/AppInstallerCLICore/Workflows/InstallFlow.cpp:211 in 9111a03. [](commit_id = 9111a03, deletion_comment = False) |
But since this manifest is coming from the context data, not being retrieved from a remote location, it isn't really a performance problem. |
I agree. And actually we were already doing the same check several lines below. Just trying to clarify where agreements are being used. |
@JohnMcPMS Let me know which way you want to go on the table and I can make the adjustments. (I could go either way). |
/azp run |
Azure Pipelines successfully started running 1 pipeline(s). |
I don't feel strongly about it really. It seems like the only strong opinion is to keep it, so I think at this point it is winning. The good thing is this is early in 1.3, so we can get feedback and update if needed, |
@JohnMcPMS thanks for letting the table through (on the basis you mention). And @jedieaston thanks for the coding! |
I know the PowerShell cmdlets are still super early. @jedieaston have you had a chance to see if this is breaking for anything that was hacked together there? I think the table output might be problematic for the way we're calling upgrade today. |
It looks like the |
Resolves #1858.
This PR changes the
upgrade --all
flow to print the table of available upgrades before running the upgrades, giving the user a more friendly list of upgrades (as opposed to several lines ofWorkflow::ReportManifestIdentityWithVersion
).I had to make a change to
EnsurePackageAgreementsAcceptanceForMultipleInstallers
, namely, that it now gets the manifest and checks to see if there are any agreements before printing anything.This is less efficient if there is an agreement, but since most packages don't have agreements right now, it shouldn't (on average) change performance.(Edit: this doesn't change performance really at all, see below).I reused the upgrade table from
winget upgrade
for this too, if a different appearance would be better then I can make a new table. Speaking of appearance, I know that nobody from MS commented on that ticket, so if anyone thinks it is better the other way then I can close this.Tested: manually.
Microsoft Reviewers: Open in CodeFlow