Page MenuHomePhabricator

Simplify the implementation of `PhabricatorPolicyCapability` subclasses
ClosedPublic

Authored by joshuaspence on Jul 24 2014, 12:42 PM.
Tags
None
Referenced Files
F18389797: D10039.id24127.diff
Fri, Aug 29, 6:10 AM
F18387726: D10039.id24127.diff
Fri, Aug 29, 3:39 AM
F18387314: D10039.diff
Fri, Aug 29, 3:10 AM
F18387281: D10039.diff
Fri, Aug 29, 3:08 AM
F18383430: D10039.diff
Thu, Aug 28, 11:01 PM
F18379489: D10039.id.diff
Thu, Aug 28, 4:03 PM
F18361726: D10039.diff
Wed, Aug 27, 12:35 PM
F17955892: D10039.id24136.diff
Fri, Aug 1, 5:07 AM

Details

Summary

Instead of implementing the getCapabilityKey method in all subclasses of PhabricatorPolicyCapability, provide a final implementation in the base class which uses reflection. See D9837 and D9985 for similar implementations.

Test Plan

N/A

Diff Detail

Repository
rP Phabricator
Branch
policy
Lint
Lint Passed
Unit
Test Failures
Build Status
Buildable 1875
Build 1876: [Placeholder Plan] Wait for 30 Seconds

Unit TestsFailed

TimeTest
0 mstestAllQueriesBelongToActualApplications
0 mstestAdminPolicy
0 mstestCustomPolicyRuleAdministrators
0 mstestCustomPolicyRuleLunarPhase
0 mstestCustomPolicyRuleUser
View Full Test Results (1 Failed · 18 Passed)

Event Timeline

joshuaspence retitled this revision from to Simplify the implementation of `PhabricatorPolicyCapability` subclasses.
joshuaspence updated this object.
joshuaspence edited the test plan for this revision. (Show Details)
joshuaspence added a reviewer: epriestley.
epriestley edited edge metadata.
This revision is now accepted and ready to land.Jul 24 2014, 1:26 PM