From 1e51b2b7e9c6863ed44a12f73c0c8595ebb93924 Mon Sep 17 00:00:00 2001 From: bartoval Date: Sun, 2 Jun 2024 10:04:13 +0200 Subject: [PATCH] refactor(General): :recycle: Rename live connectitions into open --- src/pages/Processes/Processes.enum.ts | 2 +- src/pages/Processes/__tests__/ProcessPairs.spec.tsx | 2 +- src/pages/Services/Services.constants.ts | 2 +- src/pages/Services/Services.enum.ts | 4 ++-- src/pages/Services/__tests__/TcpService.spec.tsx | 2 +- src/pages/shared/Metrics/Metrics.enum.ts | 2 +- src/pages/shared/Metrics/components/TcpConnection.tsx | 2 +- 7 files changed, 8 insertions(+), 8 deletions(-) diff --git a/src/pages/Processes/Processes.enum.ts b/src/pages/Processes/Processes.enum.ts index 926261b59..37b56e088 100644 --- a/src/pages/Processes/Processes.enum.ts +++ b/src/pages/Processes/Processes.enum.ts @@ -49,7 +49,7 @@ export enum ProcessesLabels { ExposedTitle = 'Exposure status', IsExposed = 'Exposed', IsNotExposed = 'Unexposed', - ActiveConnections = 'Live connections', + ActiveConnections = 'Open connections', OldConnections = 'Connection history', ProcessPairsEmptyTitle = 'No connections or requests to display', ProcessPairsEmptyMessage = 'As new connections or requests are established, they will be dynamically added to the table for display', diff --git a/src/pages/Processes/__tests__/ProcessPairs.spec.tsx b/src/pages/Processes/__tests__/ProcessPairs.spec.tsx index 1ebc8ba32..493c1c8db 100644 --- a/src/pages/Processes/__tests__/ProcessPairs.spec.tsx +++ b/src/pages/Processes/__tests__/ProcessPairs.spec.tsx @@ -73,7 +73,7 @@ describe('Begin testing the Processes component', () => { expect(screen.getByTestId('http2-table')).toBeInTheDocument(); }); - it('should render render the TCP Process Pairs Content Component and the tab Live connection is active', async () => { + it('should render render the TCP Process Pairs Content Component and the tab Open connection is active', async () => { const { queryByTestId, getByText, getByTestId } = render( }> diff --git a/src/pages/Services/Services.constants.ts b/src/pages/Services/Services.constants.ts index 00c40d398..70be4b019 100644 --- a/src/pages/Services/Services.constants.ts +++ b/src/pages/Services/Services.constants.ts @@ -45,7 +45,7 @@ export const ServiceColumns: SKColumn[] = [ }, { name: ServicesLabels.CurrentFlowPairs, - columnDescription: 'Live connections', + columnDescription: 'Open connections', prop: 'currentFlows' as keyof ServiceResponse, width: 15 diff --git a/src/pages/Services/Services.enum.ts b/src/pages/Services/Services.enum.ts index 2feff484e..f340060aa 100644 --- a/src/pages/Services/Services.enum.ts +++ b/src/pages/Services/Services.enum.ts @@ -22,7 +22,7 @@ export enum ServicesLabels { TCP = 'TCP', Description = 'Collection of processes (servers) that are exposed across the Application network, along with their respective connections to the processes (clients) they communicate with', NoMetricSourceProcessFilter = 'No Clients', - ActiveConnections = 'Live connections', + ActiveConnections = 'Open connections', OldConnections = 'Connection history', TcpTrafficTx = 'Outbound traffic ', TcpTrafficRx = 'Inbound traffic', @@ -39,6 +39,6 @@ export enum ServicesLabels { SankeyChartDescription = 'Visualizing relationships and the distribution among processes and sites', Name = 'Address', Protocol = 'Protocol', - CurrentFlowPairs = 'Tcp live connections', + CurrentFlowPairs = 'Tcp open connections', TotalFLowPairs = 'Total' } diff --git a/src/pages/Services/__tests__/TcpService.spec.tsx b/src/pages/Services/__tests__/TcpService.spec.tsx index a20332119..24ce79da6 100644 --- a/src/pages/Services/__tests__/TcpService.spec.tsx +++ b/src/pages/Services/__tests__/TcpService.spec.tsx @@ -74,7 +74,7 @@ describe('Begin testing the TCP service component', () => { expect(getByText(processResult[0].name)).toBeInTheDocument(); }); - it('should render the Connection view -> Live connections after the data loading is complete', async () => { + it('should render the Connection view -> Open connections after the data loading is complete', async () => { render( }> diff --git a/src/pages/shared/Metrics/Metrics.enum.ts b/src/pages/shared/Metrics/Metrics.enum.ts index f6a72067f..96708a511 100644 --- a/src/pages/shared/Metrics/Metrics.enum.ts +++ b/src/pages/shared/Metrics/Metrics.enum.ts @@ -31,7 +31,7 @@ export enum MetricsLabels { LatencyDescription = 'TCP: TTFB for terminated connections. HTTP: Response time', ConnectionTitle = 'Tcp connections', TerminatedConnections = 'Closed connections', - LiveConnections = 'Live connections', + LiveConnections = 'Open connections', LiveConnectionsChartLabel = 'Connections', RequestsTitle = 'Http requests', RequestRateTitle = 'Request rate', diff --git a/src/pages/shared/Metrics/components/TcpConnection.tsx b/src/pages/shared/Metrics/components/TcpConnection.tsx index 9e31aff3a..8e89f63e8 100644 --- a/src/pages/shared/Metrics/components/TcpConnection.tsx +++ b/src/pages/shared/Metrics/components/TcpConnection.tsx @@ -93,7 +93,7 @@ const TcpConnection: FC = function ({ {connections.liveConnectionsSerie && ( <> {MetricsLabels.LiveConnectionsChartLabel} - + )}