Closed Bug 1128119 Opened 9 years ago Closed 9 years ago

Add 'See Also' support for Phabricator

Categories

(Bugzilla :: Creating/Changing Bugs, enhancement)

enhancement
Not set
normal

Tracking

()

RESOLVED FIXED
Bugzilla 6.0

People

(Reporter: GPHemsley, Assigned: selsky)

References

()

Details

Attachments

(1 file)

[I don't know the right component for this, so please move it as appropriate.]

Wikimedia has moved from Bugzilla to Phabricator for their issue tracking. It would be nice if support for Phabricator could be added to the See Also field.

(As a workaround, the old Wikimedia Bugzilla URLs are still valid.)
Assignee: nobody → create-and-change
Component: General → Creating/Changing Bugs
Product: bugzilla.mozilla.org → Bugzilla
QA Contact: default-qa
Version: Production → unspecified
(In reply to Matt Selsky [:selsky] from comment #1)
> What's the pattern for Phabricator URLs? http://example.com/path/T\d+ ?

Phab cannot be install to a path but only to a domain or subdomain (see https://secure.phabricator.com/book/phabricator/article/installation_guide/ ). So for tasks in Phabricator Maniphest it should be:

http://optionalsubdomain.example.com/T\d+
Attached patch v1Splinter Review
Assignee: create-and-change → selsky
Status: NEW → ASSIGNED
Attachment #8558328 - Flags: review?(gerv)
glob/dkl: are we just taking as many of these as people want to write, or do we say to some people "sorry, write an extension"? How do we choose?

Gerv
Flags: needinfo?(glob)
Flags: needinfo?(dkl)
(In reply to Gervase Markham [:gerv] from comment #4)
> glob/dkl: are we just taking as many of these as people want to write

given they are trivial, provide an important function, and people are willing to write, them i see no reason to push back.

> "sorry, write an extension"

these are already part of the MoreBugUrl extension ;)
Flags: needinfo?(glob)
Comment on attachment 8558328 [details] [diff] [review]
v1

Review of attachment 8558328 [details] [diff] [review]:
-----------------------------------------------------------------

r=gerv, although I don't have a Phabricator instance to test with.

Gerv

::: extensions/MoreBugUrl/lib/Phabricator.pm
@@ +18,5 @@
> +###############################
> +
> +sub should_handle {
> +    my ($class, $uri) = @_;
> +    return ($uri->path =~ m|^/T\d+$|) ? 1 : 0;

This seems like it might match quite a few URLs...
Attachment #8558328 - Flags: review?(gerv) → review+
Flags: needinfo?(dkl)
Flags: approval?
Flags: approval? → approval+
Target Milestone: --- → Bugzilla 6.0
To ssh://gitolite3@git.mozilla.org/bugzilla/bugzilla.git
   abc9467..0d2cf0a  master -> master

To ssh://gitolite3@git.mozilla.org/bugzilla/bugzilla.git
   0d2cf0a..077949a  master -> master

(Missed a file first time :-|)

Gerv
Status: ASSIGNED → RESOLVED
Closed: 9 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: