newTeam docs recommend "description", which does not exist

Bug #1855205 reported by Paul Collins
8
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Launchpad itself
New
Undecided
Unassigned

Bug Description

https://api.launchpad.net/devel.html#people-newTeam says:

> team_description Team Description
> Obsolete. Use description.

However:

>>> for group in GROUPS:
... team = lp.people.newTeam(
... name='canonical-'+group,
... display_name=group,
... description='Membership of this team is synced with the {} LDAP group.'.format(group),
... membership_policy='Restricted Team',
... )
...
Traceback (most recent call last):
  File "<console>", line 6, in <module>
  File "/usr/lib/python2.7/dist-packages/lazr/restfulclient/resource.py", line 597, in __call__
    **args)
  File "/usr/lib/python2.7/dist-packages/wadllib/application.py", line 606, in build_representation
    media_type, param_values, **kw_param_values)
  File "/usr/lib/python2.7/dist-packages/wadllib/application.py", line 705, in representation
    return definition.bind(param_values, **kw_param_values)
  File "/usr/lib/python2.7/dist-packages/wadllib/application.py", line 915, in bind
    params, param_values, **kw_param_values)
  File "/usr/lib/python2.7/dist-packages/wadllib/application.py", line 177, in validate_param_values
    % "', '".join(param_values.keys()))
ValueError: Unrecognized parameter(s): 'description'

Revision history for this message
Paul Collins (pjdc) wrote :

It's even weirder than this. newTeam wants team_description, which ends up in the team's description attribute. and then there's the obsolete team_description attribute, which can be updated but which is apparently not used.

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.