API returns git repository list with missing items and duplicates

Bug #1578205 reported by Philip Muškovac
6
This bug affects 1 person
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['kubuntu-packaging'] using the API

Now when fetching the full list of repositories, I get 292 results with
print(len(lp.git_repositories.getRepositories(target=lp.projects['kubuntu-packaging'])))

as does the web UI [1], but looping over the repositories shows multiple duplicates and missing ones, and

for repo in lp.git_repositories.getRepositories(target=lp.projects['kubuntu-packaging']):
    lst[repo.git_identity] = repo
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://code.launchpad.net/~kubuntu-packagers/kubuntu-packaging/+git

Related branches

Revision history for this message
Philip Muškovac (yofel) wrote :
Philip Muškovac (yofel)
description: updated
William Grant (wgrant)
Changed in launchpad:
assignee: nobody → William Grant (wgrant)
importance: Undecided → High
status: New → In Progress
tags: added: api easy git lp-code
Revision history for this message
Launchpad QA Bot (lpqabot) wrote :
tags: added: qa-needstesting
Changed in launchpad:
status: In Progress → Fix Committed
William Grant (wgrant)
tags: added: qa-ok
removed: qa-needstesting
William Grant (wgrant)
Changed in launchpad:
status: Fix Committed → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.