/srv/irclogs.ubuntu.com/2020/05/27/#launchpad.txt

pjpHi, 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
pjpFor both variants I get => HTTP Error 400: Bad Request -> tags: ([ConstraintNotSatisfied(u'tag1', '')], 'tags')06:52
wgrantpjp: It's a list of tags:07:02
wgrantIn [2]: lp.bugs.createBug(target='/ubuntu', title='Test', description='Test', tags=['foo', 'bar', 'baz'])07:02
wgrantOut[2]: <bug at https://api.staging.launchpad.net/devel/bugs/1880206>07:03
ubot5Error: ubuntu bug 1880206 not found07:03
pjpwgrant: Yes, list works on a staging instance. On 'production' it is throwing Bad Request error.07:04
wgrantpjp: What's the exact call you're making?07:04
wgrantIn [1]: lp.bugs.createBug(target='/null-and-void', title='Test', description='Test', tags=['foo', 'bar', 'baz'])07:04
wgrantOut[1]: <bug at https://api.launchpad.net/devel/bugs/1880820>07:04
ubot5Ubuntu bug 1880820 in NULL Project "Test" [Undecided,New]07:04
wgrantWorks fine on prod too.07:04
pjpwgrant: lp.bugs.createBug(title=bz['summary'], description=bz['cf_release_notes'], target='/qemu', tags=['Qemu'], information_type='Public')07:07
pjpwgrant: does the case matter?07:09
wgrantpjp: Tags are lowercase. They follow the same rules as other Launchpad names: ^[a-z0-9][a-z0-9\+\.\-]+$07:09
pjpwgrant: Ah, likely that is triggering the error07:09
wgrantAlmost certainly.07:09
wgrantStaging would show the same thing.07:09
pjpwgrant: Yes, lowercase worked.07:10
pjpwgrant: Thank you.07:10
wgrantGreat.07:10
wgrantnp07:10
=== ijohnson_ is now known as ijohnson
=== tomwardill_ is now known as tomwardill
=== chihchun_ is now known as chihchun
rbasakThat's odd. On sru-review accept: lazr.restfulclient.errors.PreconditionFailed: HTTP Error 412: Precondition Failed12:34
* rbasak tries again12:35
wgrantrbasak: That means you raced with another modification to the object.12:35
rbasakAh - probably myself12:35
rbasakERROR: Queue does not have an upload of this source.12:35
rbasakI guess I can run sru-accept manually12:35

Generated by irclog2html.py 2.7 by Marius Gedminas - find it at mg.pov.lt!