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

Add kola tests and fix Name & Summary search #4490

Merged
merged 1 commit into from
Jul 6, 2023

Conversation

lukewarmtemp
Copy link
Contributor

Fixes #1877

New Implementations:

  • kola tests added
  • Duplicate package removal feature fixed
  • Name & Summary search feature fixed

As stated in the commit message:
Previously, the Name & Summary search function would only return results that contained ALL search terms within BOTH the name and summary. With this commit, results in which search terms match EITHER the name or summary will be returned. This better matches dnf/yum CLI functionality.

Old Name & Summary search function:

$ rpm-ostree search python3-jupyroot

===== Name Matched =====
python3-jupyroot : ROOT Jupyter kernel
$ rpm-ostree search python3-jupyroot kernel

No matches found.

New Name & Summary search function:

$ rpm-ostree search python3-jupyroot

===== Name Matched =====
python3-jupyroot : ROOT Jupyter kernel
$ rpm-ostree search python3-jupyroot kernel

===== Summary & Name Matched =====
python3-jupyroot : ROOT Jupyter kernel

`kola` tests added to test basic search functionality (name, summary, name &
summary, and glob matches).

Small fix for the duplicate removal feature. The `set` used to store
existing query results needed to be passed as a pointer to the
`query_results_to_builder` function. This allowed the data within the
`set` to persist outside the function call.

A large was change made to the `Name & Summary` search feature. Previously,
the function would only return results that contained ALL search terms
within BOTH the name and summary. With this commit, results in which
search terms match EITHER the name or summary will be returned.
This better matches `dnf`/`yum` CLI functionality.
@lukewarmtemp lukewarmtemp self-assigned this Jul 5, 2023
Copy link
Member

@jmarrero jmarrero left a comment

Choose a reason for hiding this comment

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

lgtm!

@lukewarmtemp lukewarmtemp merged commit 16abbba into coreos:main Jul 6, 2023
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.

Add feature to search for packages
2 participants