Files
gerrit/gerrit-acceptance-tests
David Ostrovsky 20a5470650 RevisionApi: Offer get{Comments,Drafts}AsList() methods
Current revision api only exposes getter methods for comments and drafts
that return Map<String, List<CommentInfo>> with unset path attribute in
CommentInfo container.

While this is fine for the need of change screen, that leads to
obfuscated client code when only list of comments is needed:

  1. call gApi.changes().id(changeId).revision(rev).comments()
  2. iterate over the result map
  2.1. retrieve the key
  2.2. set path attribute in the CommentInfo container
  3. create, fill and return result list of CommentInfo instances with
     re-filled path attribute.

This change offers missing methods that return list of comment infos
with filled path attributes.

Change-Id: Ie154c772f27dc601049cdddffb0c35a20f3f03e9
2015-05-19 21:04:25 +02:00
..