Commit graph

2300 commits

Author SHA1 Message Date
Kibana Machine
81a3a29f7a
[8.2] Removes perlGuide from doc link service (#148803) (#148812)
# Backport

This will backport the following commits from `main` to `8.2`:
- [Removes perlGuide from doc link service
(#148803)](https://github.com/elastic/kibana/pull/148803)

<!--- 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-01-12T15:13:14Z","message":"Removes
perlGuide from doc link service
(#148803)","sha":"a82e62f0cd29497a8dbbb5f2f7eff07ed14fbf2e","branchLabelMapping":{"^v8.7.0$":"main","^v(\\d+).(\\d+).\\d+$":"$1.$2"}},"sourcePullRequest":{"labels":["Team:Docs","release_note:skip","docs","v8.0.2","v8.1.4","v8.2.4","v8.3.4","v8.4.4","v8.7.0","v8.6.1","v8.5.4"],"number":148803,"url":"https://github.com/elastic/kibana/pull/148803","mergeCommit":{"message":"Removes
perlGuide from doc link service
(#148803)","sha":"a82e62f0cd29497a8dbbb5f2f7eff07ed14fbf2e"}},"sourceBranch":"main","suggestedTargetBranches":["8.0","8.1","8.2","8.3","8.4","8.6","8.5"],"targetPullRequestStates":[{"branch":"8.0","label":"v8.0.2","labelRegex":"^v(\\d+).(\\d+).\\d+$","isSourceBranch":false,"state":"NOT_CREATED"},{"branch":"8.1","label":"v8.1.4","labelRegex":"^v(\\d+).(\\d+).\\d+$","isSourceBranch":false,"state":"NOT_CREATED"},{"branch":"8.2","label":"v8.2.4","labelRegex":"^v(\\d+).(\\d+).\\d+$","isSourceBranch":false,"state":"NOT_CREATED"},{"branch":"8.3","label":"v8.3.4","labelRegex":"^v(\\d+).(\\d+).\\d+$","isSourceBranch":false,"state":"NOT_CREATED"},{"branch":"8.4","label":"v8.4.4","labelRegex":"^v(\\d+).(\\d+).\\d+$","isSourceBranch":false,"state":"NOT_CREATED"},{"branch":"main","label":"v8.7.0","labelRegex":"^v8.7.0$","isSourceBranch":true,"state":"MERGED","url":"https://github.com/elastic/kibana/pull/148803","number":148803,"mergeCommit":{"message":"Removes
perlGuide from doc link service
(#148803)","sha":"a82e62f0cd29497a8dbbb5f2f7eff07ed14fbf2e"}},{"branch":"8.6","label":"v8.6.1","labelRegex":"^v(\\d+).(\\d+).\\d+$","isSourceBranch":false,"state":"NOT_CREATED"},{"branch":"8.5","label":"v8.5.4","labelRegex":"^v(\\d+).(\\d+).\\d+$","isSourceBranch":false,"state":"NOT_CREATED"}]}]
BACKPORT-->

Co-authored-by: István Zoltán Szabó <szabosteve@gmail.com>
2023-01-13 13:19:07 +00:00
Jonathan Budzenski
5913fc3588
Bump chromedriver to 102 (#134058) (#134103) 2022-06-09 14:04:29 -07:00
Thomas Watson
180e41ff00
Move contribution declarations to the bottom of LICENSE files (#133502) (#133754)
(cherry picked from commit a47da23a7d)

# Conflicts:
#	packages/kbn-handlebars/LICENSE
2022-06-07 07:07:16 -07:00
Tiago Costa
c168791d24
[8.2] chore(NA): remove @kbn/utility-types/jest subpackage (#133448) (#133572)
* chore(NA): remove @kbn/utility-types/jest subpackage (#133448)

* chore(NA): remove @kbn/utility-types/jest subpackage

* chore(NA): include migration rule for import path

* chore(NA): remove double import

* chore(NA): creating a new package

* chore(NA): remove jest mentions from @kbn/utility-types

* docs(NA): complete new readme file

* [CI] Auto-commit changed files from 'node scripts/generate packages_build_manifest'

* chore(NA): remove expect error comment

* chore(NA): merge and solve problems with merge on latest upstream

Co-authored-by: kibanamachine <42973632+kibanamachine@users.noreply.github.com>
(cherry picked from commit 3a6cc6e747)

# Conflicts:
#	src/core/public/chrome/chrome_service.mock.ts
#	src/core/server/core_context.mock.ts
#	src/core/server/mocks.ts
#	src/plugins/data/common/search/expressions/kibana_context.test.ts
#	src/plugins/data/common/search/search_source/mocks.ts
#	src/plugins/data/common/search/search_source/search_source.test.ts
#	src/plugins/data/public/search/collectors/create_usage_collector.test.ts
#	src/plugins/data/public/search/expressions/esaggs.test.ts
#	src/plugins/data/public/search/search_interceptor/search_interceptor.test.ts
#	src/plugins/data/public/search/search_service.test.ts
#	src/plugins/data/server/autocomplete/terms_agg.test.ts
#	src/plugins/data/server/search/expressions/esaggs.test.ts
#	src/plugins/data/server/search/search_service.test.ts
#	src/plugins/data/server/search/search_source/mocks.ts
#	src/plugins/data_view_management/server/routes/preview_scripted_field.test.ts
#	src/plugins/data_views/server/routes/has_data_views.test.ts
#	src/plugins/home/server/services/sample_data/sample_data_registry.test.ts
#	x-pack/plugins/cloud_security_posture/server/plugin.test.ts
#	x-pack/plugins/data_enhanced/public/search/sessions_mgmt/lib/api.test.ts
#	x-pack/plugins/security/server/routes/api_keys/create.test.ts
#	x-pack/plugins/security/server/routes/api_keys/enabled.test.ts
#	x-pack/plugins/security/server/routes/authentication/common.test.ts
#	x-pack/plugins/security/server/routes/authentication/saml.test.ts
#	x-pack/plugins/security/server/routes/authorization/spaces/share_saved_object_permissions.test.ts
#	x-pack/plugins/security/server/routes/deprecations/kibana_user_role.test.ts
#	x-pack/plugins/security/server/routes/index.mock.ts
#	x-pack/plugins/security/server/routes/users/change_password.test.ts
#	x-pack/plugins/security_solution/server/lib/detection_engine/routes/__mocks__/request_context.ts

* [CI] Auto-commit changed files from 'node scripts/eslint --no-cache --fix'

Co-authored-by: kibanamachine <42973632+kibanamachine@users.noreply.github.com>
2022-06-03 16:18:37 -07:00
Spencer
7ab925b625
[kbn/es] capture es debug files (#132355) (#132381)
Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
(cherry picked from commit 63fd2dd552)

# Conflicts:
#	packages/kbn-test/src/es/test_es_cluster.ts
2022-05-17 18:25:45 -07:00
Tiago Costa
cbc64a6379
[8.2] chore(NA): rename @elastic/eslint-config-kibana as @kbn/eslint-config (#132278) (#132285)
* chore(NA): rename @elastic/eslint-config-kibana as @kbn/eslint-config (#132278)

(cherry picked from commit dea9159c5d)

# Conflicts:
#	package.json
#	packages/BUILD.bazel
#	yarn.lock

* chore(NA): add removed kbn-eslint-import-resolver-kibana
2022-05-16 14:49:35 -07:00
Brian Seeders
0b01b665bd
[8.2] [bazel] Use a GCS bucket for local dev remote bazel cache (#131866) (#132060) 2022-05-16 10:50:38 -04:00
Kibana Machine
88fc6e0a42
Fix old doc link (#131775) (#131953)
Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
(cherry picked from commit ce29dabec6)

Co-authored-by: DeDe Morton <dede.morton@elastic.co>
2022-05-10 10:36:38 -07:00
Spencer
a6c0371b75
[8.2] [ftr] handle unexpected Kibana/ES shutdowns better (#131767) (#131812)
* [ftr] handle unexpected Kibana/ES shutdowns better (#131767)

(cherry picked from commit c6108ba076)

# Conflicts:
#	packages/kbn-test/src/functional_test_runner/functional_test_runner.ts

* fix rxjs usage
2022-05-09 09:41:13 -07:00
Brandon Morelli
b4da0e61ec
[8.2] Fix broken/missing APM app links and use docLinks service (#128326) (#131656)
Co-authored-by: Kaarina Tungseth <kaarina.tungseth@elastic.co>
Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
Co-authored-by: Giorgos Bamparopoulos <georgios.bamparopoulos@elastic.co>
2022-05-05 14:30:59 -07:00
Lisa Cawley
dfc5bf7cf8
[ML] Fixing management app docs links (#130776) (#131460)
* [ML] Fixing management app docs links

* changing translation id

(cherry picked from commit 5fe9437caf)

Co-authored-by: James Gowdy <jgowdy@elastic.co>
2022-05-03 15:14:04 -07:00
Spencer
85ffa79b2d
[8.2] [ci-stats-reporter] use v2 test group APIs (#131001) (#131438)
* [ci-stats-reporter] use v2 test group APIs (#131001)

* [ci-stats-reporter] use v2 test group APIs

* fix bazel deps

* [CI] Auto-commit changed files from 'yarn kbn run build -i @kbn/pm'

* avoid importing kbn/std in kbn-pm

* removed kbn/std dependency

Co-authored-by: kibanamachine <42973632+kibanamachine@users.noreply.github.com>
(cherry picked from commit 7fd166176d)

# Conflicts:
#	packages/kbn-pm/dist/index.js

* [ci-stats-reporter] use a default timeout of 60 seconds (#131428)

Co-authored-by: kibanamachine <42973632+kibanamachine@users.noreply.github.com>
(cherry picked from commit 06b958d2a2)
2022-05-03 12:44:47 -07:00
Hannah Mudge
41295de197
[8.2] [Controls] Collect Telemetry (#130498) (#130832)
* [Controls] Collect Telemetry (#130498)

* collect telemetry for controls

(cherry picked from commit 3b37b27826)

# Conflicts:
#	src/plugins/controls/common/control_group/control_group_persistence.ts
#	src/plugins/dashboard/common/embeddable/dashboard_container_persistable_state.ts
#	src/plugins/dashboard/common/saved_dashboard_references.ts
#	src/plugins/dashboard/common/types.ts
#	src/plugins/dashboard/public/application/embeddable/dashboard_container_factory.tsx
#	src/plugins/dashboard/public/application/lib/dashboard_control_group.ts
#	src/plugins/dashboard/public/saved_dashboards/saved_dashboard.ts
#	src/plugins/dashboard/public/types.ts
#	src/plugins/dashboard/server/saved_objects/dashboard_migrations.ts
#	src/plugins/dashboard/server/usage/dashboard_telemetry.ts

* Fix formatting

* [CI] Auto-commit changed files from 'node scripts/eslint --no-cache --fix'

* Fix failures

* Fix

* Fix imports + type

Co-authored-by: Devon Thomson <devon.thomson@elastic.co>
Co-authored-by: kibanamachine <42973632+kibanamachine@users.noreply.github.com>
2022-04-25 13:20:04 -07:00
Kibana Machine
f2282e0a44
[Enterprise Search] Add documentation link for BYOEI (#130494) (#130590)
* Add link and type to doc links packages

* Add link to UI

(cherry picked from commit 06740ff218)

Co-authored-by: Scotty Bollinger <scotty.bollinger@elastic.co>
2022-04-19 11:40:19 -07:00
Kibana Machine
d8875b9d4d
[Fleet] Update the link to logstash ssl documentation (#130510) (#130589)
(cherry picked from commit 87fd4a4c67)

Co-authored-by: Nicolas Chaulet <nicolas.chaulet@elastic.co>
2022-04-19 11:35:03 -07:00
Tiago Costa
edcb625057
chore(NA): use new and more performant BuildBuddy servers (#130350) (#130439)
* chore(NA): use new and more performant BuildBuddy servers

* chore(NA): simple upgrade mechanism for new remote address servers

* docs(NA): missing note for future removal

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
(cherry picked from commit 48ca660c50)

# Conflicts:
#	packages/kbn-pm/dist/index.js
2022-04-17 19:40:44 -07:00
Kibana Machine
a7f69fb22b
fix(NA): use correct rule on yarn_install force at @kbn/pm (#130375) (#130377)
(cherry picked from commit c266af629e)

Co-authored-by: Tiago Costa <tiago.costa@elastic.co>
2022-04-15 15:39:50 +01:00
Kibana Machine
2f310d87c0
chore(NA): downgrades rules nodejs into v4.7.0 (#130347) (#130354)
* chore(NA): downgrade rules nodejs into v4.0.0

* chore(NA): include windows patch

* chore(NA): polish downgrade code

* chore(NA): include yarn.lock

(cherry picked from commit 0b2da10a7d)

Co-authored-by: Tiago Costa <tiago.costa@elastic.co>
2022-04-14 21:39:51 -07:00
Kibana Machine
cbab89d8a4
[Lens] reduce sync bundle size and update package size limit (#130156) (#130335)
(cherry picked from commit 72c40f2119)

Co-authored-by: Andrew Tate <andrew.tate@elastic.co>
2022-04-14 15:53:36 -07:00
Kibana Machine
247cabb687
[CI] Balance/split CI groups and remove docker-specific group (#130181) (#130275)
(cherry picked from commit 1dce1d8d97)

Co-authored-by: Brian Seeders <brian.seeders@elastic.co>
2022-04-14 09:42:00 -07:00
Kibana Machine
21eb404d9a
chore(NA): upgrades rules_node_js to v5.4.0 (#130051) (#130070)
* chore(NA): upgrades rules_node_js to v5.4.0

* chore(NA): include expunge on bootstrap --force-install

(cherry picked from commit fb761dca4c)

Co-authored-by: Tiago Costa <tiago.costa@elastic.co>
2022-04-12 18:10:24 -07:00
Kibana Machine
57e5dd6012
[Security solution] [Endpoint] Revisit blocklist wrong labels (#128773) (#130063)
* Fixes wrong text for downgrade license docs link on blocklist.

* Fixes license downgraded banner for blocklist including the docs link

* Updates i18n keys for blocklist to be singular

* Removes unused param name

Co-authored-by: Ashokaditya <1849116+ashokaditya@users.noreply.github.com>
Co-authored-by: kevinlog <kevin.logan@elastic.co>
(cherry picked from commit 935bac7b65)

Co-authored-by: David Sánchez <david.sanchezsoler@elastic.co>
2022-04-12 17:08:06 -07:00
Kibana Machine
719af45c2c
Deprecate outdated detection rules Bulk APIs (#129448) (#129997)
(cherry picked from commit a8977474a7)

Co-authored-by: Dmitrii Shevchenko <dmitrii.shevchenko@elastic.co>
2022-04-12 06:15:24 -07:00
Kibana Machine
a680eb80c8
[kbn/optimizer] include used dll refs in cache key (#129928) (#129956)
(cherry picked from commit 023f4a93cf)

Co-authored-by: Spencer <spencer@elastic.co>
2022-04-11 16:39:33 -07:00
Tiago Costa
86bb11dfb3
chore(NA): upgrades bazel rules nodejs to v5 (#129522) (#129852)
* chore(NA): upgrade bazel into v5

* chore(NA): initial work to upgrade to rules v5

* chore(NA): remove @elastic/datemath jest unit test for eslint plugin imports

* chore(NA): removed packager tsc_wrapped added my mistake

(cherry picked from commit eb0ef19583)

# Conflicts:
#	.github/CODEOWNERS
#	packages/kbn-eslint-plugin-imports/src/integration_tests/resolve_kibana_import.test.ts

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2022-04-08 16:30:53 -07:00
Kibana Machine
d6b0ddc4c6
Edit text strings and links in add logstash output UI (#129551) (#129795)
* Edit text strings and links in add logstash output UI

* fix test to match

* Add changes from review

* Fix tests

* Fix type

* Fix I18N error

Co-authored-by: Nicolas Chaulet <nicolas.chaulet@elastic.co>
Co-authored-by: gchaps <gail.chappell@elastic.co>
(cherry picked from commit a583edcde6)

Co-authored-by: DeDe Morton <dede.morton@elastic.co>
2022-04-07 15:06:15 -07:00
Joe Portner
40ffb9df85
[8.2] Avoid loading all plugins on anonymous pages (#129555) (#129740)
* Avoid loading all plugins on anonymous pages (#129555)

(cherry picked from commit 6acf7c0481)

# Conflicts:
#	x-pack/plugins/security/kibana.json
#	x-pack/plugins/security/public/plugin.tsx

* Update edit_role_page.tsx
2022-04-07 08:24:19 -07:00
Kibana Machine
9bec00d6c3
[Fleet] Encrypt ssl fields in logstash output (#129131) (#129525)
(cherry picked from commit 420359bacd)

Co-authored-by: Nicolas Chaulet <nicolas.chaulet@elastic.co>
2022-04-05 14:12:49 -07:00
Kibana Machine
7a74d8e773
Add missing link that is used on /app/enterprise_search/overview/elasticsearch_guide (#129266) (#129268)
(cherry picked from commit d27702ac6b)

Co-authored-by: Vadim Yakhin <vadim.yakhin@elastic.co>
2022-04-01 17:44:53 -07:00
Kibana Machine
611c5238d9
[Security Solution] fix blocklist path validation (#129124) (#129141)
(cherry picked from commit 1803cf448a)

Co-authored-by: Joey F. Poon <joey.poon@elastic.co>
2022-03-31 14:48:34 -07:00
Marshall Main
482f819a05
[Security Solution][Alerts] Replace schemas derived from FieldMaps with versioned alert schema (#127218)
* Replace schemas derived from FieldMaps with versioned alert schema

* Import fixes and comment

* Another import fix

* Separate read and write schemas

* Separate read and write schemas for common alert fields

* fix import

* Update ALERT_RULE_PARAMETERS type

* Fix getField type

* Fix more types

* Remove unneeded index signature from PersistenceAlertServiceResult

* Fix types and tests

* Update comment describing new schema process

* Update Ancestor800 type

* Add modified PR description as initial README

* Remove duplication in CommonAlertFields definition

* Add explicit undefined value for rule in mock

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2022-03-29 20:11:55 -07:00
Spencer
db7db0e4ca
[ci-stats-reporter] prevent Request body larger than maxBodyLength limit error (#128840)
Co-authored-by: kibanamachine <42973632+kibanamachine@users.noreply.github.com>
2022-03-29 17:53:38 -06:00
Spencer
40ba9bf53b
[axe-config] extract module to it's own package (#128815) 2022-03-29 15:12:14 -07:00
Tiago Costa
ac5603b267
fix(NA): do not declare @types packages as prod dependencies when generating the pkg.json (#128805) 2022-03-29 14:12:19 -07:00
Maja Grubic
865f7fc1e1
[SharedUX] Add url-loader to BAZEL.build (#128650)
* [SharedUX] Fix url path

* Add url-loader as bazel dependency
2022-03-29 22:41:00 +02:00
Spencer
92d65484a5
[plugin-discovery] move logic to a package (#128684) 2022-03-29 13:19:58 -06:00
Cauê Marcondes
1e33587b68
[APM] fix cypress (#128411)
* Fix synthtrace, some broken tests

* fixing comparison test

* fixing error count e2e

* fixing error details test

* Fix APM deep links

* Add default environment to /apm/services request in home.spec.ts

* fixing service overview filter test

* Fix accessibility test in transactions overview page

* testing CI

* removing time arg

* removing unused import

* Fix e2e tests for infrastructure feature flag

* fixing and skipping tests

* fixing test

* skipping flaky test

Co-authored-by: Dario Gieselaar <dario.gieselaar@elastic.co>
Co-authored-by: gbamparop <georgios.bamparopoulos@elastic.co>
Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2022-03-29 12:16:32 -07:00
Madison Caldwell
11bba0a04b
[Security Solution] Consider exceptions when loading threshold alert timelines (#128495)
* Add exceptions to threshold timeline

* Tests and error handling

* Fix unit tests

* Add alias for exceptions filter

* Fix tests

* Type fixes

Co-authored-by: Marshall Main <marshall.main@elastic.co>
2022-03-29 15:09:55 -04:00
Marta Bondyra
7039878471
[Lens] Remove unused and duplicated code for XY chart expression (#128716)
* [Lens] remove unused and duplicated code

* lowering the limits for page bundle
2022-03-29 18:30:10 +02:00
Mark Hopkin
0181e5aeb9
add link to ilm docs (#128656) 2022-03-29 17:27:55 +01:00
David Sánchez
a07c47c652
Set filter to undefined when it's empty on findExceptionLists method (#128455)
Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2022-03-29 12:44:31 +02:00
Yulia Čech
bef90a5866
Jest axe a11y testing (#127185)
* [A11y] Added axe testing to testBed to be used in jest tests (CITs)

* [A11y] Refactored axe helpers to be outside of testBed for better separation of concerns. Also added tests for indices tab in Index Management.

* [A11y] Switched `axe_helpers` to use a Kibana wide axe config and rules that are now in kbn-test package

* [A11y] Switched `axe_helpers` to use a Kibana wide axe config and rules that are now in kbn-test package

* [A11y] Completed a11y tests in Index Management Indices tab. Also refactored http requests helper file.

* Removed import comment

* Reverted yarn.lock change

* Correct yarn.lock changes

* [IM] Updated the branch after merging main

* [IM] Reverted unrelated ResponseError interface changes

* [IM] Fixed eslint issue with kbn/test import
2022-03-29 10:44:11 +02:00
Vadim Yakhin
ecd2a50c19
Add Elasticsearch guide (#128190)
* Add basic elasticsearch card and page

* Add more content and styles

* Update content

* Add language client select

* Get client language from URL

* Add language instructions

* Make designs close to pixel perfect

* Add i18n strings

* Add elasticsearch_cloud_id component and tests

Co-authored-by: joemcelroy <joseph.mcelroy@elastic.co>

* Fix linter errors

* Use i18n instead of FormattedMessage for consistency

* Remove redundant FormattedMessage

* include cloud deployment link in UI

* Add instructions for all language clients

* Rewrite language selector with switch

* Add missing target blank

* Remove trailing whitespace in code blocks

* Fix i18n

* Invert ruby instructions

* Update page layout

* Add syntax highlighting

* Remove PERL

* Reorder languages

* Add placeholder for elasticsearch version

* Change docs version to current

* Add missing links

* Add target="_blank" to links

* Simplify strong prop

* Fix column stretching from Kibana PR Cloud ID in code blocks

* Fix page keeping the scroll position

* Fix typo

* Adhere to writing guidelines

* Use docLinks service

* Update dotnet guide

* Use elasticsearch query dsl link instead of creating a new one for Ruby client

* Update php connecting link

Looks like it was fixed in `master`, but not in `current` docs. Since the PR is going to master, we could use the corrected link

Co-authored-by: joemcelroy <joseph.mcelroy@elastic.co>
Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2022-03-28 17:06:33 -07:00
Garrett Spong
9bc4c0c22c
[Security Solution][Detections] Adds rule execution log table (#126215)
## Summary

Resolves #119598, #119599, #101014

Test plan ([internal doc](https://docs.google.com/document/d/1-prIUGYaPHiwGA79CgSdw1926lxIPKGWWkYOUD2BM1U/edit#heading=h.womzsfdt6zt8))

Adds `Rule Execution Log` table to Rule Details page:

<p align="center">
  <img width="700" src="https://user-images.githubusercontent.com/2946766/158540840-e9cddb9b-f33d-4b95-86ad-cb3e0a00cf39.gif" />
</p>


### Implementation notes

The useful metrics within `event-log` for a given rule execution are spread between a few different platform (`execute-start`, `execute`) and security (`execution-metrics`, `status-change`) events. In effort to provide consolidated metrics per rule execution (and avoiding a lot of empty cells and mis-matched statuses like in the image below)

<p align="center">
  <img width="700" src="https://user-images.githubusercontent.com/2946766/151933881-2e58f4d7-4cda-4528-9d44-37cb7bd5de9c.png" />
</p>



these rule execution events are aggregated by their `executionId`, and then fields are merged from each different event. This PR was re-worked to take advantage of the new event-log aggregation support added in https://github.com/elastic/kibana/pull/126948, and is no longer implemented as an in-memory aggregation server side.

* Due to restrictions around supplying search filters that may match multiple sub-agg buckets and missing data ([see discussion here](https://github.com/elastic/kibana/pull/127339/files#r825240516)), it was decided that we'd disable the search bar for the time being. We have both a near-term (writing single rollup event) and long-term (ES|QL) solution that will allow us to re-enable this functionality.

* Note, since a `terms` agg is used to fetch all execution events, an upper bound must be set. See [this discussion](https://github.com/elastic/kibana/pull/127339/files#r823035420) for more details, but setting this max to `1000` events for the time being, and returning total cardinality of execution events back within `total` to allow the UI to inform the user that they should narrow their search further to better isolate and find possible issues. This should be a be a reasonable constraint for most all rules as a rule executing every 5 minutes, 1000 executions would cover over 3 days of execution time.

<p align="center">
  <img width="700" src="https://user-images.githubusercontent.com/2946766/159045563-966896b4-3cd1-475d-9f0e-c2d300683546.png" />
</p>


The `Filter for alerts` action will be available on all `Succeeded`/`Partial Failure` executions even if there weren't alerts generated until https://github.com/elastic/kibana/pull/126210 is merged and we can start returning the alert count, at which point we can programmatically enabled/disable this action based on alert count.



<p align="center">
  <img width="300" src="https://user-images.githubusercontent.com/2946766/159051762-e2f97ba4-4ce1-4f67-8ae1-395e4b191cab.png" />
</p>
2022-03-28 16:42:46 -06:00
Jiawei Wu
4235f8157e
[ResponseOps] Execution log - data grid component, date picker, and status filter (#128183)
* Event log and alerts tab in rule summary

* Fix tests

* Event log implementation in rule summary page

* Unit testing

* run lint

* rule event log unit tests

* Load execution API unit test

* With bulk rule api test update

* Fix lint

* Address comments

* Fix feature flag test

* Fix import type linting

* Integration test and fixed lint

* Lazy load execution log list

* Bump up triggers_actions_ui limits.yml size to 100kbs

* Address comments

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2022-03-28 13:08:25 -07:00
Tiago Costa
7f4735f4d3
fix(NA): use a single step for yarn kbn bootstrap (#128657)
* fix(NA): use a single step for yarn kbn bootstrap

* chore(NA): additional error message to warn around new integration

* chore(NA): additional error message to warn around new integration
2022-03-28 19:33:52 +01:00
Yaroslav Kuznietsov
072fe63c0b
[XY] Expression chart. (#127150)
* added xy plugin.

* Added expressionXY limits.

* Added xy expression functions to the expression_xy plugin.

* Moved xy to a separate plugin.

* Fixed bugs, caused by the refactoring process.

* Fixed lens snapshots.

* Removed new line.

* Fixed xy_chart tests.

* Added lazy loading for xy chart.

* Fixed xy chart test.

* Fixed broken chart selectors.

* Fixed dashboard tests.

* dashboard test fixed.

* Fixed heatmap vis.

* Smokescreen test fixed.

* more fixes.

* async dashboard tests fixed.

* Fixed xy smokescreen tests selectors.

* fixed show_underlying_data tests.

* Updated snapshots.

* updated limits.

* Fixed more selectors

* Fixed persistent context test.

* Fixed some more test at ml.

* Fixed types and imports

* Fixed handlers.inspectorAdapters.tables.logDatatable

* Fixed logDatatable

* Translations fixed.

* Fixed "Visualize App ... cleans filters and query" test.

* Fixed "lens disable auto-apply tests" test.

* Updated dashboard tests.

* Fixed translations.

* Expression tests fixed.

* Cleaned up expression_xy.

* cleaned up lens xy_visualization.

* Moved XY state types to lens.

* Update src/plugins/chart_expressions/expression_xy/README.md

Co-authored-by: Marta Bondyra <marta.bondyra@gmail.com>

* [CI] Auto-commit changed files from 'node scripts/build_plugin_list_docs'

* Removed yConfig from *Layers types

* Removed not used utils and styles.

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
Co-authored-by: Marta Bondyra <marta.bondyra@gmail.com>
2022-03-28 18:17:36 +03:00
Tiago Costa
e60a95f347
chore(NA): run force-install automatically when .yarn-integrity file is missing (#128631) 2022-03-28 15:37:44 +01:00
Tiago Costa
32eb83cfd2
chore(NA): redesign integration between bazel node_modules management and yarn kbn commands (#114048)
* chore(NA): redesign integration between bazel node_modules management and yarn kbn commands

* fix(NA): remove .yarn-integrity on force install

* fix(NA): include clean on force install

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2022-03-28 13:57:04 +01:00
Alejandro Fernández Haro
f5229950bb
Ignore jest.config.js in coverage (#128537) 2022-03-25 21:08:14 +01:00