Page MenuHomePhabricator

Allow Owners packages to be configured to ignore generated paths in Differential
ClosedPublic

Authored by epriestley on May 4 2018, 10:11 PM.
Tags
None
Referenced Files
F13357106: D19428.id46471.diff
Mon, Jun 24, 10:43 PM
F13357105: D19428.diff
Mon, Jun 24, 10:43 PM
F13355773: D19428.id46475.diff
Mon, Jun 24, 1:08 PM
F13355772: D19428.id46469.diff
Mon, Jun 24, 1:08 PM
F13355771: D19428.id.diff
Mon, Jun 24, 1:08 PM
F13350625: D19428.diff
Sun, Jun 23, 7:09 AM
F13333271: D19428.id.diff
Tue, Jun 18, 3:11 AM
F13318112: D19428.diff
Thu, Jun 13, 10:15 AM
Subscribers
Restricted Owners Package

Details

Summary

Depends on D19427. Ref T13130. See PHI251. Support configuring owners packages so they ignore generated paths.

This is still a little rough. A couple limitations:

  • It's hard to figure out how to use this control if you don't know what it's for, but we don't currently have a "CheckboxesEditField". I may add that soon.
  • The attribute ignore list doesn't apply to Diffusion, only Differential, which isn't obvious. I'll either try to make it work in Diffusion or note this somewhere.
  • No documentation yet (which could mitigate the other two issues a bit).

But the actual behavior seems to work fine.

Test Plan
  • Set a package to ignore paths with the "generated" attribute. Saw the package stop matching generated paths in Differential.
  • Removed the attribute from the ignore list.
  • Tried to set invalid attributes, got sensible errors.
  • Queried a package with Conduit, got the ignored attribute list.

Diff Detail

Repository
rP Phabricator
Lint
Lint Not Applicable
Unit
Tests Not Applicable

Event Timeline

Owners added a subscriber: Restricted Owners Package.May 4 2018, 10:11 PM
amckinley added inline comments.
src/applications/owners/storage/PhabricatorOwnersPackage.php
764–767

Name this $ignored just so we don't accidentally clobber this variable later?

This revision is now accepted and ready to land.May 5 2018, 2:18 AM
  • Agreed; use a more clear variable name.
  • Re-tested Conduit.
This revision was automatically updated to reflect the committed changes.