Commit graph

41612 commits

Author SHA1 Message Date
Jason Stoltzfus
3f86bab334
[App Search] Refactor Result Settings logic (#95531) 2021-03-29 12:54:20 -04:00
Wylie Conlon
fe66162ef2
[Lens] Fully unmount React when flyout closes (#95359)
* [Lens] Fully unmount React when flyout closes

* Fix bug with editor frame unmounting

* Fix type

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2021-03-29 12:33:05 -04:00
igoristic
f9ca6dca65
[Monitoring] Removed timefilter refresh override (#94648)
* Removed refresh override

* Changed default behavior

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2021-03-29 12:21:15 -04:00
Anton Dosov
92af812c82
[Search Sessions] Display time labels in search session popover (#95082) 2021-03-29 17:45:08 +02:00
Brandon Morelli
26b2f976a2
docs: add more info on http transactions/span (#95598) 2021-03-29 08:35:48 -07:00
Adam Locke
f92381eca9
Update link for enabling security (#95519)
* Update link for enabling security

This change updates the `elasticsearchEnableSecurity` link to the new page for [Configuring security for the Elastic Stack](https://www.elastic.co/guide/en/elasticsearch/reference/master/configuring-stack-security.html).

Closes #84337

* Updating test to use expected doc link.

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2021-03-29 11:34:04 -04:00
Josh Dover
3a48aa619f
Add test to verify Console proxy doesn't forward system index header (#95562)
* Add test to verify Console API does not forward system index header

* Add integration test to Core to verify system indices warning behavior

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2021-03-29 11:31:34 -04:00
James Gowdy
478ad3bad5
[Fleet] Adding ML module asset type (#94950)
* [Fleet] Adding ML module asset type

* adding test

* guessing asset ids

* better guess at IDs

* renaming asset ids

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2021-03-29 16:21:49 +01:00
Uladzislau Lasitsa
0e40b94348
[TSVB] Change the default mode from last value to entire timerange (#93608)
* Make 'enter time range' value as default and add telemetry for 'last value' mode

* Fix telemetry schema

* Fix test

* Add possibility count timeseries created from dashboard

* Fix remark

* Fix remark

* Fix problem with time_range_mode

* Fix tests

* Fix tests

* Fix tests for markdown and table

* exclude TSVB which have type as timeseries

* Add description for field in schema in telemetry

* Fix telemetry schema

* Fix some remarks

* Added check for hits

* fix CI

* fix CI

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
Co-authored-by: Alexey Antonov <alexwizp@gmail.com>
2021-03-29 17:31:01 +03:00
Georgii Gorbachev
d16101f377
[Event Log] Extend ECS event schema with fields needed for Detection Engine (#95067)
**Related to:** https://github.com/elastic/kibana/pull/94143

## Summary

This PR adds new fields to the schema (`EventSchema`, `IEvent`):

- standard ECS fields: `error.*`, `event.*`, `log.level`, `log.logger`, `rule.*`
- custom field set `kibana.detection_engine`

We need these fields on the Detections side to implement detection rule execution log. See the related proposal (https://github.com/elastic/kibana/pull/94143) for more details.

Also, this PR bumps ECS used in Event Log from `1.6.0` to the current `1.8.0` version. They are 100% same in terms of fields used in Event Log, so no changes in the schema were caused by this version increment.
2021-03-29 14:59:36 +02:00
Marta Bondyra
a1748cb3a7
[Lens] remove warnings when running tests (#95637) 2021-03-29 14:25:08 +02:00
Tiago Costa
e4e4a01298
skip flaky suite (#94532) 2021-03-29 13:20:47 +01:00
Tiago Costa
cf8ebe619b
skip flaky suite (#92358) 2021-03-29 13:11:33 +01:00
Marta Bondyra
755c186c28
[Lens] Multiple drop targets (#93616) 2021-03-29 14:07:39 +02:00
Tiago Costa
a10e3d4f2b
skip flaky suite (#91450) 2021-03-29 13:05:33 +01:00
Alexey Antonov
4342f26eaf
[TSVB] Enable dual mode, support index patterns and strings (#92812)
* [TSVB] Enable `dual mode`, support index patterns and strings

* modify UI

* add migration script

* refactoring

* fix CI

* prefill the index pattern name

* modify UI

* modify UI

* update UI

* fix functional test

* some work

* remove callouts

* fix rollup test

* update UI

* fix typo

* add some unit tests

* add functional test

* fix CI

* correct labels

* fix ci group 12

* cleanup interface

* fix CI

* cleanup API

* fix some of PR comments

* move index patterns into so references

* remove wrong logic

* fix JEST

* fix some ui issues

* update sample data

* indexPatternObject -> indexPatternValue

* fix comments

* I have a dashboard with two TSVB viz. One with the default (haven't applied it to the combobox) and one with the logs. The filter contains fields only from the logs index pattern

* When I am on the string mode and try to write my index, sometimes some of the chars are not added or they are deleted while typing, something with the denounce maybe?

* fix merge conflicts

* Does this PR also supports runtime fields? I created one from the editor and I see that I can select it

* fix UI issue

* If I create a viz with the string mode and a wildcard e.g. kibana_sample*, the index patterns are not communicated correctly to the dashboard.

* fix import/export refs for dashboard

* remove MigrationPopover

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2021-03-29 04:32:01 -04:00
Søren Louv-Jansen
84adfe551b
[APM] Add elasticsearch queries to api response (#95146) 2021-03-29 07:50:27 +02:00
Mikhail Shustov
5732526f34
allow creating blank issue (#95609) 2021-03-27 10:32:50 +01:00
Yara Tercero
17d3907730
[Security Solution][Exceptions] - Moves ExceptionItem component to lists plugin (#95246)
## Summary

Moves part of the exceptions UI out of the security solution plugin and into the lists plugin. In order to keep PRs (relatively) small, I am moving single components at a time. This should also then help more easily pinpoint the source of any issues that come up along the way.

The next couple PRs will focus on the exception builder. This one in particular is focused on moving over the `BuilderExceptionItem` which deals with rendering the individual exception items.
2021-03-26 20:59:49 -07:00
Yuliia Naumenko
80fdcde813
[Alerts][Actions] Added missing telemetry mapping for a new alert and action types: geo-containment, es-query, teams (#95464)
* [Alerts][Actions] Added missing telemtry mapping for a new alert and action types: geo-containment, es-query, teams

* fixed mappings

* fixed ML alert type telemetry mappings

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2021-03-26 19:45:24 -07:00
Marshall Main
533a7bb56f
[Security Solution] Split rule executor by rule type and validate type specific rule params (#94857)
* Split rule executors into different files

* Pass type-specific rule SOs to rule executor functions

* Genericize function to narrow ruleSO type

* Remove undefined return type from getExceptions

* Remove unintentional change to SIGNALS_TEMPLATE_VERSION

* Remove extra validation now covered by schemas

* Remove extra validation from ML rule executor

* Fix types

* syncs schemas

* Revert "syncs schemas"

This reverts commit b1dd59e3f0.

* Fix api test and move threshold executor test

* kinda adds eql test

* Refactor and fix unit tests

* fixes marshalls mistake

Co-authored-by: Davis Plumlee <davis.plumlee@elastic.co>
Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2021-03-26 19:44:46 -07:00
Brian Seeders
b94e2338d1 skip failing suite (#95596) 2021-03-26 20:36:06 -04:00
Lisa Cawley
1282e67220
[DOCS] Clarify maps tutorial (#95563) 2021-03-26 16:55:16 -07:00
John Dorlus
10713fcc52
Add Component Integration Test For Byte Processor (#95130)
* Addded test for Bytes processor.

* Broke out processor not selected section of tests to its own test and made edits per feedback in PR.

* Broke out processor data fetching to a separate reusable helper function.

* Broke out processor data fetching to a separate reusable helper function.

* Added functionality for toggling the ignore missing switch.

* ES lint fix.

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2021-03-26 19:09:19 -04:00
liza-mae
b7d8ada65a
Fix reporting test (#95586) 2021-03-26 16:33:29 -06:00
Brian Seeders
b95e5a996a skip failing suite blocking ES promotion (#95594) 2021-03-26 17:46:20 -04:00
Brian Seeders
1362561a03 skip flaky suite (#95592) 2021-03-26 17:40:01 -04:00
John Schulz
7f15931725
[Fleet] /bulk_unenroll response matches other bulk action APIs (#95571)
## Summary
`/agents/bulk_unenroll` should return a response with a result for each agent given; including invalid or missing ids. It currently returns an empty object. https://github.com/elastic/kibana/issues/90437


[TS type diff for response](dd34e4c5ef/x-pack/plugins/fleet/common/types/rest_spec/agent.ts (L124-L130))

```diff
- // eslint-disable-next-line @typescript-eslint/no-empty-interface
- export interface PostBulkAgentUnenrollResponse {}
+ export type PostBulkAgentUnenrollResponse = Record<
+   Agent['id'],
+   {
+     success: boolean;
+     error?: string;
+   }
+ >;
```

### 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-03-26 17:36:39 -04:00
Brian Seeders
173731b342 skip flaky suite (#95590) 2021-03-26 17:23:12 -04:00
Oliver Gupte
86d4054930
[APM] Fix for correlations inconsistent loading errors in Errors tab (#93443) (#95437) 2021-03-26 13:22:32 -07:00
Candace Park
4ff9bfd113
[Security Solution][Endpoint][Admin] Match endpoint list host status with fleet agent status (#95243) 2021-03-26 16:17:12 -04:00
Yara Tercero
2aae753c54
[Security Solution][Exceptions][Builder] -Move exception builder entry item exceptions ui over to lists (#94515)
## Summary

Beginning to move the exceptions UI out of the security solution plugin and into the lists plugin. In order to keep PRs (relatively) small, I plan to move single components at a time. This should also then help more easily pinpoint the source of any issues that come up along the way.

The next couple PRs will focus on the exception builder. This one in particular is focused on moving over the `BuilderEntryItem` which deals with rendering the individual exception item entries. An entry can be of type `match`, `match_any`, `list`, `exists`, or `nested`. The component makes use of the autocomplete fields which use the index patterns to display possible fields and field values. 

One of the decisions made in this PR was to have consumers of the `BuilderEntryItem` pass through the autocomplete service as opposed to the `lists` plugin adding it as a dependency. The reason being that it is likely that plugins using the lists plugin will already be consuming either the data plugin or if alerting takes exceptions in, then they'll be consuming alerting. In an effort to avoid some possible icky circular dependency issues, though it best to make the service passed in, as we had already been doing with the hooks in the `lists` plugin.
2021-03-26 13:05:27 -07:00
Larry Gregory
31ea160fc7
Move production dependencies out of devDependencies (#93997)
Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2021-03-26 15:23:45 -04:00
Aleksandr Maus
5518b04eed
Add policy_output_permissions_hash field to .fleet-agents mapping (#95410) 2021-03-26 15:09:58 -04:00
John Barrier Wilson
593b03fc60
[Workplace Search] Design polish: overview page (#95363)
* Rework panels to subdued style

* Fix button when source has been onboarded

* Update content_section test for EuiSpacer

* Update content_section test for EuiSpacer Length

* Lint fix for onboarding_card

* Remove spacer size due to default

Co-authored-by: Scotty Bollinger <scotty.bollinger@elastic.co>

* Remove test line for Spacer now that size=default

Co-authored-by: Scotty Bollinger <scotty.bollinger@elastic.co>
Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2021-03-26 14:09:45 -05:00
Mike Côté
03db229e2d
Changes to the connector API doc URLs (#95515)
* Initial commit

* Remove 'API' from title abbreviations

* Merge deprecated warning w/ alternative solution
2021-03-26 14:55:39 -04:00
Nicolas Chaulet
db7da2238e
[Fleet] add support for fleet server urls (#94364) 2021-03-26 14:53:35 -04:00
Aaron Caldwell
d89ede9834
[Maps] Add drawing index data endpoint (#94728) 2021-03-26 14:29:16 -04:00
Lisa Cawley
68722313f2
Use documentation link service for runtime fields (#95256) 2021-03-26 11:28:42 -07:00
Constance
6b59fe3d01
[App Search] Refactor EuiPageHeader components to use new props instead of children (#95454)
* Update EuiPageHeaders with basic titles

* Update engine creation views

- meta engine - move to description
+ misc fix - non-heading EuiTitles that do not match the standalone UI

* Update EuiPageHeaders with simpler actions

* Update Documents page header

+ test reorg - move DocumentCreationButton tests to its own test block

* Update EnginesOverviewHeader (+ refactors)

- Switch from FormattedMessage to i18n to match rest of repo
- Switch to eslint-disbable instead of doing a buttonProps workaround (this will get deleted anyway post-migration)

* whoops
2021-03-26 14:17:00 -04:00
Quynh Nguyen
95e308a473
[ML] Add Anomaly Explorer charts embeddable (#94396) 2021-03-26 13:10:19 -05:00
Aleh Zasypkin
796f679e92
Migrate away from legacyEs service in tests. (#95402) 2021-03-26 18:49:19 +01:00
Yuliia Naumenko
e31ef5235e
[Task Manager] Fixed the behavior of the claiming tasks function failing, when inline scripts are disabled. (#94870)
* [Task Manager] Fixed the behavior of the claiming tasks funtion failing, when inline scripts are disabled.

* added docs

* fixed test

* added tests

* fixed due to comments

* Fixed docs due to comments

* extended TM configuration changes message with the possible errors description
2021-03-26 10:46:33 -07:00
Yuliia Naumenko
8101419cb9
[Alerts UI] Fixed significant delay during disabling/enabling alerts (#95373)
* [Alerts UI] Fixed significant delay during disabling/enabling alerts

* fixed test
2021-03-26 10:44:44 -07:00
Anton Dosov
ce6641bac1
[Search Sessions] Rename search sessions functional tests. Remove wip mention (#95330) 2021-03-26 18:08:46 +01:00
Scotty Bollinger
21192222fd
Add button on non-MVP pages to link to personal dashboard (#95441) 2021-03-26 11:46:01 -05:00
Anton Dosov
d305e2769a
[Data] Unify autocomplete plugin (#95405)
Move KQL suggestions to data plugin
2021-03-26 17:45:43 +01:00
John Schulz
ab33df898a
[Fleet] Bulk upgrade api response change (#95236)
## Summary
`/agents/bulk_upgrade` should return a response with a result for each agent given; including invalid or missing ids. It currently returns an empty object.

This PR includes commits from open PR https://github.com/elastic/kibana/pull/95024. The additions from this PR are https://github.com/jfsiii/kibana/compare/bulk-reassign-response-should-include-all-given-agents..871ebcb

[TS type diff for response](https://github.com/jfsiii/kibana/compare/bulk-reassign-response-should-include-all-given-agents..871ebcb#diff-7006a6c170a608c8c7211fc218c0a6f4bc8ff642c170ea264db4b1b5545fb728)

```diff
- // eslint-disable-next-line @typescript-eslint/no-empty-interface
- export interface PostBulkAgentUpgradeResponse {}

+ export type PostBulkAgentUpgradeResponse = Record<
+   Agent['id'],
+   {
+     success: boolean;
+     error?: string;
+   }
+ >;
```

### 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

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2021-03-26 11:40:38 -05:00
Joe Reuter
b7d84ab440
change layout of top values function (#95412) 2021-03-26 17:15:33 +01:00
Felix Barnsteiner
9ebb38974c
Add error.stack_trace to the default log formatter (#94906) 2021-03-26 12:09:34 -04:00