Skip to content

Retain "Published" etc. Filter Setting When Applying Search or "View All" on /org_admin/templates/ Pages#3475

Open
aaronskiba wants to merge 3 commits intoDMPRoadmap:developmentfrom
portagenetwork:aaron/upstream/fix-f-filter-for-templates
Open

Retain "Published" etc. Filter Setting When Applying Search or "View All" on /org_admin/templates/ Pages#3475
aaronskiba wants to merge 3 commits intoDMPRoadmap:developmentfrom
portagenetwork:aaron/upstream/fix-f-filter-for-templates

Conversation

@aaronskiba
Copy link
Contributor

@aaronskiba aaronskiba commented Jan 16, 2025

PLEASE NOTE:

  • Unless Fix Template.latest_version Ambiguity Error #3474 has already been merged, a PG::AmbiguousColumn: ERROR: will be encountered when attempting to execute any searches on the pages /org_admin/templates, org_admin/templates/organisational, or org_admin/templates/customisable. That PR's changes must be applied to properly test this PR.

Changes proposed in this PR:

  • Retain :f filter on /org_admin/templates/ Search c0a0dbf

    • This change retains the selected 'Published', 'Unpublished', or 'Not customized' filter when using the search on the paths /org_admin/templates, org_admin/templates/organisational, and org_admin/templates/customisable. Previously, the search would ignore the filter and return all templates.
  • Retain :f filter on /org_admin/templates/ "View All" d0fdcb7

    • This change retains the selected 'Published', 'Unpublished', or 'Not customized' filter when using the "View All" pagination option on the paths /org_admin/templates, org_admin/templates/organisational, and org_admin/templates/customisable. Previously, clicking "Select All" would ignore the filter and return all templates.

This commit retains the selected 'Published', 'Unpublished', or 'Not customized' filter when using the search on the paths /org_admin/templates, org_admin/templates/organisational, and org_admin/templates/customisable. Previously, the search would ignore the filter and return all templates.
This commit retains the selected 'Published', 'Unpublished', or 'Not customized' filter when using the "Select All" pagination option on the paths /org_admin/templates, org_admin/templates/organisational, and org_admin/templates/customisable. Previously, clicking "Select All" would ignore the filter and return all templates.
@aaronskiba aaronskiba changed the title Retain Filter Setting When Applying Search or "View All" On /org_admin/templates/ Page Retain Filter Setting When Applying Search or "View All" On /org_admin/templates/ Pages Jan 16, 2025
@aaronskiba aaronskiba changed the title Retain Filter Setting When Applying Search or "View All" On /org_admin/templates/ Pages Retain "Published" etc. Filter Setting When Applying Search or "View All" on /org_admin/templates/ Pages Jan 16, 2025
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