microsoft / microsoft/winget-cli

Find multiple packages from the `msstore` catalog in a single query using the COM API

Open
#3,613 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Issue-Feature
Dominant language
C++
Stars
26.4k
Forks
1.8k
Avg merge
1d 11h
Merged PRs (30d)
15

Description

Description of the new feature / enhancement

Today we can request multiple packages from the predefined winget catalog in a single query (using a selector with multiple filters: id={id}). The same query is not supported for the predefined msstore catalog. Instead, only one PID can be fetched at a time.

var options = CreateFindPackagesOptions();
foreach (var packageId in packageIdSet)
{
    var filter = CreatePackageMatchFilter();
    filter.Field = PackageMatchField.Id;
    filter.Option = PackageFieldMatchOption.Equals;
    filter.Value = packageId;
    options.Selectors.Add(filter);
}

// var catalog = 'winget'   => Allows finding multiple packages in a single query
// var catalog = 'msstore'  => Only one package will be fetched
var findResult = await catalog.FindPackagesAsync(options);
Proposed technical implementation details

From the COM API, add support for bulk fetching packages/applications from the msstore catalog

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by tracing the COM API implementation of Catalog.FindPackagesAsync and how selector filters are handled for the predefined msstore catalog. Compare that path with the winget catalog behavior shown in the issue. Done means multiple ID selectors return all matching msstore packages in one query, with the existing single-package behavior preserved.

Written by the indexing model from the issue text.

Assessment

Tech stack
cpp
Domain
api
Issue type
Feature
Difficulty
5/5
Estimated time
Over a week
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
30/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.