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

refactor(scoop-search): Output PSObject, use API token #4997

Merged
merged 8 commits into from
Jun 21, 2022

Conversation

rashil2000
Copy link
Member

@rashil2000 rashil2000 commented Jun 19, 2022

Description

  • Refactor search to return PowerShell objects.
  • Rectify rate limit error if gh_token exists.
  • Improve error handling.

Motivation and Context

Closes #4202
Closes #4574
Closes #4852
Closes #3853

Relates to #3446

How Has This Been Tested?

image

image

image
image

Checklist:

  • I have read the Contributing Guide.
  • I have ensured that I am targeting the develop branch.
  • I have updated the documentation accordingly.
  • I have updated the tests accordingly.
  • I have added an entry in the CHANGELOG.

Copy link
Member

@niheaven niheaven left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Some static reviews

libexec/scoop-search.ps1 Outdated Show resolved Hide resolved
libexec/scoop-search.ps1 Outdated Show resolved Hide resolved
libexec/scoop-search.ps1 Outdated Show resolved Hide resolved
lib/manifest.ps1 Outdated Show resolved Hide resolved
libexec/scoop-search.ps1 Outdated Show resolved Hide resolved
libexec/scoop-search.ps1 Outdated Show resolved Hide resolved
@niheaven
Copy link
Member

image

Should the empty 'Binaries' be removed?

@rashil2000
Copy link
Member Author

I tried, but a hashtable array needs all fields to exist otherwise even those results who have Binaries will not show up 😅

@rashil2000 rashil2000 merged commit 847756b into develop Jun 21, 2022
@rashil2000 rashil2000 deleted the improve-search branch June 21, 2022 06:18
slaughtering pushed a commit to slaughtering/scoop that referenced this pull request Jul 7, 2022
…r#4997)

* refactor(scoop-search): Output PSObject, use API token

* warn about parsing error

* Update CHANGELOG.md

* Update scoop-search.ps1

* Apply suggestions from code review

Co-authored-by: Hsiao-nan Cheung <niheaven@gmail.com>

* separate lines

Co-authored-by: Hsiao-nan Cheung <niheaven@gmail.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants