This repository was archived by the owner on Jun 5, 2025. It is now read-only.
Refactor 'windows package manager' integration with recovery logic#2089
Merged
AmelBawa-msft merged 37 commits intomainfrom Feb 4, 2024
Merged
Refactor 'windows package manager' integration with recovery logic#2089AmelBawa-msft merged 37 commits intomainfrom
AmelBawa-msft merged 37 commits intomainfrom
Conversation
3 tasks
3 tasks
AmelBawa-msft
commented
Jan 18, 2024
AmelBawa-msft
commented
Jan 18, 2024
tools/SetupFlow/DevHome.SetupFlow/Services/WinGet/WinGetPackageInstaller.cs
Show resolved
Hide resolved
AmelBawa-msft
commented
Jan 18, 2024
tools/SetupFlow/DevHome.SetupFlow/Services/WinGet/WinGetCatalogConnector.cs
Show resolved
Hide resolved
manodasanW
reviewed
Jan 31, 2024
tools/SetupFlow/DevHome.SetupFlow/Services/WinGet/WinGetCatalogConnector.cs
Show resolved
Hide resolved
manodasanW
reviewed
Jan 31, 2024
AmelBawa-msft
commented
Jan 31, 2024
tools/SetupFlow/DevHome.SetupFlow/Services/WinGet/WinGetCatalogConnector.cs
Outdated
Show resolved
Hide resolved
krschau
approved these changes
Feb 2, 2024
manodasanW
approved these changes
Feb 3, 2024
This was referenced Jul 6, 2024
Closed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary of the pull request
Services dependency graph
WindowsPackageManagerdepends on four main services:WinGetOperationshandles the core functionality of the WPM, such as installing, searching, and getting packagesWinGetCatalogConnectorconnects the WPM to different catalogs of applicationsWinGetDeploymenthandles deployment functionality forAppInstallersuch as registering and checking for store updatesWinGetProtocolParserparses the protocol used to communicate winget packages using URIs. E.g.x-ms-winget://winget/Microsoft.VisualStudio.2022.CommunityWinGetRecoveryhandles the recovery scenarios in case of failures or interruptions during the operations.WinGetPackageCachecaches packages loaded from catalogs to optimize subsequent requests for already loaded packages.WinGetOperationsdepends on three operation services:WinGetInstallOperationinstalls a package from a given source (with recovery)WinGetSearchOperationsearch for a package across all sources using various fields (with recovery)WinGetGetPackageOperationgets a package from a specific source by id (with recovery)WinGetPackageInstallerinstalls a package by calling WinGet APIWinGetPackageFinderfinds a package that matches provided criteria by calling WinGet APIgraph TB; %%{init:{'flowchart':{"defaultRenderer": "elk"}}}%% WPM[WindowsPackageManager] WinGetOperations[WinGetOperations] WinGetDep[WinGetDeployment] WinGetCC[WinGetCatalogConnector] WinGetPP[WinGetProtocolParser] WinGetPC[WinGetPackageCache] WinGetIO[WinGetInstallOperation] WinGetSO[WinGetSearchOperation] WinGetGPO[WinGetGetPackageOperation] WinGetPI[WinGetPackageInstaller] WinGetRecovery[WinGetRecovery] WinGetPF[WinGetPackageFinder] WPM --> WinGetOperations WPM --> WinGetCC WPM --> WinGetDep WPM --> WinGetPP WinGetOperations --> WinGetIO WinGetOperations --> WinGetSO WinGetOperations --> WinGetGPO WinGetCC --> WinGetPC WinGetPP --> WinGetCC WinGetIO --> WinGetPP WinGetIO --> WinGetCC WinGetIO --> WinGetPI WinGetIO --> WinGetRecovery WinGetPI --> WinGetPF WinGetRecovery --> WinGetCC WinGetSO --> WinGetCC WinGetSO --> WinGetPF WinGetSO --> WinGetRecovery WinGetGPO --> WinGetPC WinGetGPO --> WinGetPP WinGetGPO --> WinGetPF WinGetGPO --> WinGetRecoveryReferences and relevant issues
Detailed description of the pull request / Additional comments
Validation steps performed
PR checklist