[Streams] Significant events view#220197
Conversation
…t --include-path /api/status --include-path /api/alerting/rule/ --include-path /api/alerting/rules --include-path /api/actions --include-path /api/security/role --include-path /api/spaces --include-path /api/streams --include-path /api/fleet --include-path /api/dashboards --include-path /api/saved_objects/_import --include-path /api/saved_objects/_export --include-path /api/maintenance_window --update'
🤖 GitHub commentsExpand to view the GitHub comments
Just comment with:
|
kdelemme
left a comment
There was a problem hiding this comment.
I've done a first pass and tested locally, and overall works well.
Just a few comments around the indices used and the feature flag used for the tabs.
| setQueryToEdit(undefined); | ||
| }} | ||
| query={queryToEdit} | ||
| name={definition?.stream.name ?? ''} |
| {i18n.translate('xpack.streams.significantEvents.addSignificantEventButton', { | ||
| defaultMessage: 'Add significant event query', | ||
| })} | ||
| </EuiButton>{' '} |
There was a problem hiding this comment.
| </EuiButton>{' '} | |
| </EuiButton> |
|
|
||
| <EuiFlexItem grow={false}> | ||
| <SignificantEventsTable | ||
| name={definition?.stream.name} |
| const tabs = | ||
| features.significantEvents !== undefined | ||
| ? getStreamDetailTabs({ definition, router, features }) | ||
| : undefined; |
There was a problem hiding this comment.
shouldn't it be
| const tabs = | |
| features.significantEvents !== undefined | |
| ? getStreamDetailTabs({ definition, router, features }) | |
| : undefined; | |
| const tabs = getStreamDetailTabs({ definition, router, features }); |
There was a problem hiding this comment.
I don't want the tabs to be displayed at all until we know whether sig events is available or not (which is async due to the license), otherwise there's a content change (2 tabs => 3 tabs) which I'd like to avoid.
| }); | ||
|
|
||
| const response = (await scopedClusterClient.asCurrentUser.search({ | ||
| index: name, |
There was a problem hiding this comment.
I think the preview should query child streams as well, since the ES|QL query searches them
| index: name, | |
| index: `${name},${name}.*`, |
There was a problem hiding this comment.
cheers, now calling a helper function that was already used in other places
| }, | ||
| dataViewSpec: { | ||
| id: v4(), | ||
| title: name, |
There was a problem hiding this comment.
same here when building the data view, we should include the child
| title: name, | |
| title: `${name},${name}.*`, |
…bana into significant-events-ui-crud
…bana; branch 'main' of github.com:elastic/kibana into significant-events-ui-crud
|
@elasticmachine merge upstream |
|
@elastic/core-docs Can we get a review? |
…bana into significant-events-ui-crud
💚 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
miscellaneous assets size
Total ESLint disabled count
History
cc @dgieselaar |
|
Starting backport for target branches: 8.19, 9.1 https://github.com/elastic/kibana/actions/runs/16115871167 |
|
Starting backport for target branches: 8.19, 9.1 https://github.com/elastic/kibana/actions/runs/16115875291 |
💔 All backports failed
Manual backportTo create the backport manually run: Questions ?Please refer to the Backport tool documentation |
1 similar comment
💔 All backports failed
Manual backportTo create the backport manually run: Questions ?Please refer to the Backport tool documentation |
|
Friendly reminder: Looks like this PR hasn’t been backported yet. |
|
Starting backport for target branches: 8.19, 9.1 https://github.com/elastic/kibana/actions/runs/16167374277 |
Implements a CRUD-ui for significant events. Generated events will follow separately. --------- Co-authored-by: kibanamachine <42973632+kibanamachine@users.noreply.github.com> Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com> Co-authored-by: Kevin Delemme <kevin.delemme@elastic.co> (cherry picked from commit 1458854)
💔 Some backports could not be created
Note: Successful backport PRs will be merged automatically after passing CI. Manual backportTo create the backport manually run: Questions ?Please refer to the Backport tool documentation |
# Backport This will backport the following commits from `main` to `9.1`: - [[Streams] Significant events view (#220197)](#220197) <!--- Backport version: 9.6.6 --> ### Questions ? Please refer to the [Backport tool documentation](https://github.com/sorenlouv/backport) <!--BACKPORT [{"author":{"name":"Dario Gieselaar","email":"dario.gieselaar@elastic.co"},"sourceCommit":{"committedDate":"2025-07-07T11:37:24Z","message":"[Streams] Significant events view (#220197)\n\nImplements a CRUD-ui for significant events. Generated events will\nfollow separately.\n\n---------\n\nCo-authored-by: kibanamachine <42973632+kibanamachine@users.noreply.github.com>\nCo-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>\nCo-authored-by: Kevin Delemme <kevin.delemme@elastic.co>","sha":"14588547ad5df3d5da27f3c79040c75b5e7dff66","branchLabelMapping":{"^v9.2.0$":"main","^v(\\d+).(\\d+).\\d+$":"$1.$2"}},"sourcePullRequest":{"labels":["release_note:enhancement","ci:project-deploy-observability","backport:version","Feature:Streams","v9.1.0","v8.19.0","v9.2.0"],"title":"[Streams] Significant events view","number":220197,"url":"https://github.com/elastic/kibana/pull/220197","mergeCommit":{"message":"[Streams] Significant events view (#220197)\n\nImplements a CRUD-ui for significant events. Generated events will\nfollow separately.\n\n---------\n\nCo-authored-by: kibanamachine <42973632+kibanamachine@users.noreply.github.com>\nCo-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>\nCo-authored-by: Kevin Delemme <kevin.delemme@elastic.co>","sha":"14588547ad5df3d5da27f3c79040c75b5e7dff66"}},"sourceBranch":"main","suggestedTargetBranches":["9.1","8.19"],"targetPullRequestStates":[{"branch":"9.1","label":"v9.1.0","branchLabelMappingKey":"^v(\\d+).(\\d+).\\d+$","isSourceBranch":false,"state":"NOT_CREATED"},{"branch":"8.19","label":"v8.19.0","branchLabelMappingKey":"^v(\\d+).(\\d+).\\d+$","isSourceBranch":false,"state":"NOT_CREATED"},{"branch":"main","label":"v9.2.0","branchLabelMappingKey":"^v9.2.0$","isSourceBranch":true,"state":"MERGED","url":"https://github.com/elastic/kibana/pull/220197","number":220197,"mergeCommit":{"message":"[Streams] Significant events view (#220197)\n\nImplements a CRUD-ui for significant events. Generated events will\nfollow separately.\n\n---------\n\nCo-authored-by: kibanamachine <42973632+kibanamachine@users.noreply.github.com>\nCo-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>\nCo-authored-by: Kevin Delemme <kevin.delemme@elastic.co>","sha":"14588547ad5df3d5da27f3c79040c75b5e7dff66"}}]}] BACKPORT--> Co-authored-by: Dario Gieselaar <dario.gieselaar@elastic.co> Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com> Co-authored-by: Kevin Delemme <kevin.delemme@elastic.co>
Implements a CRUD-ui for significant events. Generated events will follow separately. --------- Co-authored-by: kibanamachine <42973632+kibanamachine@users.noreply.github.com> Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com> Co-authored-by: Kevin Delemme <kevin.delemme@elastic.co>
Implements a CRUD-ui for significant events. Generated events will follow separately.