Can't target bug report from project to distribution, or vice versa

Bug #80902 reported by Matthew Paul Thomas
138
This bug affects 14 people
Affects Status Importance Assigned to Milestone
Launchpad itself
Fix Released
High
William Grant

Bug Description

1. Report a bug on the hundredpapercuts project.
2. Try to refile it from the hundredpapercuts project to the Ubuntu project.

What should happen: The bug report is refiled.
What actually happens: Launchpad returns an error. It says "There are two errors in the data you entered", which is false, and "Enter a project name", when you already have.

The current workaround is to mark the original target as "Invalid", which is cluttersome and a little misleading. It also results in unwanted bug mail for the subscribers to the original project.

The necessary form controls for fixing this are already implemented for Launchpad Answers.

It may make sense to fix this bug at the same time as bug 50894 and bug 59389. This is the retargeting equivalent of bug 1334.

Related branches

description: updated
description: updated
Changed in malone:
importance: Undecided → Medium
status: New → Triaged
description: updated
summary: - Allow bug retargeting from project to distribution, or vice versa
+ Can't refile bug report from project to distribution, or vice versa
summary: - Can't refile bug report from project to distribution, or vice versa
+ Can't target bug report from project to distribution, or vice versa
Revision history for this message
Francis J. Lacoste (flacoste) wrote :

Escalated to the stakeholders list by James W.

tags: added: escalated linaro
Changed in launchpad:
importance: Medium → Critical
Revision history for this message
Curtis Hovey (sinzui) wrote :

We may be able to repurpose the target widget used by questions. There are some nuances, that needs investigation--bugtask types mapping to bug target types. The it supports project or distro or distro source package.

Changed in launchpad:
assignee: nobody → Launchpad Green Squad (green-squad)
Revision history for this message
Curtis Hovey (sinzui) wrote :

Since the goal is to enable retargeted using ajax, a new widget is needed. Given the confusion about the existing retargeting widget used by answers. A multi-step process may clarify the steps. The user can search the ProductORDistribution vocab and choose one. If the user chooses a distro, the next step suggest the user choose a source package.

tags: added: bugs javascript questions
Revision history for this message
William Grant (wgrant) wrote :

This first requires fixing BugTask.transitionToTarget to allow these moves. I'm not sure why it is currently restricted -- possibly to slightly simplify the required logic?

Revision history for this message
Robert Collins (lifeless) wrote : Re: [Bug 80902] Re: Can't target bug report from project to distribution, or vice versa

Surely its 'delete the old task, add a new one, done' ?

Revision history for this message
Matthew Paul Thomas (mpt) wrote :

Deleting the old one and creating a new one would involve copying status, importance, assignee, milestone (if the new target has a milestone of the same name), creation date, and creator from the deleted to the new. Ideally it would also be obvious in the code that if you add anything new to BugTask in the future, that thing should also be added to the copy process.

Revision history for this message
Robert Collins (lifeless) wrote :

I agree that relevant fields need to be copied across. My point was
more that transitionTo... really isn't a blocker.

Revision history for this message
Curtis Hovey (sinzui) wrote :

This issue is more complicated than current discussion implies. Here are some issues that came up in two aborted attempts to address this issue.

Retargeting a bug to Ubuntu is not good enough. There is very little chance that a bug targeted to Ubuntu will be properly triaged or ever fixed. A project bug needs to be retargeted to a source package. I am sure the user will not always know how to choose a source package, but the UI must provide this level of targeting to "move" a bug instead of placing a bug in limbo. Also not that you cannot retarget a bug to Ubuntu if Ubuntu or an Ubuntu source package is already targeted.

A two step picker could accomplish this but there are more complications, namely the package vocabulary is unusable. Searching for something like apt results in a "too-many-results" error. The vocabulary is prone to timeout. The packages do not have descriptions that inform the user about which to select...even if there is an exact match. The source package vocabulary and picker must be fixed first

The targeting to package scenario is not better. The project picker does not show me enough information to retarget a bug that contains sensitive information. for example, searching for "ubuntuone" shows me only two projects that are official to the projects, the other four are not. The picker needs to show me the Launchpad-Id, owner, maybe project group too to convince me that my decision is correct.

I have a cunning plan. The disclosure feature intends to address the trust issue with the picker. The vocabularies will be changed address sorting and relevance. This bug could be fixed as a part of that effort; If someone were to provide a patch that did allow proper retargeting today, the picker would still be reviewed and updated as a part of disclosure effort to provide trusted pickers.

tags: added: disclosure
Revision history for this message
Robert Collins (lifeless) wrote :

On Wed, May 4, 2011 at 6:41 AM, Curtis Hovey <email address hidden> wrote:
> This issue is more complicated than current discussion implies. Here are
> some issues that came up in two aborted attempts to address this issue.
>
> Retargeting a bug to Ubuntu is not good enough. There is very little
> chance that a bug targeted to Ubuntu will be properly triaged or ever
> fixed.

However the default for a user filing a bug in the web UI is to file
it without a source package if they don't know one. Demanding a source
package would itself be a bug because users often don't know enough to
choose the source package. Its up to the distro triage process to
select the right source package : we can get the bug to them and let
them hand it off.

