Commit graph

18312 commits

Author SHA1 Message Date
Walter Rafelsberger f1fbe8e06d
[ML] APM Latency Correlations: Code consolidation. (#110790)
Code deduplication:
- combine 3 existing client side hooks into useSearchStrategy
- combine server side multiple search strategy files into shared search_strategy_provider.ts
- Clarified naming (client/server params, strategy naming etc.), improved types.
- None of the actual deeper internal logic changed, larger chunks of code that show up as new lines is mostly just moved code + additional types (e.g. function overloads) to support the different search strategies with the same server side code and client side hook.
2021-09-08 09:47:07 +02:00
Justin Ibarra b8acf0fbab
[Detection Rules] Add 7.15 rules (#111464) 2021-09-08 00:11:18 -04:00
Candace Park a4828baf3d
[Security Solution][Endpoint][Host Isolation] Hide isolate host option in alert details rather than disabling (#111064) 2021-09-07 20:43:42 -04:00
Mat Schaffer 7fc4c2935d
React version of angular license view (#111317)
* React version of angular license view

* Fix time handling and linking to license upload

* Use getPageData pattern instead of useClusters

* Add note about locked time picker

* Add disable support to monitoring toolbar

* Disable toolbar on license page only

* Remove old todo

* Clean up render setup method ordering

* Fix CI checks

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2021-09-08 09:18:58 +09:00
Søren Louv-Jansen e79a23a122
[APM] Fix link in readme (#111362) 2021-09-07 18:42:35 -05:00
Joey F. Poon 14660994d2
[Security Solution] add agent field to generator (#111428) 2021-09-07 15:15:18 -05:00
Devon Thomson 70632e2a9e
[Dashboard] Retain Tags on Quicksave (#111015)
* fixed missing tags api when loading saved dashboard. Added tests
2021-09-07 14:20:15 -04:00
Orhan Toy aaf0870197
Reorder App Search ingestion methods (#111361) 2021-09-07 20:12:13 +02:00
Davis Plumlee 733b17f80c
[Security Solution][RAC] Fixes updatedAt loading bug (#111010) 2021-09-07 13:59:33 -04:00
Nathan Reese daf860c701
[sample data] update web log geo.src field to match country code of geo.coordinates (#110885)
* [sample data] update web log geo.src field to match country code of geo.coordinates

* fix functional tests

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2021-09-07 10:40:46 -06:00
David Sánchez 855a338b9f
[Security solution] [Endpoint] Fix bad artifact migration (#111294)
* Working test that validate migrated artifact has same properties as SO artifact
* Checks if artifact is compressed and uncompress it if necessary before creating the new one from fleet

Co-authored-by: Paul Tavares <paul.tavares@elastic.co>
Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2021-09-07 12:36:06 -04:00
Justin Kambic 973645f928
Fix copy typo. (#111203)
Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2021-09-07 12:22:32 -04:00
Nathan Reese b8faf091c9
[Maps] fix term join not updating when editing right field (#111030)
* [Maps] fix term join not updating when editing right field

* tslint

* clean up

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2021-09-07 10:18:22 -06:00
Nicolas Chaulet b5f8d2e998
[Fleet] Set default settings in component template instead of the index template (#111197) 2021-09-07 12:09:08 -04:00
Jean-Louis Leysens 4a8ad1c3c1
[Reporting] Removed any from public (#110993)
* removed anys and ran TS organize imports

* updated jest snapshots

* fix import paths for non-type imports

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2021-09-07 17:47:52 +02:00
Vadim Kibana 95b88cc2fe
add descriptions to plugin manifests (#111306) 2021-09-07 17:24:02 +02:00
Vadim Kibana 5e5dd07470
remove anys in drilldowns plugin (#111305) 2021-09-07 17:23:47 +02:00
Vadim Kibana 05d9bc53fb
Remove any in ui_actions_enhanced (#110018) 2021-09-07 17:23:30 +02:00
Angela Chuang 1adeb7290c
[Security Solution] styling for reason popover (#111338)
* add panelClassName

* remove unused data-test-subj
2021-09-07 10:25:51 -04:00
Kevin Qualters 3a354b5790
Add a loading spinner to alerts page (#111310) 2021-09-07 10:16:21 -04:00
Christiane (Tina) Heiligers b1a81bb5e0
Remove unused legacy import code (#111071)
Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2021-09-07 07:01:35 -07:00
Josh Dover 285d232601
Add dev_docs for Fleet data model (#109476) 2021-09-07 15:45:31 +02:00
Ester Martí Vilaseca d7b9389d67
[Stack Monitoring] Update overview page data on refresh interval (#111354)
* Add onRefresh callback to update page data

* Sync url params with datepicker and global state
2021-09-07 15:35:06 +02:00
Josh Dover 099a63ea2a
[Fleet] Add icons to Integrations global search results (#111131) 2021-09-07 08:27:10 -04:00
Milton Hultgren 51fd4abe20
[Logs UI] Improve log threshold rule field selection (#111135)
* [Logs UI] Use ComboBox for criterion field selection (#110996 
* [Logs UI] Make log threshold criterion field clearable
2021-09-07 14:21:18 +02:00
Søren Louv-Jansen 2cda9a9302
[APM] Deprecate apm_oss.indexPattern config option (#111133)
Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2021-09-07 13:26:52 +02:00
Felix Stürmer 744a424ca2
[RAC] Remove delete phase from default RAC ILM policy (#111139)
Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2021-09-07 13:11:02 +02:00
Felix Stürmer 2e31899bde
[RAC] [Observability] Disable RAC feature flags for now (#111296) 2021-09-07 13:07:16 +02:00
Patryk Kopyciński f18bc68d70
[RAC] Fix missing case title and tags after adding visualization (#111236)
Co-authored-by: Patryk Kopyciński <patryk.kopycinski@elastic.co>
Co-authored-by: Christos Nasikas <christos.nasikas@elastic.co>
2021-09-07 13:35:47 +03:00
Josh Dover 7b97b5c443
[Fleet] Stop loading js-yaml in main plugin bundle (#111169) 2021-09-07 10:40:14 +01:00
Pablo Machado 3f015e110b
Fix inconsistent total count on TopN events panel (#111256)
We can't display `response.totalCount` because it is the total number of
events the query returns. It doesn't take into account the aggregation.
It does include events with missing `stackedByField` and events that are
not included in the 10 top.

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2021-09-07 11:03:11 +02:00
Miriam 9b41b3feae
[APM] Fix loading message missing or inconsistent in various list views (#110772)
* [APM] Fix loading message missing or inconsistent in various list views

* fix types and i18n

* fix comment

* PR review comments

* fix JVM loading message
2021-09-07 08:35:21 +01:00
Dmitry Tomashevich 9f950781a8
[Graph] clear legacy docs (#111083)
Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2021-09-07 10:34:19 +03:00
Alexey Antonov e2c6a039f6
lens should register expression functions in setup contract (#110639)
* lens should register expression functions in setup contract

Closes: #106510

* fix CI

* build optimization

* build optimizations - step 3

* fix CI

* try to optimize bundle

* Update x-pack/plugins/lens/common/expressions/time_scale/types.ts

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

* Update types.ts

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
Co-authored-by: Marta Bondyra <marta.bondyra@gmail.com>
2021-09-07 10:32:30 +03:00
István Zoltán Szabó 07f49853cd
[APM] Uses doc link service instead of ElasticDocsLink for linking custom links (#111149) 2021-09-07 08:33:42 +02:00
Michael Olorunnisola 5bc6239630
[Security Solution] Timeline uses existing filter manager (#111143)
Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2021-09-06 22:53:58 -04:00
Søren Louv-Jansen c7394591cc
[APM] Mark old api test client as legacy (#110974)
Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2021-09-07 00:39:45 +02:00
Pete Harverson 1fb09c7d48
[ML] Fixes REST API docs for results service routes (#111298)
* [ML] Fixes REST API docs for results service routes

* [ML] Edits following review

* [ML] Fixed error in modules REST API doc route
2021-09-06 20:31:33 +01:00
István Zoltán Szabó 705fe22088
[APM] Uses doc link service instead of ElasticDocsLink for linking dropped transaction spans (#110964) 2021-09-06 17:15:00 +02:00
Cauê Marcondes b97afb2c72
[APM] Missing transaction type error when creating Latency threshold Alert (#110336)
* redirect to page adding transaction type

* skipping transaction type

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2021-09-06 11:09:38 -04:00
Kevin Logan d9c5fa25cc
[Security Solution] Add Windows kernel advanced policy options for 7.15 (#111182) 2021-09-06 10:37:44 -04:00
Kevin Logan d7e14ff72c
[Security Solution] Update protection names in Policy config (#111202) 2021-09-06 10:37:19 -04:00
Felix Stürmer e145ccdb87
Add test service to manage observability test users (#110849)
Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2021-09-06 16:18:09 +02:00
István Zoltán Szabó 4eefa8531c
[APM] Uses doc link service instead of ElasticDocsLink for linking upgrading info (#111155) 2021-09-06 14:52:46 +02:00
Marco Liberati 1a88d34ea2
[Lens] Reverse colors should not reverse palette picker previews (#110455)
Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2021-09-06 14:27:53 +02:00
Ashokaditya 2e2b451162
[Security Solution][Endpoint] Trim Activity Log comments (#111163)
* trim comments so empty comments do not show up

fixes elastic/kibana/issues/111106

* not exclusive test

* update test to be more specific

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2021-09-06 14:15:53 +02:00
Jean-Louis Leysens 02a6eeb69f
[Canvas/Reporting] Migrate Canvas to V2 reporting (#109860)
* first iteration of canvas reporting using v2 PDF generator

* updated jest test

* made v2 report URLs compatible with spaces and simplified some code

* remove non-existent import

* updated import of lib

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2021-09-06 13:44:47 +02:00
István Zoltán Szabó 00fac96d37
[APM] Uses doc link service instead of ElasticDocsLink for linking metadata (#110992) 2021-09-06 12:20:35 +02:00
Gloria Hornero 6f31422d9f
adds missing field when creating the email connector (#111251) 2021-09-06 11:38:53 +02:00
Yaroslav Kuznietsov eef094bafb
[Canvas] TagCloud (#106858)
* Added `tagCloud` to canvas.

* Added `icon` to the `tagCloud` element.

* Added column name support at `tag_cloud`.

* Added condition to `vis_dimension` not to pass invalid index.

Added check of accessor index, if such column exists at vis_dimension.
Removed checks of column existance from TagCloudChart.
Added test for accessing data by column name in addition to a column number.
Updated tag_cloud element in Canvas.
Fixed types. Removed almost all `any` and `as` types.

* Added test suites for `vis_dimension` function.

* Added tests for DatatableColumn accessors at tag_cloud_fn and to_ast.

* Refactored metrics, tagcloud and tests.

Added valid functional tests to metrics and tag_cloud.
Fixed types of metrics_vis.
Added handling of empty data at tag_cloud renderer.

* Added storybook ( still doesn't work ).

* Fixed some mistakes.

* Added working storybook with mocks.

* Added clear storybook for tag_cloud_vis_renderer.

* Updated the location of vis_dimension test after movement of the function.

* Fixed unused type.

* Fixed tests and added handling of the column name at `visualizations/**/*/prepare_log_table.ts`

* Reduced the complexity of checking the accessor at `tag_cloud_chart.tsx`

* Added comments at unclear places of code.

* Added the logic for disabling elements for renderers from disabled plugins.

* removed garbage from `kibana.yml`.

* Fixed element_strings.test error.

* Made changes, based on nits.

* Fixed mistake.

* Removed `disabled` flag for `expression_*` plugins.

* recovered lost comments at the unclear places.

* removed dead code.

* fixed test errors.

* Fixed test error, I hope.

* fixed more tests.

* fixed code, based on nits.

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2021-09-06 04:13:38 -04:00
Patryk Kopyciński 4416a31aa7
[Osquery] Fix support for disabled security (#110547) 2021-09-06 10:10:04 +03:00
Tiago Costa 907a34076f
skip failing es promotion suites (#111240) 2021-09-06 01:17:07 +01:00
Søren Louv-Jansen 61e533f253
[APM] Clean up readme (#110973)
* [APM] Clean up readme

* Update linting.md

* Update testing.md

* Update testing.md

* Update testing.md

* Update plugin-list.asciidoc

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2021-09-05 07:14:06 +02:00
Dmitry Shevchenko c6aa4f625c
Fix exceptions page table pagination (#111000) 2021-09-03 21:38:45 +02:00
Justin Kambic 9b20c80867
Fix ML alert not allowed in Uptime app. (#111180) 2021-09-03 15:17:06 -04:00
Quynh Nguyen 167b876a8a
[ML] Fix issue with AD data points not showing up because missing indices (#110899)
Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2021-09-03 13:12:48 -04:00
Tim Roes df22a8e197
Change Graph ownership (#111157) 2021-09-03 19:12:42 +02:00
Michael Dokolin df43d253c8
[Expressions] Align renderMode with the embeddable viewMode (#110199)
* Add preview view mode to the embeddable
* Rename display render mode to view
* Extract no interactivity render mode to a separate flag
2021-09-03 19:10:29 +02:00
Jonathan Buttner a2c848e1d2
[Cases] Fix connector information disappearing (#110914)
* Move intialization to use effect

* Fixing fields can't get test working

* Fix tests

Co-authored-by: Christos Nasikas <christos.nasikas@elastic.co>
2021-09-03 12:00:51 -04:00
Nick Partridge 634ce7f83b
[ML] fix heatmap label colors (#110515) (#111140) 2021-09-03 11:57:36 -04:00
Pete Harverson 7f6c6e44ea
[ML] Add API integration tests for start and stop datafeeds (#110961)
* [ML] Add API integration tests for start and stop datafeeds

* [ML] Edits to setup and clean-up steps following review
2021-09-03 16:32:10 +01:00
Jean-Louis Leysens 1f06cafa19
[Reporting/Visualization] Migrate Visualize to V2 reporting (#110206)
* added initial version of locator

* removed unused params and added jest test

* updated functional test to expect PDF reports to be available when vis is new

* fix TS: remove unkown field

* added some docs and removed unused code

* AggsConfigOption -> AggsConfigSerialized

* moved locator to common

* fixed building of "create" path and updated test snapshots

* updated import

* update encoding behaviour

* added time range from timefilter to locator params request

* add index pattern and search id to URL params

* reading index pattern from search source if it is there for the locator

* remove "type" from locator params, update comments and test

* removed duplicate identifier

* remove unused type

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2021-09-03 17:08:56 +02:00
Marta Bondyra d4c03eb9b4
[Lens] Switch to SavedObjectClient.resolve (#110059)
* Step 2: Update client code to use resolve() method instead of get()

Following sharing Saved Objects developer guide: Step 2
This step demonstrates the changes to update client code to use the new
SavedObjectsClient `resolve()` method instead of `get()`.

* Step 3 Lens
2021-09-03 16:44:12 +02:00
Frank Hassanabad 9a459806ad
[Security Solutions][Detection Engine] Adds ability to ignore fields during alert indexing and a workaround for an EQL bug (#110927)
## Summary

Adds a workaround for EQL bug: https://github.com/elastic/elasticsearch/issues/77152
Adds the safety feature mentioned here: https://github.com/elastic/kibana/issues/110802

Adds the ability to ignore particular [fields](https://www.elastic.co/guide/en/elasticsearch/reference/current/search-fields.html#search-fields-param) when the field is merged with [_source](https://www.elastic.co/guide/en/elasticsearch/reference/current/search-fields.html#source-filtering). Also fixes an EQL bug where EQL is introducing the meta field of `_ignored` within the fields and causing documents to not be indexable when we merge with the fields from EQL. 

Alerting document creation uses the fields API to get [runtime field](https://www.elastic.co/guide/en/elasticsearch/reference/current/runtime.html),  [constant keyword](https://www.elastic.co/guide/en/elasticsearch/reference/master/keyword.html#constant-keyword-field-type), etc... that are only available within the [fields API](https://www.elastic.co/guide/en/elasticsearch/reference/current/search-fields.html#search-fields-param) and then merges the field values not found within the `_source` document with the `_source` document and then finally indexes this merged document as an alert document.

This fix/ability is a "safety feature" in that if a problematic [runtime field](https://www.elastic.co/guide/en/elasticsearch/reference/current/runtime.html), [constant keyword](https://www.elastic.co/guide/en/elasticsearch/reference/master/keyword.html#constant-keyword-field-type) is discovered or another bug along the stack we can set a `kibana.yml` key/value pair to ignore the problematic field.

This _WILL NOT_ remove problematic fields from the `_source` document. This will only ignore problematic constant keyword, runtime fields, aliases, or anything else found in the fields API that is causing merge issues.

This PR:
  * Adds a `alertIgnoreFields` `kibana.yml` array key with a default of an empty array if not specified. 
  * Plumbs the `alertIgnoreFields` through the stack and into the fields/_source merge strategies of `missingFields` and `allFields`
  * Adds a temporary `isEqlBug77152` where it hard codes an ignore of `_ignored` until the EQL problem is fixed and then we will remove the workaround
  * Adds unit tests
  * Adds e2e tests which covers the described use cases above.

The `alertIgnoreFields` key/value within `kibana.yml` if set should be an array of strings of each field you want to ignore. This can also contain regular expressions as long as they are of the form, `"/regex/"` in the array.

Example if you want to ignore fields that are problematic called "host.name" and then one in which you want to ignore all fields that start with "user." using a regular expression:

```yml
xpack.securitySolution.alertIgnoreFields: ['host.name', '/user\..*/']
``` 

Although there are e2e tests which exercise the use cases...

If you want to manual test the EQL bug fix you would add these documents in dev tools:

```json
# Delete and add a mapping with a small ignore_above.
DELETE eql-issue-ignore-fields-delme
PUT eql-issue-ignore-fields-delme
{
  "mappings" : {
    "dynamic": "strict",
    "properties" : {
      "@timestamp": {
        "type": "date"
      },
      "some_keyword" : {
        "ignore_above": 5, 
        "type" : "keyword"
      },
      "other_keyword" : {
        "ignore_above": 10, 
        "type" : "keyword"
      }
    }
  }
}

# Add a single document with one field that will be truncated and a second that will not.
PUT eql-issue-ignore-fields-delme/_doc/1
{
  "@timestamp": "2021-09-02T04:13:05.626Z",
  "some_keyword": "longer than normal",
  "other_keyword": "normal"
}
```

Then create an alert which queries everything from it:
<img width="1155" alt="Screen Shot 2021-09-01 at 10 15 06 PM" src="https://user-images.githubusercontent.com/1151048/131781042-faa424cf-65a5-4ebb-b801-3f188940c81d.png">

and ensure signals are created:
<img width="2214" alt="Screen Shot 2021-09-01 at 10 30 18 PM" src="https://user-images.githubusercontent.com/1151048/131782069-b9ab959c-f22d-44d5-baf0-561fe349c037.png">

To test the manual exclusions of any other problematic fields, create any index which has runtime fields or `constant keywords` but does not have anything within the `_source` document using dev tools. For example you can use `constant keyword` like so

```json
PUT constant-keywords-deleme
{
  "mappings": {
    "dynamic": "strict",
    "properties": {
      "@timestamp": {
        "type": "date"
      },
      "testing_ignored": {
        "properties": {
          "constant": {
            "type": "constant_keyword",
            "value": "constant_value"
          }
        }
      },
      "testing_regex": {
        "type": "constant_keyword",
        "value": "constant_value"
      },
      "normal_constant": {
        "type": "constant_keyword",
        "value": "constant_value"
      },
      "small_field": {
        "type": "keyword",
        "ignore_above": 10
      }
    }
  }
}

PUT constant-keywords-deleme/_doc/1
{
  "@timestamp": "2021-09-02T04:20:01.760Z"
}
```

Set in your `kibana.yml` the key/value of:

```yml
xpack.securitySolution.alertIgnoreFields: ['testing_ignored.constant', '/.*_regex/']
```

Setup a rule to run:
<img width="1083" alt="Screen Shot 2021-09-01 at 10 23 23 PM" src="https://user-images.githubusercontent.com/1151048/131781696-fea0d421-836f-465c-9be6-5289fbb622a4.png">

Once it runs you should notice that the constant values for testing are not on the signals table since it only typically exists in the fields API:
<img width="1166" alt="Screen Shot 2021-09-01 at 10 26 16 PM" src="https://user-images.githubusercontent.com/1151048/131781782-1684fb1d-bed9-4cf0-be9a-0abe1f0f34d1.png">

But the normal one still exists:
<img width="1136" alt="Screen Shot 2021-09-01 at 10 26 31 PM" src="https://user-images.githubusercontent.com/1151048/131781827-5450c693-de9e-4285-b082-9f7a2cbd5d07.png">

If you change the `xpack.securitySolution.alertIgnoreFields` by removing it and re-generate the signals you will see these values added back.

### Checklist

Delete any items that are not applicable to this PR.

- [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
- [x] If a plugin configuration key changed, check if it needs to be allowlisted in the cloud and added to the [docker list](https://github.com/elastic/kibana/blob/master/src/dev/build/tasks/os_packages/docker_generator/resources/base/bin/kibana-docker)
2021-09-03 08:41:28 -06:00
Dmitry Shevchenko 19260d5f02
Fix "Expression produces a union type that is too complex to represent" TS error (#111111) 2021-09-03 10:38:58 -04:00
James Gowdy a18cc31924
[ML] Datafeed preview based job validation check (#109080)
* [ML] Datafeed preview based job validation check

* updating warning text

* fix tests

* adding jest test

* updating tests

* fixing translation ids

* fixing more tests

* changes based on review

* disabled validation step next button when validation fails

* disabling nano job test

* adding test skip comment

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2021-09-03 15:36:03 +01:00
Christiane (Tina) Heiligers 66cb058fa7
Removes support for legacy exports (#110738)
Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2021-09-03 07:22:14 -07:00
Josh Dover ed18699e38
Handle bulkGet errors on package retrieval from ES storage (#111114) 2021-09-03 16:01:28 +02:00
Marco Liberati 21b4752dba
[Lens] Fix transition to custom palette inconsistency when in number mode (#110852)
Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2021-09-03 15:57:57 +02:00
ymao1 9ba00ee594
[Actions] Allowing service specification in email connector config (#110458)
* Initial commit of serverType in email connector config

* Fleshing in route to get well known email service configs from nodemailer

* Adding elastic cloud to well known server type

* Cleaning up email constants and allowing for empty selection

* Showing error if user doesn't select server type

* Adding hook for setting email config based on server type

* Adding tests and making sure settings are not overwritten on edit

* Fixing functional test

* Adding migration

* Adding functional test for migration

* Repurposing service instead of adding serverType

* Cleanup

* Disabling host/port/secure form fields when settings retrieved from API

* Updating docs for service

* Filtering options based on whether cloud is enabled

* Initialize as disabled

* Fixing types

* Update docs/management/connectors/action-types/email.asciidoc

Co-authored-by: David Kilfoyle <41695641+kilfoyle@users.noreply.github.com>

Co-authored-by: David Kilfoyle <41695641+kilfoyle@users.noreply.github.com>
2021-09-03 09:49:00 -04:00
Ester Martí Vilaseca 75486ecd12
[Stack Monitoring] Add setup mode to react app (#110670)
* Show setup mode button and setup bottom bar

* Adapt setup mode in react components to work without angular

* Add setup mode data update to react app

* Add missing functions from setup mode

* Revert setup mode changes from react components

* remove some empty lines

* Add setup button to  monitoring toolbar

* Fix types

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2021-09-03 15:15:53 +02:00
Christos Nasikas 6f357e0433
[Cases] Do not show status dropdown on modal cases selector (#111101) 2021-09-03 16:10:29 +03:00
James Gowdy 71571c5b60
[ML] Job import and export functional tests (#110578)
* [ML] Job import export functional tests

* adding title check

* adding dfa tests

* removing export file

* adds bad data test

* commented code

* adding export job tests

* adds version to file names

* improving tests

* removing comment

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2021-09-03 14:05:53 +01:00
Dominique Clarke d83c8244a2
[Uptime] [Synthetics Integration] fix content typo (#110088)
Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2021-09-03 08:47:26 -04:00
mgiota e2ee2637e2
Update alert documents when the write index changes (#110788)
* first draft(work in progress)

* add back missing await

* disable require_alias flag only when we update

* cleanup
2021-09-03 13:39:52 +01:00
Pierre Gayvallet b4f5877ff8
catch errors from providers (#111093) 2021-09-03 14:38:19 +02:00
Ashokaditya 5b4d265571
[Security Solution][Endpoint] Use super date picker instead of date range picker (#108722)
* Use super date picker instead of date range picker

fixes elastic/security-team/issues/1571

* fix test target

Super date picker's `data-test-subj` prop gets garbled and doesn't show up in rendered DOM. In other words, the component is entirely void of a data-test-subj attribute.

* make auto refresh work!!

fixes https://github.com/elastic/security-team/issues/1571

* set max width as per mock

fixes elastic/security-team/issues/1571

* show a callout to inform users to select different date ranges

fixes elastic/security-team/issues/1571

* persist recently used date ranges on the component only

fixes elastic/security-team/issues/1571

* use commonly used ranges from default common security solution ranges

fixes elastic/security-team/issues/1571

* Better align date picker

* full width panel for date picker so content flows below it

review comments

* mock time picker settings for tests

* use eui token for bg color

review comment

* persist recently used dates

fixes elastic/security-team/issues/1571

* persist date range selection over new endpoint selection

review comments

* remove obsolete local state since update button is not visible.

review comments

* fix bg color for dark mode and relative path

* update relative path

review comments

* cleanup - the action doesn't allow for undefined start and end dates anyway

refs 28a859ab3a

* fix types after sync

* update test title

* add a test for callout when empty data

* fix lint

* show update button when dates are changed

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2021-09-03 13:47:36 +02:00
Alejandro Fernández Gómez 4e9e7a8671
[RAC] Add loading and empty states to the alerts table - Take II (#110504)
Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2021-09-03 06:59:56 -04:00
Aleh Zasypkin c42391ed3a
Resurrect deprecated and removed authentication settings. (#110835) 2021-09-03 11:42:12 +02:00
Jean-Louis Leysens 23fa1b4c07
[Reporting] Updated telemetry types for V2 export types (#110622)
* updated telemetry types

* update tests

* telemtery JSON file

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2021-09-03 11:30:51 +02:00
Jean-Louis Leysens 0b5f1c0d9c
[Reporting] Unskip ILM migration tests (#110813)
* added allow restricted indices to privileges check

* updated comment -> TODO

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2021-09-03 11:22:26 +02:00
Matthias Wilhelm 8f728977f2
[Discover] Remove export* syntax (#110934) 2021-09-03 07:48:32 +02:00
Yuliia Naumenko d421c4dda7
[Event log][7.x] Updated event log client to search across legacy IDs (#109365)
* [Event log][7.x] Updated event log client to search across legacy IDs

* fixed tests

* extended kibana null version check

* added logic to alerting plugin

* fixed typechecks

* fixed typechecks

* Revert "fixed typechecks"

This reverts commit 6f6770fa4b.

* removed legacyId for routes

* fixed typechecks

* fixed position

* fixed query

* fixed query

* fixed tests

* fixed types place

* fixed due to comments

* fixed due to comments

* fixed eslint

* fixed due to comments

* splitted test data

* fixed test data

* increased the delay time to await the search

* removed version for 7.9 docs

* Update x-pack/plugins/event_log/server/es/cluster_client_adapter.ts

Co-authored-by: Mike Côté <mikecote@users.noreply.github.com>

* fixed unit test

* fixed test data

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
Co-authored-by: Mike Côté <mikecote@users.noreply.github.com>
2021-09-03 01:18:48 -04:00
Davis Plumlee 9c165a1bc4
[Security Solution][Detection Rules] Changes 'activated' text on rule details page (#111044) 2021-09-02 23:45:15 -04:00
Zacqary Adam Xeper a99360fa32
[Metrics UI] Filter out APM nodes from the inventory view (#110300)
* [Metrics UI] Filter out APM nodes from the inventory view

* Update jest snapshots

* Add tests for fs for filtering out APM nodes
2021-09-03 09:28:11 +09:00
Tim Sullivan e6faa58873
[Reporting] Clean up any usage, reorganize server route files (#110740)
* refactor/reflatten server routes

* fix import

* fix any usage in server/lib

* clean up unused parameter

* remove any in server/browsers

* refactor handle request function into a class

* more cleanup
2021-09-02 11:35:39 -07:00
Khristinin Nikita b0a0dc224b
[Security Solution] [CTI] Fixes bug that caused Threshold and Indicator Match rules to ignore custom rule filters if a saved query was used in the rule definition. (#109253)
* Ignore saved_id for Threat match and threshold rules

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2021-09-02 20:26:34 +02:00
Jonathan Budzenski e8191eda7d skip flaky suites: #111001, #111022 2021-09-02 13:24:48 -05:00
Michael Olorunnisola 3dda4dafa0
[Security Solution][RAC] - Update reason field text (#110308) 2021-09-02 13:52:10 -04:00
Kevin Qualters f8e86f5e02
[RAC][Security Solution] Make analyzer work with EuiDataGrid full screen (#110913)
* Make analyzer work with EuiDataGrid full screen

* Don't ever restrict the width, remove console.log

* Remove isEventViewer prop no longer used

* Make global filters appear below data grid
2021-09-02 13:21:44 -04:00
Chris Cowan 0452483e7d
[Metrics UI] Add integration tests for Metric Threshold Rule and refactor to fire correctly (#109971)
* [Metrics UI] Add integration tests for Metric Threshold and refactor to fire correctly

* Removing unused variables

* Fixing tests for metric_threshold_executor

* Fixing test for metric_query

* fixing test

* Changing type guard
2021-09-02 10:38:45 -06:00
Sergi Massaneda 56669c034c
[RAC] Persistent timeline fields fix (#110685)
* fix stringify circular ref crash and default columns on createTimeline

* rollback reset buton fix to split PR

* adding fields to the storage cleaning

* tests fixed

* test fix
2021-09-02 16:33:07 +02:00
Byron Hulcher f21731fb3a
Support the warning state for crawler validation steps (#110864) 2021-09-02 10:00:29 -04:00
Jonathan Buttner d2fffdcca1
[Cases] Cleaning up migration and re-hiding comments saved object (#109344)
* Cleaning up migration and so

* Refactoring filter to be check in reduce
2021-09-02 09:24:37 -04:00
Byron Hulcher c7ee7d7898
Split CrawlerLogic from CrawlerOverviewLogic (#110850) 2021-09-02 14:56:20 +02:00
Dima Arnautov 0ae7455377
[ML] Add job audit messages API integration tests (#110793) 2021-09-02 14:43:14 +02:00
Mikhail Shustov 1205ba4ce0
do not export all the types from licensing plugin (#110942)
* do not export all the types from licensing plugin

* another export issue
2021-09-02 07:08:02 -04:00
Byron Hulcher f3bb942845
Remove beta tag from Crawler document ingestion card (#110922) 2021-09-02 11:12:07 +02:00
Angela Chuang fb77be26ea
update topN panel width (#110803)
Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2021-09-02 09:04:31 +01:00
Spencer fecdba7eba
[eslint] add rule to prevent export* in plugin index files (#109357)
* [eslint] add rule to prevent export* in plugin index files

* deduplicate export names for types/instances with the same name

* attempt to auto-fix duplicate exports too

* capture exported enums too

* enforce no_export_all for core too

* disable rule by default, allow opting-in for help fixing

* update tests

* reduce yarn.lock duplication

* add rule but no fixes

* disable all existing violations

* update api docs with new line numbers

* revert unnecessary changes to yarn.lock which only had drawbacks

* remove unnecessary eslint-disable

* rework codegen to split type exports and use babel to generate valid code

* check for "export types" deeply

* improve test by using fixtures

* add comments to some helper functions

* disable fix for namespace exports including types

* label all eslint-disable comments with related team-specific issue

* ensure that child exports of `export type` are always tracked as types

Co-authored-by: spalger <spalger@users.noreply.github.com>
Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2021-09-01 18:05:45 -07:00
Pete Hampton 4f0a63f575
Security Telemetry Refactor (#109875)
* [@pjhampton/@donaherc] Move sec telem tasks into own package.

* Split filter out into its own module, started abstracting ES interaction into a queries module

* Implemented querier and fixed some types

* Updated tests, moved receiver to plugin from sender to decouple them.

* fixed integration in detection engine, misc fixes

* [@pjhampton] Fix type ref problems. Update test defs.

* Make url transformer a member func of the sender class.

* [@pjhampton] clean up receiver commentary.

* [@pjhampton] add null check consistency.

* Fix bad formatting.

Co-authored-by: cdonaher <cdonaher@endgame.com>
Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2021-09-01 17:37:01 -06:00
spalger 356954061a add issue link to skipped suite (#110920) 2021-09-01 16:29:58 -07:00
spalger b127b57630 skip failing suite (no issue yet) 2021-09-01 15:40:54 -07:00
spalger 38d08c4008 skip flaky suite (#110801) 2021-09-01 15:31:49 -07:00
CJ Cenizal cf8ab3bb11
Add snapshotsUrl to Cloud plugin public interface. (#110328)
* Add unit tests for Cloud plugin setup interface.
2021-09-01 14:42:01 -07:00
Marshall Main f58865c1f5
[Rule Registry][RAC] Rename kibana.alert.id to kibana.alert.instance.id (#110528)
* Rename kibana.alert.id to kibana.alert.instance.id

* Update test snapshot

* Fix test

* One more fix
2021-09-01 16:56:49 -04:00
Cauê Marcondes 2fe56f9793
[APM] tests restructure (#110703)
* refactoring test

* improving test structure

* improvements

* improving readmes

* readme

* test

* fixing ts issue

* addressing pr comments

* fixing readme files

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2021-09-01 16:42:33 -04:00
Lisa Cawley a82f6ca20e
[DOCS] Latency correlations (#110557) 2021-09-01 12:34:48 -07:00
Patrick Mueller dfa6924bee
[task manager] provide better diagnostics when task manager performance is degraded (#109741)
resolves #109095
resolves #106854

Changes the way task manager and alerting perform their health / status
checks:

- no longer sets an `unavailable` status; now uses `degraded` instead
- change task manager "hot stats freshness" calculation to allow for
  staler data before signalling a problem
- Changed the "Detected potential performance issue" message to sound
  less scary, include a doc link to task manager health monitoring, and
  log a debug instead of warning level
- add additional debug logging when task manager sets a status that's
  not `available`, indicating why it's setting that status (in the code,
  it's when task manager uses HealthStatus.Warning or Error)
2021-09-01 15:12:46 -04:00
Lisa Cawley 714735db21
[APM] Use doc link service instead of ElasticDocsLink (#109027) 2021-09-01 12:08:38 -07:00
Dominique Clarke e25c9dfece
[Uptime] [Synthetics Integration] browser functional tests (#110648)
* uptime - synthetics integration - add browser functional tests

* focus tests

* unfocus test

* Uptime - Synthetics Integration - adds stringToJsonFormatter
2021-09-01 14:54:00 -04:00
Angela Chuang 9dec97b5f4
[Security Solution] Enable repositionOnScroll for overflow popovers (#110584)
* enable repositionOnScroll

* unit test

* update test case

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2021-09-01 14:50:33 -04:00
Mark Hopkin 508d045f90
fix: do not show upgrade button on latest version of package (#110764) 2021-09-01 11:25:41 -07:00
Christos Nasikas 1f90712c47
[Timeline] Show cases create flyout with timeline open (#110811) 2021-09-01 20:06:55 +03:00
Kyle Pollich 3662a39b8e
[Fleet] Add Fleet diagrams to dev_docs (#110794)
* Add initial fleet dev diagrams to dev_docs

* Move Fleet Server arrow to ES instead of Kibana
2021-09-01 12:12:51 -04:00
Patryk Kopyciński 34aef088ad
[RAC] Add embeddable to o11y optionalPlugins (#110713) 2021-09-01 18:05:22 +02:00
Constance 47b86e1bf7
Upgrade EUI to v37.3.1 (#109926)
* Upgrade EUI to v37.3.1

* Update i18n token mappings

* Skip i18n_eui_mapping defString checks for functions

* Update snapshots

* Update failing Security tests with extra nodes

* Remove hook cleanup now that elastic/eui#5068 is merged

* [i18n PR feedback] Prefer specific token skipping over all functions skipping

* Revert "Remove hook cleanup now that elastic/eui#5068 is merged"

This reverts commit e40ebfa929.

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2021-09-01 08:39:20 -07:00
Aaron Caldwell 19b23ef477
[Maps] Add new index handling for users missing privs for index creation (#109754)
Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2021-09-01 11:29:47 -04:00
Angela Chuang 69568ebb17
[Security Solution] Endpoint Exception status in flayout is not aligned with alerts context menu (#110203)
* unit test

* add isAlertFromEndpointAlert check

* update isAlertFromEndpointAlert

* unit test

* fix unit test
2021-09-01 16:25:53 +01:00
Robert Oskamp a961158cbe
[ML] Functional tests - stability fixes (#110785)
This PR stabilizes some functional tests by adding retries to service methods and by increasing timeouts on some existing retries.
2021-09-01 17:11:15 +02:00
Brian Seeders 7c2276bd5a
Improve color picker handling in SavedObjects tagging test (#110702) 2021-09-01 16:53:09 +02:00
Sergi Massaneda e9c20f9802
[RAC] Expand cell footer button changes to prevent overflow (#110506)
* fix hover actions tooltip footer buttons overflow

* reorder actions

* override eui styles to match popover actions design
2021-09-01 16:47:43 +02:00
Kerry Gallagher b74345cbb7
[Observability] [RAC] Add basic functional tests for observability alerts (#109876)
* Add basic functional tests for observability alerts
2021-09-01 15:43:20 +01:00
Joe Portner b17d87e508
Security usage data (#110548) 2021-09-01 10:35:36 -04:00
Oliver Gupte 77890b1ccf
[APM] Adds missing transaction events fallback badge to transaction details (#109846) (#110753) 2021-09-01 09:51:15 -04:00
Jonathan Buttner 31d335868e
Disable sync toggle in flyout (#110714) 2021-09-01 09:06:29 -04:00
Phillip Burch a386dfe994
[Montiroing] Add monitoring toolbar with date picker (#110612) 2021-09-01 05:35:53 -05:00
Ahmad Bamieh 249c5fbf9a
[Core deprecations] Add title field to deprecation info (#109840) 2021-09-01 13:10:25 +03:00
Sergi Massaneda d34ef7ba9f
reset fields fix (#110710) 2021-09-01 11:25:11 +02:00
Xavier Mouligneau 16af3e95cb
[RAC] Remove rbac on security solution side (#110472)
* wip to remove rbac

* Revert "[Cases] Include rule registry client for updating alert statuses (#108588)"

This reverts commit 1fd7038b34.

This leaves the rule registry mock changes

* remove rbac on Trend/Count alert

* update detection api for status

* remove @kbn-alerts packages

* fix leftover

* Switching cases to leverage update by query for alert status

* Adding missed files

* fix bad logic

* updating tests for use_alerts_privileges

* remove index alias/fields

* fix types

* fix plugin to get the right index names

* left over of alis on template

* forget to use current user for create/read route index

* updated alerts page to not show table when no privileges and updates to tests

* fix bug when switching between o11y and security solution

* updates tests and move to use privileges page when user tries to access alerts without proper access

* updating jest tests

* pairing with yara

* bring back kbn-alerts after discussion with the team

* fix types

* fix index field for o11y

* fix bug with updating index priv state

* fix i18n issue and update api docs

* fix refresh on alerts

* fix render view on alerts

* updating tests and checking for null in alerts page to not show no privileges page before load

* fix details rules

Co-authored-by: Jonathan Buttner <jonathan.buttner@elastic.co>
Co-authored-by: Yara Tercero <yara.tercero@elastic.co>
2021-09-01 04:23:44 -04:00
Esteban Beltran a9e77fdfdb
Remove skip from flaky test. (#110494) 2021-09-01 09:04:33 +02:00
Dario Gieselaar 0d4fb4f338
[APM] Filter throughput on transaction name (#110645)
Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2021-09-01 08:41:37 +02:00
Cauê Marcondes 31057f7215
[APM] "Backends" naming (#110523)
* renaming backends to dependencies

* changing name on service maps
2021-09-01 00:01:10 -04:00
Cauê Marcondes 5b6588d8cb
[APM] Custom links creation don't work (#110676)
* fixing custom links issue

* Removing unused imports
2021-08-31 23:56:47 -04:00
Kevin Logan 53c011830d
[Security Solution] Correct memory exception field names (#110705) 2021-08-31 22:07:00 -04:00
Yuliia Naumenko 3e15695d06
[Alerting][8.0] Prepare alerting SOs to sharecapable (#110386)
* [Alerting] [8.0] Prepare for making alerting saved objects sharecapable (#109990)

* [Alerting] [8.0] Prepare for making alerting saved objects sharecapable

* removed v8 check

* removed link

* added no op migration

* fixed name

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>

* [Actions] [8.0] Prepare for making action saved objects sharecapable. (#109756)

* [Actions] [8.0] Prepare for making action saved objects sharecapable.

* added more tests

* made it compatible to merge to 7.x

* fixed due to comments

* fixed tests

* added tests

* fixed tests

* fixed due to comments

* added no-opactions migration

* fixed test

* [Task Manager][8.0] Added migrations to savedObject Ids for "actions:* and "alerting:*" task types (#109180)

* [Task Manager][8.0] Added migrations to savedObject Ids for "actions:* and "alerting:*" task types

* fixed due to comments

* fixed typo

* added more tests

* added unit test

* added func test

* added func tests

* fixed test

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>

* fixed merge

* fixed legacy tests

* fixed tests

* fixed eslint

* Update migrations.ts

fixed action task

* fixed due to comments

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2021-08-31 16:38:33 -07:00
Cauê Marcondes 634c272edd
[APM] Fleet: adding support for legacy fields (#110136)
* supporting legacy fields

* addressing PR comments

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2021-08-31 18:02:00 -04:00
Spencer 72f6700270
[eslint] prevent async Promise constructor mistakes (#110349)
Co-authored-by: spalger <spalger@users.noreply.github.com>
2021-08-31 17:54:13 -04:00
Kyle Pollich 522a0c4281
[Fleet] Fix bug when upgrading Windows package policies (#110698)
* Fix bug when upgrading Windows package policies

Ensure package policy merge logics accounts for cases in which an
input/stream which previously had no variables declared but has
variables in a later package version.

Fixes #110202

* Refactor original var set into deepMergeVars
2021-08-31 17:43:00 -04:00
Domenico Andreoli 01e1e4af3f
Merge junit results also for CCS functional tests (#110591) 2021-08-31 16:47:05 -04:00
Tim Sullivan ca120eef91
[Reporting] Remove any from pdf job compatibility shim (#110555)
* [Reporting] Remove `any` from pdf job compatibility shim

* remove `any` usage in a few other isolated areas
2021-08-31 11:08:49 -07:00
Quynh Nguyen 42acf39a70
[ML] Populate date fields for Transform (#108804)
* [ML] Add index pattern info & select control for date time

* [ML] Update translations

* [ML] Gracefully handle when index pattern is not available

* [ML] Fix import

* [ML] Handle when unmounted

* [ML] Remove load index patterns because we don't really need it

* [ML] Add error obj to error toasts

* [ML] Update tests

* [ML] Update hook

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2021-08-31 13:08:17 -05:00
Tim Sullivan bbfad19051
[Reporting] Remove any from public/poller (#110539)
* [Reporting] Remove `any` from public/poller

* remove unnecessary comment
2021-08-31 11:07:56 -07:00
Gloria Hornero f8c80a7422
[Security Solution] Updates loock-back time on Cypress tests (#110609)
* updates loock-back time

* updates loock-back value for 'expectedExportedRule'
2021-08-31 20:07:06 +02:00
Dima Arnautov 95eab7ccca
[ML] Fix "Show charts" control state (#110602)
* [ML] fix show charts state

* [ML] fix export
2021-08-31 13:54:13 -04:00
Dmitry Tomashevich 3f7c461cd5
[Graph] Deangularize graph app controller (#106587)
* [Graph] deaungularize control panel

* [Graph] move main graph directive to react

* [Graph] refactoring

* [Graph] remove redundant memoization, update import

* [Graph] fix settings menu, clean up the code

* [Graph] fix graph settings

* [Graph] code refactoring, fixing control panel render issues

* [Graph] fix small mistake

* [Graph] rename components

* [Graph] fix imports

* [Graph] fix graph search and inspect panel

* [Graph] remove redundant types

* [Graph] fix problem with selection list

* [Graph] fix functional test which uses selection list

* [Graph] fix unit tests, update types

* [Graph] fix types

* [Discover] fix url queries

* [Graph] fix types

* [Graph] add react router, remove angular stuff

* [Graph] fix styles

* [Graph] fix i18n

* [Graph] fix navigation to a new workspace creation

* [Graph] fix issues from comments

* [Graph] add suggested changed

* Update x-pack/plugins/graph/public/components/graph_visualization/graph_visualization.tsx

Co-authored-by: Marco Liberati <dej611@users.noreply.github.com>

* [Graph] remove brace lib from imports

* [Graph] fix url navigation between workspaces, fix types

* [Graph] refactoring, fixing url issue

* [Graph] update graph dependencies

* [Graph] add comments

* [Graph] fix types

* [Graph] fix new button, fix control panel styles

* [Graph] apply suggestions

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
Co-authored-by: Marco Liberati <dej611@users.noreply.github.com>
2021-08-31 19:26:45 +03:00
Nathan L Smith 3bae4cdc06
Add inspector panel for APM routes (#109696)
When the observability:enableInspectEsQueries advanced setting is enabled, show an inspector that includes all queries through useFetcher.

Remove the callout.
2021-08-31 11:10:54 -05:00
Garrett Spong 77b8e25b98
[RAC][Security Solution] Adds Machine Learning rule type (#108612)
## Summary

Ports over the existing Security Solution ML Rule to the RuleRegistry.

How to test this implementation
1. Enable the following in your `kibana.dev.yml`
```
xpack.ruleRegistry.enabled: true
xpack.ruleRegistry.write.enabled: true
xpack.securitySolution.enableExperimental: ['ruleRegistryEnabled']
```

2. Create a rule by running:
```
./x-pack/plugins/security_solution/server/lib/detection_engine/rule_types/scripts/create_rule_ml.sh
```

3. Push document to anomalies index (or trigger anomaly for job id from `create_rule_ml.sh` script)


### Checklist

Delete any items that are not applicable to this PR.


- [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-31 09:48:10 -06:00
Ester Martí Vilaseca 50a95ff78a
[Stack Monitoring] Add overview page first version (#110486)
* Add header to page template

* add external config provider and overview content

* REmove unnecessary todos

* Remove non working section from header

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2021-08-31 17:44:34 +02:00
Georgii Gorbachev 192556ef63
[RAC][Rule Registry] Put index upgrade logic under a feature flag (#110592)
**Ticket:** https://github.com/elastic/kibana/issues/110594

## Summary

This PR adds a feature flag around the logic that finds existing Alerts as Data indices and upgrades the mappings or rolls the index if the mappings can't be upgraded in place.

**IMPORTANT:**

- **The feature flag is switched off by default**. This is intentional, because we need to **disable the upgrade logic in 7.15.0**.
- **This is a temporary measure**. We're going to work on fixing the index upgrade logic asap and ship it before the next release that makes any mapping changes, possibly as soon as 7.15.1.
- Developers will need to enable it in their local kibana configs this way:

    ```yaml
    xpack.ruleRegistry.unsafe.indexUpgrade.enabled: true
    ```

Please check the ticket for the background of this fix.

### Checklist

Delete any items that are not applicable to this PR.

- [ ] [Documentation](https://www.elastic.co/guide/en/kibana/master/development-documentation.html) was added for features that require explanation or tutorials
- [ ] [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
- [ ] If a plugin configuration key changed, check if it needs to be allowlisted in the cloud and added to the [docker list](https://github.com/elastic/kibana/blob/master/src/dev/build/tasks/os_packages/docker_generator/resources/base/bin/kibana-docker)
2021-08-31 17:40:06 +02:00
Katrin Freihofner 8bcbc2dabd
increases contrast of recovered health badge (#110210)
Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2021-08-31 17:12:15 +02:00
Aaron Caldwell 10185fecb8
[Maps] Ensure draw tools updates by index name, not index pattern title (#108394) 2021-08-31 10:49:34 -04:00
Tiago Costa 560426e7ee
skip flaky suite (#110396) 2021-08-31 15:20:12 +01:00
Tim Roes c510288c05
Split KibanaApp into VisEditors and DataDiscovery (#110588)
* Split KibanaApp into VisEditors and DataDiscovery

* Add discover functional tests to codeowners

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2021-08-31 15:57:23 +02:00
Oliver Gupte e22c46bcc6
[APM] Fix for no-data state for fallback from aggregated transactions (#109995)
* [APM] Fix for no-data state for fallback from aggregated transactions (#109609)

* PR feedback and unit tests

* fixes lint error

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2021-08-31 09:57:10 -04:00
Corey Robertson d3774519c0
[Canvas] Adds references extract/inject for Workpads (#109874)
* Register embeddable functions server side.  Adds reference extraction/injection to workpads

* Clean up

* Fix Types

* Update API docs

* Remove API doc from expression (bad conflict resolution)

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2021-08-31 09:45:48 -04:00
Steph Milovic 03d52e9920
[Security Solution] [Bugfix]Alerts table event rendered view timestamp (#110561) 2021-08-31 07:40:59 -06:00
Marco Liberati 3b81205a23
[Lens] Show validation feedback on top values out of bounds number of values (#110222)
Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2021-08-31 15:23:18 +02:00
Miriam c568a433f3
[APM] Set preference to any value for APM searches (#110480) 2021-08-31 14:11:54 +01:00
Kyle Pollich a49700f95d
[Fleet] Fix policy upgrade from APM 0.3.0 to 0.4.0 (#110505)
* Fix policy upgrade from APM 0.3.0 to 0.4.0

Add debug log + logic to skip over any package variables that have been
removed from the base policy object. Issue was initially surfaced
testing upgrade from APM integration v0.3.0 to v0.4.0.

Ref #109907

* Fix type error in test

* Remove translation for validation debug log

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2021-08-31 08:08:00 -04:00
Kyle Pollich adde076d58
Add breadcrumbs for upgrade package policy page (#110468)
Adds distinct breadcrumbs for both "upgrade package policy" paths:
1. From the fleet agent policies list page
2. From the integrations package policie slist page

Closes #110434
2021-08-31 08:07:11 -04:00
Xavier Mouligneau 782f29a407
[RAC][o11y] fix o11y privileges when rule created in stack (#110167)
* fix o11y privileges when rule created in stack

* fix merge

* fix dsl alerts

* fix privileges on o11y

* after discussion with o11y, we agree to simplify logic of the count of alerts

* remove unused variable

* fix one more type error

Co-authored-by: mgiota <panagiota.mitsopoulou@elastic.co>
2021-08-31 07:31:38 -04:00
Marta Bondyra 03469515cf
[Lens] Fix filters reappearing in the saved object when saving (#110460)
* bugs fixed

* test for loading

* fix workspace panel

* Update x-pack/plugins/lens/public/xy_visualization/visualization.tsx

* revert useEffect for external embeddables
2021-08-31 11:51:54 +02:00
Sergi Massaneda 7ebed9321a
fix view all fields button when filtered (#110464) 2021-08-31 10:19:11 +02:00
mgiota b7ad4268d0
[RAC][Observability] preserve lifecycle alert changes for active alerts (#110124)
* preserve lifecycle changes for active alerts

* fix failing tests

* fix failing lifecycle executor tests

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2021-08-31 09:42:33 +02:00
Milton Hultgren 02538b6b41
[Observability] Update AlertsSearchBar placeholder (#110192)
* [Observability] Update AlertsSearchBar placeholder (#108179)
* [Observability] Remove default search query from Alerts page (#110242)

This is done to align with other placeholder texts found within the
Observability solution.
2021-08-31 08:32:46 +02:00
Candace Park f5655e4b36
[Security Solution][Endpoint][Policy] Updated Policy details UI (#110429) 2021-08-30 21:49:53 -04:00
Matthew Kime 75c6afe112
[data views] deprecate indexPattern exports, provide dataView exports (#109987)
* first pass at renaming exports

* type fixes

* fix jest test

* look for correct error type

* remove transitional error

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2021-08-30 18:04:03 -05:00
Jonathan Budzenski 88f955621d
Bump node-sass to 6.0.1 (#109930) 2021-08-30 16:42:06 -05:00
Lisa Cawley f41ab3590d
Replace hard-coded link to APM rules (#109021) 2021-08-30 14:41:16 -07:00
Nathan Reese 5b4df7916e
[Maps] cleanup mapExtentChanged thunk (#110098)
* [Maps] cleanup mapExtentChanged thunk

* rename for clarity

* cleanup

* review feedback

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2021-08-30 15:16:00 -06:00
Clint Andrew Hall e02eb5084b
[canvas] Fix bugs in interactive workpad (#110385)
Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2021-08-30 16:06:15 -05:00
Patryk Kopyciński 3d4b5c595d
[Osquery] Fix 7.15 BC3 issues (#110425) 2021-08-30 22:57:54 +02:00
Ashokaditya 22e5565e00
[Security Solution][Endpoint] Fix activity log load empty state flicker (#110233)
* account for API errors and uninitialized state before fetching data

fixes elastic/kibana/issues/107129

* better name

refs elastic/kibana/pull/102261

* don't show date picker when loading data initially

fixes elastic/kibana/issues/107129

* use a readable selector instead

review changes

* remove redundant data fetch using paging action on tab switch.

refs elastic/kibana/pull/102261

* remove redundant validation

review comments

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2021-08-30 15:29:43 -04:00
Dominique Clarke 6e8d86b3e7
[APM] [User Experience] remove uiFilters from setupRequest (#109908)
* remove uiFilters from setupRequest

* adjust get_buckets test

* update getAnomalySeries

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2021-08-30 15:02:47 -04:00
Dominique Clarke bb9ea8413f
[Uptime] [Synthetics integration] parse inline script as json before sending it to fleet (#110118)
Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2021-08-30 15:01:51 -04:00
Nathan Reese 4cf722fb48
[Maps] replace IFieldType with IndexPatternField (#110245)
* [Maps] replace IFieldType with IndexPatternField

* clean up imports

* import from public

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2021-08-30 12:56:15 -06:00
Nathan Reese 9e1a4dda42
[Maps] remove map.regionmap.* (#109896)
* remove regionmap config

* clean-up

* clean up docs and i18n cleanup

* telemetry check fixes

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2021-08-30 12:55:03 -06:00
Cauê Marcondes a165067477
[APM] Logs tab seems to show logs from incorrect service(s) (#110484) 2021-08-30 14:51:05 -04:00
Michael Dokolin e610bb583f
[Reporting] Remove export types registry dependency from the content stream (#109740) 2021-08-30 17:40:10 +02:00
Michael Dokolin 57dc0c1ff5
[Data] Update esaggs function to use count aggregation by default (#110095)
* Update default value of the aggs argument to use count aggregation
* Fix datatable canvas element to use column id instead of name
2021-08-30 17:10:14 +02:00
Tiago Costa 443979f0c5
skip failing es promotion suite (#110483) 2021-08-30 15:14:21 +01:00
Yulia Čech 949a4a6898
[ILM] Fixed loading layout that has degraded after adding RedirectAppLinks (#110461) 2021-08-30 16:09:36 +02:00
Milton Hultgren ab2deb773a
[Observability] Make Alerts page callout more subtle (#110197) 2021-08-30 15:41:09 +02:00
Alexey Antonov 6d874caef5
[Lens] should register "suffix" field formatter in setup lifecycle (#110218)
Closes: #106838

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2021-08-30 15:17:09 +03:00
Tiago Costa 0082e5ac6b
skip flaky suite (#98463) 2021-08-30 13:08:13 +01:00
Gloria Hornero 1932540992
fixes failing tests (#110436) 2021-08-30 13:02:39 +02:00
Diana Derevyankina b74c79ad32
[Lens] Remove deprecated IFieldType (#109825)
* [Lens] Remove deprecated `IFieldType`

* Fix types for terms.test

* Replace IndexPatternField with FieldSpec, revert terms.test and update other tests

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2021-08-30 13:39:17 +03:00
Maja Grubic a4c0c1c0aa
[Discover] Migrate angular routing to react router (#107042) 2021-08-30 10:48:21 +02:00
Candace Park 079fc9ad19
[Security Solution][Endpoint][Event Filters] Fixes missing spacers between event filters cards (#110282) 2021-08-29 22:17:46 -04:00
Walter Rafelsberger 8eea9005f1
[ML] Data Grid: Fix alignment of sorting arrow when histogram charts are enabled (#110053)
Adds a CSS override to align the sorting arrow at the bottom when histogram charts are enabled.
2021-08-27 23:50:44 +02:00
Clint Andrew Hall 2ed3fcdec1
[canvas] Fix image argument form issues (#109767)
Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2021-08-27 16:17:05 -04:00
Clint Andrew Hall 2520990e1e
Fix asset in Pitch template (#109742)
Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2021-08-27 16:10:52 -04:00
Kyle Pollich 74f3b76592
[Fleet] Fix upgrade link in Fleet policy table (#110228)
* Fix upgrade link in Fleet policy table

* Ensure upgrade page displays as upgrade even without from prop
2021-08-27 08:08:53 -04:00
Walter Rafelsberger 54a45bba65
[ML] APM Latency Correlations: Fix empty state (#109813)
- Correctly renders the empty chart state when no data is available.
- Hides the "Click drag to select" and trace samples message when the chart shows an empty state to avoid redundant info.
- Adds jest unit tests that would fail with the previously visible loading indicators.
- Fix a bug with cancelling search strategies.
2021-08-27 07:08:50 -04:00
Yaroslav Kuznietsov d43e9f586b
[Canvas] Fixes Storybook for DatasourceComponent is crashing. (#110180)
* Added mock for `es_service`.

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2021-08-27 06:58:10 -04:00
Catherine Liu 2e4e0fca4c
Clears resolved arg on embeddable destroy (#109945)
Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2021-08-27 02:46:11 -04:00
Yaroslav Kuznietsov dde701faaa
[Canvas] ItemGrid refactor. (#110044) 2021-08-27 09:26:55 +03:00
Cauê Marcondes 49e3edf032
[APM] Latency threshold alerts are not being triggered (#110315) 2021-08-26 23:56:14 -04:00
Marshall Main 6d7998e70c
[Security Solution] Fix another reference to ALERT_STATUS (#110376) 2021-08-26 20:29:21 -05:00