• 
      

    Add support for configuring hosting service repositories via API.

    Review Request #11321 — Created Dec. 7, 2020 and submitted

    Information

    Review Board
    release-3.0.x

    Reviewers

    This adds formal support for using the Repository API to create and edit
    repositories backed by a hosting service. Previously, the API really
    only worked correctly for plain repositories, as it just wasn't possible
    to get the right state into the form.

    The POST and PUT handlers now accept several new fields for configuring
    the hosting service information (type, URL, account username,
    service-specicific fields) for repositories and bug trackers. It does
    require an existing HostingServiceAccount to be configured, though.
    This takes care to pass the right values to the backend form.

    With this, customers should now be able to fully automate repository
    manaegment via the API.

    Unit tests pass.

    Manually tested creating some repositories on GitHub and Bitbucket via
    curl. Verified the repositories were successfully created, contained all
    the correct state, and could communicate with each service's API.

    Summary ID
    Add support for configurating hosting service repositories via API.
    This adds formal support for using the Repository API to create and edit repositories backed by a hosting service. Previously, the API really only worked correctly for plain repositories, as it just wasn't possible to get the right state into the form. The POST and PUT handlers now accept several new fields for configuring the hosting service information (type, URL, account username, service-specicific fields) for repositories and bug trackers. It does require an existing `HostingServiceAccount` to be configured, though. This takes care to pass the right values to the backend form. With this, customers should now be able to fully automate repository manaegment via the API.
    8bf5494ec364762ece13d25659c591128cdc7eb1
    Description From Last Updated

    I don't think "configurating" is a word

    david david
    chipx86
    david
    1. 
        
    2. Show all issues

      I don't think "configurating" is a word

      1. Already fixed it last night.

    3. 
        
    chipx86
    Review request changed
    Status:
    Completed
    Change Summary:
    Pushed to release-3.0.x (ceeeb83)