Commit graph

41216 commits

Author SHA1 Message Date
Michael Paul 426d495299
Fix "to to" spelling error (#93885)
* Fix "to to" spelling error

* Build API docs

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2021-03-10 17:46:31 +02:00
igoristic 1a3e8e8fa2
Changed the flag (#94167) 2021-03-10 10:15:47 -05:00
Alexey Antonov 50dac663fe
Fix cannot brush on bars of vertical bar chart to zoom into data (#94290)
Closes: #94248
2021-03-10 17:43:32 +03:00
Nathan Reese c9e81bed32
Update courier inspector stats to handle total object format (#93703)
* Update courier inspector stats to handle total object format

* tslint

* add TODO comment

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2021-03-10 06:21:31 -07:00
Yulia Čech cce4db8f77
[Remote clusters] Convert service files to TypeScript (#94138)
* Converted some js files to ts as preparation for remote clusters work for Cloud

* Updated the snapshots

* Removed non-null assertion operator in favor of a more explicit nullish coalescing operator
2021-03-10 13:50:16 +01:00
Zacqary Adam Xeper df0400daaa
[Metrics UI] Hide Create Alert options for a read-only user (#91951) 2021-03-10 12:45:57 +00:00
Pierre Gayvallet 00fcc2d3d0
remove HAPI plugins registration from legacy (#94262)
* remove HAPI plugins registration from legacy

* remove duplicate legacy integration tests
2021-03-10 13:34:34 +01:00
Walter Rafelsberger 066e47e9ea
[ML] Use unknown instead of any for type guards. (#94090) 2021-03-10 12:40:49 +01:00
Vadim Yakhin 2d60d238fc
[Workplace Search] Add Prompt to Security and Display Settings pages (#93838)
* Add UnsavedChangesPrompt to Security page

* Add UnsavedChangesPrompt to DisplaySettings page

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2021-03-10 07:40:22 -04:00
Jean-Louis Leysens 5e593e70cd
[Console] Improve error message when localStorage quota is reached (#93779)
* identify quota related errors and show error message

* * refactor isQuoteExceeded => isQuotaExceeded
* implement logic for call error notification once
* implement test to check that error notification is only called
  once

* refactor quota exceeded error checker

* copy update

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2021-03-10 12:09:42 +01:00
Angela Chuang 99f1512771
update script (#94265) 2021-03-10 05:38:06 -05:00
Pierre Gayvallet d0949121c8
Migrate /bootstrap.js endpoint to core (#92784)
* move bootstrap endpoint to core

* some initial cleanup

* hack around the 'try' auth status

* some UT

* more UT

* add try/catch around uISettings access

* add 'auth.isEnabled'

* remove dead files

* use `try` authent mode

* adapt UT

* revert themeTag movearound

* migrate apps route to core

* some cleanup

* nit

* add integration tests

* update generated doc

* add UT for /app route

* add etag IT

* nits

* remove auth.isEnabled API

* add tests on get_apm_config

* use string template instead of handlebars for bootstrap template

* improve plugin bundle tests

* update generated doc

* remove response.etag API

* update generated doc

* update generated doc

* update generated doc again

* extract getThemeTag

* add more unit tests
2021-03-10 10:35:26 +01:00
Joe Reuter f9e28831c5
[Lens] prevent double load in editor (#93930) 2021-03-10 09:00:01 +01:00
Tyler Smalley 7d7a16883c
Removes X-Pack Code plugin (#94240)
Signed-off-by: Tyler Smalley <tyler.smalley@elastic.co>
2021-03-10 02:32:29 -05:00
Garrett Spong 8a01d86528
[SecuritySolution][Detections] Enables Microsoft Teams for Detection Actions (#94239)
## Summary

This PR enables Microsoft Teams action type for the detection engine (originally developed/tested via https://github.com/elastic/kibana/pull/83169).

<p align="center">
  <img width="500" src="https://user-images.githubusercontent.com/2946766/110558632-0fccdf80-8100-11eb-8476-8adb2eab7134.png" />
</p>



### For maintainers

- [x] 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-03-09 23:56:07 -05:00
Jen Huang 67e968304e
[Fleet] Remove coreMigrationVersion from snapshot (#94235)
* Remove coreMigrationVersion from snapshot

(cherry picked from commit a8b9b41a68)

* Remove `latestVersion` too

(cherry picked from commit 6f3949c8d8)
2021-03-09 18:59:36 -08:00
Yara Tercero 37c9c5cc24
[Security Solution][Exceptions] - Fixes bug for prepopulated endpoint exceptions (#94025)
### Summary

Addresses #93559

In a previous PR where we added id to exception entries, this case was missed where the exceptions are prepopulated for endpoint alerts.
2021-03-09 17:43:26 -08:00
Constance 89b23c06da
[Enterprise Search] Upgrade Kea to 2.3, update LogicMounter helper w/ props support (#94232)
* Enhance our LogicMounter helper to accept and build props

* Update logic tests in AS that require props to now use LogicMounter

* Upgrade Kea to 2.3.0 for future BindLogic use
2021-03-09 17:09:50 -08:00
Nathan L Smith 0ac5e4db7c
Fix missing alerts menu (#94210)
In #92898 the `alerts` plugin was renamed to `alerting`. We were checking if this plugin is enabled with a check like `'alerts' in plugins`, which is not type checked.

Change the check to use `!!plugins.alerting` so this type of change will be caught in the future.

Rename `get_alert_capabilities` to `get_alerting_capabilities` to match the name of the exported function. Add a test for it.
2021-03-09 18:52:57 -06:00
Scotty Bollinger 89a43555f8
[Workplace Search] Make session_state optional (#94219)
Some OAuth plugins don’t send this key so we make it optional to prevent server errors.
2021-03-09 19:12:38 -05:00
Joe Portner 8d15c28899
Bump dependencies (#94175) 2021-03-09 18:56:11 -05:00
Tyler Smalley ec28b780db
[build] Set USER in Ironbank container (#93637)
Signed-off-by: Tyler Smalley <tyler.smalley@elastic.co>

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2021-03-09 18:11:22 -05:00
Larry Gregory d2b9caa1a7
Fix positioning of space name and avatar in selector dropdown (#94169) 2021-03-09 17:42:38 -05:00
Yuliia Naumenko 086762da6a
[Actions] Replaces legacy es client with the ElasticsearchClient (#93361)
* [Actions] Replaces legasy es client with the ElasticsearchClient

* fixed build

* fixed tests
2021-03-09 14:39:46 -08:00
Zacqary Adam Xeper 5d119cfcbb
[Fleet] Return empty agents list when submitting a kuery with no keys (#93844) 2021-03-09 16:10:56 -06:00
Marshall Main 3992ed13db
Move exceptions builder to lists plugin (#94002)
Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2021-03-09 16:39:23 -05:00
Rashmi Kulkarni ff2b3beaa8
Unskipping Dashboard listing functional test (#93843)
* fixes https://github.com/elastic/kibana/issues/74449

* unskipping to check the flakiness
2021-03-09 13:31:32 -08:00
Devon Thomson 1124fa2168
Renamed cancel button to Switch to view mode. Disabled switch to view mode when on new dashboard (#94147) 2021-03-09 16:08:21 -05:00
Nathan L Smith b6f8d3f8b6
Move anomaly jobs fetching to context (#94135)
* Revert "[APM] Hoist HeaderMenuPortal to prevent unmounts (#92012)"

Revert the change from #92012 to put the `HeaderMenuPortal` back within the routing context so getting data from the path params works.

Use a context to fetch the list of jobs and use it in the callout and the header menu icon. This makes it so the fetch only happens once.

A refetch function is exposed from the context and called when a new job is created.
2021-03-09 15:06:41 -06:00
Oliver Gupte 931b54f636
[APM] Handle correlations view with missing field names (#93443) (#94015)
* [APM] Handle correlations view with missing field names (#93443)

* fixes spelling

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2021-03-09 12:37:11 -08:00
Aaron Caldwell 4eff7a0709
[Maps][File upload] Use correctly formatted pipeline with no processors for geojson upload (#94145) 2021-03-09 15:32:11 -05:00
Jen Huang 394593ae94
Use password field for password vars (#94166) 2021-03-09 15:30:26 -05:00
Thomas Neirynck d78222b8e1
[Maps] Improve TMS language (#93863) 2021-03-09 15:03:14 -05:00
Jen Huang 3946c4ad91
[Fleet] Fix package policies created with null var values (empty defaults) (#94040)
* Make package validation be based on types

* Add package info to cache after it is generated from ES storage

* Add logging around package info retrieval and when cache is set

* Add snapshot api integration test for uploaded package info

* Use the apache package for snapshot test instead

* Remove date field from snapshot

* Update docs

* Fix streams getting overridden

* Add back package field to data streams

* PR fixes
2021-03-09 14:53:22 -05:00
Larry Gregory 99566a2248
Document DLS configuration within Kibana role management (#90329)
Co-authored-by: gchaps <33642766+gchaps@users.noreply.github.com>
Co-authored-by: Joe Portner <5295965+jportner@users.noreply.github.com>
Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2021-03-09 13:20:21 -05:00
John Schulz 8ce5cda582
[Fleet] Add links to OpenAPI spec files and online documentation (#94122)
## Summary

Added screenshots of two online viewers and links to the sites. 

<img width="934" alt="Screen Shot 2021-03-09 at 12 35 02 PM" src="https://user-images.githubusercontent.com/57655/110513158-eb5b0e00-80d3-11eb-82c4-de21c494589f.png">


### Checklist

- [x] [Documentation](https://www.elastic.co/guide/en/kibana/master/development-documentation.html) was added for features that require explanation or tutorials
2021-03-09 13:07:53 -05:00
Tyler Smalley 0b09e9c4ae
[jest] Removes un-used config files (#94134)
Signed-off-by: Tyler Smalley <tyler.smalley@elastic.co>
2021-03-09 18:05:20 +00:00
Tyler Smalley 3cabf8154f
Removes x-pack/.github directory (#94153)
This folder is left-over from when X-Pack was a separate repository

Signed-off-by: Tyler Smalley <tyler.smalley@elastic.co>
2021-03-09 18:04:10 +00:00
Quynh Nguyen be8ea1920f
[ML] Fix Data Visualizer not showing document count for non-time based indices (#93958)
Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2021-03-09 11:26:28 -06:00
Quynh Nguyen fcf397f9c3
[ML] Add functional tests for runtime mappings in Transforms (#92738)
Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2021-03-09 11:25:58 -06:00
Constance ee2ec0aded
[App Search] Add roleHasScopedEngines helper + small roles/ cleanup (#94038)
* Split out roles/ into separate files

- in preparation for new scoped engines helper

* Add new roleHasScopedEngines helper
2021-03-09 08:54:05 -08:00
Thomas Watson b862a6c181
Bump @storybook/* from 6.0.26 to 6.1.20 (#93386) 2021-03-09 08:51:37 -07:00
Joe Reuter 35d01f5a9b
make sure to render once (#93786) 2021-03-09 16:34:40 +01:00
Rudolf Meijering d657118aa0
Saved objects import compatibility across versions (#94072) 2021-03-09 16:07:08 +01:00
Chris Roberson 7d237b8f59
Fix issue with loading logstash node page under standalone cluster (#93617)
Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2021-03-09 10:00:45 -05:00
Byron Hulcher cceed8ddd6
[App Search] Add delete action to EnginesTable component (#92844)
* Add delete engine route to App Search

* Add new deleteEngine listener to EnginesLogic

* Convert EnginesTable Manage into a proper EuiBasicTable action

* Call EnginesLogic.actions.deleteEngine using new action in EnginesTable

* Manage action on EnginesTable should use eye icon

* Confirmation alert for delete action on EnginesTable

* Only display manage/delete actions to users with canManageEngines

* Add success message and reload after successful engine delete

* Jest tests for EngineTable actions

* Copy change for engine delete success message

* Fixing EnginesTable tests

* Adding more tests for DELETE engine route

* engineNameLink -> EngineNameLink

* Remove redundant test

* Convert Engine.type to enum EngineTypes

* Must use mountWithIntl

* Use platinum license instead of role ability check
2021-03-09 09:49:52 -05:00
Marco Liberati 8e6d4ee2f8
[Lens] Fix wrong suggestions from Datatable to other visualizations (#93920)
Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2021-03-09 15:31:17 +01:00
Walter Rafelsberger 326dfa43ca
[ML] Improves error handling for transform wizard when Kibana index pattern or saved search fails to load. (#93915)
Improves error handling for the transform wizard when Kibana index pattern or saved search fails to load.
Previously a non-existing index pattern or saved search or corrupt saved object could cause the page to end up blank. Improved error reporting will catch the problem and display an error callout.
2021-03-09 15:29:45 +01:00
Alison Goryachev 5744f2bc95
update console autocomplete for component templates (#92915) 2021-03-09 09:06:24 -05:00
Stacey Gammon 7d284e2bf4
Add our developer principles to our dev guide. (#93688)
* Create dev_principles.mdx

* add back elasticsearch dev principles link since it is actually public

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2021-03-09 08:44:22 -05:00