Skip to content

Commit 86b2454

Browse files
authored
Merge branch 'main' into astandrik.1821
2 parents d6a24b2 + 76b37bb commit 86b2454

File tree

4 files changed

+11
-18
lines changed

4 files changed

+11
-18
lines changed

src/components/nodesColumns/constants.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -178,7 +178,7 @@ export function getNodesGroupByFieldTitle(groupByField: NodesGroupByField) {
178178
// Also for some columns we may use more than one field
179179
export const NODES_COLUMNS_TO_DATA_FIELDS: Record<NodesColumnId, NodesRequiredField[]> = {
180180
NodeId: ['NodeId'],
181-
Host: ['Host', 'Rack', 'Database', 'SystemState'],
181+
Host: ['Host', 'Rack', 'Database', 'SystemState', 'ConnectStatus'],
182182
Database: ['Database'],
183183
NodeName: ['NodeName'],
184184
DC: ['DC'],

src/containers/Nodes/getNodes.ts

Lines changed: 2 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -13,18 +13,9 @@ import {getRequiredDataFields} from '../../utils/tableUtils/getRequiredDataField
1313
export const getNodes: FetchData<
1414
NodesPreparedEntity,
1515
NodesFilters,
16-
Pick<NodesRequestParams, 'type' | 'storage' | 'tablets'>
16+
Pick<NodesRequestParams, 'type' | 'storage'>
1717
> = async (params) => {
18-
const {
19-
type = 'any',
20-
storage = false,
21-
tablets = true,
22-
limit,
23-
offset,
24-
sortParams,
25-
filters,
26-
columnsIds,
27-
} = params;
18+
const {type = 'any', storage = false, limit, offset, sortParams, filters, columnsIds} = params;
2819

2920
const {sortOrder, columnId} = sortParams ?? {};
3021
const {
@@ -46,7 +37,6 @@ export const getNodes: FetchData<
4637
const response = await window.api.viewer.getNodes({
4738
type,
4839
storage,
49-
tablets,
5040
limit,
5141
offset,
5242
sort,

src/services/api/viewer.ts

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -102,7 +102,7 @@ export class ViewerAPI extends BaseYdbAPI {
102102
getNodes(
103103
{
104104
type = 'any',
105-
tablets = false,
105+
tablets,
106106
database,
107107
tenant,
108108
fieldsRequired,
@@ -119,7 +119,8 @@ export class ViewerAPI extends BaseYdbAPI {
119119
this.getPath('/viewer/json/nodes?enums=true'),
120120
{
121121
type,
122-
tablets,
122+
// Use tablets for backward compatibility even if fieldsRequired is passed
123+
tablets: tablets ?? fieldsRequired?.includes('Tablets'),
123124
// Do not send empty string
124125
filter: filter || undefined,
125126
// TODO: remove after remove tenant param

tests/suites/tenant/diagnostics/tabs/access.test.ts

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,8 @@ test.describe('Diagnostics Access tab', async () => {
2222
await expect(diagnostics.isOwnerCardVisible()).resolves.toBe(true);
2323
});
2424

25-
test('Can change owner on access tab', async ({page}) => {
25+
// TODO: https://github.com/ydb-platform/ydb-embedded-ui/issues/2437
26+
test.skip('Can change owner on access tab', async ({page}) => {
2627
const pageQueryParams = {
2728
schema: '/local/.sys_health',
2829
database: '/local',
@@ -47,7 +48,8 @@ test.describe('Diagnostics Access tab', async () => {
4748
expect(updatedOwnerName).not.toBe(initialOwnerName);
4849
});
4950

50-
test('Owner card is visible after navigating to access tab', async ({page}) => {
51+
// TODO: https://github.com/ydb-platform/ydb-embedded-ui/issues/2437
52+
test.skip('Owner card is visible after navigating to access tab', async ({page}) => {
5153
const pageQueryParams = {
5254
schema: '/dev02/home/xenoxeno/db1/my_row_table',
5355
database: '/dev02/home/xenoxeno/db1',
@@ -84,7 +86,7 @@ test.describe('Diagnostics Access tab', async () => {
8486
await expect(diagnostics.isGrantAccessDrawerVisible()).resolves.toBe(true);
8587
});
8688

87-
test.only('Can grant full access to a new subject', async ({page}) => {
89+
test('Can grant full access to a new subject', async ({page}) => {
8890
const pageQueryParams = {
8991
schema: '/local/.sys_health',
9092
database: '/local',

0 commit comments

Comments
 (0)