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

Fix bug where undefined is shown on UI for estimatedMins in case of ingestion data missing #301

Merged

Conversation

yizheliu-amazon
Copy link
Contributor

Issue #, if available:

Description of changes:
Fix bug where undefined is shown on UI for estimatedMins in case of ingestion data missing

Before
Screen Shot 2020-09-03 at 1 26 39 PM
Screen Shot 2020-09-03 at 1 27 34 PM

After
Screen Shot 2020-09-03 at 1 15 33 PM
Screen Shot 2020-09-03 at 1 16 26 PM

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

@yizheliu-amazon yizheliu-amazon added the bug Something isn't working label Sep 3, 2020
@yizheliu-amazon
Copy link
Contributor Author

will cherry-pick it to 1.10, 1.9

return detector && isDetectorInitializing && detector.initProgress
return detector &&
isDetectorInitializing &&
detector.initProgress &&
Copy link
Contributor

@ylwu-amzn ylwu-amzn Sep 3, 2020

Choose a reason for hiding this comment

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

Use lodash get ?
get(detector, 'initProgress. estimatedMinutesLeft')

Copy link
Contributor Author

Choose a reason for hiding this comment

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

will use it

Copy link
Contributor

@ohltyler ohltyler Sep 3, 2020

Choose a reason for hiding this comment

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

good idea, probably many places within this page and other places in the plugin where we should change to use lodash get to make it simpler

@ohltyler
Copy link
Contributor

ohltyler commented Sep 3, 2020

Small: can you manually add to 1.10 release notes?

@yizheliu-amazon
Copy link
Contributor Author

Small: can you manually add to 1.10 release notes?

good point. will add it.

Copy link
Contributor

@ohltyler ohltyler left a comment

Choose a reason for hiding this comment

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

Thanks for catching this case!

@yizheliu-amazon yizheliu-amazon merged commit a9b5d7c into opendistro-for-elasticsearch:master Sep 3, 2020
yizheliu-amazon added a commit that referenced this pull request Sep 3, 2020
…ngestion data missing (#301)

* Fix bug where undefined is shown on UI for estimatedMins in case of ingestion data missing
yizheliu-amazon added a commit that referenced this pull request Sep 3, 2020
…ngestion data missing (#301)

* Fix bug where undefined is shown on UI for estimatedMins in case of ingestion data missing
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants