Page MenuHomePhabricator

Implement PolicyAwareQuery for triggers
ClosedPublic

Authored by epriestley on Jan 20 2015, 4:12 PM.
Tags
None
Referenced Files
F13208973: D11445.id27507.diff
Thu, May 16, 8:43 PM
F13176420: D11445.id27510.diff
Wed, May 8, 1:47 PM
Unknown Object (File)
Sun, May 5, 11:13 PM
Unknown Object (File)
Sun, May 5, 5:40 AM
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
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 3941
Build 3954: [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.