~ursinha/ubuntu-ci-services-itself/private-only-is-env-variable

« back to all changes in this revision

Viewing changes to docs/components/ppa-assigner.rst

  • Committer: Ursula Junque (Ursinha)
  • Date: 2014-03-14 21:40:47 UTC
  • Revision ID: ursinha@canonical.com-20140314214047-oxu080435bqw0mor
Fixing tests to use right variable; Making it explicit the user choice for privacy

Show diffs side-by-side

added added

removed removed

Lines of Context:
5
5
 
6
6
* Workaround LP limitations:
7
7
 
8
 
 * we need 2 empty PPAs for each ticket (the isolated one for the ticket’s feature and one for the mer to trunk attempt for the feature)
 
8
 * we need 2 empty PPAs for each ticket (the isolated one for the ticket’s feature and one for the merge to trunk attempt for the feature)
9
9
 * since LP cannot fully remove a PPA (it will be in the database forever), we’ll manage a pool of PPAs that can be reused and will be cleaned when a ticket is closed.
10
10
 
11
11
 
12
12
Design
13
13
------
14
14
 
15
 
The Launchpad API provides the ability to list all the PPA's owned by a user.
 
15
The Launchpad API provides the ability to list all the PPAs owned by a user.
16
16
We can create a user that owns the "ppa pool". We can start with an initial
17
 
group of PPA's and them grow that if needed.
 
17
group of PPAs and them grow that if needed.
18
18
 
19
19
The service itself will be a django + REST. It will have a simple data model::
20
20
 
36
36
 
37
37
populate
38
38
~~~~~~~~
39
 
Find all PPA's owned by the Launchpad user and ensure they are defined
 
39
Find all PPAs owned by the Launchpad user and ensure they are defined
40
40
in the model. The following naming pattern will be used::
41
41
 
42
42
  # pattern
60
60
  curl --dump-header - -H "Content-Type: application/json" -X POST --data '{"ticket_id": 3}' http://localhost:8000/api/v1/ppa/
61
61
 
62
62
 
63
 
If no free PPA's exist an HttpNotFound error will be returned with a message
64
 
explaining there are no free ppas.
 
63
If no free PPAs exist an HttpNotFound error will be returned with a message
 
64
explaining there are no free PPAs.
65
65
 
66
66
 
67
67
release_ppa