Skip to content

Commit e578adb

Browse files
authored
Merge branch 'main' into astandrik.show-vdisks-of-selected-group-1335
2 parents 3e8b7e1 + 73642db commit e578adb

File tree

8 files changed

+22
-22
lines changed

8 files changed

+22
-22
lines changed

.github/workflows/ci.yml

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,8 @@ name: Node.js CI
33
on:
44
pull_request:
55
branches: ['**']
6+
merge_group:
7+
types: [checks_requested]
68

79
jobs:
810
verify_files:
@@ -38,6 +40,7 @@ jobs:
3840
e2e_tests:
3941
name: Playwright Tests
4042
runs-on: ubuntu-latest
43+
if: ${{github.event.action != 'checks_requested'}}
4144
permissions:
4245
contents: read
4346

@@ -121,6 +124,7 @@ jobs:
121124
bundle_size:
122125
name: Check Bundle Size
123126
runs-on: ubuntu-latest
127+
if: ${{github.event.action != 'checks_requested'}}
124128
outputs:
125129
current_size: ${{ steps.current_size.outputs.size }}
126130
main_size: ${{ steps.main_size.outputs.size }}
@@ -183,7 +187,7 @@ jobs:
183187
deploy_and_update:
184188
name: Deploy and Update PR
185189
needs: [e2e_tests, bundle_size]
186-
if: always() && github.event.pull_request.head.repo.full_name == github.repository
190+
if: ${{always() && github.event.pull_request.head.repo.full_name == github.repository && github.event.action != 'checks_requested'}}
187191
runs-on: ubuntu-latest
188192
permissions:
189193
contents: write

.github/workflows/pr-title.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,11 +7,14 @@ on:
77
- synchronize
88
- reopened
99
- edited
10+
merge_group:
11+
types: [checks_requested]
1012

1113
jobs:
1214
verify_title:
1315
name: Verify Title
1416
runs-on: ubuntu-latest
17+
if: ${{github.event.action != 'checks_requested'}}
1518
steps:
1619
- name: Checkout
1720
uses: actions/checkout@v4

src/components/QueryResultTable/Cell/Cell.tsx

Lines changed: 1 addition & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import React from 'react';
22

3-
import {hideTooltip, showTooltip} from '../../../store/reducers/tooltip';
3+
import {showTooltip} from '../../../store/reducers/tooltip';
44
import {useTypedDispatch} from '../../../utils/hooks';
55
import {b} from '../QueryResultTable';
66

@@ -14,13 +14,6 @@ export const Cell = React.memo(function Cell(props: CellProps) {
1414

1515
const dispatch = useTypedDispatch();
1616

17-
React.useEffect(
18-
() => () => {
19-
dispatch(hideTooltip());
20-
},
21-
[dispatch],
22-
);
23-
2417
return (
2518
<span
2619
className={b('cell', className)}

src/containers/ReduxTooltip/ReduxTooltip.js

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -23,19 +23,19 @@ function ReduxTooltip(props) {
2323
rect: {top: props.positions?.top, left: props.positions?.left},
2424
});
2525

26+
const handleScroll = React.useCallback(() => {
27+
const {hideTooltip, toolTipVisible} = props;
28+
if (toolTipVisible) {
29+
setTimeout(() => hideTooltip(), 500);
30+
}
31+
}, [props]);
32+
2633
React.useEffect(() => {
2734
window.addEventListener('scroll', handleScroll, true);
2835
return () => {
2936
window.removeEventListener('scroll', handleScroll);
3037
};
31-
}, []);
32-
33-
const handleScroll = () => {
34-
const {hideTooltip, toolTipVisible} = props;
35-
if (toolTipVisible) {
36-
setTimeout(() => hideTooltip(), 500);
37-
}
38-
};
38+
}, [handleScroll]);
3939

4040
const renderPositionPopup = (visible, positions, data, additionalData) => {
4141
const {template, popupClassName, hideTooltip} = props;

src/containers/Storage/PaginatedStorage.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ export const PaginatedStorage = ({
3030
parentContainer,
3131
}: PaginatedStorageProps) => {
3232
const {balancer} = useClusterBaseInfo();
33-
const additionalNodesProps = useAdditionalNodeProps({balancer});
33+
const {additionalNodesProps} = useAdditionalNodeProps({balancer});
3434

3535
const [queryParams, setQueryParams] = useQueryParams({
3636
type: StringParam,

src/containers/Storage/Storage.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,7 @@ interface StorageProps {
6767

6868
export const Storage = ({database, nodeId, groupId, pDiskId}: StorageProps) => {
6969
const {balancer} = useClusterBaseInfo();
70-
const additionalNodesProps = useAdditionalNodeProps({balancer});
70+
const {additionalNodesProps} = useAdditionalNodeProps({balancer});
7171

7272
const capabilitiesLoaded = useCapabilitiesLoaded();
7373
const groupsHandlerAvailable = useStorageGroupsHandlerAvailable();

src/containers/Storage/StorageGroups/columns/columns.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -241,12 +241,12 @@ export const getStorageTopGroupsColumns: StorageColumnsGetter = () => {
241241

242242
export const getStorageGroupsColumns: StorageColumnsGetter = (data) => {
243243
const columns = [
244+
groupIdColumn,
244245
poolNameColumn,
245246
typeColumn,
246247
erasureColumn,
247248
degradedColumn,
248249
usageColumn,
249-
groupIdColumn,
250250
usedColumn,
251251
limitColumn,
252252
usedSpaceFlagColumn,

src/containers/Storage/StorageGroups/columns/constants.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,10 +6,10 @@ export const STORAGE_GROUPS_COLUMNS_WIDTH_LS_KEY = 'storageGroupsColumnsWidth';
66
export const STORAGE_GROUPS_SELECTED_COLUMNS_LS_KEY = 'storageGroupsSelectedColumns';
77

88
export const STORAGE_GROUPS_COLUMNS_IDS = {
9+
GroupId: 'GroupId',
910
PoolName: 'PoolName',
1011
MediaType: 'MediaType',
1112
Erasure: 'Erasure',
12-
GroupId: 'GroupId',
1313
Used: 'Used',
1414
Limit: 'Limit',
1515
Usage: 'Usage',
@@ -24,10 +24,10 @@ export const STORAGE_GROUPS_COLUMNS_IDS = {
2424
type StorageGroupsColumnId = ValueOf<typeof STORAGE_GROUPS_COLUMNS_IDS>;
2525

2626
export const DEFAULT_STORAGE_GROUPS_COLUMNS: StorageGroupsColumnId[] = [
27+
'GroupId',
2728
'PoolName',
2829
'MediaType',
2930
'Erasure',
30-
'GroupId',
3131
'Used',
3232
'Limit',
3333
'Usage',

0 commit comments

Comments
 (0)