Page MenuHomePhabricator

Implement query and policy rules for subprojects
ClosedPublic

Authored by epriestley on Dec 23 2015, 2:21 PM.
Tags
None
Referenced Files
F15453082: D14861.id35938.diff
Sat, Mar 29, 9:16 AM
F15430880: D14861.id.diff
Mon, Mar 24, 9:26 AM
F15426106: D14861.diff
Sun, Mar 23, 7:11 AM
F15402275: D14861.id35938.diff
Mon, Mar 17, 9:44 PM
F15388325: D14861.id35938.diff
Sat, Mar 15, 3:39 AM
F15380507: D14861.id35928.diff
Fri, Mar 14, 3:23 AM
F15369578: D14861.id35938.diff
Wed, Mar 12, 7:16 AM
F15330994: D14861.id35938.diff
Mar 7 2025, 8:15 AM
Subscribers
None
Tokens
"Yellow Medal" token, awarded by Luke081515.2.

Details

Summary

Ref T10010. This implements technical groundwork for subprojects. Specifically, it implements policy rules like Phriction:

  • to see a project, you must be able to see all of its parents (and the project itself).
  • you can edit a project if you can edit any of its parents (or the project itself).

To facilitiate this, we load all project ancestors when querying projects so we can do the view/edit checks.

This does NOT yet implement:

  • proper membership rules for these projects (up next);
  • any kind of UI to let users create subprojects.
Test Plan
  • Added unit tests.
  • Executed unit tests.
  • Browsed Projects (no change in behavior is expected).

Diff Detail

Repository
rP Phabricator
Lint
Lint Not Applicable
Unit
Tests Not Applicable

Event Timeline

epriestley retitled this revision from to Implement query and policy rules for subprojects.
epriestley updated this object.
epriestley edited the test plan for this revision. (Show Details)
epriestley added a reviewer: chad.
chad edited edge metadata.
This revision is now accepted and ready to land.Dec 23 2015, 4:41 PM
This revision was automatically updated to reflect the committed changes.