ydb-embedded-ui 1.14.1 → 1.14.2
Sign up to get free protection for your applications and to get access to all the features.
- package/CHANGELOG.md +8 -0
- package/dist/containers/Tenant/Diagnostics/Overview/Overview.tsx +2 -1
- package/dist/containers/Tenant/Diagnostics/TopQueries/TopQueries.js +1 -1
- package/dist/containers/Tenant/Diagnostics/TopShards/TopShards.js +1 -1
- package/dist/store/reducers/explainQuery.js +4 -0
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
@@ -1,5 +1,13 @@
|
|
1
1
|
# Changelog
|
2
2
|
|
3
|
+
## [1.14.2](https://github.com/ydb-platform/ydb-embedded-ui/compare/v1.14.1...v1.14.2) (2022-09-19)
|
4
|
+
|
5
|
+
|
6
|
+
### Bug Fixes
|
7
|
+
|
8
|
+
* process new explain format ([2ede9ab](https://github.com/ydb-platform/ydb-embedded-ui/commit/2ede9ab11a29667204cca110858b0cca74588255))
|
9
|
+
* process new query format ([eb880be](https://github.com/ydb-platform/ydb-embedded-ui/commit/eb880be36b99efe7f0c0ff96b58401293ff080e1))
|
10
|
+
|
3
11
|
## [1.14.1](https://github.com/ydb-platform/ydb-embedded-ui/compare/v1.14.0...v1.14.1) (2022-09-16)
|
4
12
|
|
5
13
|
|
@@ -69,7 +69,8 @@ function Overview(props: OverviewProps) {
|
|
69
69
|
currentSchemaPath,
|
70
70
|
} = useSelector((state: any) => state.schema);
|
71
71
|
|
72
|
-
|
72
|
+
let {data: olapStats} = useSelector((state: any) => state.olapStats);
|
73
|
+
olapStats = olapStats && olapStats.result ? olapStats.result : olapStats;
|
73
74
|
|
74
75
|
const fetchOverviewData = () => {
|
75
76
|
const {tenantName, type} = props;
|
@@ -72,6 +72,9 @@ export const getExplainQueryAst = ({query, database}) => {
|
|
72
72
|
return createApiRequest({
|
73
73
|
request: window.api.getExplainQueryAst(query, database),
|
74
74
|
actions: GET_EXPLAIN_QUERY_AST,
|
75
|
+
dataHandler: (result) => {
|
76
|
+
return result && result.ast ? result.ast : result;
|
77
|
+
},
|
75
78
|
});
|
76
79
|
};
|
77
80
|
|
@@ -87,6 +90,7 @@ export const getExplainQuery = ({query, database}) => {
|
|
87
90
|
request: window.api.getExplainQuery(query, database),
|
88
91
|
actions: GET_EXPLAIN_QUERY,
|
89
92
|
dataHandler: (result) => {
|
93
|
+
result = result && result.plan ? result.plan : result;
|
90
94
|
let links = [];
|
91
95
|
let nodes = [];
|
92
96
|
let graphDepth;
|