Commit graph

3741 commits

Author SHA1 Message Date
Jean-Louis Leysens
952b61e049
[Console] Move out of legacy + migrate server side to New Platform (#55690)
* Initial move of public and setup of server skeleton

* Fix public paths and types

* Use new usage stats dependency directly in tracker also mark as an optional dependency

* WiP on getting server side working

* Restore proxy route behaviour for base case, still need to test custom proxy and SSL

* Add new type and lib files

* Clean up legacy start up code and add comment about issue in kibana.yml config for console

* Move console_extensions to new platform and introduce ConsoleSetup API for extending autocomplete
Add TODO regarding exposing legacy ES config

* Re-introduce injected elasticsearch variable and use it in public

* Don't pass stateSetter prop through to checkbox

* Refactor of proxy route (split into separate files). Easier testing for now.
Refactor file name of request.ts -> proxy_request.ts. This is consistent with the exported function now
Started fixing server side tests for the proxy route
  - Migrated away from sinon
  - Completed the body.js -> body.test.ts. Still have to do the rest

* headers.js test -> headers.test.ts and moved some of the proxy route mocking logic to a common space

* Finish migration of rest of proxy route test away from hapi
Add test for custom route validation

* Bring console application in line with https://github.com/elastic/kibana/blob/master/src/core/CONVENTIONS.md#applications
Change log from info level to debug level for console_extensions plugin

* Update i18nrc file for console

* Add setHeaders when passing back error response

Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>
2020-01-30 10:51:02 +01:00
Patrick Mueller
90ad26038c
adds the Kibana server uuid to eventLog events (#56004)
resolves https://github.com/elastic/kibana/issues/55631

Also beefed up the event_logger test cases.
2020-01-29 13:05:14 -05:00
Daniil Suleiman
7f63118d6b
Vis default editor plugin (#55612)
* Shim the default_editor

* Update paths in vis_default_editor

* Update paths in dependent plugins

* Update the dependent plugins

* Create an entry point

* Wrap the editor with kibana context

* Fix circular re-renders

* Update sub aggs mapping

* Move schemas and agg_groups to agg_types, update jest tests

* Use services from kibana context, other fixes

* Fix useEffect maximum update depth

* Create i18n namesapce for visDefaultEditor, rename translations

* Fix tests

* Resolve paths

* Remove ui/vis/vis_types

* Fix vis import

* Move editor_config_provider to ui/vis
2020-01-29 17:41:18 +03:00
Matthias Wilhelm
d8adb395b1
Migrate saved_object_save_as_checkbox directive to timelion (#56114)
- since it's only used there
2020-01-29 13:31:47 +01:00
Davis Plumlee
1ca013a026
Basic Functionality Alert List (#55800)
* sets up initial grid and data type

* data feeds in from backend but doesnt update

* sample data feeding in correctly

* Fix combineReducers issue by importing Redux type from 'redux' package

* Add usePageId hook that fires action when user navigates to page

* Strict typing for middleware

* addresses comments and uses better types

* move types to common/types.ts

* Move types to endpoint/types.ts, address PR comments

blah 2

Co-authored-by: Pedro Jaramillo <peluja1012@gmail.com>
2020-01-28 20:37:19 -07:00
Brandon Kobel
597e7ea64b
Consistent timeouts for the Space onPostAuth interceptor tests (#56158)
* Consistent timeouts for the Space onPostAuth interceptor tests

* Run 100 times

* Revert "Run 100 times"

This reverts commit 6054ac462e.
2020-01-28 12:59:13 -08:00
Joe Portner
04049609f8
Add lockfile symlinks check for correct path (#56043)
Scanning tools may not be able to follow symlinks of symlinks. This
adds an additional check to make sure the lockfile symlink points
directly to the project root's lockfile.
2020-01-28 13:01:24 -05:00
Nick Partridge
05ed2d63b5
Charts plugin (combining ui/color_maps and EuiUtils) (#55469)
* Combine ui/color_maps and EuiUtils into new Charts plugin
* EuiUtils is now the theme service
* ui/color_maps is now the colorMaps service
* Fix all imports of each to pull from new Charts plugin
* Add theme methods to both setup and start contracts
* Move and jestify heatMapColors tests
* Convert remaining js files to ts
* Move vis/color to Charts plugin
* Update missed visTypeVislib naming
2020-01-28 08:13:56 -06:00
Phillip Burch
1ec7ee79b6
Create a new menu for observability links (#54847)
* Create a new menu for observability links. Use it on inentory page.

* Change the order of props for clarity

* Fix default message

* Composition over configuration

* Show ids and ips. PR feedback.

* Don't wrap subtitle. Use fields in inventory model for name

* Tooltip was becoming hacky. Keep it simple and wrap the id.

* Create observability plugin. Add action menu to it.

* Fix path

* Satisfy linter and fix test

* Please the linter

* Update translastions

* Update test for disabled links

* Update more tests

Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>
2020-01-27 19:10:34 -06:00
Poff Poffenberger
be9d9c2ffe
[Canvas] Remove Angular and unnecessary reporting config from Canvas (#54050)
* Remove Angular from Canvas

* Remove reporting config behavior from Canvas since it's no longer needed

Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>
2020-01-27 15:01:26 -06:00
Mike Côté
8fe39aef9d
Cleanup action task params objects after successful execution (#55227)
* Cleanup action task params saved objects after use

* Fix jest tests

* Add integration test to ensure object gets cleaned up

* Add unit tests

* Fix comment

* Re-use updated_at instead of creating createdAt

* Consider null/undefined returned from executor as success as well

Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>
2020-01-27 15:02:44 -05:00
nnamdifrankie
9301531249
[Endpoint] EMT-65: make endpoint data types common, restructure (#54772)
[Endpoint] EMT-65: make endpoint data types common, use schema changes
2020-01-27 14:23:56 -05:00
Matthias Wilhelm
66be6ffae8
Don't throw exception when refreshing fields of an indexpattern (#55836)
* An exception when refreshing fields of an selected index pattern causes Discover to load incompletely
* Add index ID + Title to the error message for
2020-01-27 17:40:51 +01:00
Joe Portner
13593344a0
Add lockfile symlinks (#55440)
This is to enable dependency scanning tools to correctly resolve
the dependencies in each package.json file that is used in
production.
2020-01-27 11:38:20 -05:00
Jean-Louis Leysens
35edfb0e56
[Watcher] More robust handling of license at setup (#55831)
* Only register watcher app if we have received an indication of license first
Enable app to react to license updates from backend

* Return setup to a synchronous function.

Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>
2020-01-27 13:35:40 +01:00
Josh Dover
1bb59af44a
Add isSystemRequest support to Kibana Platform (#53734) 2020-01-24 15:20:09 -07:00
igoristic
2e6fbc396a
Doing fix on master (#55894) 2020-01-24 17:16:43 -05:00
Gidi Meir Morris
bb29cec20b
fixes shared types across alerting plugins (#55824)
This addresses two issues that have come up:

Alerting and Actions have TypeScript types that are needed across server and public plugins, and need to be extracted to a common path (thanks @chrisronline for bringing this to our attention)
Due to the above, types have been duplicated between the alerting and actions when needed in the Alerting UI, which has led to them diverging. This forces the UI to type check against the API, which will help reduce these errors in the future.
2020-01-24 17:06:59 +00:00
Jean-Louis Leysens
b8f774866c
[SearchProfiler] Fix handling of bad profile data and update tab behaviour (#55806)
* Fix searchprofiler's ability to handle badly formed profile data
Also fix tab changing upon subsequent requests

* Fix comment typo
2020-01-24 15:37:03 +01:00
James Gowdy
47bfd11dd1
[ML] Adding text fields to datafeed start modal (#55560)
* [ML] Adding text fields to datafeed start modal

* updating strings

* fixing issue with date text being out of sync

* moving tab check to useEffect
2020-01-24 12:15:52 +00:00
patrykkopycinski
1e91775a7f
[SIEM] Overview Page - Expand Winlogbeat Stats (#55696) 2020-01-24 00:11:13 +01:00
Peter Schretlen
e39ef65c4c
Add developer docs for built-in pagerduty and webhook actions. Add TOC. (#55352) 2020-01-23 17:00:14 -05:00
Jean-Louis Leysens
bb37b0f613
[Watcher] Move out of legacy (#54752)
* Moved out of legacy folder

* First iteration of watcher plugin that renders

* Move create Timebuckets to plugin root
Update route registration and fix license checking for NP

* Re-enable Component integration tests

* Minor fix for data deserializer in api.ts

* Slight logic refactor, more defensive plugin startup

* Re-add legacy folder for SCSS pipeline

* Remove duplicate style sheet

* Fix type issue with TimeBuckets export

* Update license management routing logic (issued warning for using basepath on navigating away from license management)
Remove commented out code in watcher

* More defensive plugin registration

* Fix i18n issues and restore registration of feature on home view

* Remove watcher license error check copy

* Restore license error message in watcher

* Fix mock context value

Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>
2020-01-23 15:35:36 +01:00
Pierre Gayvallet
a75436d93e
Run SO migration after plugins setup phase. (#55012)
* change setClientFactory api to setClientFactoryProvider

* cleanup and add test for service

* change the signatures of SO start/setup

* fix registerCoreContext by accessing stored start contract reference

* move migration inside `start`

* adapt and add service tests

* add doc and export new types

* adapt plugins code

* update generated doc

* better core access

* address some review comments

* remove parametrized type from SavedObjectsClientFactory, use KibanaRequest instead

* add logs when starting and ending so migration

* fix KibanaRequest imports

* NITs and review comments

* fix alerting FTR test

* review comments
2020-01-23 10:41:21 +01:00
Mike Côté
bc70c99c79
Add legacy support for actions client (#55604) 2020-01-22 16:26:34 -05:00
Gidi Meir Morris
838d7ba213
migrate Actions to Kibana platform (#55026)
Migrates the Actions plugin from Legacy on to the Kibana Platform.
2020-01-22 17:08:54 +00:00
Paul Tavares
e2230d5d86
[Endpoint] FIX: Increase tests sleep default duration back to 100ms (#55492)
Revert `sleep()` default duration, in the saga tests, back to 100ms in order to prevent intermittent failures during CI runs.

Fixes #55464
Fixes #55465
2020-01-22 11:55:41 -05:00
Larry Gregory
5d501411e1
Role Mappings - change default 'realm' field option to 'realm.… (#55555) 2020-01-22 11:18:22 -05:00
patrykkopycinski
320b608315
[SIEM] Implement 7.6 Aggregated Feedback (#55347) 2020-01-22 16:52:55 +01:00
Joe Reuter
7c40a24fcc
Tutorial migration (#54910) 2020-01-22 15:31:11 +01:00
Alison Goryachev
7b145bffa0
[Watcher] Add support for additional watch action statuses (#55092) 2020-01-22 08:35:18 -05:00
Jean-Louis Leysens
b8d35105c7
[SearchProfiler] Move out of legacy (#55331)
* Initial move of searchprofiler into new platform directory, lots of things need testing

* Whitespace, clean up types and remove unused files

* First iteration of end-to-end plugin working

- Updated license check to only check for presence of basic license (not search profiler as a feature
- Updated the payload: removed types from validation
- Also added README in public regarding the location of styles

* Added extractProfilerErrorMessage function to interface with new error reporting from profiler endpoint

* Fix paths to test_utils

* Update I18n for search profiler

* Fix react hooks ordering bug with license status updates and fix test (wait for first license object before rendering)

* Added index.ts file to common in searchprofiler route
Marked types and values as internal
Removed unnecessary "async" from function
Update import to not use "src" alias

Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>
2020-01-22 13:58:18 +01:00
Patrick Mueller
b78c1b1042
Adds event log for actions and alerting (#45081)
initial code for event log

see issue https://github.com/elastic/kibana/issues/45083
2020-01-21 18:00:08 -05:00
Pedro Jaramillo
7eb934e80c
Resolver zoom, pan, and center controls (#55221)
* Resolver zoom, pan, and center controls

* add tests, fix north panning

* fix type issue

* update west and east panning to behave like google maps
2020-01-21 16:00:52 -05:00
Brian Seeders
0cd1733c8a
Skip failing endpoint saga tests 2020-01-21 15:54:05 -05:00
Paul Tavares
5a5bade8be
[Endpoint] Fix saga to start only after store is created and stopped on app unmount (#55245)
- added `stop()`/`start()` methods to the Saga Middleware creator factory
- adjust tests based on changes
- changed application `renderApp` to stop sagas when react app is unmounted
2020-01-21 14:21:33 -05:00
Thomas Neirynck
740d4d1afa
[File upload] Enforce file-type check in file dialog (#55063) 2020-01-21 13:23:49 -05:00
Michail Yasonik
da54657b91
Grouped Kibana nav (#53545)
Adds concept of `category` to nav links, grouping them by this in the side nav
2020-01-21 12:48:07 -05:00
Nick Partridge
ce2930ec51
De-angularize vis tooltips (#54954)
* Remove angular dependencey from vis/tooltip
* Move tooltip logic into vislib
* Remove and fix all ngMock refs in vislib tests
* Add numeral to renovate config
* Add vis_type_vislib to codeowners
* Move vis_legend into vislib and fix errors
* vis_type_vislib/public imports to be only top-level
2020-01-21 10:46:56 -06:00
Aleh Zasypkin
9d3d3cdc67
Migrate Management views to Kibana Platform plugin (#53880) 2020-01-21 13:40:39 +01:00
Gidi Meir Morris
638792a557
removes CTA from Task Manager info message (#55334)
removes CTA from Task Manager info message
2020-01-20 17:24:17 +00:00
Mikhail Shustov
a9824f476b
remove flaly assetion. a license presence tested anyway (#55289) 2020-01-20 13:37:07 +01:00
Pierre Gayvallet
2d10350d77
Implements getStartServices on server-side (#55156)
* implements server-side getStartServices

* add unit test

* add integration test

* update generated doc

* improve test
2020-01-20 11:19:40 +01:00
Nick Partridge
119eabe271
[Metric] convert mocha tests to jest (#54054)
* Add fixtures/* alias to tsconfig and jest config
* Convert metric tests to jest
* Convert remaining js files to ts
2020-01-17 12:00:35 -06:00
Daniil Suleiman
b9161e7682
Convert tests to jest in vis_type_timeseries/public & common folders (#55023)
* Convert tests to jest in vis_type_timeseries/public & common folders

* Remove unused translation
2020-01-17 17:04:00 +03:00
Daniil Suleiman
3e46060854
[Vis: Default editor] EUIficate and Reactify the sidebar (#49864)
* EUIficate the sidebar

* Create a state reducer and a state context

* Create an editor context and actions

* Improve types

* Apply aggs reordering

* Fix functionality

* Improve types

* Fix sub_agg changes

* Remove legacy dependencies

* Watch dirty state

* Fix dirty state changes

* Update actions and reducers

* Handle keyboard submit

* Apply editor form validation

* Remove fancy forms

* Update validation

* Use embeddable instead of visualize loader

* Add auto apply behavior

* Remove legacy styles

* Remove the sidebar

* Restrict responsive to the bottom_bar

* Upgrade @elastic/eui to v14.10.0

* Replace EuiBottomBar with EuiControlBar

* Get rid of mutations in control vis

* Revert "Upgrade @elastic/eui to v14.10.0"

This reverts commit 2cd86c51d2.

* Replace bottom bar with a control panel for sidebar

* Replace selectors

* Use editor resizer

* Apply selectors

* Change selectors

* Fix sub agg change values

* Add collapse button

* Fix tests

* Get rid of editor editor_state_context, simplify the code

* Fix jest tests, update snapshots

* Fix types

* Moving collapse button to right of index pattern

* Tweaks bottom buttons

* Moved Vega buttons so they don’t scroll away

* Fix responsiveness

* Resolve UI comments

* Fix console resizer

* Update dev docs

* Bail out of additional render in metrics and axes

* Apply performance optimizations for metrics and axis panel

* Remove unused translations

* Use debounce when autoapply enabled

Co-authored-by: Caroline Horn <549577+cchaos@users.noreply.github.com>
Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>
2020-01-17 14:01:44 +03:00
Robert Austin
13afdb9a6f
Resolver is overflow: hidden to prevent obscured elements from showing up (#55076) 2020-01-16 17:09:53 -05:00
Paul Tavares
93a11838ad
[Endpoint] add Redux saga Middleware and app Store (#53906)
* Added saga library
* Initialize endpoint app redux store
2020-01-16 11:34:32 -05:00
Gidi Meir Morris
8458e47614
removes usage of the _id field in Task manager (#54765)
As of Elasticsearch 8.0.0 it will no longer be possible to use the _id field on documents.
This PR removes the usage that Task Manager makes of this field and switches to pinned queries to achieve a similar effect.
2020-01-16 09:55:51 +00:00
Nick Partridge
bd7d5eb9f6
Shim vis_type_vislib (#53536)
* shim of kbn_vislib_vis_types (now vis_type_vislib)
* Move vislib into vis_type_vislib plugin
* Convert remaining plugin files to typescript
* Rename vis to vis_type_vislib
2020-01-15 15:48:19 -06:00