Closed Bug 474902 Opened 17 years ago Closed 17 years ago

Allow the Bug URL (See Also) field to also accept Launchpad bug URLs

Categories

(Bugzilla :: Bugzilla-General, enhancement)

enhancement
Not set
normal

Tracking

()

RESOLVED FIXED
Bugzilla 3.4

People

(Reporter: mkanat, Assigned: mkanat)

References

(Blocks 1 open bug)

Details

Attachments

(1 file)

I'd eventually like the inter-Bugzilla functionality stuff to be a general cross-bugtracker functionality. If the other bug-trackers provide APIs, we can update the other bug in some sensible way, and allow them to update us. Anyhow, the first and easiest thing to do is to add support for launchpad, because it's easy to validate a launchpad URL--it just has "launchpad.net" in the domain. Some people might argue that this stuff should be in a plugin, but I think it would be nice to have support for all the major bugtrackers built-in to Bugzilla. For now, I think that includes at least Bugzilla, Trac, Launchpad, and Jira. It should be noted also that Canonical funded all of the work that allowed the "See Also" field to exist at all. We wouldn't have this functionality at all if it weren't for them.
Summary: Allow the Bug URL field to also accept Launchpad bug URLs → Allow the Bug URL (See Also) field to also accept Launchpad bug URLs
Attached patch v1Splinter Review
Okay, this was actually really simple. It didn't involve much code at all.
Assignee: general → mkanat
Status: NEW → ASSIGNED
Attachment #358333 - Flags: review?(dkl)
Comment on attachment 358333 [details] [diff] [review] v1 >Index: Bugzilla/Bug.pm >+ # Launchpad bug URLs can look like various things: >+ # https://bugs.launchpad.net/ubuntu/+bug/1234 >+ # https://launchpad.net/bugs/1234 >+ # All variations end with either "/bugs/1234" or "/+bug/1234" Should this be added to the docs? Maybe there should be a few examples of possible URL's for both Bugzilla installations and Launchpad. Also I tried the case of adding https://launchpad.net/foo_bugs/1234 and it allowed that to be added. Is this acceptable to Launchpad as you stated it should either be the format of "/bugs/1234" or "/+bug/1234"? Everything else looks good to me and and testing was good. If the above points are not an issue then r=dkl.
(In reply to comment #2) > Should this be added to the docs? Maybe there should be a few examples of > possible URL's for both Bugzilla installations and Launchpad. Yeah, good point. > Also I tried the case of adding https://launchpad.net/foo_bugs/1234 and it > allowed that > to be added. Is this acceptable to Launchpad as you stated it should either be > the format of "/bugs/1234" or "/+bug/1234"? Yeah, that's fine. I expect mostly that people will copy-paste URLs, so I'm just doing a basic validation that they're not typing in something totally invalid. Since we normalize them, you can't do anything bad with a funky URL.
Flags: documentation?
Comment on attachment 358333 [details] [diff] [review] v1 Example urls can go in docs other than the POD docs so r=dkl.
Attachment #358333 - Flags: review?(dkl) → review+
Flags: approval+
Checking in Bugzilla/Bug.pm; /cvsroot/mozilla/webtools/bugzilla/Bugzilla/Bug.pm,v <-- Bug.pm new revision: 1.276; previous revision: 1.275 done Checking in Bugzilla/WebService/Bug.pm; /cvsroot/mozilla/webtools/bugzilla/Bugzilla/WebService/Bug.pm,v <-- Bug.pm new revision: 1.30; previous revision: 1.29 done
Status: ASSIGNED → RESOLVED
Closed: 17 years ago
Resolution: --- → FIXED
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: