-
Notifications
You must be signed in to change notification settings - Fork 910
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
search / list - page/page-size not honored for exact search in 0.10.6 #1322
Comments
Howdy - some switches are incompatible with others. In this case, there were some fixes to I would recommend if you are using this with any scripting (the |
If I don't use -e then I get boxstarter.chocolatey listed and not chocolatey. chocolatey is just an example. The command is used in a script to list to the user the most recent versions available in case they want an earlier version. How do you suggest I list the latest 10 versions of any application? |
I'd say it is fine to use |
Maybe by default list the current version and let the user decide to see older versions, then go back and run with |
yes, that is what I do, but i need to use -a and -e and page size does not work... |
I'm not sure |
You can filter the results to first ten before you present to the user. What are you using to script this? PowerShell? |
no, cmd. I could use | more to get first n lines maybe |
choco list chocolatey -r --not-broken --approved-only -a -e --page=0 --page-size=3 does not work, so it's not --by-id that is the problem... |
choco list chocolatey --approved-only -e -a --page=0 --page-size=3 also does not work. So it is -e -a that is the problem. Isn't that why you need page parameters? |
choco list chocolatey --approved-only -a --page=0 --page-size=3 strangely - this lists three 7zip packages!!! |
See above - I confirmed immediately that it was |
And here is more info on why - #1322 (comment) |
This issue is in triage until we determine if paging can be used with the new way of returning packages for |
#1004 was the issue. |
For us, having info and search/list |
Good news, page size is supported! This is fixed for 0.10.6.2. |
Due to some changes in the way that 0.10.6 worked to allow for GH-1004 to always return results with info and exact searches, page size and page was being ignored. Fortunately limiting results is supported - even though it does need to call completely through and then filter locally.
* stable: (version) 0.10.7 (doc) update CHANGELOG/nuspec (GH-1328) Serialize/deserialize package files warnings (maint) clean up install/uninstall template (GH-1330) Use $packageArgs in default uninstall script (GH-1323) File/File64 as params not aliases (GH-1324) requestedExecutionLevel = asInvoker (GH-1327) AutoUninstaller - split multiple file paths (maint) add parameter props to UseOriginalLocation (maint) formatting (GH-1323) rename file to downloadFilePath (GH-1325) List/Search - no fail on local directory (docs) add to PowerShell CONTRIBUTING (GH-1326) Always show heading (GH-976) Use Write-FunctionCallLogMessage (maint) formatting (GH-1322) Fix: search - exact ignores page/page-size
choco list chocolatey -r --not-broken --approved-only -a -e -by-id-only --page=0 --page-size=3
This worked in 0.10.5, but 0.10.6 shows many more than 3 items
The text was updated successfully, but these errors were encountered: