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

Resource filter fixes #2665

Merged
merged 2 commits into from
Dec 29, 2023
Merged

Conversation

tvdeyen
Copy link
Member

@tvdeyen tvdeyen commented Dec 29, 2023

What is this pull request for?

Fixes for resource filters and Rails 7

Checklist

  • I have followed Pull Request guidelines
  • I have added a detailed description into each commit message
  • I have added tests to cover this change

@tvdeyen tvdeyen added this to the 7.1 milestone Dec 29, 2023
@tvdeyen tvdeyen self-assigned this Dec 29, 2023
@tvdeyen tvdeyen marked this pull request as draft December 29, 2023 13:54
We need to use the permitted search filter params in order
to have the correct filter selected.
Rails 7 params do not inherit from `Hash` anymore.

In order to keep existing filters we need to check for
`ActionController::Parameters`.
@tvdeyen tvdeyen removed this from the 7.1 milestone Dec 29, 2023
@tvdeyen tvdeyen added the backport-to-7.0-stable Needs to be backported to 7.0-stable label Dec 29, 2023
@tvdeyen tvdeyen marked this pull request as ready for review December 29, 2023 17:40
@tvdeyen tvdeyen removed their assignment Dec 29, 2023
@tvdeyen tvdeyen merged commit 02f087c into AlchemyCMS:main Dec 29, 2023
32 checks passed
@tvdeyen tvdeyen deleted the resource-filter-fixes branch December 29, 2023 19:58
@alchemycms-bot
Copy link
Collaborator

💚 All backports created successfully

Status Branch Result
7.0-stable

Questions ?

Please refer to the Backport tool documentation and see the Github Action logs for details

tvdeyen added a commit that referenced this pull request Jan 4, 2024
[7.0-stable] Merge pull request #2665 from tvdeyen/resource-filter-fixes
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
backport-to-7.0-stable Needs to be backported to 7.0-stable
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants