Skip to content

Commit

Permalink
[Reporting-CSV Export] Re-write CSV Export using SearchSource (#88303)
Browse files Browse the repository at this point in the history
* [Reporting-CSV Export] Re-write CSV Export using SearchSource

* replace PIT solution with scan-and-scroll

* update tests

* cleanup

* simplify pr

* update docs

* update docs

* update telemetry schema

* use getSearchRequestBody instead of flatten

* Revert "update docs"

This reverts commit ab9f4d9.

* optimize some async calls

* cleanup

* --wip-- [skip ci]

* fix telemetry schema

* fix telemetry tests

* fix snapshot

* api docs

* api doc updates

* use import type

* format the data through chains of maps

* add another saved search to reporting/ecommerce_kibana

* add a failing test

* add error logging to query failures

* put clear scroll in a finally so the ES error can be captured

* log dat error

* set dat fieldsFromSource

* --wip-- [skip ci]

* Revert "add another saved search to reporting/ecommerce_kibana"

This reverts commit 6edf26e.

* functional test fixes

* clean up ecommerce test archive

* add test for new search with fieldsFromSource set

* add tests and refactor tests

* cleanup redundant conditionals

* add GenerateCsv.getFields

* fix some tests

* fix double-escaping

* fix test snapshots and refactoring

* fix other tests

* fix test

* fix default index pattern in functional tests

* fix ts and sort fields when they come from API response

* --wip-- [skip ci]

* fix formatting and increase maxSizeBytes for testing

* remove client-side logic for sanitizing fields

* do not prepend timefield name if it already is a column

* test the logic to prepend timeField

* test the logic to sort the fields

* fix functional test

* preserve the error from data.search

* add functional test for ES returning an error

* fix snapshot

Co-authored-by: Kibana Machine <[email protected]>
  • Loading branch information
tsullivan and kibanamachine authored Mar 16, 2021
1 parent 904d98e commit ec41ae3
Show file tree
Hide file tree
Showing 79 changed files with 6,393 additions and 5,878 deletions.
50 changes: 25 additions & 25 deletions api_docs/data.json
Original file line number Diff line number Diff line change
Expand Up @@ -21764,7 +21764,7 @@
"description": [],
"source": {
"path": "src/plugins/data/server/index.ts",
"lineNumber": 245
"lineNumber": 246
},
"signature": [
"typeof ",
Expand All @@ -21785,7 +21785,7 @@
"description": [],
"source": {
"path": "src/plugins/data/server/index.ts",
"lineNumber": 246
"lineNumber": 247
},
"signature": [
"typeof ",
Expand All @@ -21806,7 +21806,7 @@
"description": [],
"source": {
"path": "src/plugins/data/server/index.ts",
"lineNumber": 247
"lineNumber": 248
},
"signature": [
"({ display: string; val: string; enabled(agg: ",
Expand All @@ -21828,7 +21828,7 @@
"description": [],
"source": {
"path": "src/plugins/data/server/index.ts",
"lineNumber": 248
"lineNumber": 249
},
"signature": [
"typeof ",
Expand All @@ -21849,7 +21849,7 @@
"description": [],
"source": {
"path": "src/plugins/data/server/index.ts",
"lineNumber": 249
"lineNumber": 250
},
"signature": [
"typeof ",
Expand All @@ -21870,7 +21870,7 @@
"description": [],
"source": {
"path": "src/plugins/data/server/index.ts",
"lineNumber": 250
"lineNumber": 251
},
"signature": [
"typeof ",
Expand All @@ -21891,7 +21891,7 @@
"description": [],
"source": {
"path": "src/plugins/data/server/index.ts",
"lineNumber": 251
"lineNumber": 252
},
"signature": [
"(agg: ",
Expand All @@ -21913,7 +21913,7 @@
"description": [],
"source": {
"path": "src/plugins/data/server/index.ts",
"lineNumber": 252
"lineNumber": 253
},
"signature": [
"(agg: ",
Expand All @@ -21935,7 +21935,7 @@
"description": [],
"source": {
"path": "src/plugins/data/server/index.ts",
"lineNumber": 253
"lineNumber": 254
},
"signature": [
"(...types: string[]) => (agg: ",
Expand All @@ -21957,7 +21957,7 @@
"description": [],
"source": {
"path": "src/plugins/data/server/index.ts",
"lineNumber": 254
"lineNumber": 255
},
"signature": [
"typeof ",
Expand All @@ -21978,7 +21978,7 @@
"description": [],
"source": {
"path": "src/plugins/data/server/index.ts",
"lineNumber": 255
"lineNumber": 256
},
"signature": [
"typeof ",
Expand All @@ -21999,7 +21999,7 @@
"description": [],
"source": {
"path": "src/plugins/data/server/index.ts",
"lineNumber": 256
"lineNumber": 257
}
},
{
Expand All @@ -22010,7 +22010,7 @@
"description": [],
"source": {
"path": "src/plugins/data/server/index.ts",
"lineNumber": 257
"lineNumber": 258
},
"signature": [
"typeof ",
Expand All @@ -22031,7 +22031,7 @@
"description": [],
"source": {
"path": "src/plugins/data/server/index.ts",
"lineNumber": 258
"lineNumber": 259
},
"signature": [
"typeof ",
Expand All @@ -22052,7 +22052,7 @@
"description": [],
"source": {
"path": "src/plugins/data/server/index.ts",
"lineNumber": 259
"lineNumber": 260
},
"signature": [
"typeof ",
Expand All @@ -22073,7 +22073,7 @@
"description": [],
"source": {
"path": "src/plugins/data/server/index.ts",
"lineNumber": 260
"lineNumber": 261
}
},
{
Expand All @@ -22084,7 +22084,7 @@
"description": [],
"source": {
"path": "src/plugins/data/server/index.ts",
"lineNumber": 261
"lineNumber": 262
},
"signature": [
"string[]"
Expand All @@ -22098,7 +22098,7 @@
"description": [],
"source": {
"path": "src/plugins/data/server/index.ts",
"lineNumber": 262
"lineNumber": 263
},
"signature": [
"typeof ",
Expand All @@ -22119,7 +22119,7 @@
"description": [],
"source": {
"path": "src/plugins/data/server/index.ts",
"lineNumber": 263
"lineNumber": 264
},
"signature": [
"typeof ",
Expand All @@ -22137,7 +22137,7 @@
"label": "aggs",
"source": {
"path": "src/plugins/data/server/index.ts",
"lineNumber": 244
"lineNumber": 245
}
},
{
Expand All @@ -22148,7 +22148,7 @@
"description": [],
"source": {
"path": "src/plugins/data/server/index.ts",
"lineNumber": 265
"lineNumber": 266
},
"signature": [
"typeof ",
Expand All @@ -22169,7 +22169,7 @@
"description": [],
"source": {
"path": "src/plugins/data/server/index.ts",
"lineNumber": 266
"lineNumber": 267
},
"signature": [
"typeof ",
Expand All @@ -22190,7 +22190,7 @@
"description": [],
"source": {
"path": "src/plugins/data/server/index.ts",
"lineNumber": 267
"lineNumber": 268
},
"signature": [
"typeof ",
Expand All @@ -22211,7 +22211,7 @@
"description": [],
"source": {
"path": "src/plugins/data/server/index.ts",
"lineNumber": 268
"lineNumber": 269
},
"signature": [
"typeof ",
Expand All @@ -22229,7 +22229,7 @@
"label": "search",
"source": {
"path": "src/plugins/data/server/index.ts",
"lineNumber": 243
"lineNumber": 244
},
"initialIsOpen": false
},
Expand Down
Loading

0 comments on commit ec41ae3

Please sign in to comment.