API returns git repository list with missing items and duplicates

Bug #1578205 reported by Philip Muškovac on 2016-05-04
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Launchpad itself
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

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
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

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

Other bug subscribers