Skip to content

Commit

Permalink
[Security Solution][Endpoint] Rename Unisolating and other like wor…
Browse files Browse the repository at this point in the history
…ds to `Releasing` (elastic#102582) (elastic#102960)

* Update all instances of `unisolate` to `release` (along with variation of unisolate)
* just width of Agent Status column on endpoint list

Co-authored-by: Paul Tavares <56442535+paul-tavares@users.noreply.github.com>
  • Loading branch information
kibanamachine and paul-tavares committed Jun 22, 2021
1 parent 11dec59 commit fd15a1f
Show file tree
Hide file tree
Showing 8 changed files with 16 additions and 18 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -44,8 +44,8 @@ describe('when using the EndpointHostIsolationStatus component', () => {
});

it.each([
['Isolating pending', { pendingIsolate: 2 }],
['Unisolating pending', { pendingUnIsolate: 2 }],
['Isolating', { pendingIsolate: 2 }],
['Releasing', { pendingUnIsolate: 2 }],
['4 actions pending', { isIsolated: true, pendingUnIsolate: 2, pendingIsolate: 2 }],
])('should show %s}', (expectedLabel, componentProps) => {
const { getByTestId } = render(componentProps);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@ export const EndpointHostIsolationStatus = memo<EndpointHostIsolationStatusProps
<EuiFlexItem grow>
<FormattedMessage
id="xpack.securitySolution.endpoint.hostIsolationStatus.tooltipPendingUnIsolate"
defaultMessage="Unisolate"
defaultMessage="Release"
/>
</EuiFlexItem>
<EuiFlexItem grow={false}>{pendingUnIsolate}</EuiFlexItem>
Expand All @@ -101,12 +101,12 @@ export const EndpointHostIsolationStatus = memo<EndpointHostIsolationStatusProps
{pendingIsolate ? (
<FormattedMessage
id="xpack.securitySolution.endpoint.hostIsolationStatus.isIsolating"
defaultMessage="Isolating pending"
defaultMessage="Isolating"
/>
) : (
<FormattedMessage
id="xpack.securitySolution.endpoint.hostIsolationStatus.isUnIsolating"
defaultMessage="Unisolating pending"
defaultMessage="Releasing"
/>
)}
</EuiTextColor>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -26,13 +26,13 @@ export const COMMENT_PLACEHOLDER = i18n.translate(

export const GET_ISOLATION_SUCCESS_MESSAGE = (hostName: string) =>
i18n.translate('xpack.securitySolution.endpoint.hostIsolation.isolation.successfulMessage', {
defaultMessage: 'Host Isolation on {hostName} successfully submitted',
defaultMessage: 'Isolation on host {hostName} successfully submitted',
values: { hostName },
});

export const GET_UNISOLATION_SUCCESS_MESSAGE = (hostName: string) =>
i18n.translate('xpack.securitySolution.endpoint.hostIsolation.unisolate.successfulMessage', {
defaultMessage: 'Host Unisolation on {hostName} successfully submitted',
defaultMessage: 'Release on host {hostName} successfully submitted',
values: { hostName },
});

Expand All @@ -41,7 +41,7 @@ export const ISOLATE = i18n.translate('xpack.securitySolution.endpoint.hostisola
});

export const UNISOLATE = i18n.translate('xpack.securitySolution.endpoint.hostisolation.unisolate', {
defaultMessage: 'unisolate',
defaultMessage: 'release',
});

export const NOT_ISOLATED = i18n.translate(
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ export const ISOLATE_HOST = i18n.translate(
export const UNISOLATE_HOST = i18n.translate(
'xpack.securitySolution.endpoint.hostIsolation.unisolateHost',
{
defaultMessage: 'Unisolate host',
defaultMessage: 'Release host',
}
);

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -82,9 +82,7 @@ describe('When using the EndpointAgentStatus component', () => {
});

it('should show host pending action', () => {
expect(renderResult.getByTestId('rowIsolationStatus').textContent).toEqual(
'Isolating pending'
);
expect(renderResult.getByTestId('rowIsolationStatus').textContent).toEqual('Isolating');
});
});
});
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@ export const useEndpointActionItems = (
children: (
<FormattedMessage
id="xpack.securitySolution.endpoint.actions.unIsolateHost"
defaultMessage="Unisolate host"
defaultMessage="Release host"
/>
),
});
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -272,7 +272,7 @@ export const EndpointList = () => {
},
{
field: 'host_status',
width: '9%',
width: '14%',
name: i18n.translate('xpack.securitySolution.endpoint.list.hostStatus', {
defaultMessage: 'Agent Status',
}),
Expand Down Expand Up @@ -356,7 +356,7 @@ export const EndpointList = () => {
},
{
field: 'metadata.host.os.name',
width: '10%',
width: '9%',
name: i18n.translate('xpack.securitySolution.endpoint.list.os', {
defaultMessage: 'Operating System',
}),
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ export const ACTIVITY_LOG = {
unisolatedAction: i18n.translate(
'xpack.securitySolution.endpointDetails.activityLog.logEntry.action.unisolated',
{
defaultMessage: 'unisolated host',
defaultMessage: 'released host',
}
),
},
Expand All @@ -46,13 +46,13 @@ export const ACTIVITY_LOG = {
unisolationSuccessful: i18n.translate(
'xpack.securitySolution.endpointDetails.activityLog.logEntry.response.unisolationSuccessful',
{
defaultMessage: 'host unisolation successful',
defaultMessage: 'host release successful',
}
),
unisolationFailed: i18n.translate(
'xpack.securitySolution.endpointDetails.activityLog.logEntry.response.unisolationFailed',
{
defaultMessage: 'host unisolation failed',
defaultMessage: 'host release failed',
}
),
},
Expand Down

0 comments on commit fd15a1f

Please sign in to comment.