Merge branch 'stable-2.15' into stable-2.16

* stable-2.15:
  ChangeApi: Add methods to get change comments/drafts as list
  ListChangeComments: Extend ListChangeDrafts
  detach -> detached
  Fix anchor tag for settings page

Change-Id: Id9f3cf0b5ec13ac38f6f011c611c5096f622c1aa
This commit is contained in:
David Pursehouse
2019-08-12 10:21:37 +09:00
6 changed files with 144 additions and 34 deletions

View File

@@ -633,6 +633,15 @@ class ChangeApiImpl implements ChangeApi {
}
}
@Override
public List<CommentInfo> commentsAsList() throws RestApiException {
try {
return listComments.getComments(change);
} catch (Exception e) {
throw asRestApiException("Cannot get comments", e);
}
}
@Override
public Map<String, List<RobotCommentInfo>> robotComments() throws RestApiException {
try {
@@ -651,6 +660,15 @@ class ChangeApiImpl implements ChangeApi {
}
}
@Override
public List<CommentInfo> draftsAsList() throws RestApiException {
try {
return listDrafts.getComments(change);
} catch (Exception e) {
throw asRestApiException("Cannot get drafts", e);
}
}
@Override
public ChangeInfo check() throws RestApiException {
try {