trafficcontrol
trafficcontrol copied to clipboard
Add a glob blox + advanced/pcre box for invalidations
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:
Some notes: by "glob," we mean * as a wildcard. So, this will need to:
- escape all special characters in PCRE Regex with
\(except*) - 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.