Commit graph

32666 commits

Author SHA1 Message Date
Daniil Suleiman da89856503
[NP] Move visTypeVislib into NP (#63963) 2020-04-28 14:44:17 +02:00
Liza Katz c2e464325e
add test for #64132 (#64307)
Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>
2020-04-28 15:03:04 +03:00
Aleh Zasypkin e7971fa08e
Improve Login Selector UX (#64142)
Co-authored-by: Dave Snider <dave.snider@gmail.com>
2020-04-28 12:55:11 +02:00
Felix Stürmer 2fba7ed9f7
[Logs UI] Reimplement log source configuration routes in plain HTTP+JSON (#64021) 2020-04-28 11:12:50 +02:00
James Gowdy f9c81a30cb
[ML] Add kibana setting for file data visualizer max file size (#64427)
* [ML] Add kibana setting for file data visualizers max file size

* adding failsafe for setting

* fixing id

* [DOCS] Updates Data Visualizer setting

Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>
Co-authored-by: lcawl <lcawley@elastic.co>
2020-04-28 09:22:46 +01:00
Pierre Gayvallet 2b3fadebf9
add licensed feature usage API (#63549)
* add licensed feature usage API

* add FTR test and plugin

* jsdoc

* fix FTR test suite name

* remove clear API

* accept Date for notifyUsage
2020-04-28 09:39:57 +02:00
Casper Hübertz 99c382fdac
[APM] Service maps: Improve the selected node style (#64279)
* [APM] Set the text color of the selected state

* [APM] Show label background on selected state
2020-04-28 09:33:55 +02:00
Patrick Mueller 5457a62fdb
[Event Log] add event.outcome to relevant event log documents (#64389)
resolves https://github.com/elastic/kibana/issues/61891

Adds a relatively new ECS field `event.outcome`. Value of `success`, `failure`,
or `unknown`. This is nice, as the only way we have currently of determining an
error for an alert or action execution in the log is the existence of an
`error.message` field.  It is added to to the documents for those events.

see: https://www.elastic.co/guide/en/ecs/current/ecs-event.html
2020-04-27 23:11:43 -04:00
Spencer 23665133d7
[kbn clean] delete plugin target directories (#64016) 2020-04-27 17:56:44 -07:00
Spencer 7a4d97cec8
[kbn/pm] use mtime of untracked files in bootstrap cache key (#64293) 2020-04-27 16:43:18 -07:00
Ryland Herrick 4cc5b3a4d3
[SIEM] Client NP Cutover (#64251)
* Move SIEM public/ folder to NP plugin

This is solely renames; fixes come next.

* Update relative imports in our API tests

* Fix linter errors following move to NP folder

These paths got a little shorter, so some lines could be collapsed.

* Move client dependencies to NP package.json

I'm removing the @types/js-yaml for now because I'm not sure we need it;
I'll add it back later if we do.

* Fix relative imports to other plugins

* Fix errant uses of ui/chrome

* Remove legacy plugin shim

* Move feature registration into plugin

This previously had to be part of legacy bootstrapping due to an order
of operations issue.

* Disconnect legacy plugin

The index file should now be redundant with what's in the plugin:

* app registration
* feature registration

* Move public gitattributes

* Remove references to legacy embeddables

We can now use the NP API. Maps embeddable will not work here until
their work is merged, but this should prevent us from importing legacy
code and thus breaking the build.

* Add our frontend dependencies to kibana.json

These are all required for now, because that's how they're typed. If
they _should_ be optional (and I think several should), we need to
update the type and handle the null case within the app.

* Replace use of ui/new_platform mocks in embeddable utils

* Fix remaining jest tests

* Replace build-breaking ui/new_platform mocks with equivalents in core
proper
* Remove unnecessary mocks of ui/new_platform

* Remove references to legacy SIEM folder

* I left the reference in CODEOWNERS in case someone tries to sneak
something back
* I left the .gitignore reference for the same reason

* Fix mocks of relative paths

These were not caught by typescript and were causing test failures.

* Export our client plugin contracts

They're empty for now.

* Move from deprecated appmount API

The new one dropped a param we weren't using.

* Add missing mock causing test failures

* Don't re-export core types from our plugin

Import them from core where we need them, instead

* Move Actions UI registry outside of mount

This is already imported, there's no benefit (and potential timing
issues) with doing this inside the mount.

* Add security's setup contract to our StartServices

This doesn't change what's used, only how we're typing it. The types are now a
little more truthful as:

* our StartPlugins don't include setup contracts
* our StartServices includes everything we use at Start time, including
the one setup plugin.

* Add order and icon back to the sidebar link

* Replace plugin class properties with constants

These are shared, and should be consistent.

* Enable our UI on NP

* Add missed plugin dependencies

We're not using their contracts, but we are importing code from them.

* Revert use of constant in translation

Can't do that, whoops

* i18n our feature catalogue entry

* Remove unnecessary array from single element

* Remove unused keys

These were the legacy translations used... well, I don't know where they
were used.

* Ignore circular dependencies in external plugins

* Normalize exclusions

* Add undeclared dependencies to kibana.json

We import our maps embeddable from maps, and we pass inspector to the
embeddable. I just missed these in my audit. This was causing errors in
the map embeddable.

* Await our call to setLayerList

This is an async call that we need to complete before we can render.

* Reduce siem plugin size

When we load our initial plugin (before our app is loaded), were were
implicitly importing all of kibana_react with this import. While a
global module prevents this from affecting our bundle size currently,
that could change in the future. Since we only need a reference to our
class, we just import that instead.
2020-04-27 17:59:21 -05:00
Tim Sullivan 54dc148226
[Reporting] Remove boilerplate needed to get thegetScreenshots function (#64269)
* expose reportingCore in ReportingSetup for apps

* improve tests

Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>
2020-04-27 14:25:26 -07:00
Tim Sullivan 4c460b8c42
[Reporting/Test] move functional tests to apps (#64368)
* Squashed commit of the following:

commit 5953089c03bea6b2d091f7723fea25bb1c210ee8
Author: Timothy Sullivan <tsullivan@elastic.co>
Date:   Thu Apr 9 18:29:55 2020 -0700

    move tests to apps

commit 39adeaae6d3502d2c6da4e6111c2a396f2a7aedb
Author: Timothy Sullivan <tsullivan@elastic.co>
Date:   Thu Apr 9 17:49:20 2020 -0700

    update archive with better dashboard

commit 55b600748356c1adc5e75669b0c5588a812e401d
Author: Timothy Sullivan <tsullivan@elastic.co>
Date:   Thu Apr 9 17:16:53 2020 -0700

    fix the refactoring bugs

commit 11aff10cd8009aeb9bb78aa5ce0b37a72d47776e
Author: Timothy Sullivan <tsullivan@elastic.co>
Date:   Thu Apr 9 17:16:28 2020 -0700

    remove unused fixtuers

commit 05c33817c8eb67c461ac012cf2f71a9c01f1a91e
Author: Timothy Sullivan <tsullivan@elastic.co>
Date:   Thu Apr 9 16:37:36 2020 -0700

    Start of refactoring

commit b63c182b5f32b19dc3ca715efdbc5f18fcc02f67
Author: Timothy Sullivan <tsullivan@elastic.co>
Date:   Thu Apr 9 16:32:50 2020 -0700

    Todo comments

commit 1e0105e673
Author: Timothy Sullivan <tsullivan@elastic.co>
Date:   Thu Apr 9 14:31:58 2020 -0700

    revert unrelated change

commit 206fd14b77
Merge: 0d4c2ad29a 834306458a
Author: Timothy Sullivan <tsullivan@elastic.co>
Date:   Thu Apr 9 14:28:45 2020 -0700

    Merge branch 'master' into reporting/test-better

commit 0d4c2ad29a
Author: Timothy Sullivan <tsullivan@elastic.co>
Date:   Wed Apr 8 10:41:19 2020 -0700

    fix ts

commit 890128c47d
Merge: d9ce4024ec 3598b8c44c
Author: Timothy Sullivan <tsullivan@elastic.co>
Date:   Wed Apr 8 10:31:09 2020 -0700

    Merge branch 'master' into reporting/test-better

commit d9ce4024ec
Author: Timothy Sullivan <tsullivan@elastic.co>
Date:   Tue Apr 7 08:31:58 2020 -0700

    [Reporting] convert all server unit tests to TypeScript

* fix imports and readmes

* remove not-needed readme

* remove extra info from readme

* correct some comments

* log the error that was caught

* fix config path in readme

* fix readme instructions to point to updated paths

Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>
2020-04-27 14:24:55 -07:00
Catherine Liu 4e714c2523
[Canvas] Fixes embed flyout (#64468) 2020-04-27 14:15:58 -07:00
Nicolas Chaulet 9bfdebd0f1
[Ingest] Datasource make difference between config and variables use to build agent stream (#64361) 2020-04-27 17:15:40 -04:00
Tiago Costa 17b23db643
chore(NA): exclude target folder from being watched by cluster manager (#64446)
* chore(NA): exclude target folder from being watched by cluster manager

* chore(NA): fix watcher regex

* chore(NA): re-add separators to regex

Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>
2020-04-27 21:59:42 +01:00
Spencer 00ec971b6e
Implement basic CI metric reporting (#64263) 2020-04-27 13:24:52 -07:00
Paul Tavares 97d7620fcc
[Endpoint] Show Host Status on List view (#64455)
* show host status on list

* Adjust type for HostStatus-to-HealthColor

* Fixed unit tests

* Tests

* removed unused translation keys

* clarify test case description

* remove `ts-ignore`
2020-04-27 16:19:44 -04:00
Matthew Kime 231de27026
Typescript index pattern field editor (#63495)
* Typescript index pattern field editor
2020-04-27 15:19:02 -05:00
Nathan Reese 1252b832f4
[Maps] geo_shape fit to bounds (#64303)
* [Maps] geo_shape fit to bounds

* handle results that cross dateline

Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>
2020-04-27 14:03:47 -06:00
Brian Seeders 4d3e60be39
[Docs] Add ES Snapshot docs (#64437) 2020-04-27 15:46:48 -04:00
CJ Cenizal 84aef3995e
Add CCR client integration test that asserts that the UI consumes the expected API when editing a follower index (#64440) 2020-04-27 12:20:19 -07:00
Ryland Herrick 9e8809b117
Disable mappings for rule_actions params (#64350)
These are most analagous to alerting params, which use the same terminal
mapping.

Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>
2020-04-27 14:14:24 -05:00
Tim Sullivan 6b5a96557f
[Reporting/telemetry] Add 'statuses' object to usage to show status counts by jobType & appType (#63922)
* [Reporting] Additional status by app data for usage

* --wip-- [skip ci]

* clean up types

* add a prettier-ignore

* fix types

* --wip-- [skip ci]

* fix typo

* more tests

* Tweak the data model

* fix the comments and type keys to reflect the data model

Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>
2020-04-27 11:49:51 -07:00
Yuliia Naumenko 75fa843652
[Alerting] Implemented ability to edit an alert from the alert details page (#64273)
* Implemented ability to edit an alert from the alert details page

* Fixed refresh and tests

* fixed jest tests
2020-04-27 11:07:29 -07:00
Steph Milovic 60cb9367a6
[SIEM] [Cases] Use configure refactor (#64309) 2020-04-27 12:01:22 -06:00
Mike Côté db374fc950
Ability to get scoped call cluster from alerting and action executors (#64432)
* Initial work

* Rename to getScopedCallCluster

* Fix typecheck

* Fix more type check issues

* Add tests

* Add docs

Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>
2020-04-27 13:46:04 -04:00
Joe Reuter a32d7b1344
Add editApp and editPath to embeddable (#64297) 2020-04-27 18:07:10 +02:00
Joe Reuter 45aa090e99
TSVB validation: Allow numeric values for axes (#63553) 2020-04-27 17:57:58 +02:00
James Gowdy d79e631d47
[ML] Fixing optional plugin dependency types (#64450)
Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>
2020-04-27 16:42:11 +01:00
Kerry Gallagher 72fba8bf64
[Logs UI] Alerting (#62806)
First iteration of logs alerting
2020-04-27 16:23:14 +01:00
Paul Tavares ea307e13b6
[Endpoint] Show Policy Status on Host Details using Policy Response API (#64116)
* Add policyStatus to store + drive UI color/label from status value
* Add Middleware placeholder to handle API call (once available)
2020-04-27 11:15:15 -04:00
Nathan Reese 399df75821
[Maps] update LayerWizard previewLayer to take layerDescriptor instead of ISource (#64461)
* more changes

* remove unused state argument

* revert change to make diff easier to follow

* migrate pew pew source to new previewLayer

* remove createDefaultLayer from ISource

* migrate EMS boundaries layer wizard

* convert ems tms layer wizard to previewLayer

* convert kibana base map to preview layer

* convert all other sources to previewLayer

* tslint clean-up

* remaining ts lint errors

* i18n clean up

* review feedback

Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>
2020-04-27 08:50:47 -06:00
Rudolf Meijering dfb6a308cf
Remove SO root property index signature (#64434)
* Remove SO root property index signature

* Update documentation
2020-04-27 16:08:27 +02:00
Robert Oskamp fe79979328
[ML] Functional tests - stabilize job row details validations (#64503)
This PR stabilizes the AD job row details check by only validating expected properties instead of the whole object.
2020-04-27 15:13:13 +02:00
Nicolas Chaulet 6c98b2368b
[Ingest] Add Global settings flyout (#64276) 2020-04-27 09:06:33 -04:00
Thomas Watson 8c05a724e7
Bump cypress dev-dependency from 4.2.0 to 4.4.1 (#64408) 2020-04-27 14:23:33 +02:00
Matthias Wilhelm 0b8cd6eb46
Migrate saved object of type url to kibana platform (#64043) 2020-04-27 13:38:03 +02:00
Maryia Lapata 5f13ad107f
[NP] Migrate ui capabilities (#64185)
* Migrate ui capabilities

* Add capabilities for dashboard
2020-04-27 13:19:46 +02:00
Thomas Watson a6fff8b298
Bump karma-mocha dev-dependency from 1.3.0 to 2.0.0 (#64407) 2020-04-27 12:25:03 +02:00
Matthias Wilhelm 2d525380fa
Migrate kql_telemetry saved object registration to Kibana platform (#64149) 2020-04-27 10:39:29 +02:00
Pierre Gayvallet 3d78b1bcf9
Remove SO autocreateindex error and error page (#64037)
* remove autocreateIndex error and error page

* update generated doc

* delete unused keys

* remove sass import

* add missing graph import

* remove unused method
2020-04-27 10:02:40 +02:00
Thomas Watson 568f7034eb
Fix issue with yarn.lock (#64496)
This was brought on by merging #64401, #64403, #64406, and #64433.
2020-04-27 09:40:14 +02:00
Thomas Watson 3aa73d1236
Bump @hapi/boom dependency from 7.4.2 to 7.4.11 (#64433) 2020-04-27 08:47:19 +02:00
Thomas Watson b666f0acc8
Bump gonzales-pe dev-dependency from 4.2.4 to 4.3.0 (#64401) 2020-04-27 08:44:42 +02:00
Thomas Watson 3c5eee7526
Bump karma dev-dependency from 3.1.4 to 5.0.2 (#64403) 2020-04-27 08:41:17 +02:00
Thomas Watson 9eca4026f9
Bump iedriver dev-dependency from 3.14.1 to 3.14.2 (#64406) 2020-04-27 08:35:56 +02:00
spalger ac2c239e8d Revert "disable flaky suite (#64382) (#64381) (#64480)"
This reverts commit 387c581e9b.
2020-04-25 22:04:01 -07:00
spalger 2746ca85ec Revert "skip flaky suite (#64310)"
This reverts commit 341ad77d2b.
2020-04-25 22:03:54 -07:00
spalger 341ad77d2b skip flaky suite (#64310) 2020-04-25 10:58:22 -07:00