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

Cherry pick 3711 to 1.6 #3712

Closed
wants to merge 16 commits into from
Closed

Cherry pick 3711 to 1.6 #3712

wants to merge 16 commits into from

Conversation

JohnMcPMS
Copy link
Member

@JohnMcPMS JohnMcPMS commented Sep 29, 2023

#3711

Microsoft Reviewers: Open in CodeFlow

ryfu-msft and others added 16 commits September 13, 2023 16:07
Add tests for Microsoft.WinGet.Configuration cmdlets.
Make parameters positional parameters
Return an object with the Apply results for Invoke-WinGetConfiguration and Complete-WinGetConfiguration using Write-Error or returning the same PSConfigurationSet object.
…ration (microsoft#3614)

Test-WinGetConfiguration to test a configuration. Equivalent of winget configure test
Confirm-WinGetConfiguration to validate a configuration. Equivalent of winget configure validate except it just calls the configuration APIs without the extra validation winget does.
Support cancellation via CTRL-C for blocking cmdlets and Stop-WinGetConfiguration for configuration stated with Start-WinGetConfiguration
Add tests for Test-WinGetConfiguration and Confirm-WinGetConfiguration cmdlets.
Add more tests for Open-WinGetConfiguration
Cancellation verified manually
Make resource name check case insensitive.
Add tests

Address microsoft#3628
This change refactors the index package updating to enable an optimization; using an HTTP header to determine the available version rather than reading the package contents remotely.  If the header is present, containing a valid package version string, it will be used as the available version.  If not, the existing package content examination will be used.

The refactoring was required to do all package inspection steps after downloading the package, rather than before.  This enables the single version value to be sufficient until we decide to update, and then in the very unlikely event of the package not meeting criteria we will delete it after having downloaded it.
…invoked from explorer (microsoft#3665) (microsoft#3684)

- Add telemetry event for PackageManager class creation
- Delay source update time to 7 days by default when invoked from explorer
- Also fixes Source agreements related crash found when doing the above work

Co-authored-by: yao-msft <[email protected]>
* Fix localized strings output (microsoft#3673)

* Take only line endings

---------

Co-authored-by: Muhammad Danish <[email protected]>
…icrosoft#3703) (microsoft#3710)

This change adds a flag that lets the caller specify that they are only interested in the installed tracking data, not the available packages.  With it set, one can correlate to the catalog via the tracking database without ever needing to access the remote source information.
@JohnMcPMS JohnMcPMS requested a review from a team as a code owner September 29, 2023 20:30
@JohnMcPMS JohnMcPMS closed this Sep 29, 2023
@JohnMcPMS JohnMcPMS deleted the cp-3711 branch September 29, 2023 20:37
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