trafficcontrol icon indicating copy to clipboard operation
trafficcontrol copied to clipboard

Add a glob blox + advanced/pcre box for invalidations

Open ezelkow1 opened this issue 4 years ago • 1 comments

I'm submitting a ...

  • improvement request (usability, performance, tech debt, etc.)

Traffic Control components affected ...

  • Traffic Portal

Current behavior:

The current behavior is to only take a regex. This can be confusing for the average user who does not know regex syntax and usage.

New behavior:

Most users are familiar with using globs which also account for the majority of invalidations. I believe defaulting to presenting a glob box (with then a supplemental/show-able advanced box that can take a real regex) would help with usability as well as more correct invalidation requests

Minimal reproduction of the problem with instructions:

Anything else:

ezelkow1 avatar Jun 14 '21 22:06 ezelkow1

Some notes: by "glob," we mean * as a wildcard. So, this will need to:

  1. escape all special characters in PCRE Regex with \ (except *)
  2. then replace any * with the PCRE .*.

Also, * is a valid URL character. So this will need to also allow users to use ** to indicate a literal * in the URL. So:

  • the above replacing should not replace ** with .*.*, but rather with \*.
  • we should add a sentence to the UI explaining that.

rob05c avatar Jun 14 '21 22:06 rob05c