Please expose official_bug_tags as RW, currently it is RO

Bug #414981 reported by Joey Stanford
8
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Launchpad itself
New
Undecided
Unassigned

Bug Description

Please expose official_bug_tags as RW, currently it is RO. I am using an API script to setup projects for the Canonical OEM team and have a need to set the official bug tags.

Tags: api bugtag
Revision history for this message
Diogo Matsubara (matsubara) wrote :

According to the documentation, it is writable for distribution and project objects. Can you paste a code sample and the traceback you get when modifying this attribute?

Changed in launchpad:
status: New → Incomplete
tags: added: api bugtag
Revision history for this message
Joey Stanford (joey) wrote :

According to

https://edge.launchpad.net/+apidoc/

There are 2 places where it says it's writable and 7 places where it says it's read-only. Brad told me it was RO so I haven't tried to implement it yet. But I will now that there appears the doc might be incorrect.

Revision history for this message
Joey Stanford (joey) wrote :

Creating joeytest project.
Traceback (most recent call last):
  File "oem_lp_setup.py", line 148, in <module>
    main()
  File "oem_lp_setup.py", line 123, in main
    project = create_project(lp, codename, project_name, team)
  File "oem_lp_setup.py", line 106, in create_project
    proj.lp_save()
  File "/usr/lib/python2.6/dist-packages/lazr/restfulclient/resource.py", line 566, in lp_save
    URI(self.self_link), representation, headers)
  File "/usr/lib/python2.6/dist-packages/lazr/restfulclient/_browser.py", line 258, in patch
    'PATCH', extra_headers=extra_headers)
  File "/usr/lib/python2.6/dist-packages/lazr/restfulclient/_browser.py", line 204, in _request
    raise HTTPError(response, content)
lazr.restfulclient.errors.HTTPError: HTTP Error 400: Bad Request

Changed in launchpad:
status: Incomplete → New
Revision history for this message
Joey Stanford (joey) wrote :

Ok, so it dawned on me Diogo what you meant originally.

I get the above error when I try to do

proj.official_bug_tags = "cqa-verified loc-opensource loc-canonical questions"

Revision history for this message
Diogo Matsubara (matsubara) wrote : Re: [Bug 414981] Re: Please expose official_bug_tags as RW, currently it is RO

On Wed, Aug 19, 2009 at 5:25 PM, Joey Stanford<email address hidden> wrote:
> Ok, so it dawned on me Diogo what you meant originally.
>
> I get the above error when I try to do
>
> proj.official_bug_tags = "cqa-verified loc-opensource loc-canonical
> questions"

Try: proj.official_bug_tags = [u"cqa-verified", u"loc-opensource",
u"loc-canonicalquestions"] instead. The error you're seeing might be
bug 254901

>
> --
> Please expose official_bug_tags as RW, currently it is RO
> https://bugs.launchpad.net/bugs/414981
> You received this bug notification because you are a member of Launchpad
> Bug Contacts, which is subscribed to Launchpad itself.
>
> --
> launchpad-bugs mailing list
> <email address hidden>
> https://lists.ubuntu.com/mailman/listinfo/launchpad-bugs
>

--
Diogo M. Matsubara

Revision history for this message
Joey Stanford (joey) wrote :

Bingo! That worked. Looks like this is a dup then of 254901. Thanks!

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.