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

Adds the possibility to sort the results in the search view #801

Open
wants to merge 2 commits into
base: main
Choose a base branch
from

Conversation

gerbsen
Copy link
Contributor

@gerbsen gerbsen commented Feb 22, 2025

This pull request does make:

  • it possible to sort the results in the search view via bootstrap dropdown menu in ascending, descending or "none/elasticsearch" order. Please have a look at the image below.
  • it shows the total number of results for a search query and
  • highlights the next and preview buttons more
  • works for query (q) and person (p) queries and
  • adds lots of test cases in order to validate sort order and number of search results
  • it fixes Option to sort search results by time #720 and Feature request: sort video list by upload date #770

Feedback is very welcome! I'm a novice ruby/rails user and unsure if I did everything correctly. In case you need more changes, please let me know.

Also, is there a help for testing the app somewhere? I managed to use the Dockerfile with some slight adjustments (# ENV BUNDLE_WITHOUT="development:test:doc") for testing with docker compose run --remove-orphans voctoweb rails test but this seems like not intended. Installing vagrant is also not what I want. So maybe building a dev and a prod image with different bundling seems like a good choice?

Screenshot 2025-02-22 at 16 39 39

@gerbsen
Copy link
Contributor Author

gerbsen commented Mar 5, 2025

Hey @saerdnaer, I've seen that you merged my other PR. Is there any chance I could get some feedback on this one? Happy to fix things if necessary but I can understand if time is limited.

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.

Option to sort search results by time
1 participant