This repository has been archived by the owner on Mar 11, 2021. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 86
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add support for workitem type change event (#2234)
This PR depends on #2202 and #2239 Once the above mentioned PRs are merged I will rebase this pull request. With this PR merged, the response for workitem type change event would look like ``` { "data": [ { "attributes": { "name": "workitemtype", "timestamp": "0001-01-01T00:00:00Z" }, "id": "00000000-0000-0000-0000-000000000001", "relationships": { "modifier": { .... }, "newValue": { "data": [ { "id": "00000000-0000-0000-0000-000000000003", "type": "workitemtypes" } ] }, "oldValue": { "data": [ { "id": "00000000-0000-0000-0000-000000000004", "type": "workitemtypes" } ] }, "workItemType": { .... }, }, "type": "events" } ] } ```
- Loading branch information
1 parent
81c9706
commit cfe4545
Showing
6 changed files
with
164 additions
and
14 deletions.
There are no files selected for viewing
14 changes: 14 additions & 0 deletions
14
controller/test-files/event/list/ok-witype-change.res.headers.golden.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
{ | ||
"Cache-Control": [ | ||
"max-age=2" | ||
], | ||
"Content-Type": [ | ||
"application/vnd.api+json" | ||
], | ||
"Etag": [ | ||
"1GmclFDDPcLR1ZWPZnykWw==" | ||
], | ||
"Last-Modified": [ | ||
"Mon, 01 Jan 0001 00:00:00 GMT" | ||
] | ||
} |
49 changes: 49 additions & 0 deletions
49
controller/test-files/event/list/ok-witype-change.res.payload.golden.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,49 @@ | ||
{ | ||
"data": [ | ||
{ | ||
"attributes": { | ||
"name": "workitemtype", | ||
"timestamp": "0001-01-01T00:00:00Z" | ||
}, | ||
"id": "00000000-0000-0000-0000-000000000001", | ||
"relationships": { | ||
"modifier": { | ||
"data": { | ||
"id": "00000000-0000-0000-0000-000000000002", | ||
"type": "users" | ||
}, | ||
"links": { | ||
"related": "http:///api/users/00000000-0000-0000-0000-000000000002", | ||
"self": "http:///api/users/00000000-0000-0000-0000-000000000002" | ||
} | ||
}, | ||
"newValue": { | ||
"data": [ | ||
{ | ||
"id": "00000000-0000-0000-0000-000000000003", | ||
"type": "workitemtypes" | ||
} | ||
] | ||
}, | ||
"oldValue": { | ||
"data": [ | ||
{ | ||
"id": "00000000-0000-0000-0000-000000000004", | ||
"type": "workitemtypes" | ||
} | ||
] | ||
}, | ||
"workItemType": { | ||
"data": { | ||
"id": "00000000-0000-0000-0000-000000000003", | ||
"type": "workitemtypes" | ||
}, | ||
"links": { | ||
"self": "http:///api/workitemtypes/00000000-0000-0000-0000-000000000003" | ||
} | ||
} | ||
}, | ||
"type": "events" | ||
} | ||
] | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters