Commit graph

33370 commits

Author SHA1 Message Date
Pierre Gayvallet e5f56ad7a7
[RFC] Global search API (#64284)
* initial file import

* update types

* update RFC PR number

* first draft complete

* draft v1.1.0

* initial self review

* nits and comments

* add 'preference' option

* change meta type to Record<string, Serializable>

* specify cancellation

* remove generic for GlobalSearchResponse, use distinct type on client and server

* use plain string instead of enum for GlobalSearchResult.type

* remove terminology from unresolved questions

* update pros/cons of core vs plugin

* GS is exposed from a plugin instead of core

* remove the server.publicAddress proposal, return mixed abs url / rel paths instead

* distinguish result type between GS api and result providers

* return batched results, no longer sort

* remove request from GlobalSearchProviderContext

* add maxResults to GlobalSearchProviderFindOptions

* nit/typo
2020-05-18 18:05:24 +02:00
Robert Oskamp 7364f7f0c1
[ML] Functional tests - stablize AD job creation checks (#66733)
With this PR, anomaly detection jobs are checked to have a processed_record_count > 0 before waiting for a stopped datafeed.
2020-05-18 17:29:24 +02:00
Shahzad 1c7227933d
[Uptime] Remove error while index pattern is loading (#66729) 2020-05-18 16:23:17 +02:00
Joe Reuter 404743a9ae
stabilize listing page object (#66564) 2020-05-18 13:29:26 +02:00
Daniil Suleiman 828108729a
Prevent further failures if timezone was not set (#66529)
Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>
2020-05-18 12:53:00 +03:00
Dima Arnautov a997d1fbf5
[ML] fix url assertion (#66850) 2020-05-18 10:12:04 +02:00
Brian Seeders 10ff9a90d0
Skip failing lens test(s). #66779 2020-05-17 22:43:52 -04:00
Pierre Gayvallet 61936a1870
[SOM] Preserve saved object references when saving the object (#66584)
* create field for references and add comments

* add FTR test

* remove comments

* address comments

* use real reference in dataset and assert against it.
2020-05-16 09:08:45 +02:00
Mikhail Shustov 74611e742d
Use ES API from start contract (#66157)
* watcher uses es api from start

* CCR uses ES API from start contract

* Rollup uses ES API from start contract

* Transform uses ES API from start contract

* Snapshot_restore uses ES API from start contract

* remove excessive logging. platform logs all the lifecycles

* file uploader uses ES API from start contract

* remove unnecessary async

* use async getter

* update rollup custom client usage

* address cj comment

* roll back changes. maps tests are failing

Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>
2020-05-16 09:04:51 +02:00
CJ Cenizal bfdeb10c15
Reorganize Management apps into Ingest, Data, Alerts and Insights, Security, Kibana, and Stack groups (#65796) 2020-05-15 16:11:27 -07:00
Andrew Cholakian ac0946069b
[Uptime] Fix flaky navigation to certs page in tests (#66806)
Fix flaky navigation to certs page in tests.

Fixes https://github.com/elastic/kibana/issues/66778
2020-05-15 17:34:55 -05:00
Nathan Reese 09c950ba6b
[Maps] Do not check count for blended layers when layer is not visible (#66460)
* [Maps] Do not check count for blended layers when layer is not visible

* move visibility logic to map_actions where syncData is called

* clean up

* fix syntax error

* remove async action

* make syncDataForAllLayers a proper redux action

* simplify

* fix functional test

Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>
2020-05-15 16:28:50 -06:00
Frank Hassanabad 3228f1d137
[SIEM] Fixes glob patterns from directory changes recently for GraphQL
## Summary

Our directory structure has changed recently and the GraphQL needs to be updated for it to find the new location of the graphql files. I used a more global glob approach which will make it easier to change directories again and not have it break. 

This does cause the generated file to have different positions and looks like changes but they are just movements.

To test this:

* Check it out
* Run this:
```sh
 cd $HOME/projects/kibana/x-pack/plugins/siem && node scripts/generate_types_from_graphql.js
```

And ensure the types do not change and you can run a type check like so:

```sh
cd $HOME/projects/kibana && node scripts/type_check.js --project x-pack/tsconfig.json
```
2020-05-15 15:59:59 -06:00
Tiago Costa a8e82118c8
chore(NA): bump static-fs to 1.0.2 (#66775)
Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>
2020-05-15 21:32:27 +01:00
Nathan Reese 8dc8aa0c64
[Maps] Handle cross cluster index _settings resp (#66797) 2020-05-15 14:18:39 -06:00
Frank Hassanabad ab2600f823 [SIEM][Lists] Adds 90% of the REST API and client API for exception lists and exception items
## Summary

See for more details:
https://github.com/elastic/kibana/issues/65938

Adds pieces of the `exception list` and `exception list item` and refactors/cleans the code up where I had parts incorrect with little things such as the javascript library io-ts. Some unit tests were added but I am holding off until more of the operations solidify before adding the unit tests. Everything is still behind a feature flag that must be enabled and not advised still at this point to use so I feel ok pushing these parts forward.

Adds to the API:
- Create exception list
- Read exception list
- Update exception list
- Delete exception list (and exception list items that are associated with it)
- Create exception list item
- Find exception list (/_find)
- Read exception list item
- Update exception list item
- Delete exception list items individually
- Find exception list item (/_find)

What is still missing from the REST and client API?
- Patch exception list
- Patch exception list item
- Bulk versions of everything
- Import/Export options for these exception lists and list items

### Manual testing and REST API endpoints

Go here:
```sh
/projects/kibana/x-pack/plugins/lists/server/scripts
```

See the files:

```sh
delete_all_exception_lists.sh
delete_exception_list.sh
delete_exception_list_by_id.sh
delete_exception_list_item.sh
delete_exception_list_item_by_id.sh
exception_lists
find_exception_list_items.sh
find_exception_lists.sh
get_exception_list.sh
get_exception_list_by_id.sh
get_exception_list_item.sh
get_exception_list_item_by_id.sh
post_exception_list.sh
post_exception_list_item.sh
update_exception_list.sh
update_exception_list_item.sh
```

Ensure you first run:

```sh
./hard_reset
```

and ensure you have setup your kibana.dev.yml to have:

```yml
# Enable lists feature
xpack.lists.enabled: true
xpack.lists.listIndex: '.lists-frank'
xpack.lists.listItemIndex: '.items-frank'
```

Then you can use the above scripts to create, read, update, and delete exception list and exception list items as well as perform find commands against them all.

### Checklist

Delete any items that are not applicable to this PR.

- [x] [Unit or functional tests](https://github.com/elastic/kibana/blob/master/CONTRIBUTING.md#cross-browser-compatibility) were updated or added to match the most common scenarios

Note: Some but limited unit tests at this point.
2020-05-15 14:17:18 -06:00
Pierre Gayvallet 91ed1dd87c
allow any type for customResponseHeaders config (#66689)
* allow any type of value for customResponseHeaders and convert them

* fix test config creation

* add `?? {}` to avoid breaking all tests...
2020-05-15 22:05:54 +02:00
Nathan L Smith 7f7585de27
[APM] Disable map layout animation (#66763)
* [APM] Disable map layout animation

Don't animate the layout. Keep animation for centering/zoom.

`preventDefault` when centering an already focused node so it doesn't do an unnecessary navigation.

Fixes #66695
2020-05-15 14:39:22 -05:00
Quynh Nguyen ae663eb7d0
[ML] Add linking to dataframe from job management tab (#65778)
* [ML] Add linking to dataframe from job management tab

* [ML] Add linking to df analytics job list from management tab

* [ML] Add ability to query text/job id from url for DFA page

* [ML] Add linking to dataframe from job management tab

* [ML] Add linking to df analytics job list from management tab

* [ML] Add ability to query text/job id from url for DFA page

* [ML] Refactor get_job_id_url util function & clean up

* [ML] Add declaration file for job_list's utils

Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>
2020-05-15 14:31:12 -05:00
Thomas Neirynck b2df052952
[Maps] Get number of categories from palette (#66454) 2020-05-15 14:06:06 -04:00
Mikhail Shustov 915ff5db50
move oss features registration to KP (#66524)
* register OSS features with KP SO types only

* use Licensing plugin API in features plugin

* add plugin tests

* filter hidden types out

* cleanup tests

* rename

* add degug logging

* add warning for setup contract

* fix typo
2020-05-15 20:01:33 +02:00
Spencer 4e0921d41e
[kbn/plugin-helpers] typescript-ify (#66513) 2020-05-15 10:35:44 -07:00
Brian Seeders aca45a7fac
Add kibana-operations as codeowners for .ci/es-snapshots and vars/ (#66746) 2020-05-15 13:09:39 -04:00
Dmitry Lemeshko f575913850
FTR: move basic services under common folder (#66563)
* [CODEOWNERS] set kibana-qa to own test/functional/services

* [functional/services] move low-level services to common folder

* update codeowners

* update imports

Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>
2020-05-15 18:28:28 +02:00
Josh Dover 62e8214f90
Migrate Beats Management UI to KP (#65791) 2020-05-15 10:22:12 -06:00
Brian Seeders 02f2e80fce
[CI] Add 20 minutes to overall build timeout 2020-05-15 12:15:19 -04:00
Mikhail Shustov 0cc5d133d9
lint import from restricted zones for export exressions (#66588)
* line restricted zones for export exressions

* more robust rule

* fix or mute eslint errors

Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>
2020-05-15 17:21:42 +02:00
patrykkopycinski 9df3d9faab
[SIEM][Detection Engine] Add validation for Rule Actions (#63332) 2020-05-15 17:15:24 +02:00
Stacey Gammon 976ff05617
KP plugins shouldn't need package.json (#66654)
Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>
2020-05-15 10:59:42 -04:00
Brian Seeders e3f6da0416
Replace agent metrics link with the new one (#66632) 2020-05-15 10:41:02 -04:00
Brian Seeders 1c004e98d6
[CI] Add one retry to setup step (#66638) 2020-05-15 10:40:30 -04:00
Brian Seeders 58b77fcb34
[CI] Add slack alerts to tracked branch jobs, change default channel, change formatting (#66580) 2020-05-15 10:39:58 -04:00
Luke Elmers 7366552a32
[docLinks] Add docLinks to CoreSetup. (#66631)
* Add docLinks to CoreSetup.

* Update generated docs.

* Add inline snapshot for expect test error.

Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>
2020-05-15 08:39:28 -06:00
Lisa Cawley 4b8eb06a5a
[DOCS] Rename monitoring collection from internal to legacy (#65781) 2020-05-15 07:34:39 -07:00
Joe Reuter cdb59c7662
unskip newsfeed tests (#66562) 2020-05-15 16:05:29 +02:00
Maryia Lapata 7c8eea16e5
[NP] Migrate uiSettings owned by Kibana app (#64321)
* Move META_FIELDS_SETTING, DOC_HIGHLIGHT_SETTING to data plugin.ts

* Refactor table_list_view.tsx to no longer get PER_PAGE_SETTING by uiSettings

* Migrate graph, visualize, dashboard usage of saved_objects module constants to accessor functions

* Remove redundant logging in plugins start and setup methods

Co-authored-by: Matthias Wilhelm <matthias.wilhelm@elastic.co>
2020-05-15 14:44:18 +02:00
Robert Oskamp e28afffb98
[ML] Functional tests - stabilize typing in DFA mml input (#66706)
This PR wraps the model memory value setting during data frame analytics job creation in a retry.
2020-05-15 14:33:54 +02:00
Nathan Reese f33b6b6adb
[Map] return bounding box for static feature collection without joins (#66607)
* [Map] return bounding box for static feature collection without joins

* tslint

Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>
2020-05-15 06:31:45 -06:00
Joe Reuter 7254727149
remove trailing slash in graph sample data links (#66358) 2020-05-15 14:04:04 +02:00
Christos Nasikas d17489790c
[SIEM][CASE] Fix bug when connector is deleted. (#65876) 2020-05-15 14:43:02 +03:00
Christos Nasikas a3ce65e2d0
[SIEM][CASE] Improve layout (#66232) 2020-05-15 14:14:48 +03:00
Jean-Louis Leysens 2fe3e4e121
[Index Management] Support Hidden Indices (#66422)
* First iteration of supporting hidden indices in indices table

Tests probably have broken

* Remove unused code

* Fix logic when calling get index endpoint with empty array

Also remove unused translations

* More terse!

Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>
2020-05-15 13:06:40 +02:00
Aleh Zasypkin aff7f909a9
Add Login Selector functional tests. (#65705) 2020-05-15 12:33:45 +02:00
Joe Reuter 52070091f4
Lens drilldowns (#65675) 2020-05-15 12:01:27 +02:00
Dima Arnautov f7a89601c7
[ML] Custom template for apiDoc markdown (#66567)
* [ML] custom template for apiDoc markdown

* [ML] update apiDoc description
2020-05-15 11:41:29 +02:00
Rudolf Meijering 795483d9b5
Don't bootstrap core type emits (#66377) 2020-05-15 11:03:46 +02:00
Matthias Wilhelm f0d1dce93b
[Dashboard] Improve loading error handling (#66372)
* Improve dashboard loading error handling, prevent a white screen without error msg

* Remove redirectWhenMissing, since it's not needed anymore
2020-05-15 10:46:32 +02:00
Casper Hübertz d0c91ed7b1
[APM] Minor style fixes for the node strokes (#66574)
In order to improve visibility on larger zoom levels, we’re changing the stroke widths slightly.
2020-05-15 09:50:40 +02:00
Jen Huang 07e57fbfc0
[Ingest Manager] Fix create data source from integration (#66626)
* Fix add datasource button from integration not responsive

* Fix React key prop warnings

Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>
2020-05-14 17:11:00 -07:00
Zacqary Adam Xeper 6b6242a278
[Metrics UI] Fix default metric alert interval for new conditions (#66610) 2020-05-14 18:49:10 -05:00