Commit graph

17500 commits

Author SHA1 Message Date
Spencer c0395c9ef6
[build_ts_refs] improve caches, allow building a subset of projects (#107981)
* [build_ts_refs] improve caches, allow building a subset of projects

* cleanup project def script and update refs in type check script

* rename browser_bazel config to avoid kebab-case

* remove execInProjects() helper

* list references for tsconfig.types.json for api-extractor workload

* disable composite features of tsconfig.types.json for api-extractor

* set declaration: true to avoid weird debug error

* fix jest tests

Co-authored-by: spalger <spalger@users.noreply.github.com>
2021-08-10 22:12:45 -07:00
Cauê Marcondes 6ed4b4f70c
[APM] Add new ftr_e2e to kibana CI and remove current e2e tests. (#107593) 2021-08-10 23:40:20 -04:00
Sandra G bfad9e354f
add manage rules link to alerts dropdown (#107950)
Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2021-08-10 21:03:14 -04:00
Quynh Nguyen 4df34e1188
[ML] Enable Index data visualizer document count chart to update time range query (#106438)
* Add brush listener

* Fix back button not working

* [ML] Remove api names in apidoc.json

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2021-08-10 20:33:55 -04:00
Frank Hassanabad 978c44e381
[Security Solutions][Detection Engine] Fixes "undefined" crash for author field by adding a migration for it (#107230)
## Summary

Fixes https://github.com/elastic/kibana/issues/106233

During an earlier upgrade/fix to our system to add defaults to our types, we overlooked the "author" field which wasn't part of the original rules. Users upgrading might get errors such as:

```
params invalid: Invalid value "undefined" supplied to "author"
```

This fixes that issue by adding a migration for the `author` field for `7.14.1`.

See https://github.com/elastic/kibana/issues/106233 for test instructions or manually remove your author field before upgrading your release and then upgrade and this should be fixed on upgrade.


### Checklist

- [x] [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-08-10 20:19:12 -04:00
Yuliia Naumenko 538a6d9288
[Actions UI] Fixed Jira Api token label. (#107776)
* [Actions UI] Fixed Jira Api token label.

* fixed tests

* fixed username

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2021-08-10 17:11:11 -07:00
Yuliia Naumenko e89d069f09
[Alerting UI] Fixed display permissions for edit/delete buttons when user has read only access. (#107996)
* [Alerting UI] Fixed display permissions for Edit/delete buttons when user has read only access

* fixed due to comments
2021-08-10 17:10:49 -07:00
Constance 40766dcc08
Do not render page header for loading domains (#108078) 2021-08-10 18:01:39 -04:00
Søren Louv-Jansen 1c9edebf99
[APM] Display throughput as tps (instead of tpm) when bucket size < 60 seconds (#107850)
Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2021-08-10 23:31:41 +02:00
Nicolas Chaulet 422f64c498
[Fleet] Fix all category count (#108089) 2021-08-10 17:09:08 -04:00
Michael Olorunnisola 2bf9ae8b29
[Security Solution][Bug] - Disable alert table RBAC until fields sorted (#108034)
Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2021-08-10 17:05:19 -04:00
Ryan Keairns ca2a591526
Add monaco default style options (#107930)
* Add monaco default style options

* Update snapshot

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2021-08-10 16:02:58 -05:00
ymao1 565e07104c
[Alerting UI] Not showing edit button in rule management UI if rule is not editable in UI (#107801)
* Should not show edit button on rule management page if rule not editable in stack

* Disabling edit button in collapsed actions

* Adding tests for collapsed item actions component

* Cleanup

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2021-08-10 16:18:10 -04:00
Sandra G baa903d539
move rules creation out of closing popover (#107957)
Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2021-08-10 16:12:53 -04:00
Dario Gieselaar b4a736c28f
[APM] Add telemetry to links into backend views (#107872) 2021-08-10 16:07:36 -04:00
Joe Portner c21272cc5b
Sharing saved objects developer guide (#107099) 2021-08-10 16:02:45 -04:00
Sandra G bc25c0fca9
[Stack Monitoring] Rename alerts to rules (#107654)
* rename constants and alert types to rules

* update test language

* update BaseRule properties to rule

* change rawAlert to sanitizedRule

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2021-08-10 16:02:14 -04:00
Nathan Reese f596f89eac
[Maps] filtered out docs with empty entity ids for tracks and top-hits layers (#107680)
* [Maps] filtered out docs with empty entity ids for tracks and top-hits layers

* eslint

* add type check for string fields

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2021-08-10 13:43:39 -06:00
Cauê Marcondes 97e345fa8d
[APM] Fixing service inventory responsive design (#107690)
* fixing service inventory responsive design

* truncate service name

* adding unit test

* addressing PR comments

* fixing test

* fixing merge problem

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2021-08-10 15:36:50 -04:00
Garrett Spong 541b19201a
[Security Solution][Detections] Updates MITRE Tactics, Techniques, and Subtechniques to v9.0 (#107708)
## Summary

Detection rules updated the MITRE ATT&CK mappings to v9.0 in https://github.com/elastic/detection-rules/pull/1401, so updating on the kibana side to ensure compatibility with latest ruleset. 

To update,  I modified 

4584a8b570/x-pack/plugins/security_solution/scripts/extract_tactics_techniques_mitre.js (L18-L19)
to point to the `ATT&CK-v9.0` tag:

```
https://raw.githubusercontent.com/mitre/cti/ATT&CK-v9.0/enterprise-attack/enterprise-attack.json
```

Then ran `yarn extract-mitre-attacks` from the root `security_solution` plugin directory.

### Checklist

Delete any items that are not applicable to this PR.

- [X] Any text added follows [EUI's writing guidelines](https://elastic.github.io/eui/#/guidelines/writing), uses sentence case text and includes [i18n support](https://github.com/elastic/kibana/blob/master/packages/kbn-i18n/README.md)
2021-08-10 13:12:07 -06:00
Marta Bondyra c5499c6592
[Lens] Redux selectors optimization (#107559) 2021-08-10 21:06:35 +02:00
Tre 6579c6cb2c
[Archive Migration] x-pack..discover/feature_controls/spaces (#107644) 2021-08-10 17:46:04 +01:00
Nathan Reese 37a97b435e
[file_upload] include caused_by field for import failures (#107907)
Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2021-08-10 09:53:50 -06:00
Dominique Clarke 1649661ffd
[Observability][Exploratory View] revert exploratory view multi-series (#107647)
Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2021-08-10 11:52:49 -04:00
Dmitry Tomashevich 328c36dedc
[Discover] Deangularize classic table (#104361)
* [Discover] move angular directives to react compoenents

* [Discover] add support of infiniteScroll

* [Discover] support paginated classic table

* [Discover] refactor docTable component, remove redundant angular code

* [Discover] remove redundant files

* [Discover] fix some functional tests and pgination

* [Discover] fix functionals

* [Discover] code refactoring, adding tests

* [Discover] update tests

* [Discover] fix embeddable view of doc table

* [Discover] update pagination view

* [Discover] remove unused translations

* [Discover] improve readability, fix pagination

* [Discover] adjust isFilterable check

* [Discover] improve doc viewer table row display

* [Discover] clean up implementation, fix functional test

* [Discover] fix skip button

* [Discover] update test snapshot

* [Discover] update test

* [Discover] simplify pagination, update layout in embeddable

* [Discover] fix functional, remove redundant i18n translations

* [Discover] return indexPatternField

* [Discover] add support of fixed footer for embeddable

* [Discover] move doc_table to apps/components folder, update test

* [Discover] fix imports

* [Discover] update imports, beautify code

* Update src/plugins/discover/public/application/apps/main/components/doc_table/doc_table_wrapper.tsx

Co-authored-by: Tim Roes <mail@timroes.de>

* [Discover] remove redundant styles

* [Discover] fix lining

* [Discover] fix discover grid embeddable

* [Discover] fix by comments

* [Discover] return extraWidth, describe the problem

* [Discover] fix unresolved conflicts

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
Co-authored-by: Tim Roes <mail@timroes.de>
2021-08-10 18:21:08 +03:00
David Roberts f479259a25
[ML] Adds a 30 day model prune window to non-rare Security jobs (#107752)
Adds the model_prune_window setting added in elastic/elasticsearch#75741
to all Security jobs that use functions that support model pruning.
This means that the models for split field values that are not seen for
30 days will be dropped. If those split field values are subsequently seen
again then new models will be created like for completely new entities.
The "rare" function does not support model pruning, so jobs that use
the "rare" function are not modified.
2021-08-10 16:04:57 +01:00
Patryk Kopyciński 9edcf9e71e
[Osquery] RBAC (#106669) 2021-08-10 16:36:27 +02:00
Nicolas Chaulet 5a92a7ef31
[Fleet] Support pipeline version for Fleet Final pipeline (#107892) 2021-08-10 10:35:59 -04:00
Paul Tavares 1c9b9e84a1
[Security Solution][Endpoint] Ensure fleet setup is done prior to attempting to install/upgrade the Endpoint package (#107929)
* Ensure install/upgrade of endpoint package first checks to see that fleet is setup
* Delete un-used `<Setup />` component
* Test cases for `useUpgradeSecurityPackages()` hook
2021-08-10 10:04:27 -04:00
Dario Gieselaar 7d6a2b520f
[APM] Default env for creating rule outside of APM app (#107942) 2021-08-10 15:40:36 +02:00
Angela Chuang fa47c33140
[Security Solution] Use alert status actions from timeline plugin (#107928)
* use alert status from balk actions

* remove unused comment

* fix types

* fix cypress test
2021-08-10 08:56:00 -04:00
Dominique Clarke ad0760d96e
[Elastic Agent] add heartbeat to monitoring datasets (#107989) 2021-08-10 08:45:10 -04:00
Marius Dragomir 2ddaddc2e9
[Sample Data] Add new Lens vis from eCommerce dashboard to the Vis Library (#107746)
* Add ecommerce dashboard lens vis to library

* layout and existing translations

* remove old replace from maps

* remove unused translation string

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2021-08-10 07:33:43 -04:00
Liza Katz 204efae5bf
[Data cleanup] unify serializable state (#107745)
* Use Serializable from package

* Rename to align with core

* fix

* more replacements

* docssss

* fix

* Move it to @kbn/utility-types and remove core export

* buildy build

* tests

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2021-08-10 13:03:48 +02:00
Pablo Machado eca7146a9f
[RAC] [Alerts] Add highlight to building block alerts (#107727)
* [rac] [Alerts] Add highlight to building block alerts

* Pull back 'additional filters' button to t-grid
2021-08-10 06:31:05 -04:00
Dario Gieselaar 78e2bd2788
[APM] Make rangeFrom/rangeTo required (#107717) 2021-08-10 05:56:15 -04:00
Marco Liberati 778a1160f5
[Lens][Accessibility] Take into account background color for non opaque colors (#107877)
* 🐛 Take into account also background color if opaque

*  Add tests for opaque colors
2021-08-10 10:48:03 +02:00
Yaroslav Kuznietsov e2d88b71b5
[Canvas] Arg form refactor. (#106551)
* Refactored `ArgForm`.

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2021-08-10 11:39:40 +03:00
Yaroslav Kuznietsov 54b4296243
[Canvas] Datacolumn refactor (#106268)
* Refactored Datacolumn.

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2021-08-10 11:38:55 +03:00
Esteban Beltran 04260d30a7
[Security Solution] Display a correct label for memory and behavior protections (#107724) 2021-08-10 09:54:08 +02:00
Alexey Antonov 6008b5ae55
[Lens] chore: remove dead code (#107882)
Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2021-08-10 10:19:40 +03:00
Mikhail Shustov 5480c4d0f4
[Execution context] Add nested context support (#107523)
* Add nested context support

* remove execution context service on the client side

ExecutionContextContaier is not compatible with SerializableState, so I had to fall back to passing context as POJO. With this change, using a service looks like overhead.

* update docs

* fix test

* address comments from Josh

* put export back

* update docs

* remove outdated export

* use input.title for unsaved vis

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2021-08-10 08:53:40 +02:00
Yaroslav Kuznietsov 7366df9454
[Canvas] ArgTemplateForm refactor. (#106637)
* Refactored `ArgTemplateForm`.

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2021-08-10 09:15:04 +03:00
Yaroslav Kuznietsov 6fafe87627
[Canvas] Number format argument refactor. (#106502)
* Refactored number format argument.


Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2021-08-10 09:09:36 +03:00
Yaroslav Kuznietsov 0ebe3657c1
[Canvas] Date format argument refactor. (#106496)
* Refactored date_format argument.

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2021-08-10 09:08:40 +03:00
Jason Rhodes 3d6aa9f44d
[Stack Monitoring] Adds optional debug logging for Stack Monitoring (#107711) 2021-08-10 00:09:26 -04:00
Davis Plumlee 6b29ca1ce8
[Security Solution][Detection Page] Status filter refactor (#107249) 2021-08-09 23:00:58 -04:00
Christiane (Tina) Heiligers 5d9b9a15d8
Adds team details to core/telemetry/localization-owned plugins (#107843)
Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2021-08-09 20:45:25 -04:00
Constance b4dfe9aeb1
Fix Kibana nav CSS overrides leaking into other plugins (#107973)
- Because we were previously not scoping our Kibana CSS overrides, loading the Enterprise Search plugin and then another plugin would cause that CSS to leak
2021-08-09 19:04:09 -04:00
Paul Tavares a3119a5541
[Security Solution][Roles] Add Read-Only Endpoint indexes to the (Detections) role creation scripts + FTR improvements (#107086)
* Add needed indexes to the role scripts
* Moved/renamed detection engine roles and user utility to `x-pack/test/common/security_solution`
* removed duplicate code in rule_registry and instead exported same methods from `common/services/security_solution`
* new endpoint FTR service that includes methods for loading and unloading data (uses existing data indexer methods)
* Transforms: Added additional methods to the FTR Test service
2021-08-09 16:24:58 -04:00