Skip to content

Commit

Permalink
Bug/logs-view-data-config: Added Columns in Data Configuration for Lo…
Browse files Browse the repository at this point in the history
…gs View (#955)

* Fix for app crash and dimension disaapearing

Signed-off-by: ruchika-narang <[email protected]>

* optimized the code and updated snapshots

Signed-off-by: Shankha Das <[email protected]>

* resolved PR comments

Signed-off-by: Shankha Das <[email protected]>

* resolved data configuration bug for logs view

Signed-off-by: Shankha Das <[email protected]>

Signed-off-by: ruchika-narang <[email protected]>
Signed-off-by: Shankha Das <[email protected]>
Co-authored-by: ruchika-narang <[email protected]>
  • Loading branch information
shankha-das and ruchika-narang authored Aug 26, 2022
1 parent 0e36f59 commit f90739b
Show file tree
Hide file tree
Showing 11 changed files with 967 additions and 20 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -72,6 +72,16 @@ exports[`Utils helper functions renders displayVisualization function 1`] = `
"size": 4,
"status": 200,
},
"explorerFields": Array [
Object {
"name": "avg(FlightDelayMin)",
"type": "double",
},
Object {
"name": "Carrier",
"type": "keyword",
},
],
},
"indexFields": Object {},
"query": Object {},
Expand Down Expand Up @@ -488,6 +498,16 @@ exports[`Utils helper functions renders displayVisualization function 1`] = `
"size": 4,
"status": 200,
},
"explorerFields": Array [
Object {
"name": "avg(FlightDelayMin)",
"type": "double",
},
Object {
"name": "Carrier",
"type": "keyword",
},
],
},
"indexFields": Object {},
"query": Object {},
Expand Down Expand Up @@ -927,6 +947,16 @@ exports[`Utils helper functions renders displayVisualization function 1`] = `
"size": 4,
"status": 200,
},
"explorerFields": Array [
Object {
"name": "avg(FlightDelayMin)",
"type": "double",
},
Object {
"name": "Carrier",
"type": "keyword",
},
],
},
"indexFields": Object {},
"query": Object {},
Expand Down Expand Up @@ -1539,6 +1569,16 @@ exports[`Utils helper functions renders displayVisualization function 2`] = `
"size": 4,
"status": 200,
},
"explorerFields": Array [
Object {
"name": "avg(FlightDelayMin)",
"type": "double",
},
Object {
"name": "Carrier",
"type": "keyword",
},
],
},
"indexFields": Object {},
"query": Object {},
Expand Down Expand Up @@ -2008,6 +2048,16 @@ exports[`Utils helper functions renders displayVisualization function 2`] = `
"size": 4,
"status": 200,
},
"explorerFields": Array [
Object {
"name": "avg(FlightDelayMin)",
"type": "double",
},
Object {
"name": "Carrier",
"type": "keyword",
},
],
},
"indexFields": Object {},
"query": Object {},
Expand Down Expand Up @@ -2531,6 +2581,16 @@ exports[`Utils helper functions renders displayVisualization function 2`] = `
"size": 4,
"status": 200,
},
"explorerFields": Array [
Object {
"name": "avg(FlightDelayMin)",
"type": "double",
},
Object {
"name": "Carrier",
"type": "keyword",
},
],
},
"indexFields": Object {},
"query": Object {},
Expand Down Expand Up @@ -3077,6 +3137,16 @@ exports[`Utils helper functions renders displayVisualization function 3`] = `
"size": 4,
"status": 200,
},
"explorerFields": Array [
Object {
"name": "avg(FlightDelayMin)",
"type": "double",
},
Object {
"name": "Carrier",
"type": "keyword",
},
],
},
"indexFields": Object {},
"query": Object {},
Expand Down Expand Up @@ -3356,6 +3426,16 @@ exports[`Utils helper functions renders displayVisualization function 3`] = `
"size": 4,
"status": 200,
},
"explorerFields": Array [
Object {
"name": "avg(FlightDelayMin)",
"type": "double",
},
Object {
"name": "Carrier",
"type": "keyword",
},
],
},
"indexFields": Object {},
"query": Object {},
Expand Down Expand Up @@ -3658,6 +3738,16 @@ exports[`Utils helper functions renders displayVisualization function 3`] = `
"size": 4,
"status": 200,
},
"explorerFields": Array [
Object {
"name": "avg(FlightDelayMin)",
"type": "double",
},
Object {
"name": "Carrier",
"type": "keyword",
},
],
},
"indexFields": Object {},
"query": Object {},
Expand Down Expand Up @@ -4098,6 +4188,16 @@ exports[`Utils helper functions renders displayVisualization function 4`] = `
"size": 0,
"status": 200,
},
"explorerFields": Array [
Object {
"name": "count('ip')",
"type": "integer",
},
Object {
"name": "span(timestamp,1h)",
"type": "timestamp",
},
],
},
"indexFields": Object {},
"query": Object {},
Expand Down Expand Up @@ -4323,6 +4423,16 @@ exports[`Utils helper functions renders displayVisualization function 4`] = `
"size": 0,
"status": 200,
},
"explorerFields": Array [
Object {
"name": "count('ip')",
"type": "integer",
},
Object {
"name": "span(timestamp,1h)",
"type": "timestamp",
},
],
},
"indexFields": Object {},
"query": Object {},
Expand Down Expand Up @@ -4571,6 +4681,16 @@ exports[`Utils helper functions renders displayVisualization function 4`] = `
"size": 0,
"status": 200,
},
"explorerFields": Array [
Object {
"name": "count('ip')",
"type": "integer",
},
Object {
"name": "span(timestamp,1h)",
"type": "timestamp",
},
],
},
"indexFields": Object {},
"query": Object {},
Expand Down
2 changes: 1 addition & 1 deletion public/components/custom_panels/helpers/utils.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -300,7 +300,7 @@ export const displayVisualization = (metaData: any, data: any, type: string) =>
query: {},
indexFields: {},
userConfigs: metaData.user_configs,
explorer: { explorerData: data },
explorer: { explorerData: data, explorerFields: data.metadata.fields },
})}
/>
);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2775,11 +2775,11 @@ exports[`Config panel component Renders config panel with visualization data 1`]
},
],
},
"fulllabel": "Logs View",
"fulllabel": "Logs view",
"icon": [Function],
"icontype": "visTable",
"id": "logs_view",
"label": "Logs View",
"label": "Logs view",
"name": "logs_view",
"selection": Object {
"dataLoss": "nothing",
Expand Down
Loading

0 comments on commit f90739b

Please sign in to comment.