addTask returning the wrong task

Bug #1991101 reported by Andy Whitcroft
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Launchpad itself
Triaged
Low
Unassigned

Bug Description

When adding a task to a bug for the canonical-signing-jobs project the addTask call returns a different task (seemingly the first one it had attached) rather than the newly created task:

In [1]: tracker = lp.bugs[1990411]

In [2]: for task in tracker.bug_tasks:
   ...: print(task)
   ...:
https://api.launchpad.net/devel/kernel-sru-workflow/+bug/1990411
https://api.launchpad.net/devel/kernel-sru-workflow/automated-testing/+bug/1990411
https://api.launchpad.net/devel/kernel-sru-workflow/boot-testing/+bug/1990411
https://api.launchpad.net/devel/kernel-sru-workflow/certification-testing/+bug/1990411
https://api.launchpad.net/devel/kernel-sru-workflow/new-review/+bug/1990411
https://api.launchpad.net/devel/kernel-sru-workflow/prepare-package/+bug/1990411
https://api.launchpad.net/devel/kernel-sru-workflow/prepare-package-meta/+bug/1990411
https://api.launchpad.net/devel/kernel-sru-workflow/promote-signing-to-proposed/+bug/1990411
https://api.launchpad.net/devel/kernel-sru-workflow/promote-to-proposed/+bug/1990411
https://api.launchpad.net/devel/kernel-sru-workflow/promote-to-security/+bug/1990411
https://api.launchpad.net/devel/kernel-sru-workflow/promote-to-updates/+bug/1990411
https://api.launchpad.net/devel/kernel-sru-workflow/regression-testing/+bug/1990411
https://api.launchpad.net/devel/kernel-sru-workflow/security-signoff/+bug/1990411
https://api.launchpad.net/devel/kernel-sru-workflow/sru-review/+bug/1990411
https://api.launchpad.net/devel/kernel-sru-workflow/verification-testing/+bug/1990411
https://api.launchpad.net/devel/ubuntu/trusty/+source/linux-aws/+bug/1990411

In [3]: task2 = tracker.addTask(target="/canonical-signing-jobs")

In [4]: print(task2)
https://api.launchpad.net/devel/kernel-sru-workflow/+bug/1990411

In [5]: for task in tracker.bug_tasks:
   ...: print(task)
   ...:

https://api.launchpad.net/devel/canonical-signing-jobs/+bug/1990411
https://api.launchpad.net/devel/kernel-sru-workflow/+bug/1990411
https://api.launchpad.net/devel/kernel-sru-workflow/automated-testing/+bug/1990411
https://api.launchpad.net/devel/kernel-sru-workflow/boot-testing/+bug/1990411
https://api.launchpad.net/devel/kernel-sru-workflow/certification-testing/+bug/1990411
https://api.launchpad.net/devel/kernel-sru-workflow/new-review/+bug/1990411
https://api.launchpad.net/devel/kernel-sru-workflow/prepare-package/+bug/1990411
https://api.launchpad.net/devel/kernel-sru-workflow/prepare-package-meta/+bug/1990411
https://api.launchpad.net/devel/kernel-sru-workflow/promote-signing-to-proposed/+bug/1990411
https://api.launchpad.net/devel/kernel-sru-workflow/promote-to-proposed/+bug/1990411
https://api.launchpad.net/devel/kernel-sru-workflow/promote-to-security/+bug/1990411
https://api.launchpad.net/devel/kernel-sru-workflow/promote-to-updates/+bug/1990411
https://api.launchpad.net/devel/kernel-sru-workflow/regression-testing/+bug/1990411
https://api.launchpad.net/devel/kernel-sru-workflow/security-signoff/+bug/1990411
https://api.launchpad.net/devel/kernel-sru-workflow/sru-review/+bug/1990411
https://api.launchpad.net/devel/kernel-sru-workflow/verification-testing/+bug/1990411
https://api.launchpad.net/devel/ubuntu/trusty/+source/linux-aws/+bug/1990411

In [6]:

Tags: lp-bugs
Jürgen Gmach (jugmac00)
tags: added: lp-bugs
Changed in launchpad:
status: New → Triaged
importance: Undecided → Low
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.