diff --git a/.apigentools-info b/.apigentools-info index ddf90052f5fa..40822d7dc2e5 100644 --- a/.apigentools-info +++ b/.apigentools-info @@ -4,13 +4,13 @@ "spec_versions": { "v1": { "apigentools_version": "1.6.4", - "regenerated": "2023-05-24 14:57:08.935141", - "spec_repo_commit": "a5ef3fab" + "regenerated": "2023-05-25 19:51:58.110605", + "spec_repo_commit": "e4c04414" }, "v2": { "apigentools_version": "1.6.4", - "regenerated": "2023-05-24 14:57:08.948020", - "spec_repo_commit": "a5ef3fab" + "regenerated": "2023-05-25 19:51:58.127182", + "spec_repo_commit": "e4c04414" } } } \ No newline at end of file diff --git a/.generator/schemas/v1/openapi.yaml b/.generator/schemas/v1/openapi.yaml index 486f4c24326a..ee83aebc568e 100644 --- a/.generator/schemas/v1/openapi.yaml +++ b/.generator/schemas/v1/openapi.yaml @@ -4289,10 +4289,6 @@ components: description: Widget query. example: '@service:app' type: string - show_year: - description: Option to display the year in the date column. To be used with - the `event_stream`. - type: boolean storage: description: Option for storage location. Feature in Private Beta. example: indexes diff --git a/cassettes/v1/Dashboards_1335235736/Create-a-new-dashboard-with-event_stream-list_stream-widget_4186303400/frozen.json b/cassettes/v1/Dashboards_1335235736/Create-a-new-dashboard-with-event_stream-list_stream-widget_4186303400/frozen.json index 47dd7adb9bd9..3a3551ed6e11 100644 --- a/cassettes/v1/Dashboards_1335235736/Create-a-new-dashboard-with-event_stream-list_stream-widget_4186303400/frozen.json +++ b/cassettes/v1/Dashboards_1335235736/Create-a-new-dashboard-with-event_stream-list_stream-widget_4186303400/frozen.json @@ -1 +1 @@ -"2023-05-23T16:19:21.371Z" +"2023-02-08T16:18:06.266Z" diff --git a/cassettes/v1/Dashboards_1335235736/Create-a-new-dashboard-with-event_stream-list_stream-widget_4186303400/recording.har b/cassettes/v1/Dashboards_1335235736/Create-a-new-dashboard-with-event_stream-list_stream-widget_4186303400/recording.har index 11afb4599968..feb530f904bc 100644 --- a/cassettes/v1/Dashboards_1335235736/Create-a-new-dashboard-with-event_stream-list_stream-widget_4186303400/recording.har +++ b/cassettes/v1/Dashboards_1335235736/Create-a-new-dashboard-with-event_stream-list_stream-widget_4186303400/recording.har @@ -8,11 +8,11 @@ }, "entries": [ { - "_id": "3b2bfad3f58d6875c744251ff9e36f51", + "_id": "e13a56fb8e7ecc8fcccd1dc11cfaf098", "_order": 0, "cache": {}, "request": { - "bodySize": 371, + "bodySize": 354, "cookies": [], "headers": [ { @@ -26,23 +26,23 @@ "value": "application/json" } ], - "headersSize": 557, + "headersSize": 559, "httpVersion": "HTTP/1.1", "method": "POST", "postData": { "mimeType": "application/json", "params": [], - "text": "{\"layout_type\":\"ordered\",\"title\":\"Test-Create_a_new_dashboard_with_event_stream_list_stream_widget-1684858761 with list_stream widget\",\"widgets\":[{\"definition\":{\"requests\":[{\"columns\":[{\"field\":\"timestamp\",\"width\":\"auto\"}],\"query\":{\"data_source\":\"event_stream\",\"event_size\":\"l\",\"query_string\":\"\",\"show_year\":true},\"response_format\":\"event_list\"}],\"type\":\"list_stream\"}}]}" + "text": "{\"layout_type\":\"ordered\",\"title\":\"Test-Create_a_new_dashboard_with_event_stream_list_stream_widget-1675873086 with list_stream widget\",\"widgets\":[{\"definition\":{\"requests\":[{\"columns\":[{\"field\":\"timestamp\",\"width\":\"auto\"}],\"query\":{\"data_source\":\"event_stream\",\"event_size\":\"l\",\"query_string\":\"\"},\"response_format\":\"event_list\"}],\"type\":\"list_stream\"}}]}" }, "queryString": [], "url": "https://api.datadoghq.com/api/v1/dashboard" }, "response": { - "bodySize": 785, + "bodySize": 768, "content": { "mimeType": "application/json", - "size": 785, - "text": "{\"id\":\"s56-ph7-gmi\",\"title\":\"Test-Create_a_new_dashboard_with_event_stream_list_stream_widget-1684858761 with list_stream widget\",\"description\":null,\"author_handle\":\"frog@datadoghq.com\",\"author_name\":null,\"layout_type\":\"ordered\",\"url\":\"/dashboard/s56-ph7-gmi/test-createanewdashboardwitheventstreamliststreamwidget-1684858761-with-liststre\",\"is_read_only\":false,\"template_variables\":null,\"widgets\":[{\"definition\":{\"requests\":[{\"columns\":[{\"field\":\"timestamp\",\"width\":\"auto\"}],\"query\":{\"data_source\":\"event_stream\",\"event_size\":\"l\",\"query_string\":\"\",\"show_year\":true},\"response_format\":\"event_list\"}],\"type\":\"list_stream\"},\"id\":3197043212239739}],\"notify_list\":null,\"created_at\":\"2023-05-23T16:19:21.576643+00:00\",\"modified_at\":\"2023-05-23T16:19:21.576643+00:00\",\"restricted_roles\":[]}\n" + "size": 768, + "text": "{\"notify_list\":null,\"description\":null,\"restricted_roles\":[],\"author_name\":null,\"template_variables\":null,\"is_read_only\":false,\"id\":\"zmh-rud-g4b\",\"title\":\"Test-Create_a_new_dashboard_with_event_stream_list_stream_widget-1675873086 with list_stream widget\",\"url\":\"/dashboard/zmh-rud-g4b/test-createanewdashboardwitheventstreamliststreamwidget-1675873086-with-liststre\",\"created_at\":\"2023-02-08T16:18:06.512655+00:00\",\"modified_at\":\"2023-02-08T16:18:06.512655+00:00\",\"author_handle\":\"frog@datadoghq.com\",\"widgets\":[{\"definition\":{\"requests\":[{\"query\":{\"query_string\":\"\",\"data_source\":\"event_stream\",\"event_size\":\"l\"},\"response_format\":\"event_list\",\"columns\":[{\"field\":\"timestamp\",\"width\":\"auto\"}]}],\"type\":\"list_stream\"},\"id\":3303593204363469}],\"layout_type\":\"ordered\"}\n" }, "cookies": [], "headers": [ @@ -51,17 +51,17 @@ "value": "application/json" } ], - "headersSize": 517, + "headersSize": 490, "httpVersion": "HTTP/1.1", "redirectURL": "", "status": 200, "statusText": "OK" }, - "startedDateTime": "2023-05-23T16:19:21.388Z", - "time": 246 + "startedDateTime": "2023-02-08T16:18:06.275Z", + "time": 272 }, { - "_id": "a93850478692fdce320fae4670782faa", + "_id": "ee1b2016b8d93d3f4959f703304bf7c6", "_order": 0, "cache": {}, "request": { @@ -74,18 +74,18 @@ "value": "application/json" } ], - "headersSize": 518, + "headersSize": 520, "httpVersion": "HTTP/1.1", "method": "DELETE", "queryString": [], - "url": "https://api.datadoghq.com/api/v1/dashboard/s56-ph7-gmi" + "url": "https://api.datadoghq.com/api/v1/dashboard/zmh-rud-g4b" }, "response": { "bodySize": 39, "content": { "mimeType": "application/json", "size": 39, - "text": "{\"deleted_dashboard_id\":\"s56-ph7-gmi\"}\n" + "text": "{\"deleted_dashboard_id\":\"zmh-rud-g4b\"}\n" }, "cookies": [], "headers": [ @@ -94,14 +94,14 @@ "value": "application/json" } ], - "headersSize": 516, + "headersSize": 489, "httpVersion": "HTTP/1.1", "redirectURL": "", "status": 200, "statusText": "OK" }, - "startedDateTime": "2023-05-23T16:19:21.645Z", - "time": 173 + "startedDateTime": "2023-02-08T16:18:06.574Z", + "time": 215 } ], "pages": [], diff --git a/examples/v1/dashboards/CreateDashboard_2432046716.ts b/examples/v1/dashboards/CreateDashboard_2432046716.ts index 5deaa152beba..1f46633c8744 100644 --- a/examples/v1/dashboards/CreateDashboard_2432046716.ts +++ b/examples/v1/dashboards/CreateDashboard_2432046716.ts @@ -27,7 +27,6 @@ const params: v1.DashboardsApiCreateDashboardRequest = { dataSource: "event_stream", queryString: "", eventSize: "l", - showYear: true, }, responseFormat: "event_list", }, diff --git a/features/v1/dashboards.feature b/features/v1/dashboards.feature index d05f929794fb..80602421b550 100644 --- a/features/v1/dashboards.feature +++ b/features/v1/dashboards.feature @@ -261,14 +261,13 @@ Feature: Dashboards @team:DataDog/dashboards-backend Scenario: Create a new dashboard with event_stream list_stream widget Given new "CreateDashboard" request - And body with value {"layout_type": "ordered","title": "{{ unique }} with list_stream widget","widgets": [{"definition": {"type": "list_stream","requests": [{"columns": [{"width": "auto","field": "timestamp"}],"query": {"data_source": "event_stream","query_string": "","event_size": "l", "show_year": true},"response_format": "event_list"}]}}]} + And body with value {"layout_type": "ordered","title": "{{ unique }} with list_stream widget","widgets": [{"definition": {"type": "list_stream","requests": [{"columns": [{"width": "auto","field": "timestamp"}],"query": {"data_source": "event_stream","query_string": "","event_size": "l"},"response_format": "event_list"}]}}]} When the request is sent Then the response status is 200 OK And the response "widgets[0].definition.type" is equal to "list_stream" And the response "widgets[0].definition.requests[0].response_format" is equal to "event_list" And the response "widgets[0].definition.requests[0].query.data_source" is equal to "event_stream" And the response "widgets[0].definition.requests[0].query.event_size" is equal to "l" - And the response "widgets[0].definition.requests[0].query.show_year" is equal to true @team:DataDog/dashboards-backend Scenario: Create a new dashboard with event_stream widget diff --git a/packages/datadog-api-client-v1/models/ListStreamQuery.ts b/packages/datadog-api-client-v1/models/ListStreamQuery.ts index f99d39af3cf6..48fe0ec620d6 100644 --- a/packages/datadog-api-client-v1/models/ListStreamQuery.ts +++ b/packages/datadog-api-client-v1/models/ListStreamQuery.ts @@ -38,10 +38,6 @@ export class ListStreamQuery { * Widget query. */ "queryString": string; - /** - * Option to display the year in the date column. To be used with the `event_stream`. - */ - "showYear"?: boolean; /** * Option for storage location. Feature in Private Beta. */ @@ -82,10 +78,6 @@ export class ListStreamQuery { type: "string", required: true, }, - showYear: { - baseName: "show_year", - type: "boolean", - }, storage: { baseName: "storage", type: "string",