REST endpoints for managing the attention set

Attention set is returned by default in change details.

Background:
https://www.gerritcodereview.com/design-docs/attention-set.html

Upcoming further changes:
- Add to index
- Extend ReviewInput API to add reviewers
- Add invariants (e.g. user must be reviewer)
- Send notifications in *Attention*Op#postUpdate()
- Consider adding NotificationHandling in AttentionInput
- Consider adding validation listeners

Change-Id: I52ae870a94852ac98f731fef63f65cd2a7064742
This commit is contained in:
Joerg Zieren
2020-03-06 13:44:25 +01:00
parent d4550a1e0b
commit fdbea383d6
38 changed files with 1111 additions and 148 deletions

View File

@@ -437,7 +437,7 @@ public abstract class AbstractPushForReview extends AbstractDaemonTest {
r.assertErrorStatus("change " + url + " closed");
// Check change message that was added on auto-close
ChangeInfo change = gApi.changes().id(r.getChange().getId().get()).get();
ChangeInfo change = change(r).get();
assertThat(Iterables.getLast(change.messages).message)
.isEqualTo("Change has been successfully pushed.");
}
@@ -477,7 +477,7 @@ public abstract class AbstractPushForReview extends AbstractDaemonTest {
r.assertErrorStatus("change " + url + " closed");
// Check that new commit was added as patch set
ChangeInfo change = gApi.changes().id(r.getChange().getId().get()).get();
ChangeInfo change = change(r).get();
assertThat(change.revisions).hasSize(2);
assertThat(change.currentRevision).isEqualTo(c.name());
}