Add support for views-exposed-form

Created on 2 May 2024, 7 months ago

Problem/Motivation

I need to prevent bots and eager users from submitting views filters too often because some of the views are quite complex and require a lot of resources.

Steps to reproduce

Unfortunately, the core views implementation reuses the form-id ('views_exposed_form') for different views, so using different views filters throughout the site are tallied as the same form.

Proposed resolution

Append form-action (normalized) to form-id for distinction.

Remaining tasks

Review, approve and merge. I am preparing a patch that will add this option to the Individual Form Configuration section and the related code to append the action string.

User interface changes

I am preparing a patch that will add this option to the Individual Form Configuration section.

Data model changes

Added 'append_action' bool value to the form configuration.

✨ Feature request
Status

Active

Version

1.0

Component

Code

Created by

πŸ‡ΊπŸ‡ΈUnited States bfuzze9898

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

  • Issue created by @bfuzze9898
  • πŸ‡ΊπŸ‡ΈUnited States bfuzze9898

    Adding this patch here in case someone else can use it. The code is sound, but I'm not convinced this solution is complete.

  • πŸ‡«πŸ‡·France flocondetoile Lyon

    Not sure this is the job of this module. Should be more relevant to improve form ids for view exposed form no ? And to have, as for node form for example, a base form id (the current one) and a specific form id for the given view. But this is a core issue.

Production build 0.71.5 2024