Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Rename UA steps to fix_issues_step and fix_logs_step. #109526

Merged
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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