-
-
Notifications
You must be signed in to change notification settings - Fork 1.2k
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
List + Solr work_key powered QueryCarousel #5299
Merged
Merged
Conversation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Please run psf/black on this code to autofix the failing tests...
|
mekarpeles
commented
Jul 22, 2021
4f62ce5
to
83dcbe3
Compare
83dcbe3
to
80fe920
Compare
mekarpeles
commented
Jul 22, 2021
jimchamp
reviewed
Jul 23, 2021
jimchamp
requested changes
Jul 23, 2021
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The new ListCarousel macro seems to be working properly locally and on testing. The list JSON endpoint is returning errors, though.
Co-authored-by: jimchamp <jameschamp@acm.org>
mekarpeles
commented
Jul 30, 2021
mekarpeles
commented
Jul 30, 2021
Sabreen-Parveen
pushed a commit
to Sabreen-Parveen/openlibrary
that referenced
this pull request
Aug 5, 2021
* List + Solr work_key powered QueryCarousel * adding ListCarousel macro Co-authored-by: jimchamp <jameschamp@acm.org>
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Allows List keys to be passed to
QueryCarousel
macro to power carouselsTechnical
This PR extends
QueryCarousel
so a list key may be provided, such as/people/mekBot/lists/OL104041L/
and the when master...list-querycarousel#diff-a6072af04af429689c35331c2a4a35fa2c23317099533cc2161ef6d8ba79df90R1034 is called, the list will be expanded into a set of work_keys which are then passed through to solr.Note: The limit and offset are necessarily for paging through the List, but we don't want the limit and offset to be applied to solr because solr is going to receive a discrete list of work_ids (from the already paginated/offset List) and we want to return all of these works from solr.
Will likely be unnecessary once/if Lists are in solr
Testing
Adding a
{{ QueryParam("/people/mekBot/lists/OL104041L/") }}
(please check syntax) macro somewhere not too public (e.g. user profile page) should do the trick once this code is on testing.Screenshot
Will add once it's on testing
Stakeholders
@cdrini @seabelis