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

Fix Paginating, Sorting, and Searching Issues Within "Research Outputs" Tab #3477

Open
wants to merge 3 commits into
base: development
Choose a base branch
from

Conversation

aaronskiba
Copy link
Contributor

Fixes the "Create paginable/research_outputs_controller.rb TODO" in #3464

Changes proposed in this PR:

  • Add scope :search to ResearchOutput model: 8ecced5
    • Search query is performed by research_outputs.title (case-insensitive)
  • Create app/controllers/paginable/research_outputs_controller.rb 301231c
    • This new controller fixes the following features on the /plans/:plan_id/research_outputs page:
      • The clickable pagination options (e.g. View all,1,2,Next,Last)
      • The search box (for research_outputs.title matches)
      • The clickable sorting arrows

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.

1 participant