forked from elastic/kibana
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[EPM] Install Lens assets from packages if present. (elastic#88189)
* Install Lens assets from packages if present. * Add integration tests for Lens assets.
- Loading branch information
Showing
8 changed files
with
250 additions
and
0 deletions.
There are no files selected for viewing
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
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
114 changes: 114 additions & 0 deletions
114
...api_integration/apis/fixtures/test_packages/all_assets/0.1.0/kibana/lens/sample_lens.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,114 @@ | ||
{ | ||
"type": "lens", | ||
"id": "sample_lens", | ||
"attributes": { | ||
"title": "sample-lens", | ||
"description": "", | ||
"visualizationType": "lnsXY", | ||
"state": { | ||
"datasourceStates": { | ||
"indexpattern": { | ||
"layers": { | ||
"91b37ed1-ec9f-401d-8ba5-990c2fc65cd0": { | ||
"columns": { | ||
"2c9a6ea8-f3c1-4178-b6af-9e1a5811888a": { | ||
"label": "Top values of HostDetails.agent.name", | ||
"dataType": "string", | ||
"operationType": "terms", | ||
"scale": "ordinal", | ||
"sourceField": "HostDetails.agent.name", | ||
"isBucketed": true, | ||
"params": { | ||
"size": 5, | ||
"orderBy": { | ||
"type": "column", | ||
"columnId": "64b26756-2616-4835-bf77-e0e3807cf827" | ||
}, | ||
"orderDirection": "desc", | ||
"otherBucket": true, | ||
"missingBucket": false | ||
} | ||
}, | ||
"64b26756-2616-4835-bf77-e0e3807cf827": { | ||
"label": "Count of records", | ||
"dataType": "number", | ||
"operationType": "count", | ||
"isBucketed": false, | ||
"scale": "ratio", | ||
"sourceField": "Records" | ||
} | ||
}, | ||
"columnOrder": [ | ||
"2c9a6ea8-f3c1-4178-b6af-9e1a5811888a", | ||
"64b26756-2616-4835-bf77-e0e3807cf827" | ||
], | ||
"incompleteColumns": {} | ||
} | ||
} | ||
} | ||
}, | ||
"visualization": { | ||
"legend": { | ||
"isVisible": true, | ||
"position": "right" | ||
}, | ||
"valueLabels": "hide", | ||
"fittingFunction": "None", | ||
"axisTitlesVisibilitySettings": { | ||
"x": true, | ||
"yLeft": true, | ||
"yRight": true | ||
}, | ||
"tickLabelsVisibilitySettings": { | ||
"x": true, | ||
"yLeft": true, | ||
"yRight": true | ||
}, | ||
"gridlinesVisibilitySettings": { | ||
"x": true, | ||
"yLeft": true, | ||
"yRight": true | ||
}, | ||
"preferredSeriesType": "bar_stacked", | ||
"layers": [ | ||
{ | ||
"layerId": "91b37ed1-ec9f-401d-8ba5-990c2fc65cd0", | ||
"accessors": [ | ||
"64b26756-2616-4835-bf77-e0e3807cf827" | ||
], | ||
"position": "top", | ||
"seriesType": "bar_stacked", | ||
"showGridlines": false, | ||
"xAccessor": "2c9a6ea8-f3c1-4178-b6af-9e1a5811888a" | ||
} | ||
] | ||
}, | ||
"query": { | ||
"query": "", | ||
"language": "kuery" | ||
}, | ||
"filters": [] | ||
} | ||
}, | ||
"references": [ | ||
{ | ||
"type": "index-pattern", | ||
"id": "metrics-*", | ||
"name": "indexpattern-datasource-current-indexpattern" | ||
}, | ||
{ | ||
"type": "index-pattern", | ||
"id": "metrics-*", | ||
"name": "indexpattern-datasource-layer-91b37ed1-ec9f-401d-8ba5-990c2fc65cd0" | ||
} | ||
], | ||
"migrationVersion": { | ||
"lens": "7.11.0" | ||
}, | ||
"updated_at": "2021-01-13T15:16:10.075Z", | ||
"version": "WzI5NCwxXQ==", | ||
"namespaces": [ | ||
"default" | ||
], | ||
"score": 0 | ||
} |
114 changes: 114 additions & 0 deletions
114
...api_integration/apis/fixtures/test_packages/all_assets/0.2.0/kibana/lens/sample_lens.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,114 @@ | ||
{ | ||
"type": "lens", | ||
"id": "sample_lens", | ||
"attributes": { | ||
"title": "sample-lens", | ||
"description": "", | ||
"visualizationType": "lnsXY", | ||
"state": { | ||
"datasourceStates": { | ||
"indexpattern": { | ||
"layers": { | ||
"91b37ed1-ec9f-401d-8ba5-990c2fc65cd0": { | ||
"columns": { | ||
"2c9a6ea8-f3c1-4178-b6af-9e1a5811888a": { | ||
"label": "Top values of HostDetails.agent.name", | ||
"dataType": "string", | ||
"operationType": "terms", | ||
"scale": "ordinal", | ||
"sourceField": "HostDetails.agent.name", | ||
"isBucketed": true, | ||
"params": { | ||
"size": 5, | ||
"orderBy": { | ||
"type": "column", | ||
"columnId": "64b26756-2616-4835-bf77-e0e3807cf827" | ||
}, | ||
"orderDirection": "desc", | ||
"otherBucket": true, | ||
"missingBucket": false | ||
} | ||
}, | ||
"64b26756-2616-4835-bf77-e0e3807cf827": { | ||
"label": "Count of records", | ||
"dataType": "number", | ||
"operationType": "count", | ||
"isBucketed": false, | ||
"scale": "ratio", | ||
"sourceField": "Records" | ||
} | ||
}, | ||
"columnOrder": [ | ||
"2c9a6ea8-f3c1-4178-b6af-9e1a5811888a", | ||
"64b26756-2616-4835-bf77-e0e3807cf827" | ||
], | ||
"incompleteColumns": {} | ||
} | ||
} | ||
} | ||
}, | ||
"visualization": { | ||
"legend": { | ||
"isVisible": true, | ||
"position": "right" | ||
}, | ||
"valueLabels": "hide", | ||
"fittingFunction": "None", | ||
"axisTitlesVisibilitySettings": { | ||
"x": true, | ||
"yLeft": true, | ||
"yRight": true | ||
}, | ||
"tickLabelsVisibilitySettings": { | ||
"x": true, | ||
"yLeft": true, | ||
"yRight": true | ||
}, | ||
"gridlinesVisibilitySettings": { | ||
"x": true, | ||
"yLeft": true, | ||
"yRight": true | ||
}, | ||
"preferredSeriesType": "bar_stacked", | ||
"layers": [ | ||
{ | ||
"layerId": "91b37ed1-ec9f-401d-8ba5-990c2fc65cd0", | ||
"accessors": [ | ||
"64b26756-2616-4835-bf77-e0e3807cf827" | ||
], | ||
"position": "top", | ||
"seriesType": "bar_stacked", | ||
"showGridlines": false, | ||
"xAccessor": "2c9a6ea8-f3c1-4178-b6af-9e1a5811888a" | ||
} | ||
] | ||
}, | ||
"query": { | ||
"query": "", | ||
"language": "kuery" | ||
}, | ||
"filters": [] | ||
} | ||
}, | ||
"references": [ | ||
{ | ||
"type": "index-pattern", | ||
"id": "metrics-*", | ||
"name": "indexpattern-datasource-current-indexpattern" | ||
}, | ||
{ | ||
"type": "index-pattern", | ||
"id": "metrics-*", | ||
"name": "indexpattern-datasource-layer-91b37ed1-ec9f-401d-8ba5-990c2fc65cd0" | ||
} | ||
], | ||
"migrationVersion": { | ||
"lens": "7.11.0" | ||
}, | ||
"updated_at": "2021-01-13T15:16:10.075Z", | ||
"version": "WzI5NCwxXQ==", | ||
"namespaces": [ | ||
"default" | ||
], | ||
"score": 0 | ||
} |