Skip to content

Commit bc5f0fa

Browse files
committed
fix
1 parent d360d10 commit bc5f0fa

File tree

2 files changed

+2
-11
lines changed

2 files changed

+2
-11
lines changed

datahub-graphql-core/src/main/java/com/linkedin/datahub/graphql/resolvers/incident/IncidentUtils.java

+1
Original file line numberDiff line numberDiff line change
@@ -99,6 +99,7 @@ public static IncidentStatus mapIncidentStatus(
9999
if (input.getMessage() != null) {
100100
status.setMessage(input.getMessage());
101101
}
102+
status.setLastUpdated(auditStamp);
102103
return status;
103104
}
104105

datahub-graphql-core/src/test/java/com/linkedin/datahub/graphql/resolvers/incident/UpdateIncidentResolverTest.java

+1-11
Original file line numberDiff line numberDiff line change
@@ -188,17 +188,7 @@ public void testGetSuccessRequiredFields() throws Exception {
188188
expectedInfo.setEntities(
189189
new UrnArray(ImmutableList.of(UrnUtils.getUrn("urn:li:dataset:(test,test,test)"))));
190190
expectedInfo.setStatus(
191-
new IncidentStatus()
192-
.setState(IncidentState.ACTIVE)
193-
.setStage(IncidentStage.INVESTIGATION)
194-
.setMessage("Message"));
195-
expectedInfo.setAssignees(
196-
new IncidentAssigneeArray(
197-
ImmutableList.of(
198-
new IncidentAssignee()
199-
.setActor(UrnUtils.getUrn("urn:li:corpuser:test"))
200-
.setAssignedAt(new AuditStamp()))));
201-
expectedInfo.setPriority(0);
191+
new IncidentStatus().setState(IncidentState.ACTIVE).setMessage("Message"));
202192
expectedInfo.setSource(new IncidentSource().setType(IncidentSourceType.MANUAL));
203193

204194
// Verify entity client

0 commit comments

Comments
 (0)