Merge "Store topic of a change in Notedb"

This commit is contained in:
Edwin Kempin
2015-12-09 08:42:30 +00:00
committed by Gerrit Code Review
9 changed files with 105 additions and 2 deletions

View File

@@ -116,6 +116,7 @@ public class PutTopic implements RestModifyView<ChangeResource, Input>,
oldTopicName, newTopicName);
}
change.setTopic(Strings.emptyToNull(newTopicName));
ctx.getChangeUpdate().setTopic(change.getTopic());
ChangeUtil.updated(change);
ctx.getDb().changes().update(Collections.singleton(change));