Commit graph

47144 commits

Author SHA1 Message Date
Tyler Smalley 0a3ede8fd1
[ci] Explicitly define tasks for ES snapshot build (#115074)
Signed-off-by: Tyler Smalley <tyler.smalley@elastic.co>
2021-10-14 15:59:02 -07:00
Vadim Yakhin 8db36d9f4a
[Fleet, Workplace Search] Add Workplace Search connectors as non-Fleet integrations (#114919)
* Add icons

* Add new categories

* Add Workplace Search connectors to the unified integrations view

* Add a new enterprise_search shipper

* Update number of custom integrations in test

* Change customIntegrations type to optional

* Revert "Update number of custom integrations in test"

This reverts commit 30214b2c7c.

The reason is that while this test passes with 2 separate commands for
functional test runner, it fails when it is run with a single command.

Reverting to make the CI pass. We will look into this test separately.
I will link the investigation issue in the PR.
2021-10-14 18:36:56 -04:00
Kevin Lacabane e49ec25fae
[Stack Monitoring] Fix monitoring func test (#115013)
* add noDataContainer test-subj

* remove unnecessary test step

* Fix test subjects for overview page

* remove unused service

* update NoData component snapshots

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2021-10-14 22:47:57 +02:00
Scotty Bollinger 91d48ff475
[Workplace Search] Fix loading state bug and update button (#115068)
* Change source deletion to set entire page loading

Do this instead of having the button loading

* Replace text button with icon button for blocked windows
2021-10-14 16:01:42 -04:00
ymao1 5657f80feb
[Alerting] Show execution duration on Rule Details view (#114719)
* Adding execution duration to get alert instance summary

* Showing execution duration on rule details view

* Fixing unit tests

* Updating to match new mockup

* Fixing types

* Fixing functional test

* Removing unneeded max and min and adding tests

* Removing unneeded max and min and adding tests

* Fixing functional test

* Adding left axis

* PR feedback

* Reducing chart height

* PR feedback

* PR feedback

* PR feedback
2021-10-14 15:52:23 -04:00
Nicolas Chaulet 065b42b661
[Fleet] Remove escaping numeric value in agent template (#114123) 2021-10-14 15:28:43 -04:00
Kyle Pollich e22974a85f
Validate package policy immediately after dry run data is available (#115060) 2021-10-14 15:16:58 -04:00
Cauê Marcondes d7e7dbfe53
[APM] Remove rate aggregations (#114187)
* fixing throughput chart api

* change backends

* adding intervalString to the observability callback functions

* fixing transaction group detailed stats

* fixing tests

* fixing test

* fixing obs tests

* fixing tests

* adding tests

* fixing ci

* using data generator

* changing name

* fixing i18n

* updating opbs test to use data generator

* fixing api tests

* fixing tests

* using data generator to run the tests

* fixing tests

* fixing test
2021-10-14 20:48:15 +02:00
Dominique Clarke 7fb99fbe06
[Uptime] [Synthetics integration] browser monitors - Zip Url - add TLS Options and Proxy Url (#112554)
* add tls options to browser monitors when zip url is selected

* adjust types

* add tests

* refactor tls fields and zip url tls fields

* adjust types

* adjust i18n

* add proxy url

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2021-10-14 14:31:45 -04:00
Joey F. Poon 7d8d85e1c8
[Security Solution] unskip endpoint functional tests (#114922)
Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2021-10-14 13:21:55 -05:00
Khristinin Nikita 1929f88ce0
Update CTI ECS 1.11 fields (#113404)
* Update threatintel to threat

* Remove CTI mappings

* Update CTI_DATASET_KEY_MAP

* Update default threat index

* Change mapping to dataset

* Fix tests

* Fix tests

* Fix test

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2021-10-14 20:21:39 +02:00
Quynh Nguyen 35da323313
[ML] Display advanced mode toggle for the APM failed transactions table (#114363)
* Add new toggle

* [ML] Add tooltip for p value

* [ML] Add tooltip for p value

* Update tooltip

* Add callback, revert i18n, compressed

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2021-10-14 13:17:55 -05:00
Aleh Zasypkin 025861c189
Add API integration tests for Interactive Setup. (#111879) 2021-10-14 20:14:01 +02:00
Josh Dover ebb9e24b61
Fix bug in handling preconfiguration input overrides (#115030) 2021-10-14 14:13:24 -04:00
Maja Grubic 45a0032e73
[Discover] Persist hide chart option to local storage (#114534)
* Persist hide chart to local storage

* [Discover] Persist hide chart option to local storage

* Fix state

* Fix dependency check

* Set chart state to undefined

* Update unit test

* Do not override saved search preferences

* Fix missing import

* Add a functional test

* Add a functional test

* Fix functional test

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2021-10-14 19:21:57 +02:00
Thomas Neirynck dafd9d4e60
[Fleet] Add File upload (#114934) 2021-10-14 13:16:28 -04:00
Tim Sullivan 57e3af77f0
[Reporting] Forward-port config deprecation fixes from 7.x (#114950)
* [Reporting] Forward-port config deprecation fixes from 7.x

* remove index deprecation

* fix test
2021-10-14 09:57:54 -07:00
Marco Liberati d0e19e4960
[Lens][Inspector] Close the inspector on Lens unmount (#114317)
* 🐛 First attempt to close the inspector automatically on app unmount

* 👌 Integrate feedback

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2021-10-14 18:45:31 +02:00
Dominique Clarke e4e7a1ced1
[Observability] [Exploratory view] remove the filter buttons from the exploratory view legend (#114908) 2021-10-14 12:43:39 -04:00
Patryk Kopyciński dfbb397696
[Osquery] Fix sql query parser logic (#114932) 2021-10-14 18:43:14 +02:00
Paul Tavares 81a84a863b
[Security Solution][Endpoint] Unit tests for Policy Details Remove Modal (#115005)
* test: refactor trusted apps http mocks to top-level `mocks` directory
* Completed tests for Remove modal
* improvements to UT code
2021-10-14 12:39:40 -04:00
Chris Cowan b204a20b45
[Stack Monitoring] Convert Access Denied page to React (#114887)
* [Stack Monitoring] Convert Access Denied page to React

* Adding data-test-subj
2021-10-14 10:35:25 -06:00
Zacqary Adam Xeper 03fe419dd4
[Stack Monitoring] Remove deprecation warning for Internal Monitoring (#114856)
* [Stack Monitoring] Remove deprecation warning for Internal Monitoring

* Fix i18n
2021-10-14 11:21:55 -05:00
Stacey Gammon 45e9d51a44
Add pluginTeam to plugin API ci stats (#115007)
* Add pluginTeam to ci stats for easier higher level groupings

* Updated docs
2021-10-14 11:54:35 -04:00
Tyler Smalley f2d70d8996
[renovate] Configure Cypress (#114880)
On `ci:all-cypress-suites` label, run all Cypress suites on Buildkite

Signed-off-by: Tyler Smalley <tyler.smalley@elastic.co>
2021-10-14 08:52:11 -07:00
Chenhui Wang 1155640779
Add comments in the GitHub content source UI (#114766) 2021-10-14 23:44:47 +08:00
Georgii Gorbachev b304c1ca0b
[Security Solution][Detections] Truncate lastFailureMessage for siem-detection-engine-rule-status documents (#112257)
**Ticket:** https://github.com/elastic/kibana/issues/109815

## Summary

**Background:** `siem-detection-engine-rule-status` documents stores the `lastFailureMessage` a string which is indexed as `type: "text"` but some failure messages are so large that these documents are up to 26MB. These large documents cause migrations to fail because a batch of 1000 documents easily exceed Elasticsearch's `http.max_content_length` which defaults to 100mb.

This PR truncates `lastFailureMessage` and `lastSuccessMessage` in the following cases:

1. When we write new or update existing status SOs:
    - The lists of errors/warnings are deduped -> truncated to max `20` items -> joined to a string
    - The resulting strings are truncated to max `10240` characters
2. When we migrate `siem-detection-engine-rule-status` SOs to 7.15.2:
    - The two message fields are truncated to max `10240` characters

### Checklist

Delete any items that are not applicable to this PR.

- [ ] [Unit or functional tests](https://www.elastic.co/guide/en/kibana/master/development-tests.html) were updated or added to match the most common scenarios
2021-10-14 17:40:23 +02:00
ymao1 0b2012a908
Setting displayname for alerting sos (#114916) 2021-10-14 11:34:52 -04:00
Jonathan Budzenski 3899046313 skip flaky suite. #113890 2021-10-14 09:51:46 -05:00
Tim Sullivan c5e23b6a5b
[Reporting] Functional test structure & improvements (#114298)
* [Reporting] Functional test structure & improvements

* show the error of the report generation failure in the test failure

* update snapshot

* remove import to non-existent functional app test

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2021-10-14 07:37:15 -07:00
David Sánchez 55a444b17a
Small adjustments in policy page (#114957) 2021-10-14 16:25:17 +02:00
Clint Andrew Hall 864e6f1a74
[fleet] Adjust unified integration view to have better UI controls (#114692)
* [fleet] Adjust Package Cards to horizontal layout

* Fix responsive shifting

* Addressing feedback

* cleanup layout for integrations view

* i18n

* Fix type errors

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
Co-authored-by: Dave Snider <dave.snider@gmail.com>
Co-authored-by: Josh Dover <1813008+joshdover@users.noreply.github.com>
2021-10-14 10:18:01 -04:00
Angela Chuang 56a2e788ca
[Security Solution] tgrid cellActions enhancement (#113419)
* Alerts cellAction enhancement

* styling

* fix types

* expandable topN

* fix types

* styling for filters

* styling

* rm getDefaultCellActions

* styling

* globalFilters for topN

* rm unused i18n keys

* unit test

* add i18n

* rename component

* fix types

* update i18n keys

* unit tests

* styling for reason row renderer

* rename file

* fix Circular Dependencies

* update wording/icons for show top N

* cell value text overflow

* reason in grid-view

* unit test

* default selected option for topN

* lint error

* configurable paddingSize and showLegend for topN

* update snapshot

* rename reason title

* fix cypress

* fix cypress

* fix unit tests

* fix default cell actions

* fix page crashing

* unit test

* add unit tests

* code review

* fix missing props

* fix expand ip button

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2021-10-14 15:17:28 +01:00
Ester Martí Vilaseca cdce98c8a3
[Stack monitoring] Fix clusters functional tests when react is enabled (#114982)
* Fix test subjects for overview page

* fix pathname matching
2021-10-14 15:57:27 +02:00
Maja Grubic 586682a0c4
[Discover] Rename default column in the advanced settings (#114100)
* [Discover] Rename default column in the advanced settings

* Fix eslint

* Rename default column to an empty string

* Fix typo

* Fix default column filtering

* Update comment

* Make an empty array a default columns

* Improve functional test

* Wording change

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2021-10-14 15:49:35 +02:00
Marco Liberati 4db2437036
[Lens] Thresholds: when computing default static value take into account all layer metrics (#113647)
*  compute the default threshold based on data bounds

* 🐛 Fix multi layer types issue

*  Fix test

*  Fix other test

* 🐛 Fix computation bug for the initial static value

*  Add new suite of test for static value computation

* 🐛 Fix extents bug and refactor in a single function + tests

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2021-10-14 15:28:40 +02:00
Thomas Neirynck f52c718f11
fix cloudwatch category assignmet (#114928) 2021-10-14 09:07:22 -04:00
Tim Roes b21e1ebf38
Deprecate DataView.flattenHit in favor of data plugin flattenHit (#114517)
* WIP replacing indexPattern.flattenHit by tabify

* Fix jest tests

* Read metaFields from index pattern

* Remove old test code

* remove unnecessary changes

* Remove flattenHitWrapper APIs

* Fix imports

* Fix missing metaFields

* Add all meta fields to allowlist

* Improve inline comments

* Move flattenHit test to new implementation

* Add deprecation comment to implementation

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2021-10-14 14:43:06 +02:00
Kevin Lacabane 29d750a8c1
[Stack Monitoring] fix feature controls functional test (#114781)
* fix feature controls functional test

* target test-subj attr instead of class
2021-10-14 14:33:07 +02:00
Anton Dosov f598cf1ffd
Update app services bundle limits (#114789) 2021-10-14 13:46:16 +02:00
Kyle Pollich 187d949685
[Fleet] Improve Functionality around Managed Package Policies (#114526)
* Enabled auto policy upgrades for APM and Synthetics

* fixup! Enabled auto policy upgrades for APM and Synthetics

* Rework preconfiguration policy upgrade flow + report errors

* Fix type error in test

* Fix type errors + tests

* wip

* Remove keep policies up to date checks

* Remove references to KEEP_POLICIES_UP_TO_DATE_PACKAGES

* Move package policy upgrade results to nonFatalErrors

* Fix types

* Fix type error

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2021-10-14 07:19:50 -04:00
Gloria Hornero 06e469394a
cleanup (#114902)
Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2021-10-14 13:15:02 +02:00
Mark Hopkin 5ee779c3c2
remove stray semicolon (#114969) 2021-10-14 12:42:14 +02:00
Esteban Beltran 1d3c8b7dc7
[Security Solution] Edit host isolation exception IP UI (#114279)
Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2021-10-14 11:26:49 +02:00
Walter Rafelsberger b0daf935cf
[ML] APM Correlations: Round duration values to be used in range aggregations. (#114833)
A change in the ES range agg no longer accepts numbers with decimals if the underlying field is typed as long. This fixes the issue by rounding the values we pass on to the range agg.
2021-10-14 11:07:26 +02:00
Yulia Čech f2f6bb5295
[Index Management] Added data-test-subj values to the index context menu buttons (#114900) 2021-10-14 10:50:26 +02:00
Ester Martí Vilaseca 32f650f9f7
[Stack monitoring] Fix logstash functional tests for react (#114819)
* update logstash pipelines test subject

* Add sorting to table options for pipelines table

* fix sorting in logstash node pipelines table

* remove commented code
2021-10-14 10:48:36 +02:00
Dmitry Shevchenko b64604ac89
Implement hybrid approach to writing rule execution event logs (#114852) 2021-10-14 10:09:45 +02:00
Justin Ibarra 95e8595a12
[Detection Rules] Add 7.16 rules (#114939) 2021-10-13 21:49:07 -08:00
Yara Tercero 69a6cf329c
Fixing exceptions export format (#114920)
### Summary

Fixing exceptions export format and adding integration tests for it.
2021-10-13 23:32:43 -04:00