Issue394

Title Better integration with Rietveld code review tool
Priority feature Status chatting
Superseder Nosy List eric.araujo, ezio.melotti, loewis, ncoghlan, ned.deily, techtonik
Assigned To Topics

Created on 2011-04-18.19:52:30 by ned.deily, last changed 2011-11-30.12:06:18 by techtonik.

Files
File name Uploaded Type Edit Remove
unnamed techtonik, 2011-11-30.12:06:18 text/html
Messages
msg2017 (view) Author: ned.deily Date: 2011-04-18.19:52:30
While there may be a review button link automatically created to a Rietveld code review instance for a submitted patch, there is no other indication (as far as I can tell) that of any activity on the Rietveld side including the submission of any comments there.  That seems to mean that if you are looking at an issue in the tracker, you must now periodically go to the Rietveld page to see if there is any activity there (assuming you are not on the review CC list and that the CC list is working properly).  That is far from ideal.  Many people don't need or want to be added to the nosy list or review CC list just to keep track of updates, for example, if they are monitoring activity via the mailing list archives or via something like gmane.org.  There should be some indication on the normal bug issue page that there is activity on the Rietveld side, perhaps by having Rietveld comment commits generating a message in the tracker.
msg2089 (view) Author: eric.araujo Date: 2011-06-16.14:26:32
+1 to a message.
msg2110 (view) Author: ncoghlan Date: 2011-06-25.00:19:21
Yep, came here after reviewing an issue and posting a "Reviewed" comment to suggest much the same thing. Perhaps the tracker could be included on the cc list for the post-review notification?
msg2120 (view) Author: ezio.melotti Date: 2011-07-19.20:34:06
A message would be good.

Also if we manage to add a message to the tracker, there won't be any need to send a mail from rietveld.  That will solve #382 (the CC problems) and also make email filtering easier (I still haven't managed to set up a filter able to group the reviews with the other mails from the same issue).
msg2125 (view) Author: eric.araujo Date: 2011-07-20.14:30:27
Two things I think would be useful (tell me if opening other reports would be better than writing here):

- A link from the Rietveld issue to the Roundup one
- When someone writes a message on Rietveld, make them nosy on Roundup
msg2134 (view) Author: ezio.melotti Date: 2011-07-20.18:14:55
I agree, writing a review on Rietveld should have the same effect as doing it on Roundup (i.e. new Roundup message (it doesn't need to contain all the review though), user added to nosy, mail sent to all the nosy members).
A link to Roundup would be good too.

Martin, is the process to install rietveld documented somewhere?
I don't have it on my local tracker, so I can't test things.
msg2204 (view) Author: eric.araujo Date: 2011-08-06.14:37:05
Ezio added the backlink from Rietveld to Roundup in r88874 \o/
msg2261 (view) Author: ezio.melotti Date: 2011-10-06.15:19:22
The bit of code that sends the email is in rietveld/codereview/views.py:2540:_make_message and it's called by rietveld/codereview/views.py:2362:publish (note: the line numbers refer to r510, i.e. the version we are using).
A possible fix would be to:
 1) at line 2546 (after (actually, instead of) the part where the mail is sent to the cc), replace the body with something like "<user> submitted a review: <link>";
 2) send the mail to roundup;

It's also possible to create and add a new message directly to Roundup, but that's a little more involved.
msg2262 (view) Author: loewis Date: 2011-10-06.15:29:19
> It's also possible to create and add a new message directly to Roundup, but that's a little more involved.

I hope I can work on this during the PyConDE sprints.
msg2263 (view) Author: techtonik Date: 2011-10-06.15:53:22
BTW, what version of Rietveld are you running on bugs.python.org? We've added a couple of enhancements since it was first deployed, also for API.
msg2319 (view) Author: techtonik Date: 2011-11-30.12:06:18
Rietveld now has an API that allows to query all messages for an issue -
http://code.google.com/p/rietveld/wiki/APIs However, to make a progress on
this bug, we need now two things from Martin.

> Martin, is the process to install Rietveld for documented somewhere?

It seems that it isn't, but it is at least evident that it runs through
gae2django -
http://svn.python.org/view/tracker/instances/python-dev/rietveld/ Basically,
there should not be differences in interacting with Rietveld running on
AppEngine or with gae2django version. But I remember that Roundup
integration was using some hacks to inject patches into Rietveld DB.

I propose to move all python.org specific patches for Rietveld to a
separate branch in official repository (like it currently works for
Chromium). It will be easier to sync and maintain.

> What version of Rietveld is currently deployed on python.org?
History
Date User Action Args
2011-11-30 12:06:18techtoniksetfiles: + unnamed
messages: + msg2319
title: Better integration with Rietveld code review tool -> Better integration with Rietveld code review tool
2011-10-06 15:53:22techtoniksetnosy: + techtonik
messages: + msg2263
2011-10-06 15:29:19loewissetmessages: + msg2262
title: Better integration with Rietveld code review tool -> Better integration with Rietveld code review tool
2011-10-06 15:19:22ezio.melottisetmessages: + msg2261
2011-08-06 14:37:06eric.araujosetmessages: + msg2204
2011-07-20 18:14:55ezio.melottisetmessages: + msg2134
2011-07-20 14:30:28eric.araujosetmessages: + msg2125
2011-07-19 20:34:06ezio.melottisetnosy: + loewis
messages: + msg2120
2011-06-25 00:19:22ncoghlansetnosy: + ncoghlan
messages: + msg2110
2011-06-16 14:26:32eric.araujosetstatus: unread -> chatting
nosy: + eric.araujo
messages: + msg2089
2011-04-18 20:04:32ezio.melottisetnosy: + ezio.melotti
2011-04-18 19:52:30ned.deilycreate