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

Fix detector detail loading state #155

Merged

Conversation

ohltyler
Copy link
Contributor

@ohltyler ohltyler commented May 19, 2020

Issue #, if available: #151

Description of changes:

When loading the detector details page, the intermediate state shows a blank detector name and defaults to the 'Feature required' detector state.

This fixes that by keeping track of when data is being requested and loaded, so an intermediate loading state can be shown. Some logic and code cleanup was also made regarding rendering the detector state at the top of the page.

Before:

Screen Shot 2020-05-18 at 5 00 16 PM

After:

Screen Shot 2020-05-18 at 7 57 58 PM

This PR also makes a minor change to the detector list loading state, where the requesting of info from the backend and the sorting/filtering in the frontend both display a consistent loading page to the user.

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

@ohltyler ohltyler linked an issue May 19, 2020 that may be closed by this pull request
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!

@ohltyler ohltyler merged commit 9ed2261 into opendistro-for-elasticsearch:master May 19, 2020
@ohltyler ohltyler deleted the fixLoadingState branch May 19, 2020 18:41
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Fix loading state of detector detail page
3 participants