-
-
Notifications
You must be signed in to change notification settings - Fork 824
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
SearchKit - Ensure filters work with multiple search displays on a form #23018
Conversation
(Standard links)
|
@colemanw I tried testing this but I couldn't - I was actually a bit disappointed because the behaviour you were trying to get rid of seemed really useful (eg. I tried to have have 2 search-dashes side by side with one filter limiting both the contact to show and the contributions to list) Unfortunately they won't 'stay' side by side. The side by side layout is 'too responsive' and even when you want them side by side with a scroll bar it drops down once I remove that second filter |
@eileenmcnaughton I think it's important to merge this and I don't think it should get hung up on layout issues. The layout doesn't matter as long as both displays are on the same form the issue will be triggered. And I agree, it would be nice to have one set of filters control multiple displays, and we could implement that but we need to do it the right way and not the messy accident that this PR fixes because that causes unpredictable side-effects. |
@colemanw from my testing this PR doens't make any difference? So I guess I'm OK merging based on that - but I failed to replicate the issue. I tried some more to create a useful page but got stymied by the layout - here is what I would up with - it is SOOOO hard to drag those boxes into containers
|
@eileenmcnaughton I agree the drag-n-drop is frustrating to use. It's also frustrating to this developer trying to fix it (the api for angular-jquery-ui sortable widget is not well documented), but I'll give it another try. As for this PR, if your tests showed that it didn't break anything, that's good enough for me. Because the unit test added in this PR is very thorough in demonstrating the bug and ensuring it is fixed. |
Aside, I think we could streamline our review process for PRs with
|
I'm not sure we can get away with that much simplification - but I have merged this one |
Thanks @eileenmcnaughton - I agree it's still a judgement call, but some PRs I approach purely from unit testing, and for those I think the tests and the test results speak for themselves. |
Overview
Followup to #22887 - ensures filters work correctly with multiple search displays.
Before
Filter selection would cross-contaminate if multiple search displays were on the same form. To reproduce:
After
Tests lock in the fix.