ydb-embedded-ui 3.1.0 → 3.2.0
Sign up to get free protection for your applications and to get access to all the features.
- package/CHANGELOG.md +19 -0
- package/README.md +2 -0
- package/dist/components/DateRange/DateRange.scss +11 -0
- package/dist/{containers/Tenant/Diagnostics/TopShards → components}/DateRange/DateRange.tsx +7 -7
- package/dist/{containers/Tenant/Diagnostics/TopShards → components}/DateRange/index.ts +0 -0
- package/dist/components/Illustration/Illustration.tsx +4 -11
- package/dist/components/InfoViewer/InfoViewer.scss +2 -0
- package/dist/containers/Storage/DiskStateProgressBar/DiskStateProgressBar.tsx +1 -1
- package/dist/containers/Storage/StorageNodes/StorageNodes.tsx +16 -0
- package/dist/containers/Tenant/Diagnostics/Diagnostics.tsx +4 -5
- package/dist/containers/Tenant/Diagnostics/DiagnosticsPages.ts +7 -7
- package/dist/containers/Tenant/Diagnostics/{TopShards/TopShards.scss → OverloadedShards/OverloadedShards.scss} +1 -1
- package/dist/containers/Tenant/Diagnostics/{TopShards/TopShards.tsx → OverloadedShards/OverloadedShards.tsx} +10 -11
- package/dist/containers/Tenant/Diagnostics/{TopShards → OverloadedShards}/i18n/en.json +0 -0
- package/dist/containers/Tenant/Diagnostics/OverloadedShards/i18n/index.ts +11 -0
- package/dist/containers/Tenant/Diagnostics/{TopShards → OverloadedShards}/i18n/ru.json +0 -0
- package/dist/containers/Tenant/Diagnostics/OverloadedShards/index.ts +1 -0
- package/dist/containers/Tenant/Diagnostics/TopQueries/TopQueries.scss +16 -19
- package/dist/containers/Tenant/Diagnostics/TopQueries/TopQueries.tsx +202 -0
- package/dist/containers/Tenant/Diagnostics/TopQueries/i18n/en.json +4 -0
- package/dist/containers/Tenant/Diagnostics/{TopShards → TopQueries}/i18n/index.ts +1 -1
- package/dist/containers/Tenant/Diagnostics/TopQueries/i18n/ru.json +4 -0
- package/dist/containers/Tenant/Diagnostics/TopQueries/index.ts +1 -0
- package/dist/containers/UserSettings/UserSettings.tsx +1 -1
- package/dist/services/api.d.ts +7 -0
- package/dist/store/reducers/describe.ts +4 -1
- package/dist/store/reducers/executeTopQueries.ts +170 -0
- package/dist/store/reducers/settings.js +1 -1
- package/dist/store/reducers/shardsWorkload.ts +9 -9
- package/dist/store/reducers/storage.js +2 -0
- package/dist/store/reducers/{tablets.js → tablets.ts} +30 -17
- package/dist/store/state-url-mapping.js +10 -2
- package/dist/types/api/compute.ts +52 -0
- package/dist/types/api/consumer.ts +257 -0
- package/dist/types/api/enums.ts +2 -2
- package/dist/types/api/nodes.ts +5 -2
- package/dist/types/api/pdisk.ts +3 -0
- package/dist/types/api/schema.ts +1 -0
- package/dist/types/api/storage.ts +31 -28
- package/dist/types/api/tablet.ts +18 -2
- package/dist/types/api/tenant.ts +4 -1
- package/dist/types/api/topic.ts +157 -0
- package/dist/types/api/vdisk.ts +3 -0
- package/dist/types/store/executeTopQueries.ts +29 -0
- package/dist/types/store/schema.ts +3 -3
- package/dist/types/store/shardsWorkload.ts +3 -3
- package/dist/types/store/tablets.ts +42 -0
- package/dist/utils/getNodesColumns.js +8 -1
- package/package.json +3 -3
- package/dist/containers/Tenant/Diagnostics/TopQueries/TopQueries.js +0 -188
- package/dist/containers/Tenant/Diagnostics/TopShards/DateRange/DateRange.scss +0 -13
- package/dist/containers/Tenant/Diagnostics/TopShards/index.ts +0 -1
- package/dist/store/reducers/executeTopQueries.js +0 -66
- package/dist/types/api/consumers.ts +0 -3
@@ -1,13 +0,0 @@
|
|
1
|
-
.top-shards {
|
2
|
-
&__date-range {
|
3
|
-
&-input {
|
4
|
-
min-width: 190px;
|
5
|
-
padding: 5px 8px;
|
6
|
-
|
7
|
-
color: var(--yc-color-text-primary);
|
8
|
-
border: 1px solid var(--yc-color-line-generic);
|
9
|
-
border-radius: var(--yc-border-radius-m);
|
10
|
-
background: transparent;
|
11
|
-
}
|
12
|
-
}
|
13
|
-
}
|
@@ -1 +0,0 @@
|
|
1
|
-
export * from './TopShards';
|
@@ -1,66 +0,0 @@
|
|
1
|
-
import '../../services/api';
|
2
|
-
|
3
|
-
import {parseQueryAPIExecuteResponse} from '../../utils/query';
|
4
|
-
|
5
|
-
import {createRequestActionTypes, createApiRequest} from '../utils';
|
6
|
-
|
7
|
-
const SEND_QUERY = createRequestActionTypes('top-queries', 'SEND_QUERY');
|
8
|
-
const SET_QUERY_OPTIONS = createRequestActionTypes('top-queries', 'SET_QUERY_OPTIONS');
|
9
|
-
|
10
|
-
const initialState = {
|
11
|
-
loading: false,
|
12
|
-
wasLoaded: false,
|
13
|
-
};
|
14
|
-
|
15
|
-
const executeTopQueries = (state = initialState, action) => {
|
16
|
-
switch (action.type) {
|
17
|
-
case SEND_QUERY.REQUEST: {
|
18
|
-
return {
|
19
|
-
...state,
|
20
|
-
loading: true,
|
21
|
-
error: undefined,
|
22
|
-
};
|
23
|
-
}
|
24
|
-
case SEND_QUERY.SUCCESS: {
|
25
|
-
return {
|
26
|
-
...state,
|
27
|
-
data: action.data,
|
28
|
-
loading: false,
|
29
|
-
error: undefined,
|
30
|
-
wasLoaded: true,
|
31
|
-
};
|
32
|
-
}
|
33
|
-
// 401 Unauthorized error is handled by GenericAPI
|
34
|
-
case SEND_QUERY.FAILURE: {
|
35
|
-
return {
|
36
|
-
...state,
|
37
|
-
error: action.error || 'Unauthorized',
|
38
|
-
loading: false,
|
39
|
-
};
|
40
|
-
}
|
41
|
-
case SET_QUERY_OPTIONS:
|
42
|
-
return {
|
43
|
-
...state,
|
44
|
-
...action.data,
|
45
|
-
};
|
46
|
-
default:
|
47
|
-
return state;
|
48
|
-
}
|
49
|
-
};
|
50
|
-
|
51
|
-
export const sendQuery = ({query, database, action}) => {
|
52
|
-
return createApiRequest({
|
53
|
-
request: window.api.sendQuery({schema: 'modern', query, database, action}),
|
54
|
-
actions: SEND_QUERY,
|
55
|
-
dataHandler: parseQueryAPIExecuteResponse,
|
56
|
-
});
|
57
|
-
};
|
58
|
-
|
59
|
-
export function setQueryOptions(options) {
|
60
|
-
return {
|
61
|
-
type: SET_QUERY_OPTIONS,
|
62
|
-
data: options,
|
63
|
-
};
|
64
|
-
}
|
65
|
-
|
66
|
-
export default executeTopQueries;
|