Commit graph

42162 commits

Author SHA1 Message Date
Matthew Kime d80c257f81
Index patterns server - throw correct error on field caps 404 (#95879)
* throw correct error on field caps 404 and update tests
2021-04-13 14:14:19 -05:00
Nathan L Smith d5bb7d6645
Use EuiThemeProvider in lists plugin tests and stories (#96129)
Remove `getMockTheme` and use `EuiThemeProvider` from the kibana_react plugin.

Use the CSF-style decorators with `EuiThemeProvider` in the stories.

No functional changes, but should be less code to maintain.
2021-04-13 13:49:25 -05:00
Spencer 0500289699
[npm] upgrade caniuse database (#97002)
Co-authored-by: spalger <spalger@users.noreply.github.com>
2021-04-13 14:35:14 -04:00
Tiago Costa 47065acb05
chore(NA): moving @kbn/apm-utils into bazel (#96227)
* chore(NA): moving @kbn/apm-utils into bazel

* chore(NA): add kbn/apm-utils into package.json

* chore(NA): missing standard on build file globs

* chore(NA): be more explicit about incremental setting

* chore(NA): include pretty in the args for ts_project rule

* docs(NA): include package migration completion in the developer getting started

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2021-04-13 19:14:06 +01:00
Sébastien Loix 67e512fe27
[ILM] Add UI validation for min age value (#96718) 2021-04-13 18:47:20 +01:00
Mike Côté 8e9ca66520
Fix alerting flaky test by adding retryIfConflict to fixture APIs (#96226)
* Add retryIfConflict to fixture APIs

* Fix

* Fix import errors?

* Revert part of the fix

* Attempt fix

* Attempt 2

* Try again

* Remove dependency on core code

* Comment

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2021-04-13 13:29:22 -04:00
Lisa Cawley 27cd514cab
Use doc link services in index management (#89957)
Co-authored-by: Alison Goryachev <alisonmllr20@gmail.com>
2021-04-13 10:21:06 -07:00
Catherine Liu 74d93a2f6d
[Presentation Util] Shared toolbar component (#94139) 2021-04-13 09:24:17 -07:00
Joe Reuter 7edacdade1
give test more time (#96955) 2021-04-13 18:20:44 +02:00
Pete Harverson c937fc35e3
[ML] Fix check for too many selected buckets in Anomaly Explorer charts (#96771) 2021-04-13 16:50:04 +01:00
Alejandro Fernández Haro ff6d1d709e
.editorconfig MDX files should follow the same rules as MD (#96942)
Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2021-04-13 11:40:42 -04:00
Nicolas Chaulet 0e7612dd1a
[Fleet] Fix Fleet API integration tests (#96837) 2021-04-13 11:16:32 -04:00
Marco Liberati 0260dacfc8
[Graph] Enable partial pasting in drilldowns (#96830) 2021-04-13 17:15:41 +02:00
Tim Sullivan f67f0e80e7
Reporting: Fix _index and _id columns in CSV export (#96097)
* Reporting: Fix _index and _id columns in CSV export

* optimize - cache _columns and run getColumns once per execution

* Update x-pack/plugins/reporting/server/export_types/csv_searchsource/generate_csv/generate_csv.ts

Co-authored-by: Michael Dokolin <dokmic@gmail.com>

* feedback

* fix typescripts

* fix plugin list test

* fix plugin list

* take away the export interface to test CI build stats

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
Co-authored-by: Michael Dokolin <dokmic@gmail.com>
2021-04-13 08:03:09 -07:00
gchaps 417776d9b6
[DOCS] Adds concepts section for analysts (#96675)
* [DOCS] Adds concepts section for analysts

* [DOCS] Minor tweaks to concepts doc

* Update docs/concepts/index.asciidoc

Co-authored-by: Wylie Conlon <wylieconlon@gmail.com>

* Update docs/concepts/save-query.asciidoc

Co-authored-by: Wylie Conlon <wylieconlon@gmail.com>

Co-authored-by: Wylie Conlon <wylieconlon@gmail.com>
2021-04-13 07:49:38 -07:00
Spencer 27c191d405
[plugin-generator] don't generate .eslintrc.js files for internal plugins (#96921)
Co-authored-by: spalger <spalger@users.noreply.github.com>
2021-04-13 07:43:03 -07:00
Craig Chamberlain bedf92f001
Adds Network ML module with four ML jobs for ECS network data (#96480)
* network module

adds the network module with four ml jobs for the 7.13 release

* Update datafeed_high_count_network_denies.json

json formatting

* update test

added the security_network module to the list

* renames

module name change to security_network / Security: Network

* formatting

change hyphen char to underscores

* fixes and name changes

fixes to df queries, descriptions. created_by param

* update tests

tests need the security_network module added

* formatting

change hyphens to underscores

* descriptions

format descriptions

* Update datafeed_high_count_network_events.json

indentation fixes

* Update x-pack/plugins/ml/server/models/data_recognizer/modules/security_network/manifest.json

Co-authored-by: Lisa Cawley <lcawley@elastic.co>

* Update x-pack/plugins/ml/server/models/data_recognizer/modules/security_network/ml/high_count_network_denies.json

Co-authored-by: Lisa Cawley <lcawley@elastic.co>

* Update datafeed_high_count_network_events.json

change to a filter

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
Co-authored-by: Lisa Cawley <lcawley@elastic.co>
2021-04-13 10:35:01 -04:00
Anton Dosov 98f799953b
[Search Sessions] Remove auto-refresh limitation (#96539) 2021-04-13 16:13:25 +02:00
Melissa Alvarez 3acabf32b4
ensure ROC chart gets loaded correctly (#96890) 2021-04-13 10:12:22 -04:00
Elizabet Oliveira ba091c00cf
[K8] [Maps] Fix toolbar overlay styles (#96352)
* Fix toolbar overlay styles

* More styles

* Updating test

* Better focus state for mapbox buttons

* Mapbox buttons focus

* Focus againa

* Focus states again

* no background only for focus not hover

* Adding mixin for button group border radius

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2021-04-13 15:04:07 +01:00
Tyler Smalley 22dd61d919
[keystore] Fix openHandle in Jest tests (#96671)
```
[2021-04-07T00:19:27Z] Jest did not exit one second after the test run has completed.
[2021-04-07T00:19:27Z]
[2021-04-07T00:19:27Z] This usually means that there are asynchronous operations that weren't stopped in your tests. Consider running Jest with `--detectOpenHandles` to troubleshoot this issue.
```

Signed-off-by: Tyler Smalley <tyler.smalley@elastic.co>

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2021-04-13 06:55:50 -07:00
Matthias Wilhelm 8cce4805d4
[Discover][EuiDataGrid] Add document selector (#94804)
Co-authored-by: Ryan Keairns <rkeairns@chef.io>
2021-04-13 15:54:42 +02:00
Patryk Kopyciński 73ccf7844a
[Fleet] Add support for long and double field type in multi_fields (#96834) 2021-04-13 15:38:12 +02:00
Rob Bavey 46179d6432
[Telemetry] Fix Logstash telemetry collection for multi node clusters (#96831)
Prior to this fix, each Logstash node was overwriting the collected list of ephemeral ids used to
collect pipeline details. This meant that pipeline details were only being collected for the
last Logstash node retrieved for each cluster.
2021-04-13 09:31:18 -04:00
Scotty Bollinger 93e270e60a
[Enterprise Search] Design Pass: Role mappings (#96882)
* Update shared button color and panel shading

* Vertically align table cells to top

* [App Search] Update panels to have backgrounds not borders

* [Workplace Search] Update panels to have backgrounds not borders

* re-align last cell to right

Accidentally deleted it refactoring

* Conditionally have border for App Search

Requested to remove for empty state
2021-04-13 10:31:00 -03:00
Dmitry Tomashevich bc59d55d67
[TSVB] Fix annotation line doesn't work if no index pattern is applied (#96646)
* [TSVB] fix annotation line doesnt work if no index pattern is applied

* [TSVB] remove series from annotations, remove timeField placeholder

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2021-04-13 09:26:49 -04:00
Thomas Neirynck 25000b4091
[Maps] wrap flaky test in retry block (#96448) 2021-04-13 09:21:21 -04:00
Thomas Neirynck 451c5a6fae
[Maps] Enable filtering with spatial relationships on geo_point fields (#96849) 2021-04-13 09:20:11 -04:00
Pierre Gayvallet bfd5b7bda6
Exclude non-persisted sessions from SO migration (#96938) 2021-04-13 14:34:32 +02:00
Jean-Louis Leysens b9c4d248ae
[ESUI] More robust handling of error responses (#96819)
* more robust handling of error responses

* added tests and further hardening of how we handle error values
2021-04-13 14:15:34 +02:00
Matthias Wilhelm d8b4316783
[Discover] Close inspector when switching app (#92994) 2021-04-13 14:12:19 +02:00
Uladzislau Lasitsa 6ddc4bff06
[TSVB] Wrong custom values formatting for the empty buckets (#96293)
* Don't apply formatter for default value

* Remove the logic to overwrite the default value because it is not being used

* Fix remark

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2021-04-13 14:32:11 +03:00
Thom Heymann 69f013e2fb
Added ability to create API keys (#92610)
* Added ability to create API keys

* Remove hard coded colours

* Added unit tests

* Fix linting errors

* Display full base64 encoded API key

* Fix linting errors

* Fix more linting error and unit tests

* Added suggestions from code review

* fix unit tests

* move code editor field into separate component

* fixed tests

* fixed test

* Fixed functional tests

* replaced theme hook with eui import

* Revert to manual theme detection

* added storybook

* Additional unit and functional tests

* Added suggestions from code review

* Remove unused translations

* Updated docs and added detailed error description

* Removed unused messages

* Updated unit test

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
Co-authored-by: Larry Gregory <larry.gregory@elastic.co>
2021-04-13 12:21:11 +01:00
Angela Chuang 3a7155eaa1
retry users integration test (#96772) 2021-04-13 09:58:26 +01:00
Angela Chuang 1ec21a5d88
wrap tests with retry (#96764) 2021-04-13 09:53:54 +01:00
Jean-Louis Leysens f31e13c426
[Ingest Pipelines] Migrate to new ES client (#96406)
* - migrated use of legacy.client to client
- removed use of isEsError to detect legacy errors
- refactored types to use types from @elastic/elasticsearch
  instead (where appropriate)

tested get, put, post, delete, simulate and documents endpoints
locally

* remove use of legacyEs service in functional test

* fixing type issues and API response object

* remove id from get all request!

* reinstated logic for handling 404 from get all pipelines request

* clarify error handling with comments and small variable name refactor

* updated delete error responses

* update functional test

* refactor use of legacyEs

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2021-04-13 10:51:43 +02:00
Marco Liberati ec62be7ca8
[Graph] Map request failure for text fields with better error message (#96777) 2021-04-13 10:42:19 +02:00
Joe Reuter ebfbe6fc8c
close popover on dragging (#96784) 2021-04-13 09:45:21 +02:00
Christos Nasikas d7a09e4dc5
[Security Solution][Cases] Fix create case flyout on timeline. (#96798) 2021-04-13 09:54:40 +03:00
Shahzad 0da5578182
[Data] Pass field meta to value suggestions api (#96239)
Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2021-04-13 08:19:26 +02:00
Andrew Pease 9a10bcb652
Update README.md - broken params env link (#95820)
## Summary

The link to set the params env was broken.

### Checklist

Delete any items that are not applicable to this PR.

- [x] [Documentation](https://www.elastic.co/guide/en/kibana/master/development-documentation.html) was added for features that require explanation or tutorials
### For maintainers

- [ ] This was checked for breaking API changes and was [labeled appropriately](https://www.elastic.co/guide/en/kibana/master/contributing.html#kibana-release-notes-process)
2021-04-12 20:57:04 -06:00
ymao1 4f6bd31c91
[Alerting] Fixing notifyWhen terminology (#96490)
* Updating terminology

* Updating wording

* Updating wording
2021-04-12 21:12:45 -04:00
Tiago Costa e3f5249c88
chore(NA): @kbn/pm new commands to support development on Bazel packages (#96465)
* chore(NA): add warnings both to run and watch commands about Bazel built packages

* chore(NA): add new commands to build and watch bazel packages

* docs(NA): add documentation about how to deal with bazel packages

* chore(NA): addressed majority of the feedback received except for improved error logging

* chore(NA): disable ibazel info notification.

* chore(NA): remove iBazel notification

* chore(NA): remove iBazel notification - kbn pm dist

* chore(NA): move show_results option to kbn-pm only

* chore(NA): patch build bazel command to include packages target list

* chore(NA): add pretty logging for elastic-datemath

* chore(NA): remove double error output from commands ran with Bazel

* fix(NA): include simple error message to preserve subprocess failure state

* docs(NA): missing docs about how to independentely watch non bazel packages

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2021-04-12 20:24:19 -04:00
Nathan Reese c218ba8397
[Maps] only allow sorting on numeric fields for tracks (#96877) 2021-04-12 17:02:03 -06:00
Constance f4bc0d61a1
Update create meta engine button to match create engine (#96884) 2021-04-12 18:55:04 -04:00
Ryland Herrick 39f87f4560
[Security Solution][Timeline] Rebuild nested fields structure from fields response (#96187)
* First pass at rebuilding nested object structure from fields response

* Always requests TIMELINE_CTI_FIELDS as part of request

This only works for one level of nesting; will be extending tests to
allow for multiple levels momentarily.

* Build objects from arbitrary levels of nesting

This is a recursive implementation, but recursion depth is limited to
the number of levels of nesting, with arguments reducing in size as we
go (i.e. logarithmic)

* Simplify parsing logic, perf improvements

* Order short-circuiting conditions by cost, ascending
* Simplify object building for non-nested objects from fields
  * The non-nested case is the same as the base recursive case, so
    always call our recursive function if building from .fields
* Simplify getNestedParentPath
  * We can do a few simple string comparison rather than building up
    multiple strings/arrays
* Don't call getNestedParentPath unnecessarily, only if we have a field

* Simplify if branching

By definition, nestedParentFieldName can never be equal to fieldName, which means
there are only two branches here.

* Declare/export a more accurate fields type

Each top-level field value can be either an array of leaf values
(unknown[]), or an array of nested fields.

* Remove unnecessary condition

If fieldName is null or undefined, there is no reason to search for it
in dataFields. Looking through the git history this looks to be dead
code as a result of refactoring, as opposed to a legitimate bugfix, so
I'm removing it.

* Fix failing tests

* one was a test failure due to my modifying mock data
* one may have been a legitimate bug where we don't handle a hit without
  a fields response; I need to follow up with Xavier to verify.

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2021-04-12 17:52:42 -05:00
Scotty Bollinger 4d593bbc08
[Workplace Search] Design polish: Groups, Security and Custom source (#96870)
* Add missing i18n

Oops

* Change button color

* Fix custom source created screen

* Add better empty state to groups

* Align toggle to right side of table

* Update design for security page
2021-04-12 18:27:23 -04:00
Dominique Clarke 22b53029e5
[Uptime] Feature/migrate synthetics to ecs fields (#96369)
* update get_network_events to use ecs fields
2021-04-12 17:49:54 -04:00
Ece Özalp e7ecad7c3b
[CTI] Filters alerts table by presence of threat (elastic/security-team#907) (#96096)
[CTI] Filters alerts table by presence of threat (elastic/security-team#907)
2021-04-12 17:10:36 -04:00
Thomas Neirynck 465734ae99
[Maps] Enable distance filtering on geo_shape (#96832) 2021-04-12 16:34:41 -04:00