Merge lp://staging/~cjohnston/ubuntu-ci-services-itself/ts-ticket-read-api into lp://staging/ubuntu-ci-services-itself
Proposed by
Chris Johnston
Status: | Merged |
---|---|
Approved by: | Chris Johnston |
Approved revision: | 38 |
Merged at revision: | 41 |
Proposed branch: | lp://staging/~cjohnston/ubuntu-ci-services-itself/ts-ticket-read-api |
Merge into: | lp://staging/ubuntu-ci-services-itself |
Diff against target: |
513 lines (+417/-4) 8 files modified
docs/components/ticket-system.rst (+7/-0) ticket_system/ticket/api.py (+89/-0) ticket_system/ticket/migrations/0001_initial.py (+2/-2) ticket_system/ticket/models.py (+2/-2) ticket_system/ticket/tests/__init__.py (+18/-0) ticket_system/ticket/tests/test_full_read_api.py (+126/-0) ticket_system/ticket/tests/test_read_api.py (+163/-0) ticket_system/ticket_system/urls.py (+10/-0) |
To merge this branch: | bzr merge lp://staging/~cjohnston/ubuntu-ci-services-itself/ts-ticket-read-api |
Related bugs: |
Reviewer | Review Type | Date Requested | Status |
---|---|---|---|
Ursula Junque (community) | Approve | ||
Francis Ginther | Approve | ||
Review via email:
|
Commit message
Add read API to tickets
To post a comment you must log in.
Hi Chris,
I have one question:
Other components will need to reach subtickets directly to update their status, for example the Lander needs to reach the subticket to mark it as built. AFAIK all other components will use the Ticket ID to reach it, so we'd need to do something like api/v1/ ticket/ foobar/ 123, 'foobar' being the source package name and 123 the ticket ID. Is that possible with tastypie? If not, we could do something like 'foobar-123' and parse it. This way you wouldn't need to expose subticket directly, as it would be only used internally, considering the fullticket displays all subtickets and for WebUI purposes that should be enough.
Of course, this approach works considering there will be only one source package upload in active state per source package in a ticket -- others can correct me if I'm wrong and we should consider several landings of the same SP in a single ticket.
Cheers,