Provided support for robot comments in Gerrit, Tricium needs a way to collect feedback from these comments. The suggested approach is to implement a PolyGerrit plugin that annotates robot comments with a 'not useful' link which calls out to the Tricium service.
The proposed interaction flow is as follows:
1. *Click is registered*: a request with needed information (file, position, revision id, patch set id, message, robot id) is sent to a feedback collection endpoint in the Tricium service.
2. *User is prompted for reason*: The user stays in the context of the clicked robot comment and is offered the option of providing more details (“Why was this analyzer result not useful to you?”) If possible, show this question as a non-obstructing pop-up (not covering the diff or the robot comment in question) with a text area for a multi-line comment from the user. This would allow the user to answer the question while still seeing the code and the robot comment.
3. *Reason is registered*: If the user decides to add a comment, a request is sent to the feedback collection endpoint in the Tricium service, information about the context and the comment is included in the request. On the server side, a bug is filed against the component of the analyzer in question.
Comment 1 by emso@chromium.org
, Jan 11 2017