Need way to list and observe branch tips
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Launchpad itself |
Fix Released
|
Critical
|
Benji York |
Bug Description
For the Ensemble work we've been debating, we need a way to list (location, tip revision id, (official_series, official_series)) for all branches of a distribution (principia, in our case).
Since this list will hopefully get huge over time, we'll also need a way to ask for the changes since a given date, in which case we'd only get results for those branches that are either new or have had changes to their tip revision id since the provided timestamp.
Please note that we don't need/want *all the data* for a branch in that list, since it's going to be quite a lot of unnecessary information being transferred over the wire.
For reference only, in a conversation with Jono over UDS, he's come up with this sketched query which would do something resembling what we'd need:
SELECT unique_name, last_scanned_id FROM Branch JOIN DistroSeries ON
Branch.distroseries = DistroSeries.id JOIN Distribution ON
DistroSeries.
'ubuntu' AND branch.last_scanned > '2011-05-01';
Related branches
- Francis J. Lacoste (community): Approve
-
Diff: 219 lines (+147/-5)3 files modifiedlib/lp/registry/interfaces/distribution.py (+24/-0)
lib/lp/registry/model/distribution.py (+33/-2)
lib/lp/registry/tests/test_distro_webservice.py (+90/-3)
Changed in launchpad: | |
status: | New → Triaged |
importance: | Undecided → Low |
tags: | added: branches |
tags: | added: principia |
description: | updated |
Changed in launchpad: | |
assignee: | nobody → Benji York (benji) |
status: | Triaged → In Progress |
description: | updated |
Changed in launchpad: | |
status: | Fix Committed → Fix Released |
all branches, or all the branches aliased (the 'official branches')?