Skip to content

Commit

Permalink
386 introduce workflow property to response
Browse files Browse the repository at this point in the history
  • Loading branch information
Martin Ševčík authored and Sevitas committed Dec 4, 2023
1 parent 1f20d1d commit 0e7522a
Show file tree
Hide file tree
Showing 30 changed files with 172 additions and 32 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,11 @@ public interface IContentItemSystemAttributes : ISystemAttributes
/// </summary>
public string Collection { get; }

/// <summary>
/// Gets the codename of the workflow which the content item is assigned to .
/// </summary>
public string Workflow { get; }

/// <summary>
/// Gets the codename of the workflow step which the content item is assigned to .
/// </summary>
Expand Down
10 changes: 10 additions & 0 deletions Kontent.Ai.Delivery.Benchmarks/Fixtures/full_articles.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@
"type": "article",
"sitemap_locations": [],
"last_modified": "2019-09-18T10:58:38.9172599Z",
"workflow": "default",
"workflow_step": "published"
},
"elements": {
Expand Down Expand Up @@ -182,6 +183,7 @@
"type": "article",
"sitemap_locations": [],
"last_modified": "2019-03-27T13:13:35.312Z",
"workflow": "default",
"workflow_step": "published"
},
"elements": {
Expand Down Expand Up @@ -364,6 +366,7 @@
"type": "article",
"sitemap_locations": [],
"last_modified": "2019-03-27T13:14:07.384Z",
"workflow": "default",
"workflow_step": "published"
},
"elements": {
Expand Down Expand Up @@ -528,6 +531,7 @@
"type": "article",
"sitemap_locations": [],
"last_modified": "2019-03-27T13:21:11.38Z",
"workflow": "default",
"workflow_step": "published"
},
"elements": {
Expand Down Expand Up @@ -699,6 +703,7 @@
"type": "article",
"sitemap_locations": [],
"last_modified": "2019-03-27T13:21:49.151Z",
"workflow": "default",
"workflow_step": "published"
},
"elements": {
Expand Down Expand Up @@ -867,6 +872,7 @@
"type": "article",
"sitemap_locations": [],
"last_modified": "2019-03-27T13:24:54.042Z",
"workflow": "default",
"workflow_step": "published"
},
"elements": {
Expand Down Expand Up @@ -1046,6 +1052,7 @@
"type": "article",
"sitemap_locations": [],
"last_modified": "2019-03-27T13:13:35.312Z",
"workflow": "default",
"workflow_step": "published"
},
"elements": {
Expand Down Expand Up @@ -1322,6 +1329,7 @@
"type": "article",
"sitemap_locations": [],
"last_modified": "2019-03-27T13:21:11.38Z",
"workflow": "default",
"workflow_step": "published"
},
"elements": {
Expand Down Expand Up @@ -1493,6 +1501,7 @@
"type": "article",
"sitemap_locations": [],
"last_modified": "2019-03-27T13:21:49.151Z",
"workflow": "default",
"workflow_step": "published"
},
"elements": {
Expand Down Expand Up @@ -1661,6 +1670,7 @@
"type": "article",
"sitemap_locations": [],
"last_modified": "2019-03-27T13:24:54.042Z",
"workflow": "default",
"workflow_step": "published"
},
"elements": {
Expand Down
3 changes: 3 additions & 0 deletions Kontent.Ai.Delivery.Benchmarks/Fixtures/on_roasts.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@
"type": "article",
"sitemap_locations": [],
"last_modified": "2019-03-27T13:21:11.38Z",
"workflow": "default",
"workflow_step": "published"
},
"elements": {
Expand Down Expand Up @@ -180,6 +181,7 @@
"type": "article",
"sitemap_locations": [],
"last_modified": "2019-03-27T13:13:35.312Z",
"workflow": "default",
"workflow_step": "published"
},
"elements": {
Expand Down Expand Up @@ -362,6 +364,7 @@
"type": "article",
"sitemap_locations": [],
"last_modified": "2019-03-27T13:21:49.151Z",
"workflow": "default",
"workflow_step": "published"
},
"elements": {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@
"coffee"
],
"last_modified": "2017-09-07T08:21:06.8837862Z",
"workflow": "default",
"workflow_step": "published"
},
"elements": {
Expand Down
10 changes: 10 additions & 0 deletions Kontent.Ai.Delivery.Caching.Tests/Fixtures/full_articles.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@
"type": "article",
"sitemap_locations": [],
"last_modified": "2019-09-18T10:58:38.9172599Z",
"workflow": "default",
"workflow_step": "published"
},
"elements": {
Expand Down Expand Up @@ -183,6 +184,7 @@
"type": "article",
"sitemap_locations": [],
"last_modified": "2019-03-27T13:13:35.312Z",
"workflow": "default",
"workflow_step": "published"
},
"elements": {
Expand Down Expand Up @@ -366,6 +368,7 @@
"type": "article",
"sitemap_locations": [],
"last_modified": "2019-03-27T13:14:07.384Z",
"workflow": "default",
"workflow_step": "published"
},
"elements": {
Expand Down Expand Up @@ -531,6 +534,7 @@
"type": "article",
"sitemap_locations": [],
"last_modified": "2019-03-27T13:21:11.38Z",
"workflow": "default",
"workflow_step": "published"
},
"elements": {
Expand Down Expand Up @@ -703,6 +707,7 @@
"type": "article",
"sitemap_locations": [],
"last_modified": "2019-03-27T13:21:49.151Z",
"workflow": "default",
"workflow_step": "published"
},
"elements": {
Expand Down Expand Up @@ -872,6 +877,7 @@
"type": "article",
"sitemap_locations": [],
"last_modified": "2019-03-27T13:24:54.042Z",
"workflow": "default",
"workflow_step": "published"
},
"elements": {
Expand Down Expand Up @@ -1052,6 +1058,7 @@
"type": "article",
"sitemap_locations": [],
"last_modified": "2019-03-27T13:13:35.312Z",
"workflow": "default",
"workflow_step": "published"
},
"elements": {
Expand Down Expand Up @@ -1329,6 +1336,7 @@
"type": "article",
"sitemap_locations": [],
"last_modified": "2019-03-27T13:21:11.38Z",
"workflow": "default",
"workflow_step": "published"
},
"elements": {
Expand Down Expand Up @@ -1501,6 +1509,7 @@
"type": "article",
"sitemap_locations": [],
"last_modified": "2019-03-27T13:21:49.151Z",
"workflow": "default",
"workflow_step": "published"
},
"elements": {
Expand Down Expand Up @@ -1670,6 +1679,7 @@
"type": "article",
"sitemap_locations": [],
"last_modified": "2019-03-27T13:24:54.042Z",
"workflow": "default",
"workflow_step": "published"
},
"elements": {
Expand Down
13 changes: 13 additions & 0 deletions Kontent.Ai.Delivery.Rx.Tests/Fixtures/articles.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@
"articles"
],
"last_modified": "2017-12-08T08:35:27.1009654Z",
"workflow": "default",
"workflow_step": "published"
},
"elements": {
Expand Down Expand Up @@ -163,6 +164,7 @@
"articles"
],
"last_modified": "2017-12-08T08:37:13.6773134Z",
"workflow": "default",
"workflow_step": "published"
},
"elements": {
Expand Down Expand Up @@ -330,6 +332,7 @@
"articles"
],
"last_modified": "2017-12-08T08:40:45.7289755Z",
"workflow": "default",
"workflow_step": "published"
},
"elements": {
Expand Down Expand Up @@ -479,6 +482,7 @@
"articles"
],
"last_modified": "2017-12-08T08:49:53.6039943Z",
"workflow": "default",
"workflow_step": "published"
},
"elements": {
Expand Down Expand Up @@ -635,6 +639,7 @@
"articles"
],
"last_modified": "2017-12-08T08:50:50.6091672Z",
"workflow": "default",
"workflow_step": "published"
},
"elements": {
Expand Down Expand Up @@ -788,6 +793,7 @@
"articles"
],
"last_modified": "2017-12-08T09:01:44.4223969Z",
"workflow": "default",
"workflow_step": "published"
},
"elements": {
Expand Down Expand Up @@ -950,6 +956,7 @@
"type": "hosted_video",
"sitemap_locations": [],
"last_modified": "2017-06-27T12:56:41.1882715Z",
"workflow": "default",
"workflow_step": "published"
},
"elements": {
Expand Down Expand Up @@ -979,6 +986,7 @@
"type": "tweet",
"sitemap_locations": [],
"last_modified": "2017-06-27T13:00:08.2735049Z",
"workflow": "default",
"workflow_step": "published"
},
"elements": {
Expand Down Expand Up @@ -1020,6 +1028,7 @@
"articles"
],
"last_modified": "2017-12-08T08:37:13.6773134Z",
"workflow": "default",
"workflow_step": "published"
},
"elements": {
Expand Down Expand Up @@ -1185,6 +1194,7 @@
"type": "hosted_video",
"sitemap_locations": [],
"last_modified": "2017-06-27T12:57:16.7333276Z",
"workflow": "default",
"workflow_step": "published"
},
"elements": {
Expand Down Expand Up @@ -1216,6 +1226,7 @@
"articles"
],
"last_modified": "2017-12-08T08:49:53.6039943Z",
"workflow": "default",
"workflow_step": "published"
},
"elements": {
Expand Down Expand Up @@ -1372,6 +1383,7 @@
"articles"
],
"last_modified": "2017-12-08T08:50:50.6091672Z",
"workflow": "default",
"workflow_step": "published"
},
"elements": {
Expand Down Expand Up @@ -1525,6 +1537,7 @@
"articles"
],
"last_modified": "2017-12-08T09:01:44.4223969Z",
"workflow": "default",
"workflow_step": "published"
},
"elements": {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@
"articles"
],
"last_modified": "2017-06-27T13:01:54.5735581Z",
"workflow": "default",
"workflow_step": "published"
},
"elements": {
Expand Down Expand Up @@ -95,6 +96,7 @@
"type": "tweet",
"sitemap_locations": [],
"last_modified": "2017-06-27T13:00:08.2735049Z",
"workflow": "default",
"workflow_step": "published"
},
"elements": {
Expand Down Expand Up @@ -134,6 +136,7 @@
"type": "hosted_video",
"sitemap_locations": [],
"last_modified": "2017-06-27T12:57:16.7333276Z",
"workflow": "default",
"workflow_step": "published"
},
"elements": {
Expand Down
5 changes: 5 additions & 0 deletions Kontent.Ai.Delivery.Rx.Tests/Fixtures/items.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@
"about_us"
],
"last_modified": "2017-04-04T13:33:25.0990741Z",
"workflow": "default",
"workflow_step": "published"
},
"elements": {
Expand Down Expand Up @@ -41,6 +42,7 @@
"brewers"
],
"last_modified": "2017-09-07T08:18:16.269361Z",
"workflow": "default",
"workflow_step": "published"
},
"elements": {
Expand Down Expand Up @@ -125,6 +127,7 @@
"about_us"
],
"last_modified": "2016-10-20T12:47:13.65023Z",
"workflow": "default",
"workflow_step": "published"
},
"elements": {
Expand Down Expand Up @@ -167,6 +170,7 @@
"about_us"
],
"last_modified": "2017-04-04T11:48:26.1878079Z",
"workflow": "default",
"workflow_step": "published"
},
"elements": {
Expand Down Expand Up @@ -215,6 +219,7 @@
"about_us"
],
"last_modified": "2016-10-20T12:06:18.3403458Z",
"workflow": "default",
"workflow_step": "published"
},
"elements": {
Expand Down
Loading

0 comments on commit 0e7522a

Please sign in to comment.