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.x delegate normalization to filters #2687

Conversation

barmintor
Copy link
Contributor

@barmintor barmintor commented Apr 15, 2022

This is what I was thinking re: using filter field definitions to sanitize the params.

Fixes #2683
Fixes

See also: #2401

@barmintor barmintor requested review from jcoyne and cbeer April 15, 2022 16:05
- FilterFields are responsible for normalization of filter field data from params
- Base permitted search params are configurable in Blacklight:Configuration
- class methods for param normalization are deprecated

Co-authored-by: Justin Coyne <jcoyne@justincoyne.com>
@barmintor barmintor force-pushed the 7.x-delegate-normalization-to-filters branch from d9825e5 to 1f1c706 Compare April 16, 2022 19:47
@barmintor barmintor marked this pull request as ready for review April 16, 2022 19:59
@barmintor
Copy link
Contributor Author

@cbeer I needed to make an addition to the SearchState::FilterField interface to really get this to work - but I think it's one that would make writing plugins more reliable?

@barmintor barmintor merged commit 982e3e5 into projectblacklight:release-7.x Apr 25, 2022
@jcoyne
Copy link
Member

jcoyne commented Apr 26, 2022

Does this need a forward port to main?

@barmintor
Copy link
Contributor Author

Would recommend - am working on the backport of #2679 and resolving the question of #2647, then will turn to forward port of this change and #2647?

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.

None yet

2 participants