Page MenuHomePhabricator

Extend conduit repository.create for hosting and policies
Needs RevisionPublic

Authored by darabi on Jun 17 2014, 9:56 AM.
Tags
None
Referenced Files
F13091850: D9598.diff
Thu, Apr 25, 3:16 AM
Unknown Object (File)
Tue, Apr 23, 6:54 PM
Unknown Object (File)
Tue, Apr 23, 6:54 PM
Unknown Object (File)
Tue, Apr 23, 6:54 PM
Unknown Object (File)
Sat, Apr 20, 7:07 PM
Unknown Object (File)
Sun, Mar 31, 10:13 PM
Unknown Object (File)
Sat, Mar 30, 11:55 AM
Unknown Object (File)
Mar 1 2024, 6:25 AM
Tokens
"Haypence" token, awarded by shaneduffy."Yellow Medal" token, awarded by bluehawk.

Details

Summary

Ref T4789. While it is possible to create a repo with the conduit, it
is not possible to control the hosting and policy parameters. This
patch introduces the following parameters to the conduit call, which
are forwarded without validation to the PhabricatorRepository.

Test Plan

Create a repo with

echo '{"name":"test-repo","callsign":"TRP","vcs":"git","hosting-enabled":true,"serve-over-http": "readwrite", "pushPolicy":"PHID-PROJ-2ougcjiddsrkkcptcfpi", "localPath":"/var/repo/CDEL"}' | arc call-conduit repository.create

To find out the PHIDs of your projects, execute

echo "{}" | arc call-conduit project.query

Diff Detail

Repository
rP Phabricator
Branch
conduit-repository-create
Lint
Lint Passed
Unit
No Test Coverage
Build Status
Buildable 1171
Build 1171: [Placeholder Plan] Wait for 30 Seconds

Event Timeline

darabi retitled this revision from to Extend conduit repository.create for hosting and policies.
darabi updated this object.
darabi edited the test plan for this revision. (Show Details)
darabi added a reviewer: Blessed Reviewers.
bluehawk added a subscriber: bluehawk.

This worked wonderfully for me, thank you so much!

Anyone know when this patch will make it into master?

We probably won't get to T4789 for a while.

epriestley edited edge metadata.

This should wait until after T5873 and be rebuilt on top of it.

This revision now requires changes to proceed.May 17 2015, 1:33 PM