API returns git repository list with missing items and duplicates
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Launchpad itself |
Fix Released
|
High
|
William Grant |
Bug Description
What happened before:
The repositories were originally pushed as personal repositories owned by ~kubuntu-packagers.
They were then moved under the kubuntu-packaging project by setting their target to lp.projects[
Now when fetching the full list of repositories, I get 292 results with
print(len(
as does the web UI [1], but looping over the repositories shows multiple duplicates and missing ones, and
for repo in lp.git_
lst[
print(len(lst))
returns 224 today.
Attached is a list of todays response with the returned git identities. e.g. attica is present twice and 'akonadi' is missing
[1] https:/
Related branches
- Colin Watson (community): Approve
-
Diff: 246 lines (+98/-51)5 files modifieddatabase/schema/patch-2209-77-1.sql (+42/-0)
lib/lp/code/interfaces/gitcollection.py (+4/-2)
lib/lp/code/model/gitcollection.py (+5/-2)
lib/lp/code/model/gitrepository.py (+1/-1)
lib/lp/code/model/tests/test_gitrepository.py (+46/-46)
description: | updated |
Changed in launchpad: | |
assignee: | nobody → William Grant (wgrant) |
importance: | Undecided → High |
status: | New → In Progress |
tags: | added: api easy git lp-code |
tags: |
added: qa-ok removed: qa-needstesting |
Changed in launchpad: | |
status: | Fix Committed → Fix Released |
Fixed in stable r18023 <http:// bazaar. launchpad. net/~launchpad- pqm/launchpad/ stable/ revision/ 18023>.