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

ISSUE-459: Ajax/Facet/Views improvements + ML similarity contextual filter and facets and 10.3 compatibility #461

Merged
merged 8 commits into from
Oct 8, 2024

Conversation

DiegoPino
Copy link
Member

See #459

Also brings some Changes/fixes that happened for Drupal 11

https://git.drupalcode.org/project/drupal/-/commit/ef985e937c58257c4f73f034cfd9b828430f9ad6

Filters the theme and ajax page state from the query, better checking if something is actually there and successfully updated, etc.
@DiegoPino DiegoPino added enhancement New feature or request Javascript Favourite language of a PHP developer UI driven hints Show stuff on screen so people have less guessing to do UX Like UI but with an X Search and Discovery Mess around and find out Drupal Views Ask and you should receive Facets Safely navigating the too many choices Sub Modules When you need more .info.yml files to keep life organized labels Aug 22, 2024
@DiegoPino DiegoPino added this to the 1.5.0 milestone Aug 22, 2024
@DiegoPino DiegoPino self-assigned this Aug 22, 2024
@DiegoPino
Copy link
Member Author

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

  • Fully refresh (which might have the "feature" of allowing a single Exposed block facet (bc of the URL) drive many views?)
  • detach and re-attach any pagers present for any view except the one just refreshed.

@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)
@DiegoPino DiegoPino changed the title ISSUE-459: Ajax/Facet/Views improvements + ML similarity contextual filter and facets ISSUE-459: Ajax/Facet/Views improvements + ML similarity contextual filter and facets and 10.3 combat Sep 2, 2024
@DiegoPino DiegoPino changed the title ISSUE-459: Ajax/Facet/Views improvements + ML similarity contextual filter and facets and 10.3 combat ISSUE-459: Ajax/Facet/Views improvements + ML similarity contextual filter and facets and 10.3 compatibility Sep 2, 2024
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
@DiegoPino DiegoPino merged commit 527d9cd into 1.5.0 Oct 8, 2024
@DiegoPino DiegoPino deleted the ISSUE-459 branch October 8, 2024 14:25
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Drupal Views Ask and you should receive enhancement New feature or request Facets Safely navigating the too many choices Javascript Favourite language of a PHP developer Search and Discovery Mess around and find out Sub Modules When you need more .info.yml files to keep life organized UI driven hints Show stuff on screen so people have less guessing to do UX Like UI but with an X
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant