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 a search builder that allows use of a new request handler #3819

Merged
merged 2 commits into from
Nov 8, 2023

Conversation

hackartisan
Copy link
Member

@hackartisan hackartisan commented Nov 7, 2023

Based on a querystring parameter, and also behind a feature flipper.

closes #3808

requires pulibrary/pul_solr#375

@coveralls
Copy link

coveralls commented Nov 7, 2023

Coverage Status

coverage: 95.465% (+0.03%) from 95.437%
when pulling 403c47f on 3808-search-algo
into 2fe4921 on main.

Copy link
Member

@carolyncole carolyncole left a comment

Choose a reason for hiding this comment

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

Just some thoughts...

app/models/engineering_search_builder.rb Show resolved Hide resolved
spec/controllers/catalog_controller_spec.rb Outdated Show resolved Hide resolved
supporting a different Solr RequestHandler

Co-authored-by: Anna Headley <hackartisan@users.noreply.github.com>
Co-authored-by: Carolyn Cole <carolyncole@users.noreply.github.com>
Co-authored-by: Eliot Jordan <eliotjordan@users.noreply.github.com>
Co-authored-by: James R. Griffin III <jrgriffiniii@users.noreply.github.com>
Co-authored-by: Trey Pendragon <tpendragon@users.noreply.github.com>
Copy link
Member

@sandbergja sandbergja left a comment

Choose a reason for hiding this comment

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

Thanks, team 1! Just a question that came to mind while I was reading up on what the qt parameter means 🤣

app/models/engineering_search_builder.rb Show resolved Hide resolved
# When adding a new Ranking Algorithm the name will need to be added to this list before it can be utilized
# For example if you added a cats ranking algorithm, with a CatsSearchBuilder you would add "cats" to this list ["engineering","cats"]
# This is to make sure the user can not just execute any SearchBuilder in the system
def allowed_search_algorithms
Copy link
Member

Choose a reason for hiding this comment

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

Thanks for adding this check!

…algortihm swapping

This shows that the other two features take presidence

Co-authored-by: James R. Griffin III <jrgriffiniii@users.noreply.github.com>
Copy link
Member

@sandbergja sandbergja left a comment

Choose a reason for hiding this comment

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

Thanks, team 1!

@sandbergja sandbergja merged commit 5b952f2 into main Nov 8, 2023
11 checks passed
@sandbergja sandbergja deleted the 3808-search-algo branch November 8, 2023 22:16
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.

Implement algorithm switching backend
5 participants