-
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
[ML] Adds DF Transform Analytics list to Kibana management #43151
Merged
alvarezmelissa87
merged 8 commits into
elastic:master
from
alvarezmelissa87:ml-analytics-list-kibana-management
Aug 14, 2019
Merged
Changes from 7 commits
Commits
Show all changes
8 commits
Select commit
Hold shift + click to select a range
7e834e9
disable job link if ml not enabled in space
alvarezmelissa87 c2df266
add analytics table in managment page
alvarezmelissa87 edd9ca9
update css for analytics table
alvarezmelissa87 747344c
only show ML section if license if trial/platinum
alvarezmelissa87 6a2bdd1
remove actions column for analytics list in KM
alvarezmelissa87 a61bef7
fix typescript error on columns
alvarezmelissa87 3ce1b2c
update props interface for analytics table
alvarezmelissa87 e8d6613
plain text instead of disabled link if not enabled in space
alvarezmelissa87 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
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
1 change: 1 addition & 0 deletions
1
x-pack/legacy/plugins/ml/public/management/jobs_list/components/_index.scss
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 |
---|---|---|
@@ -1,3 +1,4 @@ | ||
@import './jobs_list_page/stats_bar'; | ||
@import './jobs_list_page/buttons'; | ||
@import './jobs_list_page/expanded_row'; | ||
@import './jobs_list_page/analytics_table'; |
28 changes: 28 additions & 0 deletions
28
...cy/plugins/ml/public/management/jobs_list/components/jobs_list_page/_analytics_table.scss
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,28 @@ | ||
|
||
.mlAnalyticsTable { | ||
// Using an override as a last resort because we cannot set custom classes on | ||
// nested upstream components. The opening animation limits the height | ||
// of the expanded row to 1000px which turned out to be not predictable. | ||
// The animation could also result in flickering with expanded rows | ||
// where the inner content would result in the DOM changing the height. | ||
.euiTableRow-isExpandedRow .euiTableCellContent { | ||
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. Can you make an issue in EUI surrounding the problem you encountered so we can make the fix over there? |
||
animation: none !important; | ||
.euiTableCellContent__text { | ||
width: 100%; | ||
} | ||
} | ||
// Another override: Because an update to the table replaces the DOM, the same | ||
// icon would still again fade in with an animation. If the table refreshes with | ||
// e.g. 1s this would result in a blinking icon effect. | ||
.euiIcon-isLoaded { | ||
animation: none !important; | ||
} | ||
} | ||
|
||
.mlAnalyticsProgressBar { | ||
margin-bottom: $euiSizeM; | ||
} | ||
|
||
.mlTaskStateBadge { | ||
max-width: 100px; | ||
} |
5 changes: 5 additions & 0 deletions
5
...egacy/plugins/ml/public/management/jobs_list/components/jobs_list_page/_expanded_row.scss
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
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
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.
Naming nit: I'm afraid
isManagementTable
could be a bit confusing. It refers to the management section in Kibana, but seen alone here like this "management" could mean the opposite as in the capability to manage jobs where the table in Kibana management is view only. I'd like to suggest that we rename it to something that refers to the feature that the flag will enable/disable, something likeisReadOnly
orhideActions
, what do you think?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.
Good point. 🤔 I'm not sure
isReadOnly
or something like that would fit since it's more that we're showing a different level of detail as well as removing actions when it's for the Kibana management view. This is the same prop name used in for the job management table so it would be consistent. Happy to change to something that makes more sense. Maybe in a small follow-up once we've decided on a name?