Add field _number to ChangeInfo
This field is also available in ChangeJson.ChangeInfo. Change-Id: Iaa4c7c5b1e7c9089a8ad5f30b629fa19e8982279
This commit is contained in:
parent
aace15c95a
commit
84e9714e96
@ -48,6 +48,7 @@ public class ChangeIT extends AbstractDaemonTest {
|
||||
assertEquals(true, c.mergeable);
|
||||
assertEquals(r.getChangeId(), c.changeId);
|
||||
assertEquals(c.created, c.updated);
|
||||
assertEquals(1, c._number);
|
||||
}
|
||||
|
||||
@Test
|
||||
|
@ -39,4 +39,5 @@ public class ChangeInfo {
|
||||
public Map<String, LabelInfo> labels;
|
||||
public Collection<ChangeMessageInfo> messages;
|
||||
public Map<String, RevisionInfo> revisions;
|
||||
public int _number;
|
||||
}
|
||||
|
@ -89,6 +89,7 @@ class ChangeInfoMapper {
|
||||
o.deletions = i.deletions;
|
||||
o.owner = fromAcountInfo(i.owner);
|
||||
o.currentRevision = i.currentRevision;
|
||||
o._number = i._number;
|
||||
}
|
||||
|
||||
private void mapMessages(ChangeJson.ChangeInfo i, ChangeInfo o) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user