findTeam(text="") doesn't find all teams
Bug #306844 reported by
Markus Korn
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Launchpad itself |
Triaged
|
Low
|
Unassigned |
Bug Description
I would like to use the API to get the number of teams registered in launchpad.
My idea was to use
launchpad.
(actually len(launchpad.
this returns a number of about 1030 teams on staging and edge
However the statistics box on https:/
Changed in launchpad-registry: | |
importance: | Undecided → Low |
summary: |
- number of teams return by a findTeam API call seems to be wrong + findTeam(text="") doesn't find all teams |
To post a comment you must log in.
If given an empty string, findTeam() will return only the teams which have one or more email addresses.
It should return all teams, just like findPerson() does when it's given an empty string.
Note, though, that the docstring of findTeam() doesn't say it will return all teams if given an empty string.