Commit graph

13751 commits

Author SHA1 Message Date
Thomas Neirynck 0076384a0f
[Maps] Implement fields and bounds retrieval on GeoJsonFileSource (#88294) 2021-01-26 12:32:12 -05:00
Mikhail Shustov 1f644e44c9
Update babel to v7.12 (#89006)
* bump babel version

* build kbn-pm

* fix integration test

* remove cicular dependency between files which crashes Kibana  in rutime

Co-authored-by: spalger <spalger@users.noreply.github.com>
2021-01-26 17:42:41 +01:00
Dima Arnautov b35a4e645d
[ML] Fix swim lane time selection with a single time point and the Watcher URL (#89125)
* [ML] fix swim lane selected times with only start boundaries

* [ML] unit test

* [ML] update url variables

* [ML] selectedLanes to an array type

* [ML] handle legacy query params
2021-01-26 17:36:44 +01:00
Scotty Bollinger 110e880fbf
[Workplace Search] Add source logic and sources logic unit tests (#89247)
* Move shared data to mock

* Change name of mock

Everywhere else we don’t use the “mock” prefix for mocked data so I’m changing here to match.

Also added missing “size” prop from mock.

* Remove unused actions

These were missed on the migration to the new add_source_logic file. All of that logic lives there now

* Add tests for source logic

* REmove resetFlashMessages

This is no longer used as Kibana resets its own. This was removed from the component already.

* Export items for use in tests

* Remove unnecessary condition

It’s literally not possible for this function to receive an empty contentSources parameter. Not sure why this was added. Even if the server sends response with no privateContentSources, the reducer falls back to an empty array.

* Add tests for sources logic

* Fix typo
2021-01-26 10:06:38 -06:00
Joe Reuter a4c884b92b
tsconfig file for lens (#89135) 2021-01-26 16:48:47 +01:00
Nathan L Smith ba37975fbc
Show legend on error rate chart (#89234)
This probably was hidden for reasons related to implementing (or deferring the implementation of) comparisons.
2021-01-26 08:41:23 -06:00
Devin W. Hurley 3121e47a2d
[Security Solution] [Detections] Only check privileges if index param is not empty in rule definition (#89147)
* only check privileges if index param is not empty

* fix jest test i added in previous commit, fixes bug where timestamp field was printed twice in partial failure message

* adds two unit tests to check the error messages written from hasTimestampFields util function
2021-01-26 08:25:58 -05:00
Dhruv Bodani c74a2b25a6
add a "Refresh" button to the alerts list and alert details views (#87016)
* add refresh button to alerts list

* add refresh button to Alerts Details Page

* fix: add EuiFlexItem tag

* add tests for refresh button in alerts_list and alert_details

* fix: add test for requestRefresh and loadAlerts

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2021-01-26 07:41:24 -05:00
Shahzad 88f76b5995
Reduce index management plugin page load bundle size (#88656)
Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2021-01-26 12:26:11 +01:00
Liza Katz de44af3eeb
Improve extend search session UI (#89126)
* Fix extend search session UI

* code review
2021-01-26 13:08:03 +02:00
Mikhail Shustov 1994c5bfd9
[Core] remove unused "pageNavigation" setting (#89160)
* remove unused advanced setting

* remove docs
2021-01-26 09:49:04 +01:00
Daniil ad953ee04e
[Visualizations] Changes in custom visualizations support (#88317)
* Convert to typescript

* Move related files directly into plugin

* Implement toExpressionAst

* Remove build_pipeline dedicated fn

* Async import converter

* Create a custom renderer

* Move function directly into plugin

* Update tests

* Move files directly into related plugins

* Remove ExprVis instance usage in maps visualizations

* Use uiState updates

* Fix minor issues

* Update expression builder

* Update styles

* Create wrapper component

* Update rendering

* Create region map expression renderer

* Fix tests and types

* Fix initial render

* Remove resize subscription

* Fix custom visualization expression

* Update region map expression in tests

* Update files structure

* Remove ReactVisController

* Remove base visualization renderer

* Remove extra vis properties

* Use requiresSearch flag for agg based vis

* Update types

* Remove visualization expression function

* Create toExpressionAst function

* Update custom visualization example

* Update interpreter functional tests

* Enhance VisTypeDefinition interface

* Enhance visualization types

* Update license

Co-authored-by: Alexey Antonov <alexwizp@gmail.com>
Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2021-01-26 10:57:09 +03:00
Chris Roberson da72cd47b2
Add toast for newly created alerts (#89202)
Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2021-01-25 21:11:32 -05:00
Chris Roberson 1750fc269c
[Monitoring] Fix newly added cloud link (#89067)
* Fix cloud link

* Update link

* Fix tests

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2021-01-25 21:10:05 -05:00
igoristic ca3f4de7d7
[Monitoring] No longer overwriting time to the 1h default (#88102)
* No longer overwriting time to the 1h default

* Added auto refresh
2021-01-25 21:01:50 -05:00
Andrea Del Rio fb536f5428
Make toolbar_button a shared component (#88386) 2021-01-25 14:14:47 -08:00
Phillip Burch 2ae2692f2b
Add null check for empty process data (#89187) 2021-01-25 16:04:34 -06:00
Patrick Mueller 14fa82dc54
[alerts] adds support for index threshold index param string type (#88540)
resolves https://github.com/elastic/kibana/issues/68575

The index threshold alert defines an `index` parameter which is
typed as `string | string[]`.  However the UI for this alert has
been typing it as only `string[]`.

This PR changes the UI to work with an incoming string value for
this parameter.  If the parameter is edited in the UI, it will always
be set as an array, even if there is only one element.
2021-01-25 16:43:46 -05:00
Chandler Prall 5d68b10106
Upgrade EUI to v31.3.0 (#88881)
* Bump EUI to v31.3.0

* jest snapshot updates

* Fixed space issue in kbnQueryBar date picker

* Removed unecessary space in query bar scss

Co-authored-by: miukimiu <elizabet.oliveira@elastic.co>
Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2021-01-25 14:39:20 -07:00
Constance a31c3eba13
[App Search] Add AnalyticsCards & AnalyticsChart components to analytics pages (#88930)
* Create reusable AnalyticsCards component

* Update EngineOverview to use new AnalyticsCards component

* Update Analytics overview with AnalyticsCards + data

* Update QueryDetail with AnalyticsCards + data

* Update Analytics overview with AnalyticsChart + data

- turns out we do need startDate after all for charts, so I added it back to types

* Update QueryDetail with AnalyticsChart + data

* [Polish] Dash click and no result lines to match standalone UI

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2021-01-25 12:24:04 -08:00
Constance 474af9f3eb
[Enterprise Search] Add Kea test helper for directly accessing listeners (#89061)
* Add getListeners to Kea test helpers

* Update TelemetryLogic to use new getListeners helper

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2021-01-25 11:56:42 -08:00
Nathan L Smith e5588a129b
Move EUI styled components integration to kibana_react (#86065)
...from xpack_legacy.

Remove the duplicated typings from the observability plugin and only use the ones from kibana_react.

Fixes #78248.
2021-01-25 13:48:35 -06:00
Nathan Reese 15a45e8c38
[Maps] fix users without access to Maps should not have the option to create them (#88830)
* [Maps] fix users without access to Maps should not have the option to create them

* fix test message

* wrap add geo field trigger in show capabilities check

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2021-01-25 12:25:52 -07:00
Alison Goryachev edb5e35151
[Painless Lab] Update server to use new es-js client (#88704) 2021-01-25 13:26:53 -05:00
Tiago Costa 342f9fbac1
skip failing es promotion suite (#89181) 2021-01-25 17:11:52 +00:00
Tiago Costa 592d79c210
skip failing es promotion suite (#89180) 2021-01-25 17:07:13 +00:00
Alison Goryachev 43db7e365f
[Search Profiler] Migrate server to new es-js client (#88725) 2021-01-25 11:27:59 -05:00
Pete Harverson 4bc5f01428
[ML] Add ML deep links to navigational search (#88958)
* [ML] Add ML deep links to navigational search

* [ML] Refactor register helper files

* [ML] Edit import in search_deep_links

* [ML] Move register_feature out of register_helper

* [ML] Add comment about registerFeature

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2021-01-25 16:20:14 +00:00
Shahzad 6391ef9c45
[Observability] Lazy load shared components (#88802)
Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2021-01-25 17:08:31 +01:00
Oliver Gupte e251ff4be5
[APM] Renames significant terms feature to "Correlations" (#88974) (#89028)
* [APM] Renames significant terms feature to "Correlations" (#88974)

* fix capitalizations

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2021-01-25 08:05:32 -08:00
Gidi Meir Morris f6837a1f66
made unit test more reliable (#89094)
Made unit test more reliable by using resolving promises rather than timed `await`s that could be flaky when the node event loop is overwhelmed.
2021-01-25 15:57:50 +00:00
Christos Nasikas 1714b22de7
[Security Solution][Case] Improve cases and actions docs (#87817) 2021-01-25 17:41:25 +02:00
Shahzad e7e42a4711
[Uptime] Display networks requests total (#88672) 2021-01-25 16:07:53 +01:00
Pierre Gayvallet 93c46f5dfc
Remove tag name validation (#88800)
* Remove tag name validation

* remove i18n key

* add FTR test on searching for tag with special chars in name
2021-01-25 15:29:10 +01:00
Sonja Krause-Harder 77851e8382
Ignore missing asset errors on remove. (#89115) 2021-01-25 15:01:29 +01:00
Shahzad e8f338e78c
[Uptime] Added View performance breakdown button (#88658)
Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2021-01-25 14:56:55 +01:00
Thom Heymann aeb6df30d5
Update user management page (#87133)
* Update user management page

* Fixed i18n errors

* Fix linting errors

* Add ids required for accessability

* Added suggestions from code review

* Fix test errors

* Fix types in fleet

* fix translations

* Fix i18n

* Added suggestions from code review

* Fix i18n errors

* Fix linting errors

* Update messaging

* Updated unit tests

* Updated functional tests

* Fixed functional tests

* Fix linting errors

* Fix React warnings

* Added suggestions from code review

* Added tests and renamed routes

* Fix functional tests

* Simplified API integration tests

* Updated copy based on writing suggestions

* Fixed unit tests

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2021-01-25 13:51:57 +00:00
Tiago Costa a5bb86482d
skip flaky suite (#89069) 2021-01-25 13:49:20 +00:00
Marco Liberati 99ffbbe357
[Lens] Restore a11y flacky tests (#88954)
Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2021-01-25 14:46:23 +01:00
Tiago Costa 50d8c69ea8
skip flaky suite (#88639) 2021-01-25 13:36:38 +00:00
James Gowdy f15a1e685c
[ML] Adding jobs stats to functions shared in setup contract (#88673)
* [ML] Adding jobs stats to functions shared in setup contract

* updating types

* adding datafeeds

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2021-01-25 11:36:48 +00:00
Shahzad 601d9fd018
[Uptime] waterfall view reduce opacity for blocking/waiting color (#88611)
Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2021-01-25 12:33:26 +01:00
Joe Reuter 9d7cac76f5
increase timeout on graph test for cloud (#88612) 2021-01-25 11:26:30 +01:00
Joe Reuter 02f24de899
[Lens] Add drag drop tests (#88660) 2021-01-25 11:25:46 +01:00
Peter Pisljar d81ab83c16
[examples] expressions explorer (#88344) 2021-01-22 19:52:47 +01:00
Kevin Logan 49d95f6fb1
[Fleet] Add updateFleetRoleIfExists() in order to update fleet_enroll permissions if role already exists (#88000)
Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2021-01-22 12:12:59 -05:00
Nathan Reese a0bfdf87fd
[Maps] fix Filter shape stops showing feedback when data refreshes (#89009)
* [Maps] fix Filter shape stops showing feedback when data refreshes

* update comment

* add curly braces around if
2021-01-21 19:35:40 -07:00
Nathan Reese 5908bd097f
[Maps] fix setting "apply global time" switch not working with blended vector layer (#88996)
* [Maps] fix setting "apply global time" switch not working with blended vector layer

* review feedback

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2021-01-21 18:27:27 -07:00
Scotty Bollinger 4281a347c6
[Workplace Search] Add tests for remaining Sources components (#89026)
* Remove history params

We already replace the history.push functionality with KibanaLogic.values.navigateToUrl but the history object was still being passed around.

* Add org sources container tests

* Add tests for source router

* Clean up leftover history imports

* Add tests for SourcesRouter

* Quick refactor for cleaner existence check

Optional chaining FTW

* Refactor to simplify setInterval logic

This commit does a refactor to move the logic for polling for status to the logic file. In doing this I realized that we were intializing sources in the SourcesView, when we are actually already initializing sources in the components that use this, which are OrganizationSources and PrivateSources, the top-level containers.

Because of this, I was able to remove the useEffect entireley, as the flash messages are cleared between page transitions in Kibana and the initialization of the sources ahppens in the containers.

* Add tests for SourcesView

* Fix type issue
2021-01-21 17:32:18 -06:00
Constance c495093f76
[App Search] Move generateEnginePath out from EngineLogic values to its own helper (#89022)
* [Feedback] Move generateEnginePath to its own standalone helper

- instead of living inside EngineLogic.values
- I forgot Kea lets us do this now!

* Update all components using generateEngineRouter to import helper directly
2021-01-21 14:39:14 -08:00