Repository navigation
[ML] Adds new Data comparison view - #161365
Conversation
…e from '@kbn/ml-query-utils'
| barColorOverride, | ||
| barStyleAccessor, | ||
| barHighlightColorOverride, | ||
| deviationBrush = {}, |
There was a problem hiding this comment.
Note: Passing some additional optional overrides here
|
|
||
| const forceRefresh = useCallback(() => setLastRefresh(Date.now()), [setLastRefresh]); | ||
|
|
||
| const randomSampler = useMemo( |
There was a problem hiding this comment.
Should be fixed with this change 05245ea (#161365)
|
@elasticmachine merge upstream |
peteharverson
left a comment
There was a problem hiding this comment.
Tested latest changes and LGTM
walterra
left a comment
There was a problem hiding this comment.
Latest changes LGTM. Just added a small note that another plain string could be replaced by a constant. Would also be good to take note to follow up at some point with code consolidation with the parts that are now somewhat duplicated from the aiops plugin.
| basePath: string | ||
| ): MlRoute => ({ | ||
| id: 'data_view_data_comparison', | ||
| path: createPath('data_comparison_index_select'), |
There was a problem hiding this comment.
This could use ML_PAGES.DATA_COMPARISON_INDEX_SELECT.
|
@elasticmachine merge upstream |
💚 Build Succeeded
Metrics [docs]Module Count
Public APIs missing comments
Async chunks
Public APIs missing exports
Page load bundle
Unknown metric groupsAPI count
async chunk count
ESLint disabled line counts
Total ESLint disabled count
History
To update your PR or re-run it, just comment with: cc @qn895 |
Co-authored-by: kibanamachine <42973632+kibanamachine@users.noreply.github.com>
## Summary Related PR: #161365 Related issue: https://github.com/elastic/platform-docs-team/issues/153 This PR drafts documentation for the new data comparison feature under the Data Visualizer in Kibana.
## Summary Related PR: elastic#161365 Related issue: https://github.com/elastic/platform-docs-team/issues/153 This PR drafts documentation for the new data comparison feature under the Data Visualizer in Kibana. (cherry picked from commit e911038)
…164722) # Backport This will backport the following commits from `main` to `8.10`: - [[DOCS] Adds documentation for data comparison view (#164297)](#164297) <!--- Backport version: 8.9.7 --> ### Questions ? Please refer to the [Backport tool documentation](https://github.com/sqren/backport) <!--BACKPORT [{"author":{"name":"István Zoltán Szabó","email":"szabosteve@gmail.com"},"sourceCommit":{"committedDate":"2023-08-24T14:13:38Z","message":"[DOCS] Adds documentation for data comparison view (#164297)\n\n## Summary\r\n\r\nRelated PR: https://github.com/elastic/kibana/pull/161365\r\nRelated issue: https://github.com/elastic/platform-docs-team/issues/153\r\n\r\nThis PR drafts documentation for the new data comparison feature under\r\nthe Data Visualizer in Kibana.","sha":"e91103811be0c731af056779ba20a30a89e34253","branchLabelMapping":{"^v8.11.0$":"main","^v(\\d+).(\\d+).\\d+$":"$1.$2"}},"sourcePullRequest":{"labels":["Team:Docs",":ml","release_note:skip","docs","v8.10.0","v8.11.0"],"number":164297,"url":"https://github.com/elastic/kibana/pull/164297","mergeCommit":{"message":"[DOCS] Adds documentation for data comparison view (#164297)\n\n## Summary\r\n\r\nRelated PR: https://github.com/elastic/kibana/pull/161365\r\nRelated issue: https://github.com/elastic/platform-docs-team/issues/153\r\n\r\nThis PR drafts documentation for the new data comparison feature under\r\nthe Data Visualizer in Kibana.","sha":"e91103811be0c731af056779ba20a30a89e34253"}},"sourceBranch":"main","suggestedTargetBranches":["8.10"],"targetPullRequestStates":[{"branch":"8.10","label":"v8.10.0","labelRegex":"^v(\\d+).(\\d+).\\d+$","isSourceBranch":false,"state":"NOT_CREATED"},{"branch":"main","label":"v8.11.0","labelRegex":"^v8.11.0$","isSourceBranch":true,"state":"MERGED","url":"https://github.com/elastic/kibana/pull/164297","number":164297,"mergeCommit":{"message":"[DOCS] Adds documentation for data comparison view (#164297)\n\n## Summary\r\n\r\nRelated PR: https://github.com/elastic/kibana/pull/161365\r\nRelated issue: https://github.com/elastic/platform-docs-team/issues/153\r\n\r\nThis PR drafts documentation for the new data comparison feature under\r\nthe Data Visualizer in Kibana.","sha":"e91103811be0c731af056779ba20a30a89e34253"}}]}] BACKPORT--> Co-authored-by: István Zoltán Szabó <szabosteve@gmail.com>
Summary
Follow up of the original proof-of-concept PR which started as a onweek project. This PR introduces the new Data Comparison view in ML. This view lies under Data Visualizer in the navigation, and showcases the biggest difference in each field for two different time ranges of data.
Screen.Recording.2023-07-06.at.09.43.24.mov
Part of this PR also includes some refactoring to consolidate code within ML/AIOps/Data Visualizer plugin. Changes include:
@kbn/ml-in-memory-tablepackage which containsuseTableStateDocumentCountChartfrom plugins/aiops to@kbn/ml-aiops-componentsgetDefaultQueryandtype SearchQueryLanguageto@kbn/ml-query-utilsDocumentCountChartto take additional props to showcase colors for the annotation and different labels for the brushChecklist
Delete any items that are not applicable to this PR.
Risk Matrix
Delete this section if it is not applicable to this PR.
Before closing this PR, invite QA, stakeholders, and other developers to identify risks that should be tested prior to the change/feature release.
When forming the risk matrix, consider some of the following examples and how they may potentially impact the change:
For maintainers