Merge "Split comments and new PS info with new PS upload"

This commit is contained in:
Youssef Elghareeb
2020-01-10 09:13:44 +00:00
committed by Gerrit Code Review
10 changed files with 281 additions and 104 deletions

View File

@@ -1003,7 +1003,7 @@ public class PostReview implements RestModifyView<RevisionResource, ReviewInput>
case PUBLISH:
case PUBLISH_ALL_REVISIONS:
validateComments(Streams.concat(drafts.values().stream(), toPublish.stream()));
publishCommentUtil.publish(ctx, psId, drafts.values(), in.tag);
publishCommentUtil.publish(ctx, ctx.getUpdate(psId), drafts.values(), in.tag);
comments.addAll(drafts.values());
break;
case KEEP: