Homec4science

Allow projects to be set as policies

Authored by epriestley <git@epriestley.com> on Sep 13 2012, 19:15.

Description

Allow projects to be set as policies

Summary:

  • Renames PhabricatorPolicyQuery to PhabricatorPolicyAwareQuery (a query which respects policy settings).
  • Introduces PhabricatorPolicyQuery, which loads available policies (e.g., "member of project X").
  • Introduces PhabricatorPolicy, which describes a policy.
  • Allows projects to be set as policies.
  • Allows Paste policies to be edited.
  • Covers crazy cases where you make projects depend on themselves or each other because you are a dastardly villan.

Test Plan: Set paste and project policies, including crazy policies like A -> B -> A, A -> A, etc.

Reviewers: vrana, btrahan

Reviewed By: vrana

CC: aran

Maniphest Tasks: T603

Differential Revision: https://secure.phabricator.com/D3476

Details

Committed
epriestley <git@epriestley.com>Sep 13 2012, 19:15
Pushed
aubortJan 31 2017, 17:16
Parents
rPHb39175342dc5: Add paste policy storage
Branches
Unknown
Tags
Unknown

Event Timeline

epriestley <git@epriestley.com> committed rPHa1df1f2b7041: Allow projects to be set as policies (authored by epriestley <git@epriestley.com>).Sep 13 2012, 19:15