Page MenuHomePhabricator

Implement PolicyAwareQuery for triggers
ClosedPublic

Authored by epriestley on Jan 20 2015, 4:12 PM.
Tags
None
Referenced Files
Unknown Object (File)
Wed, Dec 11, 4:23 PM
Unknown Object (File)
Wed, Dec 11, 2:50 AM
Unknown Object (File)
Tue, Dec 10, 6:58 PM
Unknown Object (File)
Sun, Dec 8, 5:25 AM
Unknown Object (File)
Thu, Dec 5, 4:40 AM
Unknown Object (File)
Wed, Dec 4, 10:50 PM
Unknown Object (File)
Wed, Dec 4, 3:29 AM
Unknown Object (File)
Sun, Dec 1, 9:52 PM
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
Branch
trigger8
Lint
Lint Passed
Unit
Tests Passed
Build Status
Buildable 3940
Build 3953: [Placeholder Plan] Wait for 30 Seconds

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.