1
0
Fork 0
mirror of https://we.phorge.it/source/phorge.git synced 2024-11-24 07:42:40 +01:00
phorge-phorge/src/infrastructure/storage
epriestley d2e5afb095 Use application PHIDs in Releeph, plus more
Summary:
Ref T2715. Ref T3551. Ref T603. This does a few things, but they're all sort of small:

  - We commonly use a `getX()` / `attachX()` pattern, but have very similar code in the `getX()` method every time. Provide a convenience method to make this pattern easier to write.
  - We use `willFilterPage()` in many queries, but it currently is called with zero or more results. This means we have a lot of "if no results, return nothing" boilerplate. Make it call only for one or more results.
  - Implement `PhabricatorPolicyInterface` on `ReleephBranch`. A branch has the same policy as its project.
  - Implement `ReleephBranchQuery`.
  - Move the branch PHID type to application PHID infrastructure.

Test Plan: Browsed Releeph. Used `phid.query` to query branch PHIDs.

Reviewers: btrahan

Reviewed By: btrahan

CC: aran

Maniphest Tasks: T603, T2715, T3551

Differential Revision: https://secure.phabricator.com/D6512
2013-07-22 12:17:32 -07:00
..
__tests__ Delete license headers from files 2012-11-05 11:16:51 -08:00
configuration Add explicit mysql.port configuration 2013-07-14 16:06:23 -07:00
lisk Use application PHIDs in Releeph, plus more 2013-07-22 12:17:32 -07:00
management Mark dead databases as "dead" and don't dump, probe, or list them 2013-07-19 11:07:29 -07:00
patch Mark dead databases as "dead" and don't dump, probe, or list them 2013-07-19 11:07:29 -07:00