summaryrefslogtreecommitdiff
path: root/lorry-controller-webapp
Commit message (Collapse)AuthorAgeFilesLines
* Update copyright dates for files I recently changedBen Hutchings2020-06-081-1/+1
|
* Add gitea Downstream Host connectorBen Hutchings2020-06-011-2/+2
| | | | | | | Implement organisation and repository creation using the Gitea REST API v1. Add a 'gitea-access-token' application setting for this. Closes #9.
* Merge branch 'bwh/remote-downstreams' into bwh/gitea-supportBen Hutchings2020-06-011-0/+10
|\
| * Introduce and use downstream-{http,ssh}-url settingsBen Hutchings2020-06-011-0/+10
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Replace the current hardcoded Downstream Host parameters with application settings. In general, Downstream Host connectors will use some combination of HTTP(S) and/or SSH, so these are added in lorry-controller-webapp. Currently only the gerrit connector will use downstream-ssh-url and only the gitlab connector will use downstream-http-url. Turn *on* StrictHostKeyChecking for the gerrit connector when not talking to localhost. Closes #4.
* | Allow creating repos/groups as internal or public on GitLabBen Hutchings2020-06-011-0/+5
|/ | | | | | | | | | | | | | | | | | | | | | | | | GitLab groups can have a visibility of 'private' (only members), 'internal'/'limited' (only authenticated users), or 'public' (anyone). GitLab subgroups and projects can have the same visibilities as groups, but cannot be more visible than the containing group. When mirroring public source code, it may be desirable to make the entities we create more visible than the current default of 'private'. Add an option to set any of the three levels of visibility supported by GitLab, with the default unchanged. (The same levels are supported by Gitea, though with one named differently.) Never change the visibility of a group or repository that already exists. Note that the GitLab connector previously tried to create all projects as public, but this stopped working after the change to API v4. In Gerrit and Gitano the access control model is lot more complex, and generally only administrators can set visibility. Make their connectors reject visibility other than 'private'. Relates to #6, #9.
* Move Downstream Host type-specific code into modulesBen Hutchings2020-06-011-10/+11
| | | | | | | | | * Introduce hosts module and DownstreamHost abstract base class * Define a subclass of this for each Downstream Host type * Define a name-type map for these in the lorrycontroller package * Use these classes to replace type-specific code elsewhere Related to #5.
* WEBAPP: Add 'downstream-host-type' as alias for 'git-server-type'Ben Hutchings2020-06-011-2/+2
| | | | | | | Make this application setting and its description consistent with the new terminology. Related to #3.
* Update terminology for hosts in internal APIs and web templatesBen Hutchings2020-06-011-4/+4
| | | | | | | | | | | | | | | | This is intended to replace all uses of "Trove" that should really be "Downstream Host" or "Upstream Host", except in the database schema and the REST API (which will probably change later). * ARCH: Update example code to reflect API name change * yarns.webapp: Update test descriptions and uses of internal APIs * units: Update and rename the ls-troves units (although they still use the ls-troves endpoint for now) Some references that really are specific to Trove integration are retained. Related to #3.
* Update to python3Pedro Alvarez2019-11-271-3/+4
|
* Support 'local' git-server-type for local mirrorsPedro Alvarez2019-07-091-1/+1
| | | | | In this scenario, where the mirror would be in the local filesystem, lorry will be the one initialising the repository.
* Make migrations run only once per executionpedro/publish-failuresPedro Alvarez Piedehierro2017-07-131-1/+5
| | | | | | | | Yoyo migration libraries were failing in some cases due to "database is locked" errors. It was difficult to track down what parallel operations were causing the problems, so I dediced it was better to run the migrations once per execution instead of executing them everytime we opened a connection with the database (for every request).
* Create extra setting to publish lorry failuresPedro Alvarez Piedehierro2017-07-131-0/+4
|
* Add support for mirroring to a GitLab serverBen Brown2016-06-171-2/+11
| | | | Change-Id: I74dc0265fb3c92259101317d655eb55ccb62c119
* Remove trailing whitespaceBen Brown2015-12-151-3/+3
| | | | | | While we're here, seeing as Adam mentioned it. Change-Id: I5ddb86c70d76a84cf12fbd4eb91f3802e490d745
* Add initial support for mirroring to a Gerrit instancesam/support-gerritSam Thursfield2015-03-111-0/+5
|
* Add --ghost-timeout option to WEBAPPLars Wirzenius2014-09-041-0/+19
|
* Reword comment for finding route classesLars Wirzenius2014-04-221-5/+5
|
* Add new Lorry ControllerLars Wirzenius2014-04-151-0/+223