Commit graph

29526 commits

Author SHA1 Message Date
gchaps 099ec54c72
[DOCS] Updates Discover documentation (#51837)
* [DOCS] Updates View in Context doc in Discover

* [DOCS] Updates Discover docs on viewing document data

* [DOCS] Adds workflow to Discover docs

* [DOCS] Updates Discover docs intro page

* [DOCS] More updates to Discover docs

* [DOCS] More updates to Discover docs

* [DOCS] Incorporates review comments in Discover docs

* [DOCS] Edits to discover intro

* [DOCS] Edits to Discover docs

* [DOCS] Incorporates edits in Discover docs
2019-12-17 11:48:55 -08:00
Spencer e5c562b5c1
associate metadata with runnables (#53245) 2019-12-17 12:26:50 -07:00
Matthew Kime 2d36b216af
move management registry to new platform (#53020)
* move management registry to new platform
2019-12-17 13:00:54 -06:00
Kerry Gallagher 18b5cf9adb
[Logs UI / Metrics UI] New Platform migration server followups (#51615) 2019-12-17 18:52:57 +00:00
spalger fb1670c54b Revert "Update dependency jimp to v0.9.3 (#53075)"
This reverts commit 19c0626aa5.

# Conflicts:
#	yarn.lock
2019-12-17 11:32:50 -07:00
spalger 64a7b51a41 Revert "Update dependency geckodriver to ^1.19.1 (#53073)"
This reverts commit f8c98f6e71.
2019-12-17 11:32:50 -07:00
spalger 98076311b9 Revert "Update dependency getos to ^3.1.1 (#53074)"
This reverts commit cf2e0ec6e7.
2019-12-17 11:32:50 -07:00
spalger 8e39ba342e Revert "Update dependency simple-git to v1.129.0 (#53077)"
This reverts commit 9a05c75add.
2019-12-17 11:32:50 -07:00
spalger ce3b4748d7 Revert "Update eslint related packages (#53078)"
This reverts commit 9e50a1089c.
2019-12-17 11:32:50 -07:00
spalger 3816a89ff0 Revert "Update memoize-one related packages (#53080)"
This reverts commit ffe24cd832.
2019-12-17 11:32:50 -07:00
spalger 1b5e385a7a Revert "Update storybook related packages to ^5.2.8 (#52687)"
This reverts commit f8fd5b5def.
2019-12-17 11:32:50 -07:00
spalger ccdd84a00d Revert "Update dependency execa to ^3.4.0 (#53072)"
This reverts commit ad6a07583b.
2019-12-17 11:32:49 -07:00
spalger a926e3419d Revert "Update babel related packages (#52754)"
This reverts commit 9a115f078f.
2019-12-17 11:32:49 -07:00
spalger 77479020e0 Revert "Update supertest related packages (#53081)"
This reverts commit 5eed8b4eb9.
2019-12-17 11:32:49 -07:00
spalger 8b7aaa4849 Revert "Update webpack related packages (#53082)"
This reverts commit 8b36eb46ea.
2019-12-17 11:32:49 -07:00
Devin W. Hurley 28e05e79ec
[SIEM] [Detection Engine] adds created_at and updated_at timestamps to rules (#53137)
* adds created_at and updated_at timestamps to rules

* fix missing update to tests

* save created_at and updated_at in rule in signals index

* requires created_at and updated_at in rule
2019-12-17 13:09:26 -05:00
Nathan L Smith d391764b76
[APM] License prompt for service map (#52668)
Display a link to platinum license upgrade on the service map.

Also add `useKibanaUrl` and `useLicense` hooks.

Make the `LicenseContext` (which is used in a couple class components and on page load) use the license observable from the NP plugin.

Add missing export of `useObservable` to kibana_react.
2019-12-17 12:01:30 -06:00
Gidi Meir Morris 2b6ef5c2bb
Moves Task manager's interval under a generic schedule field (#52727)
This moves the interval field under a generic schedule object field in preparation for the introduction of richer scheduling options (such as cron).

It includes a migration for existing tasks, and we've ensured no existing Task Type Definitions exist in Kibana that rely on Interval.

This includes support for the deprecated interval field (which gets mapped to schedule) but that support will be removed in 8.0.0, as it's a breaking change.
2019-12-17 15:16:40 +00:00
Mikhail Shustov 74e1d17cf4
Support 'enterprise' license type (#52273)
* add enterprise license type to licensing plugin

* add enterprise license to x-pack plugins

* update uptime license list

* improve naming in security plugin

* update reporting licensing
2019-12-17 15:43:19 +01:00
Patrick Mueller 4f5db1498b
adds per-actionType enablement via config xpack.actions.enabledActionTypes (#52967)
* adds per-actionType enablement via config xpack.actions.enabledTypes

resolves: https://github.com/elastic/kibana/issues/52326
2019-12-17 09:13:44 -05:00
Aleh Zasypkin 341630d5b3
Use savedObjects provided by the platform instead of legacy shim. (#53264) 2019-12-17 15:04:25 +01:00
Liza Katz 2b1cb0666b
register per app top nav items (#53136) 2019-12-17 13:01:56 +00:00
Matthias Wilhelm 2ef2bcaee6
[Dashboard] Deangularize saved object handling (SavedObjectDashboard) (#52850)
* Initial typescript version

* Use extracted functions

* Fix types

* Extract save & initialize functions

* Add even more typescript

* Improve types

* Improving types, extracting another function

* Code refactoring, deangularisation, migrate to Promise

* Migrate Visualize AngularPromise to native promise

* Fix Discover Edit URL link

* Migrate to use of NP services (savedObjects + indexPatterns)

* Migrate confirmModalPromise to a NP backed version - add code :)

* cleanup confirmModalPromise, fix creation of visualize data table

* Fix JSON import test

* Remove init from types

* Split between createSavedObjectClass and SavedObjectProvider

* Adapt Discover to use deangularized SavedObject version

* Fix type errors

* Remove redundant file

* Fix functional test failure importing JSON

* Migrate chrome.untrackNavLinksForDeletedSavedObjects

* Improve types

* Code improvements

* Require NP chrome for SavedObjectLoader

* Fix type error

* Fix IndexPatterns type error

* maja review improvements

* Fix broken functional test

* Add missing static properties of SavedSearch class

* Migrate indexPatterns to data plugin

* Deangularize saved_workspaces.js and saved_workspaces.js

* Fix types

* Migrate to TypeScript

* use encodeURIComponent in saved_visualizations.js, remove kbnUrl

* Remove unnecessary type cast

* Further deangularize gis_map_saved_object_loader.js

* Remove npStart imports from helper functions

* Fix types

* Review changes

* Improve types

* Fix mocha tests that broke due to refactoring

* Add more types

* Add missing savedObjects property in dashboard_app_controller.tsx

* Type improvements

* Convert saved_dashboard.js to saved_dashboard.ts

* Convert saved_dashboard.js to saved_dashboard.ts

* remove console.error

* fix jest tests

* Address review comments

* Solve type conflict

* Fix types

* Adapt types

* Restore statics values at SavedSearch

* Revert "Address review comments"

This reverts commit 87b0ba7e2f.

* Revert "Restore statics values at SavedSearch"

This reverts commit 5b7b989ac5.

* Restore statics values at SavedSearch

* Complete TypeScript conversion

* Fix types

* Set seachSource to true

* Fix tests

* Minor adaptions

* Migrate import from 'kibana/server' to 'kibana/public'

* Remove redundant ! from savedDashboard.searchSource
2019-12-17 12:02:49 +01:00
Andrew Wilkins fc1911931d
update apm index pattern (#53250) 2019-12-17 19:01:55 +08:00
patrykkopycinski c9ed87c696
[SIEM] Fix Edit Filter suggestions displayed behind Filter Popover (#53166) 2019-12-17 11:56:33 +01:00
Pierre Gayvallet 2426811bca
Migrate instance uuid logic to new platform (#52060)
* move and migrate uuid code to new platform

* create and wire uuid service

* handle legacy compatibility

* update generated docs

* add `set` to LegacyConfig interface

* Fix types

* fix config access

* respect naming conventions for uuid

* remove hardcoded config paths

* rename manageInstanceUuid to resolveInstanceUuid

* moves legacy config uuid set from uuid to legacy service

* log specific message depending on how uuid was resolved

* resolve merge conflicts

* use fs.promises

* add forgotten @public in uuid contract

* add explicit errors and tests

* ensure uuid is valid in configuration

* fix read/write tests
2019-12-17 09:25:21 +01:00
Daniil Suleiman 1321892b1c
Update hjson version to 3.2.1 (#53105) 2019-12-17 11:03:27 +03:00
Tyler Smalley c4a0bd1bf4
[build] Increase max-old-space-size (#53234)
Temporarily also set in higher level until we figure out why we're still seeing OOM's ~1400MB.

Signed-off-by: Tyler Smalley <tyler.smalley@elastic.co>
2019-12-16 19:22:01 -08:00
Tiago Costa 30196ace92
Increases log rotation file size minimum limit (#53169)
* fix(NA): increase log rotation minimum log filesize to rotate limit

* chore(NA): correct interval

* docs(NA): add comments to explain everyBytes limits
2019-12-17 02:30:11 +00:00
Larry Gregory 3c959b7547
Prevent active space from being retrieved on anonymous paths (#53189) 2019-12-16 18:08:48 -05:00
Brandon Morelli 4a211a83f6
[docs][APM] Add APM settings page (#53172) 2019-12-16 13:50:55 -08: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
patrykkopycinski 4d50442acc
Update babel-typescript config (#53108)
* Update babel-typescript config

* Add @babel/preset-react
2019-12-16 19:28:54 +01: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
Kaarina Tungseth f6c30199d8
[DOCS] Compresses images to 1MB or less (#51496)
* [DOCS] Compresses images to 1MB or less

* Changed lens_data_info to png
2019-12-16 11:15:00 -06:00
patrykkopycinski 53be899154
[SIEM] Fix Timeline events styling (#53064) 2019-12-16 18:06:16 +01:00
Kaarina Tungseth 6cef462c8b
[DOCS] Updates for API usage (#51989)
* [DOCS] Updates for API usage

* Changes from Larry

* Update docs/api/using-api.asciidoc

Co-Authored-By: Larry Gregory <lgregorydev@gmail.com>

* Comments from Larry

* Comment from Larry
2019-12-16 11:03:38 -06: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
Christiane (Tina) Heiligers 866a387b48 Np migration timelion route validation (#51788) 2019-12-16 17:36:17 +01:00
Josh Dover 09faf19812
Add links to conventions doc from migration guide (#51104) 2019-12-16 10:26:02 -06: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