Commit graph

32788 commits

Author SHA1 Message Date
Robert Austin 027c8a8d75
[Endpoint] Remove todos, urls to issues (#64833) 2020-04-30 09:47:43 -04:00
Shahzad 1736005e5e
[Uptime] Remove hard coded value for monitor states histograms (#64396) 2020-04-30 15:45:52 +02:00
Henry Harding 60ef51b912
Feature/send feedback link (#64845)
* use fixed table layout

* add alpha messaging flyout

* Added alpha badge + data streams link

* Update x-pack/plugins/ingest_manager/public/applications/ingest_manager/components/alpha_flyout.tsx

Co-Authored-By: Jen Huang <its.jenetic@gmail.com>

* Update x-pack/plugins/ingest_manager/public/applications/ingest_manager/components/alpha_flyout.tsx

Co-Authored-By: Jen Huang <its.jenetic@gmail.com>

* Update x-pack/plugins/ingest_manager/public/applications/ingest_manager/components/alpha_flyout.tsx

Co-Authored-By: Jen Huang <its.jenetic@gmail.com>

* Update x-pack/plugins/ingest_manager/public/applications/ingest_manager/sections/overview/index.tsx

Co-Authored-By: Jen Huang <its.jenetic@gmail.com>

* remove small tags

* change messaging from alpha to experimental

* add period

* remove unused imports

* fixed i18n ids

* add send feedback link to header

* rename "ingest management" to "ingest manager"

Co-authored-by: Jen Huang <its.jenetic@gmail.com>
Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>
2020-04-30 09:28:12 -04:00
James Gowdy 497c5da763
[ML] Moving get filters capability to admin (#64879)
* [ML] Moving get filters capability to admin

* updating test
2020-04-30 14:07:32 +01:00
Mike Côté b140ad7194
Remove edit alert button from alerts list (#64643)
* Remove edit alert button from alerts list

* Remove unused code

* Cleanup translation files

Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>
2020-04-30 08:56:15 -04:00
Sonja Krause-Harder 3c56a8e296
[EPM] Handle constant_keyword type in KB index patterns and ES index templates (#64876)
* Unit-test constant_keyword mapping generation

* Treat constant_keyword as string in kibana index patterns
2020-04-30 12:43:34 +02:00
James Gowdy 21bc46f5af
[ML] Disable data frame anaylics clone button based on permission (#64830) 2020-04-30 11:07:14 +01:00
Anton Dosov dcc4081bd8
Dashboard url generator to preserve saved filters from destination dashboard (#64767) 2020-04-30 10:34:32 +02:00
Pierre Gayvallet 6e2691358f
add generic typings for SavedObjectMigrationFn (#63943)
* add generic typings for SavedObjectMigrationFn

* change default attributes type to unknown

* update generated doc

* adapt new calls

* update generated doc

* update migration example

* fix merge conflicts
2020-04-30 10:28:14 +02:00
Pierre Gayvallet aa8cb620bb
Allow to define and update a defaultPath for applications (#64498)
* add defaultPath to `AppBase` and use it in `navigateToApp`

* add removeSlashes util

* adapt `toNavLink` to handle defaultPath

* update generated doc

* codestyle

* add FTR test

* address comments

* add tests
2020-04-30 08:05:16 +02:00
Patrick Mueller f85b3898f6
[Event Log] add rel=primary to saved objects for query targets (#64615)
resolves https://github.com/elastic/kibana/issues/62668

Adds a property named `rel` to the nested saved objects in the event
documents, whose value should not be set, or set to `primary`.
The query by saved object function changes to only match event documents
with that saved objects if it has the `rel: primary` value.

This is used to limit searching alerting's executeAction event document
with only the alert saved object, and not the action saved object (this
document has an alert and action saved object). The alert saved object
has the `rel: primary` field set, and the action does not.  Previously,
those documents were returned with a query of the action saved object.
2020-04-30 00:27:51 -04:00
Wylie Conlon 4e58d7ae0a
[Lens] Use a size of 5 for first string field in visualization (#64726) 2020-04-29 22:03:41 -04:00
Frank Hassanabad bcda1096e1
[SIEM][Lists] Removes plugin dependencies, adds more unit tests, fixes more TypeScript types
* Removes plugin dependencies for better integration outside of Requests such as alerting
* Adds more unit tests
* Fixes more TypeScript types to be more normalized
* Makes this work with the user 'elastic' if security is turned off

- [x] [Unit or functional tests](https://github.com/elastic/kibana/blob/master/CONTRIBUTING.md#cross-browser-compatibility) were updated or added to match the most common scenarios
2020-04-29 19:58:27 -06:00
Jen Huang fba5128bd8
[Ingest] Edit datasource UI (#64727)
* Adjust NewDatasource type to exclude stream `agent_stream` property, add additional datasource hooks

* Initial pass at edit datasource UI

* Clean up dupe code, fix submit button not enabled after re-selecting a package

* Remove delete config functionality from list page

* Show validation errors for data source name and description fields

* Fix types

* Add success toasts

* Review fixes, clean up i18n

Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>
2020-04-29 18:03:30 -07:00
Tim Roes 9b65cbd92b
[Lens] Bind all time fields to the time picker (#63874)
* Bind non primary time fields to timepicker

* Fix typescript argument types

* Allow auto interval on all fields

* Remove lens_auto_date function

* Fix existing jest tests and add test todos

* Remove lens_auto_date from esarchives

* Add TimeBuckets jest tests

* Fix typo in esarchiver

* Address review feedback

* Make code a bit better readable

* Fix default time field retrieval

* Fix TS errors

* Add esaggs interpreter tests

* Change public API doc of data plugin

* Add toExpression tests for index pattern datasource

* Add migration stub

* Add full migration

* Fix naming inconsistency in esaggs

* Fix naming issue

* Revert archives to un-migrated version

* Ignore expressions that are already migrated

* test: remove extra spaces and  timeField=\\"products.created_on\\"} to timeField=\"products.created_on\"}

* Rename all timeField -> timeFields

* Combine duplicate functions

* Fix boolean error and add test for it

* Commit API changes

Co-authored-by: Wylie Conlon <wylieconlon@gmail.com>
Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>
Co-authored-by: Marta Bondyra <marta.bondyra@elastic.co>
2020-04-29 20:10:14 -04:00
Wylie Conlon a907c9bda5
[Lens] Use suggestion system in chart switcher for subtypes (#64613)
Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>
2020-04-29 19:14:47 -04:00
Henry Harding 110648258c
Improve alpha messaging (#64692)
* use fixed table layout

* add alpha messaging flyout

* Added alpha badge + data streams link

* Update x-pack/plugins/ingest_manager/public/applications/ingest_manager/components/alpha_flyout.tsx

Co-Authored-By: Jen Huang <its.jenetic@gmail.com>

* Update x-pack/plugins/ingest_manager/public/applications/ingest_manager/components/alpha_flyout.tsx

Co-Authored-By: Jen Huang <its.jenetic@gmail.com>

* Update x-pack/plugins/ingest_manager/public/applications/ingest_manager/components/alpha_flyout.tsx

Co-Authored-By: Jen Huang <its.jenetic@gmail.com>

* Update x-pack/plugins/ingest_manager/public/applications/ingest_manager/sections/overview/index.tsx

Co-Authored-By: Jen Huang <its.jenetic@gmail.com>

* remove small tags

* change messaging from alpha to experimental

* add period

* remove unused imports

* fixed i18n ids

Co-authored-by: Jen Huang <its.jenetic@gmail.com>
Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>
2020-04-29 17:18:51 -04:00
Nicolas Chaulet 6338cef317
[Ingest] Allow to enable monitoring of elastic agent (#63598) 2020-04-29 16:41:59 -04:00
Zacqary Adam Xeper 1669a10441
[Metrics UI] Fix alerting when a filter query is present (#64575) 2020-04-29 15:36:37 -05:00
spalger 2e410d8952 skip flaky suite (#64812) (#64723) 2020-04-29 12:53:06 -07:00
Nathan Reese d6f0c785d9
[Maps] do not display EMS or kibana layer wizards when not configured (#64554)
* [Maps] do not display EMS or kibana layer wizards when not configured

* default tilemap to empty object instead of array

* fix typo

Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>
2020-04-29 13:27:55 -06:00
Tim Sullivan 02ba5fcb13
[Reporting/Test] Convert functional test code to Typescript (#64601)
* Convert the tests to typescript

* remove outdated comment

* fix typescript

* fix "as any"

Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>
2020-04-29 12:19:31 -07:00
Lee Drengenberg f5a8d8e6c2
make inserting timestamp with navigate methods optional with default true (#64655) 2020-04-29 14:05:45 -05:00
Sandra Gonzales 53ff22997a
[EPM] Update UI to handle package versions and updates (#64689)
* link to installed version of detail page

* add latestVersion property to EPM get package endpoint

* add updates available notices

* add update package button

* handle various states and send installedVersion from package endpoint

* fix type errors

* fix install error because not returning promises

* track version in state

* handle unsuccessful update attempt

* remove unused variable
2020-04-29 14:06:08 -04:00
Ryland Herrick 3adab85138
Minimize dependencies required by our telemetry middleware (#64665)
1. we need our redux actions for our telemetry middleware, which:
2. require types from an index file, which:
3. includes all of our model types, and everything involved in them

By moving these types to a separate file and importing _that_instead, we
bypass inclusion of 2 and 3 in our plugin, which equates to ~550kB (of a
total of ~600kB).
2020-04-29 13:01:23 -05:00
Christiane (Tina) Heiligers 1512859e56
[Telemetry] oss api tests (#64602)
* Adds telemetry API tests for oss

* Modifies test expectations to match that within oss

Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>
2020-04-29 10:54:19 -07:00
James Gowdy d8c15f5ad3
[ML] Adding endpoint capability checks (#64662)
* [ML] Adding endpoint capability checks

* adding missing capability checks

* fixing test

* removing commented code

* fixing functional test

* fixing functional tests

* changes based on review

Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>
2020-04-29 18:25:48 +01:00
Dmitry Lemeshko bac638a37e
Update jest config for coverage (#64648)
* set files to track for coverage collection

* increase timeout to 4h

* trying to add detectOpenHandles to avoid worker stuck

* update config

* make config paths more common

* update configs

* update jest oss config

* exclude 'tests' folder for coverage
2020-04-29 20:00:14 +03:00
Ryland Herrick f8e01bd3a1
[SIEM][NP] Fixes bug in ML signals promotion (#64720)
* Add set-value as an explicit dependency

This is a more robust solution than lodash's set().

* Replace lodash.set() with set-value's equivalent

* Rebuild renovate config

We added set-value to our dependencies.

Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>
2020-04-29 11:58:46 -05:00
Spencer 0d4cfba4b4
share single data plugin bundle (#64549) 2020-04-29 09:44:56 -07:00
Mikhail Shustov 5082ff3252
use cache busting for KP bundles (#64414)
* convert into TS

* load plugin scripts in html body

* use buildNum as a unique Id for cache busting

* add tests for caching

* fix tests

* remove the last TODO. url should be inlined with assetss server

* this logic handled by publicPathMap on the client

* cache kbn-shared-deps as well

* attempt to fix karma tests

* always run file through replace stream

* place buildHash at begining of path, include all static files

* update bundles_route tests to inject buildNum everywhere

* fix karma config to point to right prefix

* use isDist naming throughout

* explain magic number with variables

* restore replacePublicPath option from #64226

* replace one more instance of replacePublicPath

* use promisify instead of bluebird + non-null assertions

* remove one more magic number

Co-authored-by: spalger <spalger@users.noreply.github.com>
Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>
2020-04-29 09:43:15 -07:00
Aleh Zasypkin 5ee6dcd14d
Lazy load Security plugin management apps. (#64511) 2020-04-29 18:15:57 +02:00
Tiago Costa 7354ff6676
Revert "chore(NA): add async import into infra plugin to reduce apm bundle size (#63292)" (#64764)
This reverts commit 30439f6df0.
2020-04-29 16:38:41 +01:00
Nicolas Chaulet f8dc041b85
[Ingest] Use agent template embeded in the pkg registry response (#64705) 2020-04-29 11:31:35 -04:00
Wylie Conlon af2e86f949
[Lens] Fix flaky test by closing options after use (#64714)
Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>
2020-04-29 10:50:03 -04:00
Gidi Meir Morris 9fe7229357
[Alerting] migrates all remaining plugins to new platform (#64335)
Completes the migration of all Alerting Services plugins onto the Kibana Platform

It includes:

1. Actions plugin
2. Alerting plugin
3. Task Manager plugin
4. Triggers UI plugin

And touches the Uptime and Siem plugins as their use of the Task Manager relied on some of the legacy lifecycle to work (registering AlertTypes and Telemetry tasks after the Start stage has already began). The fix was simply to moves these registrations to the Setup stage.
2020-04-29 15:46:54 +01:00
Frank Hassanabad 30e41c5d8f
Update codeowners for endpoint and siem
## Summary

* Update codeowners for endpoint and SIEM
* Remove legacy stuff
2020-04-29 08:25:12 -06:00
Corey Robertson ac61783a2d
[CANVAS] Adds Canvas Platform Service (#64453)
* Adds Canvas Platform Service

* Fix type check

Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>
2020-04-29 09:49:25 -04:00
Sonja Krause-Harder 2c7741bba3
[EPM] Handle object type fields with properties in mappings (#64745)
* Generate correct mapping for object type field with properties

* Add test for fields definition in reverse order
2020-04-29 15:36:39 +02:00
Larry Gregory f1d72ad127
Expose security license on setup (#64651) 2020-04-29 08:52:33 -04:00
Marta Bondyra da4c33b022
[Lens] Don't use auto interval to get interval for single bar (#64502)
* feat: don't use auto interval to get interval for single bar

* fix: fixing non auto intervals

Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>
2020-04-29 14:47:45 +02:00
István Zoltán Szabó a38c11cd10
[ML] Changes Machine learning overview UI text (#64625)
Co-Authored-By: Lisa Cawley <lcawley@elastic.co>
2020-04-29 13:58:27 +02:00
Justin Kambic 05f0d0ac8a
[Uptime] Migrate client to New Platform (#55086)
* Move uptime legacy server to plugins directory.

* Re-add feature registration code.

* Move uptime legacy server to plugins directory.

* Re-add feature registration code.

* Move all files.

* WIP fixing things.

* WIP fixing things.

* WIP fixing things.

* Finished fixing server.

* Fix alert type registration glitch.

* Remove obsolete file.

* Fix unwanted revisions, uncomment previously un-migrated code, delete accidentally-merged files.

* More cleanup.

* Fix all non-maps unit tests.

* Get functional tests working.

* Delete misplaced file.

* Add uptime CODEOWNERS entry.

* Get map working in Uptime app on NP.

* Update CODEOWNERS to remove legacy entry.

* Update server imports.

* Delete and clean up unused or redundant code/comments.

* Move new files from legacy to NP to fix merge error.

* Fix broken import.

* Delete obsolete test snapshots.

* Clean up imports and types, delete obsolete code.

* Clean up redundant common imports.

* Delete obsolete translation keys.

* Add additional explicit typing to plugin class.

* Combine redundant common imports.

* Delete unneeded optionalPlugin entry.

* Revert "Combine redundant common imports."

This reverts commit 159e66c349.

* Update a translation description.

* Revert "Clean up redundant common imports."

This reverts commit 8794013fbe.

* Remove new common index file and revert imports from only common to more specific paths.

* Fix broken imports in `~/x-pack/test`.

* Move new file from legacy to NP location.

Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>
2020-04-29 07:28:03 -04:00
Mikhail Shustov 8bb67f2c62
Slim vis type timeseries (#64631)
* load visualizations code lazily

* load VisEditor lazily
2020-04-29 12:00:18 +02:00
Alejandro Fernández Haro fc79c06fc0
[Telemetry] Fix inconsistent search behaviour in Advanced Settings (#64510) 2020-04-29 10:40:45 +01:00
Angela Chuang a42c2026e2
[SIEM] Create template timeline (#63136)
* init routes for template timeline

* create template timeline

* add create/update timelines route

* update api entry point

* fix types

* add template type

* fix types

* add types and template timeline id

* fix types

* update import timeline to handle template timeline

* unit test

* sudo code

* remove class for savedobject

* add template timeline version

* clean up arguments

* fix types for framework request

* show filter in find

* fix create template timeline

* update mock data

* handle missing timeline when exporting

* update the order for timeline routes

* update schemas

* move type to common folder so we can re-use them on UI and server side

* fix types + integrate persist with epic timeline

* update all timeline when persit timeline

* add timeline api readme

* fix validation error

* fix unit test

* display error if unexpected format is given

* fix issue with reftech all timeline query

* fix flashing timeline while refetch

* fix types

* fix types

* fix dependency

* fix timeline deletion

* remove redundant dependency

* add i18n message

* fix unit test

Co-authored-by: Xavier Mouligneau <189600+XavierM@users.noreply.github.com>
Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>
2020-04-29 09:39:12 +01:00
Mikhail Shustov ad89b1e67f
load react component lazily in so management section (#64285)
* load react component lazily in so management section

* remove unused imports

Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>
2020-04-29 08:50:54 +02:00
Tyler Smalley beb07c28fc
Cleanup .eslingignore and add target (#64617)
* Cleanup .eslingignore and add target

Since adding the new platform plugins target directories, we need to
update the eslintignore to reflect that.

Did a bit of organizing of the file for some sanity.

Signed-off-by: Tyler Smalley <tyler.smalley@elastic.co>
2020-04-28 20:01:16 -07:00
Nicolas Chaulet 129cf4fdd0
[Ingest] Support yaml variables in datasource (#64459) 2020-04-28 21:43:12 -04:00
Spencer 408ad6f389
typescript-ify portions of src/optimize (#64688) 2020-04-28 18:14:34 -07:00