Skip to content

Commit

Permalink
refactor(General): ♻️ Rename live connectitions into open
Browse files Browse the repository at this point in the history
  • Loading branch information
bartoval committed Jun 2, 2024
1 parent d35a5e1 commit 1e51b2b
Show file tree
Hide file tree
Showing 7 changed files with 8 additions and 8 deletions.
2 changes: 1 addition & 1 deletion src/pages/Processes/Processes.enum.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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',
Expand Down
2 changes: 1 addition & 1 deletion src/pages/Processes/__tests__/ProcessPairs.spec.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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(
<Wrapper>
<Suspense fallback={<LoadingPage />}>
Expand Down
2 changes: 1 addition & 1 deletion src/pages/Services/Services.constants.ts
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ export const ServiceColumns: SKColumn<ServiceResponse>[] = [
},
{
name: ServicesLabels.CurrentFlowPairs,
columnDescription: 'Live connections',
columnDescription: 'Open connections',

prop: 'currentFlows' as keyof ServiceResponse,
width: 15
Expand Down
4 changes: 2 additions & 2 deletions src/pages/Services/Services.enum.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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',
Expand All @@ -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'
}
2 changes: 1 addition & 1 deletion src/pages/Services/__tests__/TcpService.spec.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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(
<Wrapper>
<Suspense fallback={<LoadingPage />}>
Expand Down
2 changes: 1 addition & 1 deletion src/pages/shared/Metrics/Metrics.enum.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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',
Expand Down
2 changes: 1 addition & 1 deletion src/pages/shared/Metrics/components/TcpConnection.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,7 @@ const TcpConnection: FC<TcpConnectionProps> = function ({
{connections.liveConnectionsSerie && (
<>
<Title headingLevel="h4">{MetricsLabels.LiveConnectionsChartLabel} </Title>
<SkChartArea data={connections.liveConnectionsSerie} legendLabels={['live connections']} />
<SkChartArea data={connections.liveConnectionsSerie} legendLabels={['open connections']} />
</>
)}
</FlexItem>
Expand Down

0 comments on commit 1e51b2b

Please sign in to comment.