Page MenuHomePhabricator

Implement PolicyAwareQuery for triggers
ClosedPublic

Authored by epriestley on Jan 20 2015, 4:12 PM.
Tags
None
Referenced Files
Unknown Object (File)
Fri, May 3, 3:20 AM
Unknown Object (File)
Mon, Apr 29, 2:47 PM
Unknown Object (File)
Wed, Apr 24, 10:46 PM
Unknown Object (File)
Mon, Apr 22, 6:39 AM
Unknown Object (File)
Fri, Apr 19, 8:42 AM
Unknown Object (File)
Fri, Apr 19, 8:42 AM
Unknown Object (File)
Fri, Apr 19, 8:42 AM
Unknown Object (File)
Fri, Apr 19, 8:42 AM
Subscribers

Details

Summary

Ref T6881. I tried to cheat here by not implementing this, but we need it for destroying triggers directly with bin/remove destroy, since that needs to load them by PHID.

So, cheat slightly less. Implement PolicyAware but not CursorPagedPolicyAware.

Test Plan
  • Used bin/remove destroy to destroy a trigger by PHID.
  • Browsed daemon console.
  • Ran trigger daemon.

Diff Detail

Repository
rP Phabricator
Lint
Lint Not Applicable
Unit
Tests Not Applicable

Event Timeline

epriestley retitled this revision from to Implement PolicyAwareQuery for triggers.
epriestley updated this object.
epriestley edited the test plan for this revision. (Show Details)
epriestley added a reviewer: btrahan.
  • Also fix bad newObject() implementation.
  • Small fix to getNextEventPrediction() for scheduled events.
btrahan edited edge metadata.

LGTM

src/infrastructure/daemon/workers/storage/PhabricatorWorkerTrigger.php
186–188

Consider moving this up to just below the fancy PolicyInterface declaration.

This revision is now accepted and ready to land.Jan 20 2015, 6:25 PM
epriestley edited edge metadata.
  • Scope comment more clearly.
This revision was automatically updated to reflect the committed changes.