Page MenuHomePhabricator

Add "does not match regexp" to Herald
ClosedPublic

Authored by epriestley on Feb 11 2016, 11:21 PM.
Tags
None
Referenced Files
F14054668: D15254.diff
Sat, Nov 16, 3:44 AM
F14053664: D15254.diff
Fri, Nov 15, 6:06 PM
F14042122: D15254.diff
Tue, Nov 12, 12:40 AM
F14027742: D15254.diff
Fri, Nov 8, 9:02 AM
F14006789: D15254.id36809.diff
Mon, Oct 28, 5:40 PM
F13998542: D15254.id.diff
Thu, Oct 24, 9:43 AM
F13972663: D15254.id36808.diff
Oct 17 2024, 8:23 PM
Unknown Object (File)
Oct 3 2024, 10:52 PM
Subscribers
None

Details

Summary

Fixes T10330.

  • Anywhere we support "matches regexp", also allow "does not match regexp". Although you can sometimes write a clever negative regexp, these rules are better expressed with "does not match <simple regexp>" anyway, and sometimes no regexp will work.
  • Always allow "does not contain" when we support "contains".
  • Fix some JS issues with certain rules affecting custom fields.
Test Plan
  • Wrote an "Affected files do not match regexp" rule that required every diff to touch "MANUALCHANGELOG.md".
  • Tried to diff without the file; rejected.
  • Tried to diff with the file; accepted.
  • Wrote a bunch of "contains" and "does not contain" rules against text fields and custom fields, then edited tasks to trigger/observe them.
  • Swapped the editor into custom text, user, remarkup, etc fields, no more JS errors.

Screen Shot 2016-02-11 at 3.17.21 PM.png (509×1 px, 68 KB)

Diff Detail

Repository
rP Phabricator
Lint
Lint Not Applicable
Unit
Tests Not Applicable

Event Timeline

epriestley retitled this revision from to Add "does not match regexp" to Herald.
epriestley updated this object.
epriestley edited the test plan for this revision. (Show Details)
epriestley added a reviewer: chad.
chad edited edge metadata.
This revision is now accepted and ready to land.Feb 11 2016, 11:22 PM
This revision was automatically updated to reflect the committed changes.