Page MenuHomePhabricator

Implement query and policy rules for subprojects
ClosedPublic

Authored by epriestley on Dec 23 2015, 2:21 PM.
Tags
None
Referenced Files
Unknown Object (File)
Sat, Dec 7, 9:25 PM
Unknown Object (File)
Sun, Dec 1, 7:26 PM
Unknown Object (File)
Mon, Nov 25, 6:52 AM
Unknown Object (File)
Oct 31 2024, 11:34 AM
Unknown Object (File)
Oct 30 2024, 1:18 AM
Unknown Object (File)
Oct 25 2024, 8:37 PM
Unknown Object (File)
Oct 20 2024, 6:10 AM
Unknown Object (File)
Oct 16 2024, 2:36 PM
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.