Currently the form has only "tag" and "url" harcoded, would it be possible to have a dynamic list of all possible types ?

Thanks in advance.

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

yonailo created an issue. See original summary.

muriqui made their first commit to this issue’s fork.

muriqui’s picture

Title: Add more tags » Add more types
Version: 2.0.1 » 2.0.2
Status: Active » Needs review

Created MR !5 to make the invalidation type options dynamic (with the 'Everything' option excluded, since there wouldn't be anything to type in the Item field). Also included a few coding standards fixes on the form.

szato made their first commit to this issue’s fork.

szato changed the visibility of the branch 1.0.x to hidden.

szato’s picture

Fixed the missing 'everything' type.
Show placeholder examples based on type definitions.

very_random_man made their first commit to this issue’s fork.

very_random_man’s picture

This was working well. I've extended it further so that you are only presented with options that are in use by the currently enabled purger plugins. So for example, I'm only using the CloudFront Purger and now I just get Everything, Path and Path wildcard.

muriqui’s picture

Version: 2.0.2 » 3.0.x-dev
muriqui’s picture

Title: Add more types » Make the list of available invalidation types dynamic
joshf’s picture

Status: Needs review » Reviewed & tested by the community

New patch applies cleanly and the changes look good in my testing. RTBC

  • muriqui committed 708fac46 on 3.0.x
    feat: #3271145 Make the list of available invalidation types dynamic
    
    By...
muriqui’s picture

Status: Reviewed & tested by the community » Fixed

Thanks all for contributing!

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.

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.