BatchUpdate: Bump lastUpdatedOn by default

There are only two cases where we don't currently bump lastUpdatedOn:
adding reviewers and adding draft comments. The vast majority of other
cases we do want to bump lastUpdatedOn.

Change the ChangeContext#saveChange method to #bumpLastUpdatedOn, to
be explicit about what this actually does. Default to true to make it
easier on callers.

Change-Id: I3d8b13f70b082f8f4ef15df02f72840ed42eed85
This commit is contained in:
Dave Borowitz
2016-05-02 14:40:56 -04:00
parent 378743cf49
commit 281dc411ee
21 changed files with 18 additions and 42 deletions

View File

@@ -114,7 +114,6 @@ public class PutTopic implements RestModifyView<ChangeResource, Input>,
}
change.setTopic(Strings.emptyToNull(newTopicName));
update.setTopic(change.getTopic());
ctx.saveChange();
ChangeMessage cmsg = new ChangeMessage(
new ChangeMessage.Key(