Skip to content

Commit

Permalink
Rename UA steps to fix_issues_step and fix_logs_step. (elastic#109526)
Browse files Browse the repository at this point in the history
* Rename tests accordingly.
  • Loading branch information
cjcenizal authored and sabarasaba committed Oct 26, 2021
1 parent d84becb commit 6b9b0cf
Show file tree
Hide file tree
Showing 25 changed files with 15 additions and 15 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ import * as mockedResponses from './mocked_responses';
import { setupEnvironment } from '../../helpers';
import { OverviewTestBed, setupOverviewPage } from '../overview.helpers';

describe('Overview - Fix deprecated settings step', () => {
describe('Overview - Fix deprecation issues step', () => {
let testBed: OverviewTestBed;
const { server, httpRequestsMockHelpers } = setupEnvironment();

Expand Down
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
@import 'review_logs_step/index';
@import 'fix_deprecation_logs_step/index';
@import 'fix_issues_step/index';
@import 'fix_logs_step/index';
Original file line number Diff line number Diff line change
Expand Up @@ -15,12 +15,12 @@ import { ESDeprecationStats } from './es_stats';
import { KibanaDeprecationStats } from './kibana_stats';

const i18nTexts = {
reviewStepTitle: i18n.translate('xpack.upgradeAssistant.overview.reviewStepTitle', {
reviewStepTitle: i18n.translate('xpack.upgradeAssistant.overview.fixIssuesStepTitle', {
defaultMessage: 'Review deprecated settings and resolve issues',
}),
};

export const getReviewLogsStep = ({ nextMajor }: { nextMajor: number }): EuiStepProps => {
export const getFixIssuesStep = ({ nextMajor }: { nextMajor: number }): EuiStepProps => {
return {
title: i18nTexts.reviewStepTitle,
status: 'incomplete',
Expand All @@ -29,7 +29,7 @@ export const getReviewLogsStep = ({ nextMajor }: { nextMajor: number }): EuiStep
<EuiText>
<p>
<FormattedMessage
id="xpack.upgradeAssistant.overview.resolveStepDescription"
id="xpack.upgradeAssistant.overview.fixIssuesStepDescription"
defaultMessage="Update your Elasticsearch and Kibana deployments to be compatible with {nextMajor}.0. Critical issues must be resolved before you upgrade."
values={{ nextMajor }}
/>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,4 +5,4 @@
* 2.0.
*/

export { getReviewLogsStep } from './review_logs_step';
export { getFixIssuesStep } from './fix_issues_step';
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ const i18nTexts = {
),
};

const DeprecationLogsPreview: FunctionComponent = () => {
const FixLogsStep: FunctionComponent = () => {
const state = useDeprecationLogging();

return (
Expand Down Expand Up @@ -81,10 +81,10 @@ const DeprecationLogsPreview: FunctionComponent = () => {
);
};

export const getFixDeprecationLogsStep = (): EuiStepProps => {
export const getFixLogsStep = (): EuiStepProps => {
return {
title: i18nTexts.identifyStepTitle,
status: 'incomplete',
children: <DeprecationLogsPreview />,
children: <FixLogsStep />,
};
};
Original file line number Diff line number Diff line change
Expand Up @@ -5,4 +5,4 @@
* 2.0.
*/

export { getFixDeprecationLogsStep } from './fix_deprecation_logs_step';
export { getFixLogsStep } from './fix_logs_step';
Original file line number Diff line number Diff line change
Expand Up @@ -21,8 +21,8 @@ import { i18n } from '@kbn/i18n';
import { FormattedMessage } from '@kbn/i18n/react';

import { useAppContext } from '../../app_context';
import { getReviewLogsStep } from './review_logs_step';
import { getFixDeprecationLogsStep } from './fix_deprecation_logs_step';
import { getFixIssuesStep } from './fix_issues_step';
import { getFixLogsStep } from './fix_logs_step';
import { getUpgradeStep } from './upgrade_step';

export const Overview: FunctionComponent = () => {
Expand Down Expand Up @@ -83,8 +83,8 @@ export const Overview: FunctionComponent = () => {

<EuiSteps
steps={[
getReviewLogsStep({ nextMajor }),
getFixDeprecationLogsStep(),
getFixIssuesStep({ nextMajor }),
getFixLogsStep(),
getUpgradeStep({ docLinks, nextMajor }),
]}
/>
Expand Down

0 comments on commit 6b9b0cf

Please sign in to comment.