Skip to content
This repository has been archived by the owner on Aug 2, 2022. It is now read-only.

Remove static page of initialization and failure case, add auto-check of detector state when initializing #232

Conversation

yizheliu-amazon
Copy link
Contributor

@yizheliu-amazon yizheliu-amazon commented Jun 20, 2020

Remove static page of initialization and failure case, add auto-check of detector state when initializing

Issue #, if available:

Description of changes:

  1. Move static page of initialization and failure case to Callout in Detector Result page
  2. Rename initializationError to stateError
  3. Add feature to do auto-get of detector every 1 min when detector is initializing

Before:
Initializing:
Screen Shot 2020-05-07 at 10 11 15 AM

Failure:
Screen Shot 2020-05-07 at 10 23 43 AM
After:
Initializing:
Screen Shot 2020-06-19 at 5 34 22 PM
Failure:
Screen Shot 2020-06-19 at 5 32 55 PM

By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of your choice.

const isInitOvertime = get(initializationInfo, IS_INIT_OVERTIME_FIELD, false);
const initDetails = get(initializationInfo, INIT_DETAILS_FIELD, {});
const initErrorMessage = get(initDetails, INIT_ERROR_MESSAGE_FIELD, '');
const initActionItem = get(initDetails, INIT_ACTION_ITEM_FIELD, '');

const isInitializingNormaly = isDetectorInitializing && !isInitOvertime;
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

small: typo in Normaly

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

good catch. changed

Copy link
Contributor

@ylwu-amzn ylwu-amzn left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM. Thanks for the change!

@yizheliu-amazon yizheliu-amazon merged commit 9adf784 into opendistro-for-elasticsearch:master Jun 20, 2020
@ohltyler ohltyler added the enhancement Enhance current feature for better performance, user experience, etc label Jun 20, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
enhancement Enhance current feature for better performance, user experience, etc
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants