Hey Anshu,
Thanks for the response - and sorry, I didn't get your message on IRC
until you were already offline.
So it sounds like your proposal has two parts:
1) A Bugzilla extension that:
a) Makes it easy for a developer to mark a patch on a bug as
something they'd like reviewed with Review Board
b) Does the heavy-lifting for creating the review request on a
Review Board instance, so the user doesn't have to hop between
different forms / applications to get the review request published
c) Adds a "code review" button for patches that have gone through
(a) and (b), so that reviewers can quickly open up the RB diff-viewer,
start and publish a review
and
2) A Review Board extension that:
a) When a review has been published for a Bugzilla bug, converts
the review into a comment that can be posted to the appropriate bug
(the Review Board instance will need a Bugzilla account to post with)
Another thing:
There are some installs of Bugzilla that use the "Splinter" code
review tool. Similarly, there are projects on a Bugzilla instance
that are happy using the Splinter code review tool. We should make it
easy for the Review Board Bugzilla extension to only be applicable for
particular projects per instance - or maybe even per-component.
This way, we're not shoving Review Board down the throats of all
projects on a Bugzilla instance, where some might prefer to use
Splinter instead.
I'd love to see this proposal written up - it'd be very exciting, and
as a Mozilla developer, I can tell you that I know of at least one
major project that would love to use Review Board instead of Splinter!
For your proposal, try to break down the task into smaller chunks,
giving estimates on how long you think each chunk will take. Also,
give yourself lots of buffer time - things can go wrong, and we might
have to alter Review Board to make it do what we need.
All the best!
-Mike
On Mar 21, 5:00 pm, Anshu Kumar <
ansharyan...@gmail.com> wrote:
> Hey Mike,
>
> I missed to reply the last part of your mail earlier.
> You asked, *how can the review process of patches submitted on BugZilla can
> be made easy and the reviews be filed into bugzilla (as a comment)?*
> For the first part, if a review has been filed for the patch that the user
> submitted then the review process will be similar to the general review
> request as we have the diff to work with. Second part is how to post on the
> review comment on bugzilla. For this kind of thing we can use BugZilla's
> REST API. This API gives a lot of useful method for getting all bugs,
> adding new bugs, adding attachments and everything that you can think of.
> One such method specifies that if you send you a GET request to
> *bugzillaURL/bug/<bugID>/comment,
> *you can fetch the comments for the specific bug and if you send out a POST
> request to the URL you can append the comment with the bug. We can also
> post the url to the review submitted. So we can send out the review
> comments submitted as a POST parameter to the url and a comment will be
> posted to a particular post.
>
> On Wed, Mar 21, 2012 at 12:07 PM, Anshu Kumar <
ansharyan...@gmail.com>wrote:
>
>
>
>
>
>
>
>
>
> > Hey Mike,
> > Thanks for your reply.
>
> > 1. So we need to put a Code Review button on bugzilla's interface along
> > with a dropdown of repositories. For doing this we will need to create a
> > plugin for bugzilla also which will do the required thing for the
> > integration of reviewboard instance. Bugzilla provides the option for
> > creating extensions as per specific requirements making use of code hooks
> > and template hooks. One such template hook will create the button for us.
> > Now the other concern is how to fetch repositories information from review
> > board instance. This task is fairly simple. Please check the attached
> > screenshot *demo.jpg*. This screen shot is of review board demo. Now the
> > task is to get the name of repositories in our code. ReviewBoard offers a
> > service that if you send a get request to /api/repositories/, it will
> > return you the repositories information in xml form. Check attachment *
> > response.xml*. This xml file can be parsed and from here repositories
> > could be found.
>
> > 2. Bugzilla supports 2 types of user authentication (the bugzilla database
> > and external source such as LDAP). In organizations, generally, LDAP kind
> > of authentication is used because of the central directory structure and
> > use of a single database for all the authentication. So if they use LDAP
> > database, we can just simply apply those LDAP settings to ReviewBoard
> > instance as well and authenticate user against it. But if they use bugzilla
> > database, we may need to create account for them on review board (or we can
> > query against BugZilla database to fetch user information). So basically,
> > you wont be able to attach Code Review with patch if you are not registered
> > on ReviewBoard. You can however file patches without it (this can be
> > further discussed).
>
> > Leaving 4 and 5 as they may be out of scope here. I worked on similar kind
> > of thing in last summers.
> > Waiting for your reply.
>