Commit graph

37253 commits

Author SHA1 Message Date
spalger
6eeab00944 Revert "removing kibana_datatable in favor of datatable` (#75184)"
This reverts commit 255b865be8.
2020-10-13 08:53:14 -07:00
Michael Olorunnisola
5bf7966f10
[Security Solution][Resolver] Replace copy-to-clipboard with native navigator.clipboard (#80193) 2020-10-13 11:41:05 -04:00
Robert Austin
6ab4be5277
[Security Solution] Reduce initial bundle size (#78992)
* Load the redux store factory and initial state factory lazily
* Combine certain dynamic imports to reduce total async bundle size (this works because shared dependencies between async chunks are not being de-duped by Webpack.)
* Add explicit types in some areas.

Co-authored-by: Xavier Mouligneau <189600+XavierM@users.noreply.github.com>
2020-10-13 11:21:12 -04:00
Brent Kimmel
8d0a96afc7
[Security Solution][Resolver] Fix Resize node box-shadow bug (#80223)
Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2020-10-13 11:09:20 -04:00
EamonnTP
af6d287653
Move observability content (#79978) 2020-10-13 16:08:48 +01:00
spalger
4f4abf2286 skip flaky suite (#79389) 2020-10-13 08:06:23 -07:00
Peter Pisljar
255b865be8
removing kibana_datatable in favor of datatable` (#75184) 2020-10-13 17:00:38 +02:00
Dima Arnautov
f4534674f2
[ML] Fixes for anomaly swim lane (#80299)
* [ML] add swim lane styles for dark theme

* [ML] fix global time range update on sell selection

* [ML] fix getSelectionTimeRange

* [ML] fix range selection for embeddable

* [ML] fix job selection

* [ML] fix swim lane limit
2020-10-13 16:54:15 +02:00
Marco Liberati
1290ef479f
[Lens] Smokescreen lens test unskip (#80190)
Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2020-10-13 16:30:32 +02:00
Yuliia Naumenko
62b849846d
Improved AlertsClient tests structure by splitting a huge alerts_client.tests.ts file into a specific files defined by its responsibility. (#80088)
fairly large refactor, but no functional changes
2020-10-13 10:14:03 -04:00
Cauê Marcondes
acfee87210
[APM] React key warning when opening popover with external resources (#80328) 2020-10-13 16:11:55 +02:00
Alexey Antonov
1d1c3c7ef3
[Step 1] use Observables on server search API (#79874)
* use Observables on server search API

* fix PR comments

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2020-10-13 16:47:23 +03:00
Mike Côté
e0bb8605b4
Apply back pressure in Task Manager whenever Elasticsearch responds with a 429 (#75666)
* Make task manager maxWorkers and pollInterval observables (#75293)

* WIP step 1

* WIP step 2

* Cleanup

* Make maxWorkers an observable for the task pool

* Cleanup

* Fix test failures

* Use BehaviorSubject

* Add some tests

* Make the task manager store emit error events (#75679)

* Add errors$ observable to the task store

* Add unit tests

* Temporarily apply back pressure to maxWorkers and pollInterval when 429 errors occur (#77096)

* WIP

* Cleanup

* Add error count to message

* Reset observable values on stop

* Add comments

* Fix issues when changing configurations

* Cleanup code

* Cleanup pt2

* Some renames

* Fix typecheck

* Use observables to manage throughput

* Rename class

* Switch to createManagedConfiguration

* Add some comments

* Start unit tests

* Add logs

* Fix log level

* Attempt at adding integration tests

* Fix test failures

* Fix timer

* Revert "Fix timer"

This reverts commit 0817e5e6a5.

* Use Symbol

* Fix merge scan

* replace startsWith with a timer that is scheduled to 0

* typo

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
Co-authored-by: Gidi Meir Morris <github@gidi.io>
2020-10-13 09:32:49 -04:00
Joe Reuter
cd84ace53d
[Lens] Leverage original http request error (#79831) 2020-10-13 15:17:40 +02:00
Christos Nasikas
16e1598c05
[Security Solution][Case] Improve ServiceConnectorCaseParams type (#80109)
Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2020-10-13 16:12:03 +03:00
Xavier Mouligneau
755d63a1e9
[SECURITY_SOLUTION] Fix query on alert histogram (#80219)
* try catch the buildEsQuery

* add test
2020-10-13 09:07:04 -04:00
Alison Goryachev
f994e17557
[DOCS] Update ingest node pipelines doc (#79187) 2020-10-13 09:01:00 -04:00
John Schulz
2af36ed1ac
[Ingest Manager] Split up OpenAPI spec file (#80107)
## Summary

replaces https://github.com/elastic/kibana/pull/77378 
fixes https://github.com/elastic/kibana/issues/77290

 * Replace the 4000+ line `spec_oas3.json` file with one ~75 line overview file `entrypoint.yaml` which imports the various pieces from other directories.
 * Switched from JSON to YAML for "source" files because they're less noisy & more human-friendly. `package-registry` & `package-spec` both define specs in YAML as well. We can always convert them to JS for any library that needs it.



## Dev docs
### New structure

```
openapi/
├── README.md
├── bundled.json
├── bundled.yaml
├── components/
├── entrypoint.yaml
└── paths/
```

There are `README.md` files in `openapi`, `openapi/components`, & `openapi/paths` with information about the purpose, conventions, decisions, etc for that directory

* `entrypoint.yaml` is the overview file which links to the various files on disk.
* `bundled.{yaml,json}` is the resolved output of that entry & other files in a single file. 
    <details><summary>how these were generated (requires node 12+)</summary>

    ```
    nvm use 12;
    npx @redocly/openapi-cli bundle entrypoint.yaml -o bundled.json
    npx @redocly/openapi-cli bundle entrypoint.yaml -o bundled.yaml
    ```
    </details>

    <details><summary>How to generate with node 10+</summary>

    ```
    npx swagger-cli bundle -o bundled.json -t json entrypoint.yaml
    npx swagger-cli bundle -o bundled.yaml -t yaml entrypoint.yaml
    ```
    </details>

 * [Paths](paths/README.md): Started with a flat `paths` directory with each path in a separate file. We can move on to a nested file-per-operation like https://github.com/elastic/kibana/pull/77378 or any other approach later

    <details><summary><code>tree ./paths</code></summary>

    ```
    paths/
    ├── README.md
    ├── agent_policies.yaml
    ├── agent_policies@delete.yaml
    ├── agent_policies@{agent_policy_id}.yaml
    ├── agent_policies@{agent_policy_id}@copy.yaml
    ├── agent_status.yaml
    ├── agents.yaml
    ├── agents@bulk_upgrade.yaml
    ├── agents@enroll.yaml
    ├── agents@setup.yaml
    ├── agents@{agent_id}.yaml
    ├── agents@{agent_id}@acks.yaml
    ├── agents@{agent_id}@checkin.yaml
    ├── agents@{agent_id}@events.yaml
    ├── agents@{agent_id}@unenroll.yaml
    ├── agents@{agent_id}@upgrade.yaml
    ├── enrollment_api_keys.yaml
    ├── enrollment_api_keys@{key_id}.yaml
    ├── epm@categories.yaml
    ├── epm@packages.yaml
    ├── epm@packages@{pkgkey}.yaml
    ├── install@{os_type}.yaml
    ├── package_policies.yaml
    ├── package_policies@{package_policy_id}.yaml
    └── setup.yaml
    ```
    </details>

  * [Components](components/README.md): Reusable components like [`schemas`](https://github.com/OAI/OpenAPI-Specification/blob/master/versions/3.0.2.md#schemaObject), [`responses`](https://github.com/OAI/OpenAPI-Specification/blob/master/versions/3.0.2.md#responseObject) [`parameters`](https://github.com/OAI/OpenAPI-Specification/blob/master/versions/3.0.2.md#parameterObject), etc
    <details><summary><code>tree ./components</code></summary>

    ```
    components/
    ├── README.md
    ├── callbacks
    ├── examples
    ├── headers
    │   └── kbn_xsrf.yaml
    ├── links
    ├── parameters
    │   ├── kuery.yaml
    │   ├── page_index.yaml
    │   └── page_size.yaml
    ├── request_bodies
    ├── responses
    ├── schemas
    │   ├── access_api_key.yaml
    │   ├── agent.yaml
    │   ├── agent_event.yaml
    │   ├── agent_metadata.yaml
    │   ├── agent_policy.yaml
    │   ├── agent_status.yaml
    │   ├── agent_type.yaml
    │   ├── bulk_upgrade_agents.yaml
    │   ├── enrollment_api_key.yaml
    │   ├── new_agent_event.yaml
    │   ├── new_agent_policy.yaml
    │   ├── new_package_policy.yaml
    │   ├── package_info.yaml
    │   ├── package_policy.yaml
    │   ├── search_result.yaml
    │   └── upgrade_agent.yaml
    └── security_schemes
    ```    
</details>
2020-10-13 09:00:31 -04:00
Paul Tavares
3e0baff070
[SECURITY_SOLUTION][ENDPOINT] Fix label on Trusted App create name field (#80001)
* Correct the Name field label on the Trusted Apps Create form to say "Name your trusted application" (was "Name your trusted app application").
2020-10-13 08:30:04 -04:00
Nicolas Chaulet
c36a27683c
[Ingest Manager] Fix agent policy bump revision to create only one POLICY_CHANGE action (#80081) 2020-10-13 08:24:45 -04:00
Bohdan Tsymbala
bc1de5b5b9
Grid layout fixes (#80305)
* fixes to make grid layout a bit more solid.

* Changed the spacing a bit more.

* Updated snapshot.
2020-10-13 14:21:20 +02:00
Bohdan Tsymbala
27a6a6752d
Added component to truncate text programmatically and add tooltips. (#80198)
* Added component to truncate text programmatically and add tooltips. Changed all field text values to use this component.

* Fixed build failures.

* Switched from FC component to one without children

Co-authored-by: Paul Tavares <56442535+paul-tavares@users.noreply.github.com>

* Added some docs for the shared component.

* Updated snapshots.

Co-authored-by: Paul Tavares <56442535+paul-tavares@users.noreply.github.com>
2020-10-13 14:17:50 +02:00
Søren Louv-Jansen
a811b74815
Explicitly add permission for every single feature (#80157) 2020-10-13 13:52:15 +02:00
Jean-Louis Leysens
a0c649ee97
[ILM] Cloud-specific changes for 7.10 (#79650)
* added cloud cold tier specific call out, probably wip

* added jest test

* rephrase copy

* Added logic for showing/hiding data tier allocation option

- Added server-side test for detecting legacy config
- Added client-side test for asserting on cloud data tier option
  is hidden

* added test for not-on-cloud case

* Refactored logic for rendering data allocation notices

Also updated a comment.

* paraphrashing of Adams copy recommendation

* Fix comment

* address pr feedback

* clarify slight hack comment

* complete refactor of new flag for tests

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2020-10-13 13:41:28 +02:00
ymao1
7b00052c5b
[Alerting] Prompt for confirmation when saving alert with no action (#79892)
* Adding save confirmation for new alerts with no associated actions

* Adding functional tests

* Fixing uptime alert test

* Fixing uptime alert test

* PR fixes

* Updating confirmation modal wording

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2020-10-13 07:36:53 -04:00
Mikhail Shustov
190fba102e
Add links to deps analysis tools (#79624)
* add links

* anoter link
2020-10-13 12:14:39 +02:00
Tim Roes
162cf2eef9
Improve vis editor typings (#80004)
* Improve vis editor typings

* Move VisEditorContructor to visualize

* Fix tests

* Fix typings

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2020-10-13 10:59:06 +02:00
Alexey Antonov
ce9ccc582e
Line Visualization improper scaling can result in gaps #79663 (#80135)
Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2020-10-13 10:36:11 +03:00
Christos Nasikas
619ba21152
[Security Solution][Timeline] Fix SelectableTimeline search (#80128) 2020-10-13 10:09:25 +03:00
Matthew Kime
0dba45d247
move field_mapping util to saved_objects plugin (#79918)
* move field_mapping util to saved_objects plugin
2020-10-12 20:21:04 -05:00
Melissa Alvarez
e858cbc4c8
[ML] Datagrid: Ensure column content with 'boolean' schema is not capitalized (#80041)
* overwrite css capitalization of boolean schema columns

* update css
2020-10-12 21:01:46 -04:00
Tyler Smalley
8da824e100
[CI] Correctly resolve repository root for JUnit reports (#80226)
Signed-off-by: Tyler Smalley <tyler.smalley@elastic.co>
2020-10-12 16:57:16 -07:00
Sandra Gonzales
57413f8cb7
[Ingest Manager] Fix package upgrade breaking after first rollover before new data has arrived (#79887)
* build datastream name from index name

* query for data_stream constants to create data stream name

* simply datastream tests and add a test to upgrade after a datastream rolls over

* improve query

* remove dup
2020-10-12 19:30:39 -04:00
Patryk Kopyciński
c00fe2e78c
[Security Solution] Fix positioning of Kibana banners list inside Sec… (#80124) 2020-10-12 22:33:59 +02:00
Sandra Gonzales
5245417897
add missing await to fix test (#80202) 2020-10-12 15:54:56 -04:00
Justin Kambic
c2daceedc2
Revert test data changed in previous commit. (#79479)
Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2020-10-12 15:49:22 -04:00
Steph Milovic
87715a21b0
[Security Solution] [Sourcerer] Jest beef up (#79907) 2020-10-12 13:40:25 -06:00
Nathan L Smith
5e79523e30
Re-enable transaction duration alert story (#80187)
This was disabled in an earlier version of Storybook but works now.
2020-10-12 13:34:51 -05:00
Spencer
fbe3418077
[npm] remove canvas dep (#80185)
Co-authored-by: spalger <spalger@users.noreply.github.com>
2020-10-12 11:24:40 -07:00
gchaps
d45bedc848
[DOCS] Redirects ILM docs to Elasticsearch reference (#79798)
* [DOCS] Redirects ILM docs to Elasticsearch reference

* Update docs/redirects.asciidoc

Co-authored-by: James Rodewig <40268737+jrodewig@users.noreply.github.com>

* Update docs/redirects.asciidoc

Co-authored-by: James Rodewig <40268737+jrodewig@users.noreply.github.com>

Co-authored-by: James Rodewig <40268737+jrodewig@users.noreply.github.com>
2020-10-12 11:17:55 -07:00
Dario Gieselaar
a6b32ab0a2
[APM] Catch health status error from ML (#80131)
Closes #80119.
2020-10-12 20:16:51 +02:00
Justin Kambic
51e93dfe64
Fix layout and remove title for add alert popover. (#77633)
Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>
Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2020-10-12 14:14:11 -04:00
Matthias Wilhelm
3f3589d74b
[Discover] Loading spinner cleanup (#79819) 2020-10-12 20:11:20 +02:00
Jonathan Buttner
591585df17
[Security Solution] [Resolver] Remove related events api (#79036)
* Removing old related events route

* Removing outer describe block

Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>
2020-10-12 13:22:33 -04:00
Jonathan Buttner
bc6ba87330
[Ingest Manager] Remove fields from index pattern during package uninstall (#80082)
* Correctly removing index pattern fields

* Adding comment about try/catch
2020-10-12 13:19:50 -04:00
Mikhail Shustov
ecbba93fac
do not refetch license if signature header absents from a response (#79645)
Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2020-10-12 19:12:04 +02:00
Nathan L Smith
69564983c2
Only send agent data for non-opentelemetry agents (#79587) 2020-10-12 11:54:11 -05:00
Peter Pisljar
1a3c0591b6
telemetry and reference extraction/injection for expression service (#72438) 2020-10-12 18:24:06 +02:00
CJ Cenizal
82478c3559
Revert "Revert "Add support for runtime field types to mappings editor. (#77420)" (#79611)" (#79940)
This reverts commit e01d538e32.

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2020-10-12 09:12:34 -07:00
Jonathan Buttner
a89a4b1ab6
[Ingest Manager] Index pattern installation use requested package version (#80079)
* Install the requested package version

* Add test for correct package fields

* Addressing feedback
2020-10-12 11:18:29 -04:00