Skip to content

Commit e34b9fc

Browse files
github-actions[bot]Dr. Lint-a-lot
andauthored
Running lint --fix & prettier (#24585)
Co-authored-by: Dr. Lint-a-lot <garybot2@graylog.com>
1 parent 882db65 commit e34b9fc

File tree

7 files changed

+25
-24
lines changed

7 files changed

+25
-24
lines changed

graylog2-web-interface/src/components/cluster-configuration/data-nodes/DataNodesExpandable.tsx

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,11 @@ import type { ColumnSchema } from 'components/common/EntityDataTable';
2121
import DataNodeActions from 'components/datanode/DataNodeList/DataNodeActions';
2222
import type { FetchOptions } from 'components/common/PaginatedEntityTable/useFetchEntities';
2323

24-
import { createColumnDefinitions, createColumnRenderers, DEFAULT_VISIBLE_COLUMNS } from './DataNodesColumnConfiguration';
24+
import {
25+
createColumnDefinitions,
26+
createColumnRenderers,
27+
DEFAULT_VISIBLE_COLUMNS,
28+
} from './DataNodesColumnConfiguration';
2529
import { clusterDataNodesKeyFn, fetchClusterDataNodesWithMetrics } from './fetchClusterDataNodes';
2630
import type { ClusterDataNode } from './fetchClusterDataNodes';
2731

graylog2-web-interface/src/components/cluster-configuration/graylog-nodes/GraylogNodesExpandable.tsx

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,11 @@ import useProductName from 'brand-customization/useProductName';
2424
import type { ClusterGraylogNode } from './fetchClusterGraylogNodes';
2525
import { clusterGraylogNodesKeyFn, fetchClusterGraylogNodesWithMetrics } from './fetchClusterGraylogNodes';
2626
import GraylogNodeActions from './GraylogNodeActions';
27-
import { createColumnDefinitions, createColumnRenderers, DEFAULT_VISIBLE_COLUMNS } from './GraylogNodesColumnConfiguration';
27+
import {
28+
createColumnDefinitions,
29+
createColumnRenderers,
30+
DEFAULT_VISIBLE_COLUMNS,
31+
} from './GraylogNodesColumnConfiguration';
2832

2933
import ClusterNodesSectionWrapper from '../shared-components/ClusterNodesSectionWrapper';
3034

graylog2-web-interface/src/components/cluster-configuration/graylog-nodes/fetchClusterGraylogNodes.ts

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -156,11 +156,15 @@ const fetchGraylogNodeMetrics = async (nodeIds: Array<string>) => {
156156
return Object.fromEntries(
157157
results.map(({ nodeId, response }) => {
158158
const nodeMetric = toNodeMetric(response as MetricsSummaryResponse);
159-
const extracted = nodeMetric ? MetricsExtractor.getValuesForNode(nodeMetric, GRAYLOG_NODE_METRIC_NAMES) : undefined;
159+
const extracted = nodeMetric
160+
? MetricsExtractor.getValuesForNode(nodeMetric, GRAYLOG_NODE_METRIC_NAMES)
161+
: undefined;
160162

161163
return [
162164
nodeId,
163-
extracted ? { ...EMPTY_GRAYLOG_NODE_METRICS, ...(extracted as GraylogNodeMetrics) } : EMPTY_GRAYLOG_NODE_METRICS,
165+
extracted
166+
? { ...EMPTY_GRAYLOG_NODE_METRICS, ...(extracted as GraylogNodeMetrics) }
167+
: EMPTY_GRAYLOG_NODE_METRICS,
164168
];
165169
}),
166170
);

graylog2-web-interface/src/components/cluster-configuration/shared-components/ClusterNodesSectionWrapper.tsx

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -129,10 +129,7 @@ const ClusterNodesSectionWrapper = ({
129129
};
130130

131131
return (
132-
<PaperSection
133-
title={title}
134-
header={renderHeader()}
135-
collapsible={collapsible}>
132+
<PaperSection title={title} header={renderHeader()} collapsible={collapsible}>
136133
<TableWrapper maxHeight={getMaxHeightValue(maxContentHeight, collapsible)}>{children}</TableWrapper>
137134
</PaperSection>
138135
);

graylog2-web-interface/src/components/cluster-configuration/shared-components/CpuMetricsCell.tsx

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -56,11 +56,7 @@ const CpuMetricsCell = ({
5656

5757
return (
5858
<MetricsColumn>
59-
{(percentIndicator || percentLabel) && (
60-
<MetricsRow>
61-
{percentIndicator ?? <span>{percentLabel}</span>}
62-
</MetricsRow>
63-
)}
59+
{(percentIndicator || percentLabel) && <MetricsRow>{percentIndicator ?? <span>{percentLabel}</span>}</MetricsRow>}
6460
{loadLabel && (
6561
<MetricsRow>
6662
<span>Load (1m)</span>

graylog2-web-interface/src/components/common/PaginatedEntityTable/PaginatedEntityTable.tsx

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -171,12 +171,12 @@ const PaginatedEntityTableInner = <T extends EntityBase, M = unknown>({
171171
pageSize={layoutConfig.pageSize}
172172
showPageSizeSelect={false}
173173
totalItems={total}
174-
useQueryParameter={!withoutURLParams}
175-
onChange={
176-
withoutURLParams
177-
? (currentPage: number, pageSize: number) => paginationState.setPagination({ page: currentPage, pageSize })
178-
: undefined
179-
}>
174+
useQueryParameter={!withoutURLParams}
175+
onChange={
176+
withoutURLParams
177+
? (currentPage: number, pageSize: number) => paginationState.setPagination({ page: currentPage, pageSize })
178+
: undefined
179+
}>
180180
{!externalSearch && (
181181
<SearchRow>
182182
<SearchForm

graylog2-web-interface/src/components/datanode/DataNodeList/DataNodeActions.tsx

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -67,11 +67,7 @@ const DIALOG_TEXT = {
6767
},
6868
};
6969

70-
const DataNodeActions = ({
71-
dataNode,
72-
refetch = undefined,
73-
displayAs = 'dropdown',
74-
}: Props) => {
70+
const DataNodeActions = ({ dataNode, refetch = undefined, displayAs = 'dropdown' }: Props) => {
7571
const [showLogsDialog, setShowLogsDialog] = useState(false);
7672
const [showConfirmDialog, setShowConfirmDialog] = useState(false);
7773
const [dialogType, setDialogType] = useState(null);

0 commit comments

Comments
 (0)