Page MenuHomePhabricator

Expose repository ref rules via "diffusion.repository.search"
ClosedPublic

Authored by epriestley on Apr 15 2019, 1:57 PM.
Tags
None
Referenced Files
F13236776: D20426.diff
Tue, May 21, 10:55 AM
F13236491: D20426.diff
Tue, May 21, 9:54 AM
F13235105: D20426.diff
Tue, May 21, 4:15 AM
F13228586: D20426.id48781.diff
Mon, May 20, 10:36 AM
F13212568: D20426.diff
Fri, May 17, 6:53 AM
F13196616: D20426.diff
Sun, May 12, 11:25 PM
F13190028: D20426.diff
Sat, May 11, 7:10 AM
F13178660: D20426.diff
Wed, May 8, 8:34 PM
Subscribers
None

Details

Summary

Depends on D20425. Ref T13277. See PHI1067. There's currently no way to retrieve branch/ref rules over the API, which makes some management operations against a large number of repositories difficult.

Expose these rules to the API.

Test Plan

Called diffusion.repository.search, got rules in the result set.

Diff Detail

Repository
rP Phabricator
Lint
Lint Not Applicable
Unit
Tests Not Applicable

Event Timeline

amckinley added inline comments.
src/applications/repository/storage/PhabricatorRepository.php
2842

Should be "Fetch, track, and permanent ref rules", right?

This revision is now accepted and ready to land.Apr 17 2019, 8:06 PM
src/applications/repository/storage/PhabricatorRepository.php
2842

I'm being sneaky about "track" since I'm trying to get rid of it.

This revision was automatically updated to reflect the committed changes.