Skip to content

Revert [ML] AIOps: Use package instead of context for using field stats flyout (#194517)#195860

Merged
walterra merged 1 commit intoelastic:mainfrom
walterra:ml-aiops-revert-field-stats-refactor
Oct 11, 2024
Merged

Revert [ML] AIOps: Use package instead of context for using field stats flyout (#194517)#195860
walterra merged 1 commit intoelastic:mainfrom
walterra:ml-aiops-revert-field-stats-refactor

Conversation

@walterra
Copy link
Copy Markdown
Contributor

@walterra walterra commented Oct 11, 2024

Summary

This reverts #194517 ([ML] AIOps: Use package instead of context for using field stats flyout) committed in eebfba4.

The PR refactored how FieldStatsFlyout is passed in as a dependency to change point detection. Unfortunately the refactor caused the dropdown to select the split field to break when used in the flyout for the options of the change point detection embeddable.

This revert is done to restore the original behavior. In a follow up I will revisit the refactor to work properly.

Checklist

@walterra walterra added bug Fixes for quality problems that affect the customer experience :ml release_note:skip Skip the PR/issue when compiling release notes v9.0.0 Feature:ML/AIOps ML AIOps features: Change Point Detection, Log Pattern Analysis, Log Rate Analysis v8.16.0 backport:version Backport to applied version labels labels Oct 11, 2024
@walterra walterra self-assigned this Oct 11, 2024
@walterra walterra requested a review from a team as a code owner October 11, 2024 08:26
@elasticmachine
Copy link
Copy Markdown
Contributor

Pinging @elastic/ml-ui (:ml)

@elasticmachine
Copy link
Copy Markdown
Contributor

💚 Build Succeeded

Metrics [docs]

Module Count

Fewer modules leads to a faster build time

id before after diff
aiops 612 583 -29

Async chunks

Total size of all lazy-loaded chunks that will be downloaded as the user navigates the app

id before after diff
aiops 554.0KB 550.5KB -3.5KB
ml 4.5MB 4.5MB +6.9KB
total +3.4KB

Page load bundle

Size of the bundles that are downloaded on every page load. Target size is below 100kb

id before after diff
aiops 8.1KB 7.9KB -175.0B
Unknown metric groups

API count

id before after diff
aiops 71 72 +1

async chunk count

id before after diff
aiops 32 30 -2

cc @walterra

Copy link
Copy Markdown
Contributor

@peteharverson peteharverson left a comment

Choose a reason for hiding this comment

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

LGTM

@walterra walterra merged commit 37a420b into elastic:main Oct 11, 2024
@walterra walterra deleted the ml-aiops-revert-field-stats-refactor branch October 11, 2024 14:15
@kibanamachine
Copy link
Copy Markdown
Contributor

Starting backport for target branches: 8.x

https://github.com/elastic/kibana/actions/runs/11293974927

kibanamachine pushed a commit to kibanamachine/kibana that referenced this pull request Oct 11, 2024
…ts flyout (elastic#194517) (elastic#195860)

## Summary

This reverts elastic#194517 ([ML] AIOps: Use package instead of context for
using field stats flyout) committed in
eebfba4.

The PR refactored how `FieldStatsFlyout` is passed in as a dependency to
change point detection. Unfortunately the refactor caused the dropdown
to select the split field to break when used in the flyout for the
options of the change point detection embeddable.

This revert is done to restore the original behavior. In a follow up I
will revisit the refactor to work properly.

### Checklist

- [x] This was checked for breaking API changes and was [labeled
appropriately](https://www.elastic.co/guide/en/kibana/master/contributing.html#_add_your_labels)

(cherry picked from commit 37a420b)
@kibanamachine
Copy link
Copy Markdown
Contributor

💚 All backports created successfully

Status Branch Result
8.x

Note: Successful backport PRs will be merged automatically after passing CI.

Questions ?

Please refer to the Backport tool documentation

kibanamachine added a commit that referenced this pull request Oct 11, 2024
…ld stats flyout (#194517) (#195860) (#195930)

# Backport

This will backport the following commits from `main` to `8.x`:
- [Revert [ML] AIOps: Use package instead of context for using field
stats flyout (#194517)
(#195860)](#195860)

<!--- Backport version: 9.4.3 -->

### Questions ?
Please refer to the [Backport tool
documentation](https://github.com/sqren/backport)

<!--BACKPORT [{"author":{"name":"Walter
Rafelsberger","email":"walter.rafelsberger@elastic.co"},"sourceCommit":{"committedDate":"2024-10-11T14:15:53Z","message":"Revert
[ML] AIOps: Use package instead of context for using field stats flyout
(#194517) (#195860)\n\n## Summary\r\n\r\nThis reverts #194517 ([ML]
AIOps: Use package instead of context for\r\nusing field stats flyout)
committed in\r\neebfba4f9bfe2592ce92d35aed9cf3c0c8540130.\r\n\r\nThe PR
refactored how `FieldStatsFlyout` is passed in as a dependency
to\r\nchange point detection. Unfortunately the refactor caused the
dropdown\r\nto select the split field to break when used in the flyout
for the\r\noptions of the change point detection embeddable.\r\n\r\nThis
revert is done to restore the original behavior. In a follow up
I\r\nwill revisit the refactor to work properly.\r\n\r\n###
Checklist\r\n\r\n- [x] This was checked for breaking API changes and was
[labeled\r\nappropriately](https://www.elastic.co/guide/en/kibana/master/contributing.html#_add_your_labels)","sha":"37a420b950aa7ced58360283ec4a4e63d5d410f8","branchLabelMapping":{"^v9.0.0$":"main","^v8.16.0$":"8.x","^v(\\d+).(\\d+).\\d+$":"$1.$2"}},"sourcePullRequest":{"labels":["bug",":ml","release_note:skip","v9.0.0","Feature:ML/AIOps","v8.16.0","backport:version"],"title":"Revert
[ML] AIOps: Use package instead of context for using field stats flyout
(#194517)","number":195860,"url":"https://github.com/elastic/kibana/pull/195860","mergeCommit":{"message":"Revert
[ML] AIOps: Use package instead of context for using field stats flyout
(#194517) (#195860)\n\n## Summary\r\n\r\nThis reverts #194517 ([ML]
AIOps: Use package instead of context for\r\nusing field stats flyout)
committed in\r\neebfba4f9bfe2592ce92d35aed9cf3c0c8540130.\r\n\r\nThe PR
refactored how `FieldStatsFlyout` is passed in as a dependency
to\r\nchange point detection. Unfortunately the refactor caused the
dropdown\r\nto select the split field to break when used in the flyout
for the\r\noptions of the change point detection embeddable.\r\n\r\nThis
revert is done to restore the original behavior. In a follow up
I\r\nwill revisit the refactor to work properly.\r\n\r\n###
Checklist\r\n\r\n- [x] This was checked for breaking API changes and was
[labeled\r\nappropriately](https://www.elastic.co/guide/en/kibana/master/contributing.html#_add_your_labels)","sha":"37a420b950aa7ced58360283ec4a4e63d5d410f8"}},"sourceBranch":"main","suggestedTargetBranches":["8.x"],"targetPullRequestStates":[{"branch":"main","label":"v9.0.0","branchLabelMappingKey":"^v9.0.0$","isSourceBranch":true,"state":"MERGED","url":"https://github.com/elastic/kibana/pull/195860","number":195860,"mergeCommit":{"message":"Revert
[ML] AIOps: Use package instead of context for using field stats flyout
(#194517) (#195860)\n\n## Summary\r\n\r\nThis reverts #194517 ([ML]
AIOps: Use package instead of context for\r\nusing field stats flyout)
committed in\r\neebfba4f9bfe2592ce92d35aed9cf3c0c8540130.\r\n\r\nThe PR
refactored how `FieldStatsFlyout` is passed in as a dependency
to\r\nchange point detection. Unfortunately the refactor caused the
dropdown\r\nto select the split field to break when used in the flyout
for the\r\noptions of the change point detection embeddable.\r\n\r\nThis
revert is done to restore the original behavior. In a follow up
I\r\nwill revisit the refactor to work properly.\r\n\r\n###
Checklist\r\n\r\n- [x] This was checked for breaking API changes and was
[labeled\r\nappropriately](https://www.elastic.co/guide/en/kibana/master/contributing.html#_add_your_labels)","sha":"37a420b950aa7ced58360283ec4a4e63d5d410f8"}},{"branch":"8.x","label":"v8.16.0","branchLabelMappingKey":"^v8.16.0$","isSourceBranch":false,"state":"NOT_CREATED"}]}]
BACKPORT-->

Co-authored-by: Walter Rafelsberger <walter.rafelsberger@elastic.co>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

backport:version Backport to applied version labels bug Fixes for quality problems that affect the customer experience Feature:ML/AIOps ML AIOps features: Change Point Detection, Log Pattern Analysis, Log Rate Analysis :ml release_note:skip Skip the PR/issue when compiling release notes v8.16.0 v9.0.0

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants