The API's people[groupname].members method can return duplicates
Bug #1839132 reported by
Barry Price
This bug affects 2 people
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Launchpad itself |
Fix Released
|
High
|
Colin Watson |
Bug Description
Using the Python launchpadlib library to talk to the API, I request a list of members for an appropriately large (>600 member) group:
people = [p.name for p in launchpad.
people contains the correct number of people, but several of them are duplicate records. Which means some members aren't returned at all.
Related branches
lp:~cjwatson/launchpad/team-members-ordering
- William Grant: Approve (code)
-
Diff: 78 lines (+41/-2)2 files modifiedlib/lp/registry/browser/tests/test_person_webservice.py (+34/-1)
lib/lp/registry/model/person.py (+7/-1)
description: | updated |
Changed in launchpad: | |
status: | Triaged → In Progress |
assignee: | nobody → Colin Watson (cjwatson) |
tags: |
added: qa-ok removed: qa-needstesting |
Changed in launchpad: | |
status: | Fix Committed → Fix Released |
To post a comment you must log in.
I think this is because the collection is unordered, so successive batches can be inconsistent.