Re: new packages review tickets

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Il 24/05/20 15:41, Igor Raits ha scritto:
>
> This is great idea! If you need any help with bugzilla API or anything
> like that - let me know.
>
>
Yeah, I think I need some help in getting flags resetted.

I would like to reset the 'needinfo' flag and the 'fedora-review' flag. 
Accordingly to 
https://bugzilla.readthedocs.io/en/latest/api/core/v1/bug.html#update-bug 
setting 'X' as status should reset the flag, but running:

     flags = tk.bug.flags
     for idx, flag in enumerate(flags):
         if 'name' in flag and flag['name'] in ['needinfo', 
'fedora-review']:
             flags[idx]['status'] = 'X'

     update = bz.build_update(comment=comments['reset_needinfo'], 
flags=flags,
                          status='NEW', reset_assigned_to=True)
     try:
         bz.update_bugs([tk.bug.id], update)
     except Exception:
         log.error(f'Resetting bug {tk.bug.id} failed: ', exc_info=1)

results in

xmlrpc.client.Fault: <Fault 32000: 'There is no user account given.'>

I suppose I'm missing something, do you have any idea?

_______________________________________________
devel mailing list -- devel@xxxxxxxxxxxxxxxxxxxxxxx
To unsubscribe send an email to devel-leave@xxxxxxxxxxxxxxxxxxxxxxx
Fedora Code of Conduct: https://docs.fedoraproject.org/en-US/project/code-of-conduct/
List Guidelines: https://fedoraproject.org/wiki/Mailing_list_guidelines
List Archives: https://lists.fedoraproject.org/archives/list/devel@xxxxxxxxxxxxxxxxxxxxxxx




[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Index of Archives]     [Fedora Announce]     [Fedora Users]     [Fedora Kernel]     [Fedora Testing]     [Fedora Formulas]     [Fedora PHP Devel]     [Kernel Development]     [Fedora Legacy]     [Fedora Maintainers]     [Fedora Desktop]     [PAM]     [Red Hat Development]     [Gimp]     [Yosemite News]

  Powered by Linux