Closed Bug 661533 Opened 13 years ago Closed 13 years ago

see also should support Review Board urls

Categories

(Bugzilla :: Creating/Changing Bugs, enhancement)

4.1.2
enhancement
Not set
normal

Tracking

()

RESOLVED FIXED
Bugzilla 4.4

People

(Reporter: selsky, Assigned: selsky)

Details

Attachments

(1 file, 1 obsolete file)

See Also should support Review Board review request urls of the form http://reviews.reviewboard.org/r/111/
Assignee: create-and-change → selsky
Status: NEW → ASSIGNED
No longer depends on: 617802
Attachment #536888 - Flags: review?(timello)
Attachment #536888 - Attachment is patch: true
Attachment #536888 - Attachment mime type: text/x-patch → text/plain
Comment on attachment 536888 [details] [diff] [review]
Add support for Review Board review request URLs v1

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

::: Bugzilla/BugUrl/ReviewBoard.pm
@@ +23,5 @@
> +use base qw(Bugzilla::BugUrl);
> +
> +use Bugzilla::Error;
> +use Bugzilla::Util;
> +

You are not using any method from Bugzilla::Error and neither from Bugzilla::Util. So get ride of these lines.

@@ +39,5 @@
> +
> +    my $uri = $class->SUPER::_check_value(@_);
> +
> +    # Review Board URLs have only one form:
> +    #   http://reviews.reviewboard.org/r/111/

Your example does not work. The code does not accept the last '/'.
Attachment #536888 - Flags: review?(timello) → review-
Patch updated as requested.
Attachment #552843 - Flags: review?(timello)
Attachment #536888 - Attachment is obsolete: true
Depends on: bz-seealso
Comment on attachment 552843 [details] [diff] [review]
Add support for Review Board review request URLs v2

The patch applies cleanly and it passes in all tests! Thanks Matt! Sorry again for the delay on reviewing it.
Attachment #552843 - Flags: review?(timello) → review+
Flags: approval?
Target Milestone: --- → Bugzilla 5.0
No longer depends on: bz-seealso
Flags: approval? → approval+
Keywords: relnote
Do I need to provide a release notes patch, or is that done when the release is cut?
(In reply to Matt Selsky [:selsky] from comment #4)
> Do I need to provide a release notes patch, or is that done when the release
> is cut?

This will be done when we release 5.0. This keyword is to avoid losing track of new features.
Committing to: bzr+ssh://lpsolit%40gmail.com@bzr.mozilla.org/bugzilla/trunk/
modified Bugzilla/BugUrl.pm
added Bugzilla/BugUrl/ReviewBoard.pm
modified template/en/default/global/user-error.html.tmpl
Committed revision 8061.
Status: ASSIGNED → RESOLVED
Closed: 13 years ago
Resolution: --- → FIXED
Do you want the license updated to MPL 2.0?
Added to relnotes for 4.4.
Keywords: relnote
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: