Comment why followup action is hardcoded inside ActionJson

Change-Id: I5fc116148cb4a8d361ae467a0016791db45dbc26
This commit is contained in:
Shawn Pearce 2015-07-17 13:33:22 -07:00
parent 920d3cbea6
commit 2efa6030fd

View File

@ -73,7 +73,10 @@ public class ActionJson {
userProvider)) {
out.put(d.getId(), new ActionInfo(d));
}
// TODO(sbeller): why do we need to treat followup specially here?
// The followup action is a client-side only operation that does not
// have a server side handler. It must be manually registered into the
// resulting action map.
if (ctl.getChange().getStatus().isOpen()) {
UiAction.Description descr = new UiAction.Description();
PrivateInternals_UiActionDescription.setId(descr, "followup");