Commit graph

6165 commits

Author SHA1 Message Date
patrykkopycinski c9ed87c696
[SIEM] Fix Edit Filter suggestions displayed behind Filter Popover (#53166) 2019-12-17 11:56:33 +01:00
Larry Gregory 3c959b7547
Prevent active space from being retrieved on anonymous paths (#53189) 2019-12-16 18:08:48 -05:00
Dario Gieselaar 14e21458fb [APM] optimize trace errors terms agg with execution hint (#52726)
* [APM] optimize trace errors terms agg with execution hint

* Use execution_hint: map for transaction group fetcher

* Split up local filter aggregations
2019-12-16 22:40:16 +01:00
Corey Robertson e6a0684469
Adds maxBytes and accepts options for workpad api routes that need it (#52189) 2019-12-16 15:34:05 -05:00
Stacey Gammon 7e67d1f86c
Embeddable examples on the platform and included with --run-examples flag (#52111)
* Add a new platform embeddable example plugin

* Remove extra hello world test impl.

* cleanup

* code review updates

* Change example to highlight and have parent filter out children

* Fix deep comparison of embeddable prop

* adjust help text
2019-12-16 15:03:46 -05:00
Patrick Mueller 3cc513e373
change kibana.yml xpack.actions.whitelistedHosts to default to ['*'] (#52827)
resolves https://github.com/elastic/kibana/issues/52597

The previous default was `[]`, which meant no hosts were whitelisted,
which would require a Kibana admin to set this value for any actions
that accessed 3rd party services (currently email and webhook, longer
term slack and pagerduty).
2019-12-16 14:59:30 -05:00
Phillip Burch aacbd1d8fd
Add inventory metadata api with regions and accounts (#52660)
* Add inventory metadata api with regions and accounts

* Comment magic number

* Refactor to be compat with new platform

* Fix types

* Use RequiredDataset to get account details. Fix hook decodes

* Remove unused import

* Update x-pack/legacy/plugins/infra/server/routes/inventory_metadata/lib/get_aws_metadata.ts

Co-Authored-By: Chris Cowan <chris@chriscowan.us>

* Rename some things again

* Fix type
2019-12-16 13:55:26 -06:00
renovate[bot] 8b36eb46ea Update webpack related packages (#53082)
* Update webpack related packages

* fix updated config flag

* update other changes css-loader config options
2019-12-16 12:14:20 -07:00
renovate[bot] 5eed8b4eb9 Update supertest related packages (#53081)
* Update supertest related packages

* supertest is now strict about numbers as strings
2019-12-16 12:10:26 -07:00
Chris Roberson 5ec3b03a67
[Tests] Add a helper to detect if functional tests are running against cloud (#51817)
* Add a helper to detect if functional tests are running against cloud

* PR feedback

* Clean up comment

* New eslint rules applied
2019-12-16 13:18:13 -05:00
renovate[bot] ad6a07583b Update dependency execa to ^3.4.0 (#53072)
* Update dependency execa to ^3.4.0

* update kbn/pm dist

* update kbn/pm dist again
2019-12-16 10:20:54 -07:00
patrykkopycinski 53be899154
[SIEM] Fix Timeline events styling (#53064) 2019-12-16 18:06:16 +01:00
Gidi Meir Morris a0574565b8
adds whitelisting to slack and pagerduty action types (#52989)
The Slack and Pagerduty actions currently do not do whitelist validation, this PR adds the requirement for the PD and Slack action's respective target URLs to also be whitelisted.
2019-12-16 16:36:42 +00:00
Alejandro Fernández 3137b07b57
[Logs + Metrics UI] Use getTraceURL for APM trace links (#52875)
* Use `getTraceURL` for APM trace links

* Fix tests

* Check for the presence of APM links

Since now we use a helper provided by APM it no longer makes sense to
test for the actual URL (because that only tests the function). Instead
just test that the link exists and that it has an `href`.
2019-12-16 17:00:00 +01:00
Gidi Meir Morris bb98e9a2b8
[Task Manager] Adds runNow api to Task Manager (#51601)
Adds a `runNow` api to Task Manager, allowing us to force the refresh of a recurring task.

This PR includes a couple of sustainability changes as well as the feature itself.

1. **Declarative query composition.** At the moment the queries in the TaskStore are huge JSON objects that are hard to maintain and understand. This PR introduces a pattern where the different parts of the query are composed out of type-checked functions, making it easier to maintain and to construct dynamically as needs change. _This was included in this PR as the **markAvailableTasksAsClaimed** query needs different query clauses depending on whether there are specific Tasks we wish to claim first.

2. **Refactoring of the Task Poller** As the `runNow` api is introduced we find Task Manager's lifecycle in a weird state where it has both a _pull_ model, where timeouts & callbacks interact without having to responsd to any external requests, and a _push_ model where requests are made to the new `runNow` api. Balancing these two proved error prone, hard to maintain and had the potential of _lossy_ behaviour where requests are dropped accidentally. To address this TaskPoller has been refactored using Rxjs observables, remodelling the existing _pull_ mechanism as a _push_ mechanism so Task Manager can _respond_ to both _polling_ calls and _runNow_ in a similar fashion.

And ofcourse the main feature of this PR:

3. **runNow api** An api on TaskManager that takes a _task ID_ and attempts to run the task. The call returns a promise which resolves with a result which notifies the caller when the task has either completed successfully, or result in an error.
2019-12-16 14:12:25 +00:00
Marta Bondyra a9831d6d8c
[Lens] Fix React duplicate keys warning for identically labele… (#52716) 2019-12-16 15:05:45 +01:00
Mike Côté 68f956d814
Cleanup actions docs to remove mention of enabled: false by default (#53014) 2019-12-16 08:59:48 -05:00
Liza Katz daac96cce7
Move top nav to NP (#52877)
* Move top nav to NP

* TopNavMenu karma mock

* Fixed lens test mocking
Removed old plugin code

* readme

* Code review fixes

* lint

* ts
2019-12-16 13:56:51 +00:00
Larry Gregory fcdaed954e
Spaces - Client NP Migration, Phase 1 (#40856)
* shimming NP for spaces client-side plugin

* refresh active space in nav control when updated

* fix advanced settings screen

* allow npStart from unauthed routes

* use NP for deriving space management url

* remove security's usage of SpacesManager

* remove usages of ui/capabilities

* fix tests

* implement NP plugin interface

* remove hack in favor of convention in migration guide

* shim feature catalogue registration

* streamline nav control, and handle async loading more gracefully

* adding opaqueId

* fixes from merge

* fix merge from master

* fixing merge from master

* move _active_space route to NP

* moving to the NP feature catalogue registry

* moving setup to setup phase

* optimizing active space retrieval

* reverting test isolation change

* Apply suggestions from code review

Co-Authored-By: Aleh Zasypkin <aleh.zasypkin@gmail.com>

* removing unnecessary PluginInitializerContext

* updating advanced settings subtitle

* using NP anonymousPaths service

* additional nav_control_popover cleanup

* additional cleanup

* testing out onActiveSpaceChange$ property

* make the linter happy

* make the type checker happy

* fixing types

* fix merge from master

* spaces LP init should run on all pages, not just the kibana app

* address nits

* fix infra/logs, and the spaces disabled scenario

* fix typescript errors

* revert changes to infra plugin

* reintroducing activeSpace injected var for legacy plugins

* fixing react deprecation warning and unhandled promise rejection

* restore activeSpace default var

* spaces does not need to check its own enabled status

* fix from merge


Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>
2019-12-16 08:31:07 -05:00
Pierre Gayvallet 408139bf0b
Allow loggers to create child loggers via 'get' method (#52605)
* add 'Logger.get' method

* updates generated doc

* resolve merge conflicts
2019-12-16 10:41:14 +01:00
renovate[bot] f8fd5b5def Update storybook related packages to ^5.2.8 (#52687) 2019-12-15 10:55:46 -07:00
renovate[bot] ffe24cd832 Update memoize-one related packages (#53080) 2019-12-15 10:20:59 -07:00
renovate[bot] 9a05c75add Update dependency simple-git to v1.129.0 (#53077) 2019-12-15 10:18:42 -07:00
renovate[bot] cf2e0ec6e7 Update dependency getos to ^3.1.1 (#53074) 2019-12-15 10:17:57 -07:00
renovate[bot] 5698817371 Update dependency constate to ^1.3.2 (#53071) 2019-12-15 10:13:11 -07:00
renovate[bot] 9a115f078f Update babel related packages (#52754)
* Update babel related packages

* update kbn/pm dist
2019-12-14 20:14:47 -07:00
spalger c52571be68 ensure prettier overrides take precedence, remove style rules 2019-12-14 17:39:10 -07:00
spalger 14bf10863a move eslint rule override comments for code that moved around 2019-12-13 23:17:13 -07:00
spalger 8e9a8a84dc autofix all violations 2019-12-13 23:17:13 -07:00
Joe Portner e78689e61e
Upgrade pdfmake (#53043) 2019-12-13 17:50:49 -05:00
spalger 5feb376aac remove test that's been skipped since opening xpack 2019-12-13 15:32:19 -07:00
Eli Perelman 614bde927e
Move CSP options to new platform (#52698)
* Move CSP options to new platform

* Expose SharedGlobalConfig from root

* Derive CSP options from config

* Consolidate CSP configuration with HTTP config

* Fix outstanding config renames

* Remove legacy CSP configuration calls, migrate to platform properties

* Revise docs

* Fix test from type change

* Expose ICspConfig, consolidate and simplify CSP defaults access

* Rebase and update docs

* Remove legacy API from route definition params, review nits

* Clean up config path usages for consistency

* Regenerate docs
2019-12-13 15:57:17 -06:00
spalger 1ea9d791bc Revert "Revert "Fix wrong impor (#52994)""
This reverts commit c220d770cc.
2019-12-13 14:09:51 -07:00
spalger c220d770cc Revert "Fix wrong impor (#52994)"
This reverts commit 6c1f248c4f.
2019-12-13 13:16:40 -07:00
Ahmad Bamieh 3658220048
[Telemetry] Migrate ui_metric plugin to NP under usageCollecti… (#51972)
* move cloud dir to plugins from legacy

* create ui_metrics in NP

* migrate first plugin

* ui_metric plugin uses npStart

* sinin mock

* karma mocks

* type check fix

* rename old configs

* fix mocks and use configs

* use  fo debug

* ui_metric deprecation configs

* remove commented out code

* remove unused type import

* mock ui_metric in client_integration

* jest.mock ui/new_platform

* fix all failing tests

* platform team code review fixes

* reset interval back to default

* apm cypress config use usageCollection

* revert kibana.yml change

* remove license type from NP def

* undo revert of NP type

* code review fixes

* report schema in a separate dir
2019-12-13 14:41:51 -05:00
Joe Portner 3e6270737a
Change session timeout values to use duration instead of number (#52520) 2019-12-13 13:58:40 -05:00
Josh Dover ec2134d221
Add lint rule to prevent server code being imported into client (#52447) 2019-12-13 12:26:04 -06:00
Mikhail Shustov 6c1f248c4f
Fix wrong impor (#52994)
* Licensing plugin and XPackInfo uses the same license data (#52507)

* convert xpackinfo to TS

* use NP Licensing plugin in XPackInfo

* update mocks

* put license regresh hack back.

otherwise new license won't be re-fetched when signature changed. was deleted by mistake

* add functional test for legacy xpackmain

* declare setup types on client & server explicitly

* rename mock license --> licensing to match plugin name

* add tests for createLicensePoller

* fix type error

* adopt tests for xpack_info

* createXPackInfo uses new platform API

* put back error mute

* address comments

* fix renamed import

* address comment

* update tests to reduce delays

* deprecate xpack.xpack_main.xpack_api_polling_frequency_millis

* use snake_case in config

* fix wrong import
2019-12-13 18:09:36 +01:00
Marta Bondyra a97d2646f5
Lens: pass indexPatternId prop to ChangeIndexPattern to di… (#52614) 2019-12-13 17:44:58 +01:00
Mike Côté 88ae8d07c8
Cleanup alerting / actions feature controls (#52286)
* Initial work

* Apply changes based on feedback

* Fix a broken test

* Fix failing test

* Revert monitoring changes

* Remove UI features for now
2019-12-13 10:36:46 -05:00
Brandon Kobel c8912199d3
Using forceLogout *almost* everywhere (#52922)
* Changing usages of .logout() to .forceLogout()

* Using `.logout` from within the security login page test
2019-12-13 10:09:38 -05:00
Shahzad d79631adaa
Feature/issue 44550 new details panel and location map (#50518)
* update

* added an embeddable maps

* update map config

* added options to disable zoom, hide tool tips, widgets/overlays in embeddable maps

* added options to disable zoom, hide tool tips, widgets/overlays in embeddable maps

* added bool option to hide header

* revert panel changes

* update panel

* update map

* added disable interactive

* update uptime embeddable

* update redux state and removed widget over lay hiding

* refactor widget overlay prop

* update layout

* update rest API

* remove maps code

* update components

* update up/down points on map

* update snaps

* fixed type

* update request

* update request to include rnage

* fix tests

* utilize newly added setLayers method

* remove unused code

* refactor code
2019-12-13 16:02:00 +01:00
Wylie Conlon 6ca913874c [Lens] Change feedback link (#52916) 2019-12-13 09:55:04 -05:00
spalger f67a063f1c Revert "Licensing plugin and XPackInfo uses the same license data (#52507)"
This reverts commit 2b8825603f.
2019-12-13 07:53:12 -07:00
Matthias Wilhelm dbec0b1007
[Graph] Deangularize saved object handling (workspace) (#52529) 2019-12-13 14:48:03 +01:00
Jean-Louis Leysens 96fb2d16f7
[Console] Console with better SQL support (#51446)
* First iteration of PoC for SQL highlighting and better completion

* Alternate implementation (no """sql markers)

* xLang markers

* - Remove 'start-sql'
- no flow :c

* Revert "- Remove 'start-sql'"

This reverts commit 2d585eef17.

* Revert "xLang markers"

This reverts commit f019616675.

* Revert "xLang markers" and add comment

This reverts commit f019616675.

* Add elasticsearch sql highlight rules

* Add links to sources of data

* Update colors

* Redo built in functions
2019-12-13 14:39:42 +01:00
Mikhail Shustov 2b8825603f
Licensing plugin and XPackInfo uses the same license data (#52507)
* convert xpackinfo to TS

* use NP Licensing plugin in XPackInfo

* update mocks

* put license regresh hack back.

otherwise new license won't be re-fetched when signature changed. was deleted by mistake

* add functional test for legacy xpackmain

* declare setup types on client & server explicitly

* rename mock license --> licensing to match plugin name

* add tests for createLicensePoller

* fix type error

* adopt tests for xpack_info

* createXPackInfo uses new platform API

* put back error mute

* address comments

* fix renamed import

* address comment

* update tests to reduce delays

* deprecate xpack.xpack_main.xpack_api_polling_frequency_millis

* use snake_case in config
2019-12-13 13:46:04 +01:00
Liza Katz e3282d4a89
Move search bar to NP (#52622)
* Moved SearchBar component to NP

* move search bar to NP

* change import

* Revert "change import"

This reverts commit 52d990fbe4.

* Revert "move search bar to NP"

This reverts commit 4196e8b4b9.

* move create search bar

* Clean up jest mocks

* update snapshots

* Remove indexPatterns angular service

* Deleted comment

* Mock npStart.core.savedObjects

* Removed export of SearchBarOwnProps

* fix import

* Fix typo

* eslint
2019-12-13 12:05:31 +00:00
patrykkopycinski 7dbfb750ce
[SIEM] Cleanup react-beautiful-dnd jest warnings (#52468) 2019-12-13 12:31:04 +01:00
James Gowdy 6ba805d18e
[ML] Removing context API (#52953) 2019-12-13 10:33:28 +00:00