pjp | Hi, When creating a bug via createBug() method, is 'tags' argument a list of tags['tag1', 'tag2', 'tag3',] OR a string like "tag1 tag2 tag3"? | 06:50 |
---|---|---|
pjp | For both variants I get => HTTP Error 400: Bad Request -> tags: ([ConstraintNotSatisfied(u'tag1', '')], 'tags') | 06:52 |
wgrant | pjp: It's a list of tags: | 07:02 |
wgrant | In [2]: lp.bugs.createBug(target='/ubuntu', title='Test', description='Test', tags=['foo', 'bar', 'baz']) | 07:02 |
wgrant | Out[2]: <bug at https://api.staging.launchpad.net/devel/bugs/1880206> | 07:03 |
ubot5 | Error: ubuntu bug 1880206 not found | 07:03 |
pjp | wgrant: Yes, list works on a staging instance. On 'production' it is throwing Bad Request error. | 07:04 |
wgrant | pjp: What's the exact call you're making? | 07:04 |
wgrant | In [1]: lp.bugs.createBug(target='/null-and-void', title='Test', description='Test', tags=['foo', 'bar', 'baz']) | 07:04 |
wgrant | Out[1]: <bug at https://api.launchpad.net/devel/bugs/1880820> | 07:04 |
ubot5 | Ubuntu bug 1880820 in NULL Project "Test" [Undecided,New] | 07:04 |
wgrant | Works fine on prod too. | 07:04 |
pjp | wgrant: lp.bugs.createBug(title=bz['summary'], description=bz['cf_release_notes'], target='/qemu', tags=['Qemu'], information_type='Public') | 07:07 |
pjp | wgrant: does the case matter? | 07:09 |
wgrant | pjp: Tags are lowercase. They follow the same rules as other Launchpad names: ^[a-z0-9][a-z0-9\+\.\-]+$ | 07:09 |
pjp | wgrant: Ah, likely that is triggering the error | 07:09 |
wgrant | Almost certainly. | 07:09 |
wgrant | Staging would show the same thing. | 07:09 |
pjp | wgrant: Yes, lowercase worked. | 07:10 |
pjp | wgrant: Thank you. | 07:10 |
wgrant | Great. | 07:10 |
wgrant | np | 07:10 |
=== ijohnson_ is now known as ijohnson | ||
=== tomwardill_ is now known as tomwardill | ||
=== chihchun_ is now known as chihchun | ||
rbasak | That's odd. On sru-review accept: lazr.restfulclient.errors.PreconditionFailed: HTTP Error 412: Precondition Failed | 12:34 |
* rbasak tries again | 12:35 | |
wgrant | rbasak: That means you raced with another modification to the object. | 12:35 |
rbasak | Ah - probably myself | 12:35 |
rbasak | ERROR: Queue does not have an upload of this source. | 12:35 |
rbasak | I guess I can run sru-accept manually | 12:35 |
Generated by irclog2html.py 2.7 by Marius Gedminas - find it at mg.pov.lt!