> A project bug needs to be retargeted to a source package. I am
> sure the user will not always know how to choose a source package, but
> the UI must provide this level of targeting to "move" a bug instead of
> placing a bug in limbo. Also not that you cannot retarget a bug to
> Ubuntu if Ubuntu or an Ubuntu source package is already targeted.

That sounds like a defect; bugs can have multiple ubuntu /
ubuntu-source-package tasks, so retargeting a task when there is an
existing source package/distro task seems fine per our model.

Revision history for this message
Curtis Hovey (sinzui) wrote :

@Robert
However the default for a user filing a bug in the web UI is to file it without a source package

Not so, normal users cannot report a bug targeted against Ubuntu. The link to report a bug on
https://bugs.launchpad.net/ubuntu takes me to a wiki that explain how to report a bug using
ubuntu-bug or the apps help menu.

This also a contributing reason about why so many Ubuntu bugs are reported against the
launchpad project.

Revision history for this message
Curtis Hovey (sinzui) wrote :

@Robert
That sounds like a defect; bugs can have multiple ubuntu /
ubuntu-source-package tasks, so retargeting a task when there is an
existing source package/distro task seems fine per our model.

I think you misunderstand. Yes Ubuntu can have multiple bugs represented
as task for many source packages. A source package cannot be listed twice
in the affects table...that would be duplicate. Nor can you add a new task
for a source package if only Ubuntu is affected. You can retarget the distro
task to the source package. An alternate workflow would be to delete the
distrotask and replace it with a source package task.

The general principle is refine the bug to a specific package or set of packages.
Generic targets like a distro do not provide the information needs to make a
fix.

Revision history for this message
Robert Collins (lifeless) wrote :

On Wed, May 4, 2011 at 9:47 AM, Curtis Hovey <email address hidden> wrote:
> @Robert
> However the default for a user filing a bug in the web UI is to file it without a source package
>
> Not so, normal users cannot report a bug targeted against Ubuntu. The link to report a bug on
> https://bugs.launchpad.net/ubuntu takes me to a wiki that explain how to report a bug using
> ubuntu-bug or the apps help menu.
>
> This also a contributing reason about why so many Ubuntu bugs are reported against the
> launchpad project.

Ah yes, I'd forgotten about that brain damage.

Revision history for this message
Robert Collins (lifeless) wrote :

Ok, so the specific case is 'if the desired target is already present
there is no sensible action to take' - but that seems its already
(crudely) handled by setting it invalid. We can limit discussion in
this bug to retargeting when the desired target does not already have
a task.

> The general principle is refine the bug to a specific package or set of packages.
> Generic targets like a distro do not provide the information needs to make a
> fix.

They don't, but $product developers moving a bug out from their
product may not know the right source package. Getting the bug one
step closer is better than not getting it closer at all. I agree that
we need to be able to do source package retargeting, I'm just saying
that choosing a source package shouldn't be mandatory.

Revision history for this message
Curtis Hovey (sinzui) wrote :

I agree it cannot be mandatory. Forcing users to choose a random package to satisfy a form is also a bad experience.

Revision history for this message
Francis J. Lacoste (flacoste) wrote :

Removing from the escalated bugs list since it's out-of-scope for that kind of items and will be tackled as part of the privacy work.

tags: removed: escalated
Changed in launchpad:
importance: Critical → High
Curtis Hovey (sinzui)
tags: added: project-picker
Revision history for this message
William Grant (wgrant) wrote :

The model side is a little deeper than we imagined. There are marker interfaces and subscribers to take care of. But I'm nearly there.

Revision history for this message
Launchpad QA Bot (lpqabot) wrote :
tags: added: qa-needstesting
Changed in launchpad:
status: Triaged → In Progress
Revision history for this message
Launchpad QA Bot (lpqabot) wrote :
Revision history for this message
Launchpad QA Bot (lpqabot) wrote :
William Grant (wgrant)
tags: added: qa-ok
removed: qa-needstesting
Revision history for this message
Launchpad QA Bot (lpqabot) wrote :
tags: added: qa-needstesting
removed: qa-ok
William Grant (wgrant)
tags: added: qa-ok
removed: qa-needstesting
Revision history for this message
Launchpad QA Bot (lpqabot) wrote :
tags: added: qa-needstesting
removed: qa-ok
Revision history for this message
Launchpad QA Bot (lpqabot) wrote :
William Grant (wgrant)
tags: added: qa-ok
removed: qa-needstesting
Revision history for this message
Launchpad QA Bot (lpqabot) wrote :
tags: added: qa-needstesting
removed: qa-ok
William Grant (wgrant)
tags: added: qa-ok
removed: qa-needstesting
Curtis Hovey (sinzui)
tags: added: target-picker
removed: project-picker
Changed in launchpad:
assignee: Launchpad Teal Squad (launchpad-teal-squad) → William Grant (wgrant)
Revision history for this message
Launchpad QA Bot (lpqabot) wrote :
tags: added: qa-needstesting
removed: qa-ok
Changed in launchpad:
status: In Progress → Fix Committed
William Grant (wgrant)
tags: added: qa-ok
removed: qa-needstesting
William Grant (wgrant)
Changed in launchpad:
status: Fix Committed → Fix Released
Revision history for this message
Matthew Paul Thomas (mpt) wrote :

Thank you!

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Related blueprints

Remote bug watches

Bug watches keep track of this bug in other bug trackers.