-
Notifications
You must be signed in to change notification settings - Fork 8.2k
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
[ILM ] Fix logic for showing/hiding recommended allocation on Cloud #90592
Merged
jloleysens
merged 17 commits into
elastic:master
from
jloleysens:ilm/update-condition-for-hiding-recommded-allocation
Feb 25, 2021
Merged
Changes from 13 commits
Commits
Show all changes
17 commits
Select commit
Hold shift + click to select a range
a197a5a
updated logic for hiding recommended allocation options on cloud and …
jloleysens 40a1858
Merge branch 'master' into ilm/update-condition-for-hiding-recommded-…
kibanamachine 7ed5223
added version check and tests for version check to enable pre v8 beha…
jloleysens dc70ff9
implement feedback to make tests more legible, fix test names and min…
jloleysens e11c708
added additional callout for data tier state, also added some new cop…
jloleysens 37ddcfd
remove unused stackVersion context value
jloleysens 39ba98f
Merge branch 'master' into ilm/update-condition-for-hiding-recommded-…
kibanamachine 48099a8
Merge branch 'master' into ilm/update-condition-for-hiding-recommded-…
kibanamachine b523a5f
Merge branch 'master' into ilm/update-condition-for-hiding-recommded-…
kibanamachine d9529f5
address windows max path length constraint
jloleysens 6d933b8
Merge branch 'master' into ilm/update-condition-for-hiding-recommded-…
kibanamachine 28ed48d
Merge branch 'master' of github.com:elastic/kibana into ilm/update-co…
jloleysens 9b632d7
Merge branch 'master' into ilm/update-condition-for-hiding-recommded-…
kibanamachine b4d6ef5
Merge branch 'master' of github.com:elastic/kibana into ilm/update-co…
jloleysens b6bfe49
- Fix botched conflict resolution!
jloleysens 7746647
Merge branch 'master' into ilm/update-condition-for-hiding-recommded-…
kibanamachine 437962b
Merge branch 'master' into ilm/update-condition-for-hiding-recommded-…
kibanamachine File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
46 changes: 46 additions & 0 deletions
46
.../phases/shared_fields/data_tier_allocation_field/components/missing_cold_tier_callout.tsx
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,46 @@ | ||
/* | ||
* Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one | ||
* or more contributor license agreements. Licensed under the Elastic License | ||
* 2.0; you may not use this file except in compliance with the Elastic License | ||
* 2.0. | ||
*/ | ||
|
||
import { i18n } from '@kbn/i18n'; | ||
import React, { FunctionComponent } from 'react'; | ||
import { EuiCallOut, EuiLink } from '@elastic/eui'; | ||
|
||
const i18nTexts = { | ||
title: i18n.translate('xpack.indexLifecycleMgmt.editPolicy.cloudMissingColdTierCallout.title', { | ||
defaultMessage: 'Create a cold tier', | ||
}), | ||
body: i18n.translate('xpack.indexLifecycleMgmt.editPolicy.cloudMissingColdTierCallout.body', { | ||
defaultMessage: 'Edit your Elastic Cloud deployment to set up a cold tier.', | ||
}), | ||
linkText: i18n.translate( | ||
'xpack.indexLifecycleMgmt.editPolicy.cloudMissingColdTierCallout.linkToCloudDeploymentDescription', | ||
{ defaultMessage: 'View cloud deployment' } | ||
), | ||
}; | ||
|
||
interface Props { | ||
linkToCloudDeployment?: string; | ||
} | ||
|
||
/** | ||
* A call-to-action for users to activate their cold tier slider to provision cold tier nodes. | ||
* This may need to be change when we have autoscaling enabled on a cluster because nodes may not | ||
* yet exist, but will automatically be provisioned. | ||
*/ | ||
export const MissingColdTierCallout: FunctionComponent<Props> = ({ linkToCloudDeployment }) => { | ||
return ( | ||
<EuiCallOut title={i18nTexts.title} data-test-subj="cloudMissingColdTierCallout"> | ||
{i18nTexts.body} | ||
| ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Same here. |
||
{Boolean(linkToCloudDeployment) && ( | ||
<EuiLink href={linkToCloudDeployment} external> | ||
{i18nTexts.linkText} | ||
</EuiLink> | ||
)} | ||
</EuiCallOut> | ||
); | ||
}; |
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is a non-breaking space, which can interfere with the way words naturally break at the end of a line and wrap to the next line. In most cases we just want a regular breaking space, which would mean replacing this with
{' '}
.There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The use of here was intentional, but I see your point that it is unnecessary.