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

regression: sfdx package1 version list output only contains first 2000 entries in most recent versions #2073

Closed
OscarScholten opened this issue Apr 17, 2023 · 6 comments
Labels
area:packaging bug Issue or pull request that identifies or fixes a bug owned by another team The Salesforce CLI team does not own this work but will pass on the information to the correct team.

Comments

@OscarScholten
Copy link

Summary

sfdx package1 version list output only contains first 2000 entries when you use a recent version of the CLI, older versions return more entries. Looks like the new implementation does not page over multiple pages if they are available.

Steps To Reproduce:

It's easy to reproduce using our release org, happy to provide login access if necessary.

Install version 7.139 of the CLI, this results in 2534 results (first two lines are the column headers)
$ sfdx force:package1:version:list -u hr2day-dev | wc
2536 18230 266559

Install version 7.191.3 of the CLI, this results in 2000 results
$ sfdx package1 version list -o hr2day-dev | wc
2002 14494 224432

Expected result

also using 7.193 and later you'd expect all results to be available

Actual result

result is clipped to the first 2000 entries

System Information

  • Which shell/terminal are you using? gitbash
@OscarScholten OscarScholten added the investigating We're actively investigating this issue label Apr 17, 2023
@github-actions
Copy link

Thank you for filing this issue. We appreciate your feedback and will review the issue as soon as possible. Remember, however, that GitHub isn't a mechanism for receiving support under any agreement or SLA. If you require immediate assistance, contact Salesforce Customer Support.

@WillieRuemmele WillieRuemmele added bug Issue or pull request that identifies or fixes a bug and removed investigating We're actively investigating this issue labels Apr 17, 2023
@git2gus
Copy link

git2gus bot commented Apr 17, 2023

This issue has been linked to a new work item: W-13047283

@OscarScholten
Copy link
Author

Hi @mshanemc - just tried version 7.200.7, but unfortunately I have to report that the number of lines printed is still the same 2000 lines as when using version 7.191. Could you reopen this issue?

Happy to help debugging

@mshanemc mshanemc reopened this May 15, 2023
@mshanemc
Copy link
Contributor

We dug in and found that the tooling API will gack if you try to query PackageVersion with an OFFSET parameter ( to try to get records after 2000). You can verify this via sf data query -t .

I'm going to mark it as owned by the Packaging team, and cases are required to help them proritize.

@mshanemc mshanemc added the owned by another team The Salesforce CLI team does not own this work but will pass on the information to the correct team. label Jul 31, 2023
@github-actions
Copy link

We have determined that the issue you reported exists in code owned by another team that uses only the official support channels. To ensure that your issue is addressed, open an official Salesforce customer support ticket with a link to this issue. We encourage anyone experiencing this issue to do the same to increase the priority. We will keep this issue open for the community to collaborate on.

@jshackell-sfdc
Copy link
Collaborator

This issue is fixed in version 2.28.6.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area:packaging bug Issue or pull request that identifies or fixes a bug owned by another team The Salesforce CLI team does not own this work but will pass on the information to the correct team.
Projects
None yet
Development

No branches or pull requests

5 participants