Fix inconsistent notifications on vote removal
Change Ie4f05fafb73a implemented a feature to allow direct removal
of a vote from the Gerrit UI. Clicking reply on the Gerrit UI and
setting the vote to 0 is essentially the same thing as clicking
'X' on the vote. The difference is that Gerrit will fire a
comment-added event on the reply however it will not fire
an event when users remove the vote by clicking the 'X'.
This is inconsistent behavior. This change attempts to fix this
inconsistent behavior by also sending a comment-added event when
users click on the 'X' to remove a vote.
The vote removal appear as the following comment:
"Zaro Removed Code-Review-2 by Russell Westbrook <rwestbrook@localhost.com>"
Email preview: http://paste.openstack.org/show/485472
Bug: issue 3701
Change-Id: I279cb5b411d8c8e37243a5d3b734a8f002523d97
diff --git a/Documentation/config-mail.txt b/Documentation/config-mail.txt
index da213a8..a97cdf2 100644
--- a/Documentation/config-mail.txt
+++ b/Documentation/config-mail.txt
@@ -56,6 +56,12 @@
text that will be appended to emails related to a user submitting comments on
changes. See `ChangeSubject.vm`, `Comment.vm` and `ChangeFooter.vm`.
+=== DeleteVote.vm
+
+The `DeleteVote.vm` template will determine the contents of the email related
+to removing votes on changes. It is a `ChangeEmail`: see `ChangeSubject.vm`
+and `ChangeFooter.vm`.
+
=== Footer.vm
The `Footer.vm` template will determine the contents of the footer text