Always set change status for ChangeAttributes
ChangeAttribute's status was only set upon extension of the ChangeAttribute. As extension is only used for queries, the event stream does not provide the change status. We now set the change status when transforming a change to a ChangeAttribute. Thereby, event stream consumers can for example detect whether or not an event refers to a draft change, or a non-draft change. Change-Id: I252eb5d757ab3575def7c75a033dbc5b9b6a2f4a
This commit is contained in:
parent
abf646c761
commit
4c1a37d37a
@ -110,6 +110,7 @@ public class EventFactory {
|
||||
a.subject = change.getSubject();
|
||||
a.url = getChangeUrl(change);
|
||||
a.owner = asAccountAttribute(change.getOwner());
|
||||
a.status = change.getStatus();
|
||||
return a;
|
||||
}
|
||||
|
||||
@ -141,7 +142,6 @@ public class EventFactory {
|
||||
a.lastUpdated = change.getLastUpdatedOn().getTime() / 1000L;
|
||||
a.sortKey = change.getSortKey();
|
||||
a.open = change.getStatus().isOpen();
|
||||
a.status = change.getStatus();
|
||||
}
|
||||
|
||||
/**
|
||||
|
Loading…
Reference in New Issue
Block a user