Page MenuHomePhabricator

Give Phame blogs mutable interact policies
ClosedPublic

Authored by epriestley on Apr 1 2022, 7:05 PM.
Tags
None
Referenced Files
Unknown Object (File)
Sat, Nov 23, 6:06 AM
Unknown Object (File)
Tue, Nov 12, 5:28 AM
Unknown Object (File)
Sat, Nov 9, 4:57 PM
Unknown Object (File)
Tue, Nov 5, 11:48 PM
Unknown Object (File)
Fri, Nov 1, 3:08 AM
Unknown Object (File)
Thu, Oct 31, 2:08 AM
Unknown Object (File)
Oct 26 2024, 2:56 AM
Unknown Object (File)
Oct 15 2024, 8:39 PM
Subscribers
Restricted Owners Package

Details

Summary

Ref T13661.

I'm fairly sure these policies don't actually do anything (you can't "interact" with a blog) but the primarily support a Phame Post object policy of "Same as Parent Blog", which is the "natural" interact policy for a post.

Most of this is infrastructure support for mutable interact policies: today, only Maniphest has interact mutability and only via indirect effects (locking tasks), not through a directly mutable "Can Interact" policy.

Test Plan

Ran storage upgrade, edited interact policy of a blog, saw appropriate persistence and transactions.

Created and edited a task to make sure there's no weird fallout from increasing what can be done with interact policies.

Diff Detail

Repository
rP Phabricator
Branch
phameint4
Lint
Lint Passed
Unit
Test Failures
Build Status
Buildable 25634
Build 35462: arc lint + arc unit

Unit TestsFailed

TimeTest
6 msPhabricatorPolicyDataTestCase::testProjectPolicyMembership
EXCEPTION (RuntimeException): strlen(): Passing null to parameter #1 ($string) of type string is deprecated #0 /Users/epriestley/dev/core/lib/phabricator/src/applications/project/storage/PhabricatorProject.php(410): PhutilErrorHandler::handleError(8192, 'strlen(): Passi...', '/Users/epriestl...', 410) #1 /Users/epriestley/dev/core/lib/phabricator/src/applications/policy/__tests__/PhabricatorPolicyDataTestCase.php(16): PhabricatorProject->save()
212 msPhabricatorCelerityTestCase::testCelerityMaps
3 assertions passed.
11 msPhabricatorConduitTestCase::testConduitMethods
1 assertion passed.
0 msPhabricatorInfrastructureTestCase::testApplicationsInstalled
1 assertion passed.
1 msPhabricatorInfrastructureTestCase::testRejectMySQLNonUTF8Queries
1 assertion passed.
View Full Test Results (1 Failed · 29 Passed)

Event Timeline

Owners added a subscriber: Restricted Owners Package.Apr 1 2022, 7:05 PM
This revision was not accepted when it landed; it landed in state Needs Review.Apr 1 2022, 7:53 PM
This revision was landed with ongoing or failed builds.
This revision was automatically updated to reflect the committed changes.