Commit graph

41356 commits

Author SHA1 Message Date
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
Daniil c7fc78ea08
[TSVB] Remove request facade and type server code (#92964)
* Remove request facade and update search strategies

* Use typescript

* Type files

* Update structure

* Update tests

* Type annotations

* Fix type for infra

* Enhance types

* Remove generics

* Use constant

* Update docs

* Type capabilities
2021-03-09 16:32:09 +03:00
Xavier Mouligneau af8d5eb4e6
[Security Solution] Add nested field inside of data provider (#93721)
* add nested field inside of dataprovider

* make sure to get nested

* fix elq server side

* add mock for nested attributes

* Add basic tests for nested fields query generation

* Update snapshots and failing tests with nestedFields

* fix nested date

Co-authored-by: Kevin Qualters <kevin.qualters@elastic.co>
2021-03-09 07:49:29 -05:00
ymao1 023d9a028b
[Alerting] Update alerting action variables to follow new terminology (#93836)
* Removing duplicate ActionVariable interface. Updating common action variables in UI

* Passing in alert values as rule variables in transform_action_params

* Fixing unit tests

* Fixing functional test

* Adding functiional test

* Updating paths

* Fixing i18n

* Fixing i18n

* Fixing api docs

* Plugin api build

* Moving spaceId and tags under rule prefix

* Using top level alert prefix

* Fixing i18n

* build api docs

* Fixing functional test

* Fixing functional test
2021-03-09 07:48:38 -05:00
Patryk Kopyciński ed2a1bfb1f
[Asset Management] Add support for Live queries in Osquery (#89889) 2021-03-09 13:25:47 +01:00
Pete Harverson a438810673
[ML] Fixes styling of Single Metric Viewer chart for dark theme (#93581)
* [ML] Fizes styling of Simgle Metric Viewer chart for dark theme

* [ML] Fix lint error in scss

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2021-03-09 11:50:31 +00:00
Robert Oskamp 6569e0cfa3
[ML] Functional tests - stabilize transform message assertion (#94056)
This PR stabilizes the transform message assertion during functional tests by only comparing lower cased strings.
2021-03-09 12:40:24 +01:00
Rudolf Meijering 1f4a72e776
Revert "[DOC] Clarify compatibility of Saved Objects across versions (#63090)" (#94070)
This reverts commit 4c58e70a7e.
2021-03-09 12:07:35 +01:00
Christos Nasikas bd354b437b
[Security Solution][Case] Fix SIR labels (#94050) 2021-03-09 05:27:41 -05:00
Christos Nasikas a563f5a72e
[Security Solution][Case] Fix bug where push button is not appearing after switching between connectors (#93986)
* Fix bug

* PR review
2021-03-09 05:22:33 -05:00
Uladzislau Lasitsa d754b0be68
Migration script for 'schema' (#93427)
Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2021-03-09 10:56:11 +03:00