Problem/Motivation

As an administrator I need to define dynamic tag exclusion patterns in the govcms_akamai_purge.settings.yml configuration so that tags generated at runtime (for example my_plugin:[random-hash]) can be excluded without specifying each value manually.

Steps to reproduce

The current configuration entries tag_blocklist and tag_exclusions do not support wildcard patterns (for example, my_plugin:*). This limits the ability to exclude a series of dynamic or programmatically generated tags from purge requests. Admins must list every specific tag if values vary.

Proposed resolution

Noting that this will not perform wildcard purges on Akamai, which is not supported. This is for filtering before sending to Akamai only.

  1. The configuration accepts wildcard patterns (*, ?, or similar) for tag_blocklist and tag_exclusions.
  2. The pattern matching is implemented in the module’s tag filtering logic before generating the purge request.
  3. Wildcards match multiple dynamic tags (for example my_plugin:* matches my_plugin:variation1 and my_plugin:[generated-hash]).
  4. The matching logic is efficient and safe (does not degrade performance).
  5. Admin documentation is updated to describe wildcard usage and supported pattern syntax.

Remaining tasks

TBA

User interface changes

Support wildcard '*' in the config (similar to core Block visibility rules)
UI
UI

API changes

N/A

Data model changes

N/A

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:

Comments

almunnings created an issue. See original summary.

almunnings’s picture

Status: Active » Needs work
almunnings’s picture

Status: Needs work » Postponed
almunnings’s picture

Assigned: almunnings » Unassigned
Status: Postponed » Closed (won't fix)

Self closing, I will not be pursuing this further.

I hope you include a regex tag filter in the future.

Now that this issue is closed, review the contribution record.

As a contributor, attribute any organization that helped you, or if you volunteered your own time.

Maintainers, credit people who helped resolve this issue.

sonnykt’s picture

Status: Closed (won't fix) » Needs work

re-opening as we are looking to implement this feature.

sonnykt’s picture

Version: 2.2.2 » 3.x-dev

sonnykt changed the visibility of the branch 2.0.x to hidden.

sonnykt changed the visibility of the branch 3.x to hidden.

sonnykt changed the visibility of the branch 3571146-wildcard-tag-filtering to hidden.

sonnykt’s picture

Status: Needs work » Needs review
sonnykt’s picture

  • yusufhm committed 33315a62 on 3.x authored by sonnykt
    feat: #3571146 Added wildcard support in tag blocklist and exclusions.
    
sonnykt’s picture

Status: Needs review » Fixed

Released in 3.0.0-beta2.

Now that this issue is closed, review the contribution record.

As a contributor, attribute any organization that helped you, or if you volunteered your own time.

Maintainers, credit people who helped resolve this issue.

sonnykt’s picture

Status: Fixed » Closed (fixed)