chocolatey / chocolatey/choco

Provide better handling for potentially filtered packages from `choco search` command

Open
#3,139 0 comments 0 reactions 0 assignees View on GitHub
Enhancement
Dominant language
C#
Stars
11.5k
Forks
960
PR merge metrics
No merged PRs in 30d

Description

### Checklist

- [X] I have verified this is the correct repository for opening this issue.
- [X] I have verified no other issues exist related to my request.

### Is Your Feature Request Related To A Problem? Please describe.

Starting vith Chocolatey CLI v2.0.0, changes have been made to the `choco search` command which means that filtering of packages using the --approved-only, --download-cache, and --not-broken options are not performed within Chocolatey CLI, rather than on the repository that is being queried. As a result, it is possible that incomplete pages of packages are returned from a command that uses these options.

### Describe The Solution. Why is it needed?

When querying a remote repository, it should be possible to continue to query the remote repositories until we know that there has been a complete page of data returned from the repository, and not miss any packages that would have been included had the filtered out packages not been included in the result instead.

### Additional Context

_No response_

### Related Issues

N/A

Contributor guide

Open the contributing guide

Research direction

Start by tracing the `choco search` command's handling of `--approved-only`, `--download-cache`, and `--not-broken`, then follow how it queries remote repositories. Done means remote queries continue until a complete page remains after CLI-side filtering, without missing qualifying packages.

Written by the indexing model from the issue text.

Assessment

Tech stack
csharp
Domain
cli
Issue type
Feature
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
45/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.