Option to disable updating the facets after each facet selection for Apply/Reset facet buttons block.

I believe the best course of action is to add a new option in the facets block configuration that allows the facet selection auto update for available facets and counts to be disabled.

Patch adds new option to Apply/Reset facet block to disable available facets and facet counts from updating. Default value for block for auto updating is feature is ON.

Issue fork facets-3172373

Command icon Show commands

Start within a Git clone of the project using the version control instructions.

Or, if you do not have SSH keys set up on git.drupalcode.org:

    Support from Acquia helps fund testing for Drupal Acquia logo

    Comments

    Bharti Mehta created an issue. See original summary.

    Bharti Mehta’s picture

    Bharti Mehta’s picture

    Bharti Mehta’s picture

    FileSize
    11.45 KB
    Bharti Mehta’s picture

    Version: 8.x-1.x-dev » 8.x-1.4
    Bharti Mehta’s picture

    Mistrae’s picture

    Updated for latest version

    Mistrae’s picture

    Latest patch was buggy with multiple facets.

    dorficus’s picture

    Checking to see if this is something being considered for inclusion in 3.x? I agree that there should be the option to select multiple facets and then apply them rather than having a page reload/AJAX call each time a box is checked.

    Valentine94’s picture

    Status: Active » Needs review
    FileSize
    11.32 KB

    Patch cleanup and re-roll

    vlad.dancer’s picture

    Version: 8.x-1.4 » 2.0.x-dev
    Valentine94’s picture

    Fixed missing facet source path for submitting and added a way to limit this functionality for specific pages only

    vlad.dancer’s picture

    Added code guards against empty js settings.

    vlad.dancer’s picture

    > added a way to limit this functionality for specific pages only

    Then we either need to use condition manager service for correctly checking request path or rely on facet_block with condition_path modules for doing that.
    Currently, a language prefix is not counted when checking requets path.

    vlad.dancer’s picture

    Used request_path condition plugin to check path in a more accurate way.
    Then we need to add tests and write hook_update for bringing up new config options.

    Valentine94’s picture

    Currently, a language prefix is not counted when checking requets path.

    How about this?

    Status: Needs review » Needs work

    The last submitted patch, 16: disable-auto-refresh-3172373-16.patch, failed testing. View results
    - codesniffer_fixes.patch Interdiff of automated coding standards fixes only.

    Valentine94’s picture

    Rolled back DI implementation for now to allow tests pass

    Valentine94’s picture

    Additional small fixes

    Valentine94’s picture

    Extra condition to prevent wrong behavior

    phannphong’s picture

    I have made updates based on patch #20 to create a new patch that can be applied to version 3.0.0-beta1.

    liquidcms’s picture

    [deleted] - js cache not cleared.. all working now:
    - don't submit on checkbox click
    - ajax submit when views exposed form submitted

    Thanks for this :)