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

[UA] ML anomaly job indices special handling #211407

Merged
merged 10 commits into from
Feb 18, 2025
Prev Previous commit
rename var
  • Loading branch information
jloleysens committed Feb 18, 2025
commit d37efcbb9e7c23c02bacb8c88f65a371c4b22607
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,7 @@ export const ReindexDetailsFlyoutStep: React.FunctionComponent<{
const { data: nodes } = api.useLoadNodeDiskSpace();

let showEsTransformsGuidance = false;
let showMlAnomalyGuidance = false;
let showMlAnomalyReindexingGuidance = false;
let showReadOnlyGuidance = false;
let showDefaultGuidance = false;

Expand All @@ -89,7 +89,7 @@ export const ReindexDetailsFlyoutStep: React.FunctionComponent<{
} else if (meta.isReadonly) {
showReadOnlyGuidance = true;
} else if (isMLAnomalyIndex) {
showMlAnomalyGuidance = true;
showMlAnomalyReindexingGuidance = true;
} else {
showDefaultGuidance = true;
}
Expand Down Expand Up @@ -164,7 +164,7 @@ export const ReindexDetailsFlyoutStep: React.FunctionComponent<{

<EuiText>
{showEsTransformsGuidance && <ESTransformsTargetGuidance deprecation={deprecation} />}
{showMlAnomalyGuidance && <MlAnomalyGuidance />}
{showMlAnomalyReindexingGuidance && <MlAnomalyGuidance />}
{showReadOnlyGuidance && (
<Fragment>
<p>
Expand Down