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

[7.2-stable] Fix combining search filters and pagination #2982

Merged
merged 1 commit into from
Jul 30, 2024

Conversation

alchemycms-bot
Copy link
Collaborator

Backport

This will backport the following commits from main to 7.2-stable:

Questions ?

Please refer to the Backport tool documentation

The `search_filter_params` method in Alchemy's Resource Controller
converts the permitted attributes to a Hash, stopping them from being
recognized as something like a nested Hash in our per page select. This
commit uses duck-typing in order to find out whether we're looking at a
nested Hash. This should work with both ActionController::Parameters and
with a Hash.

(cherry picked from commit e059c80)
@tvdeyen tvdeyen enabled auto-merge July 30, 2024 15:43
Copy link

codecov bot commented Jul 30, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 95.99%. Comparing base (588b3e1) to head (431025c).
Report is 1 commits behind head on 7.2-stable.

Additional details and impacted files
@@             Coverage Diff             @@
##           7.2-stable    #2982   +/-   ##
===========================================
  Coverage       95.99%   95.99%           
===========================================
  Files             233      233           
  Lines            6313     6313           
===========================================
  Hits             6060     6060           
  Misses            253      253           

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@tvdeyen tvdeyen merged commit 18a0b09 into 7.2-stable Jul 30, 2024
32 checks passed
@tvdeyen tvdeyen deleted the backport/7.2-stable/pr-2978 branch July 30, 2024 15:57
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.

3 participants