PowerShell / PowerShell/PSResourceGet

Find-PSResource returns all results at once instead of being paginated or as processed

Open
#656 2 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Area-Find Issue-Performance
Dominant language
C#
Stars
576
Forks
114
Avg merge
1d 2h
Merged PRs (30d)
7

Description

Prerequisites
  • Write a descriptive title.
  • Make sure you are able to repro it on the latest released version
  • Search the existing issues.
Steps to reproduce

If Find-PSResource returns a lot of results and takes a while to complete, the results are not output in real time but are blocked until all results are returned. PowerShell best practices are to output results as processed in order to not block the pipeline.

Expected behavior
Objects are output as returned from the web service.
Actual behavior
All objects have to be returned from the web service before being output.
Error details

No response

Environment data
ModuleType Version    PreRelease Name                                ExportedCommands
---------- -------    ---------- ----                                ----------------
Binary     3.0.12     beta       PowerShellGet                       {Find-PSResource, Get-PSResource, Get-PSResourceR…

Name                           Value
----                           -----
PSVersion                      7.2.3
PSEdition                      Core
GitCommitId                    7.2.3
OS                             Microsoft Windows 10.0.19043
Platform                       Win32NT
PSCompatibleVersions           {1.0, 2.0, 3.0, 4.0…}
PSRemotingProtocolVersion      2.3
SerializationVersion           1.1.0.1
WSManStackVersion              3.0
Visuals

No response

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 reproducing the behavior with Find-PSResource against a query that returns many results, and observe when objects reach the pipeline. Trace the Find-PSResource entry point and its web-service result handling. Done means results are emitted as they are processed rather than being held until the full response is available.

Written by the indexing model from the issue text.

Assessment

Tech stack
csharp, powershell
Domain
cli, tooling
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.