-
Notifications
You must be signed in to change notification settings - Fork 10
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
ISSUE-459: Ajax/Facet/Views improvements + ML similarity contextual filter and facets and 10.3 compatibility #461
Conversation
Filters the theme and ajax page state from the query, better checking if something is actually there and successfully updated, etc.
This starts cleaning the Ajax mess. Still missing a fix related to an issue that happens when you have multiple views in a single page, some have pagers and some have facets. A facet will only refresh the View it is attached to via AJAX, but won't wring its arguments to other Views that have pagers, which basically mean, when you page and click on something or filter, the URL itself of the page won't be passed around by the View to the next page, basically making "facet" selections to get stuck in space/time/state or being ignored. The solution is probably, on any View Update triggered by a Facet to also Check other/not to be updated Views and either
@alliomeria that is where I am now |
… driven The idea here is that we also collect for all facets the other views present in the page and if they have pagers we also (not sure yet how) do a "refresh" either partial (reloading the attached behavior for the paging) or complete (easier but also more server intensive?) to make sure the facet selection does not get lost between paging but also the page itself (*current one) is re-used for those views so the view does not fully fully reset . @alliomeria more to come. Not ready yet
Persist session and ajax page state too (breaking also in 10.3, facets actually need to be manually patched or will also break on ajax)
…ents This can be better though
Another commit will also mimic back (update) the hash when people decide to search from 0 or again.
That way navigating between canvases won't break the URL
See #459
Also brings some Changes/fixes that happened for Drupal 11
https://git.drupalcode.org/project/drupal/-/commit/ef985e937c58257c4f73f034cfd9b828430f9ad6