Skip to content
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

[Discover] Improve warn feedback when data view has changed after rule creation #144392

Closed

Conversation

dimaanj
Copy link
Contributor

@dimaanj dimaanj commented Nov 2, 2022

Summary

Closes #134232

This PR reduces cases Data view changed toast will appearance. For now, only

dimaanj and others added 30 commits September 14, 2022 16:21
…explore-in-discover-for-adhoc-dw

# Conflicts:
#	src/plugins/discover/public/application/main/discover_main_route.tsx
…explore-in-discover-for-adhoc-dw

# Conflicts:
#	x-pack/plugins/lens/public/indexpattern_datasource/utils.tsx
…alerts-for-adhoc-data-views

# Conflicts:
#	src/plugins/discover/public/application/main/hooks/use_adhoc_data_views.ts
#	src/plugins/discover/public/application/main/hooks/use_discover_state.ts
#	test/functional/apps/discover/group2/_adhoc_data_views.ts
#	test/functional/page_objects/discover_page.ts
@dimaanj dimaanj added Feature:Discover Discover Application release_note:fix Team:DataDiscovery Discover, search (e.g. data plugin and KQL), data views, saved searches. For ES|QL, use Team:ES|QL. v8.6.0 labels Nov 2, 2022
@dimaanj dimaanj self-assigned this Nov 2, 2022
@kibana-ci
Copy link
Collaborator

💔 Build Failed

Failed CI Steps

Test Failures

  • [job] [logs] Jest Tests #1 / ruleType search source query rule executor handles no documents returned by ES
  • [job] [logs] Jest Tests #1 / ruleType search source query rule executor schedule actions when condition met

Metrics [docs]

Module Count

Fewer modules leads to a faster build time

id before after diff
stackAlerts 65 66 +1
unifiedSearch 170 185 +15
total +16

Public APIs missing comments

Total count of every public API that lacks a comment. Target amount is 0. Run node scripts/build_api_docs --plugin [yourplugin] --stats comments for more detailed information.

id before after diff
data 2553 2555 +2
triggersActionsUi 489 491 +2
unifiedSearch 104 106 +2
total +6

Async chunks

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

id before after diff
discover 416.6KB 417.8KB +1.1KB
stackAlerts 73.9KB 74.6KB +734.0B
triggersActionsUi 652.9KB 653.1KB +239.0B
unifiedSearch 216.2KB 216.2KB +11.0B
total +2.1KB

Page load bundle

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

id before after diff
data 401.2KB 401.2KB +6.0B
discover 26.5KB 26.4KB -29.0B
stackAlerts 14.2KB 14.0KB -177.0B
unifiedSearch 49.7KB 57.0KB +7.3KB
total +7.1KB
Unknown metric groups

API count

id before after diff
data 3261 3263 +2
triggersActionsUi 518 520 +2
unifiedSearch 131 134 +3
total +7

ESLint disabled in files

id before after diff
osquery 1 2 +1
stackAlerts 1 0 -1
total -0

ESLint disabled line counts

id before after diff
enterpriseSearch 19 21 +2
fleet 57 63 +6
osquery 103 108 +5
securitySolution 439 445 +6
total +19

Total ESLint disabled count

id before after diff
enterpriseSearch 20 22 +2
fleet 65 71 +6
osquery 104 110 +6
securitySolution 516 522 +6
stackAlerts 26 25 -1
total +19

To update your PR or re-run it, just comment with:
@elasticmachine merge upstream

cc @dimaanj

@dimaanj
Copy link
Contributor Author

dimaanj commented Nov 9, 2022

Closing, since #144908 has been created.

@dimaanj dimaanj closed this Nov 9, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Feature:Discover Discover Application release_note:fix Team:DataDiscovery Discover, search (e.g. data plugin and KQL), data views, saved searches. For ES|QL, use Team:ES|QL. v8.6.0
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[Discover][Alerting] Add info when data view has changed after rule creation
4 participants