Commit graph

29695 commits

Author SHA1 Message Date
Zacqary Adam Xeper
a03f395b52
[Logs UI] Refactor query bar state to hooks (#52656)
* [Logs UI] Refactor query bar state to hooks

* Update typedef

* Typecheck fix

* Typecheck fix

* Simplify log filter state

* Remove WithLogFilter HOC and simplify hook further

* Rename js to ts

* Fix redirect imports

* Fix link-to test accuracy

* Fix link-to test

* Simplify destructuring signature

* Stylistic fixes

* Move URL state to hook

* Fix log filter URL state infinite loop

* Revert "Fix log filter URL state infinite loop"

This reverts commit 43302b354a.

* Revert "Move URL state to hook"

This reverts commit c61f5b190b.

Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>
2020-01-03 15:45:11 -06:00
Nathan Reese
ace50d8d2b
[Maps] pass getFieldFormatter to DynamicTextProperty (#53937)
* [Maps] pass getFieldFormatter to DynamicTextProperty

* remove files from another PR
2020-01-03 14:19:19 -05:00
Mike Côté
8cc778a64a
Invalidate alert API Key when generating a new one (#53732)
* Initial work to auto cleanup old API keys

* Fix ESLint error

* Rename confusing variables

* Add test to ensure thrown errors are swallowed

* Add more tests

Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>
2020-01-03 13:40:20 -05:00
Alejandro Fernández
47830c75d9
[Logs UI] HTTP API for log entries (#53798)
* Scaffold `log_entries/entries` route

* Scaffold a log entry response

* Add `after` pagination

* Add `before` pagination

* Process `query` parameter

* Use pre-existing structure for the columns

* Change type of date ranges

We will move the responsibility to parse the dates to the client. The
API will only take timestamps

* Add `center` parameter

Allows consumers of the API to get log items around a certain cursor

* Change default page size

* Test the defaults of the API

* Add optional `size` parameter

This makes easier to test the pagination. By default it returns a 200
size page.

* Test the pagination

* Test centering around a point

* Handle `0` sizes

Co-Authored-By: Zacqary Adam Xeper <Zacqary@users.noreply.github.com>

* Add highlights endpoint

* Refactor `processCursor`

* Tweak cursor handling in the routes

* Refine `LogEntry` type

* Add tests for highlights endpoint

* Tweak the types for the LogEntry

Co-authored-by: Zacqary Adam Xeper <Zacqary@users.noreply.github.com>
2020-01-03 18:12:47 +01:00
Spencer
7b4278dc49
[kbn/pm] add caching to bootstrap (#53622)
Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>
2020-01-03 09:35:38 -07:00
Gidi Meir Morris
d4b1966d4f
adds createdAt and updatedAt fields to alerting (#53793)
When users are writing UI's they need to see when an alert was created and when it was last updated, to this end we've added these two fields on the alert type.
2020-01-03 16:34:17 +00:00
Alison Goryachev
45e227b2b5
[SR] Enable component integration tests (#53893) 2020-01-03 10:26:17 -05:00
Alexey Antonov
6942d0bbe6
Move index patterns: src/legacy/core_plugins/data 👉 src/plugins/data (#53794)
* Move index patterns: src/legacy/core_plugins/data 👉 src/plugins/data

Closes: #43444

Make sure that all index pattern related imports use NP (and delete index_pattern folder from shim)

* fix JEST tests

* fix CI

* fix PR comments

Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>
2020-01-03 15:57:46 +03:00
Gidi Meir Morris
b09653ac74
moved Task Manager server code under "server" directory (#53777)
Changes Task Manager folder structure to include a "server" folder as required by our linting rules as part of the migration to the Kibana Platform
2020-01-03 12:07:17 +00:00
Aleh Zasypkin
6cf7ece9df
Rename /api/security/oidc to /api/security/oidc/callback. (#53886) 2020-01-03 10:01:50 +01:00
Brandon Kobel
86df42129b
Updating transitive dependencies to use handlebars@4.5.3 (#53899) 2020-01-02 18:07:48 -08:00
Tim Sullivan
08e6ee2b22
[Reporting/Tests] consolidate functional test configs (#52671)
* [Reporting/Tests] consolidate functional test configs

* remove console.log

* trash

* Update

* add more to the comment

* restore historic archive for wip ui functional tests
2020-01-02 15:31:16 -07:00
Tim Sullivan
01dd08ea9a
[Reporting] Correct the docvalue_fields params in the search query Download CSV from Dashboard Panel (#52833)
* fix the bug and add a test

* fix query bug of empty array

Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>
2020-01-02 15:30:41 -07:00
Tim Sullivan
8c3145ea5c
[Test/Newsfeed] Re-enable test and add news item to be filtered (#53905) 2020-01-02 15:25:54 -07:00
Patrick Mueller
592bc43600
cleanup server-log action (#53326)
- make the level param optional, defaults to info
- change the actions logger "tag" from "alerting" to "actions"
- remove control characters from message
2020-01-02 17:12:41 -05:00
Justin Kambic
bd2be32876
[Uptime] Delete uptime eslint rule skip (#50912)
* Delete uptime eslint rules.

* Update hooks usage to adhere to new eslint rules.

* Delete code accidentally added during rebase.

* WIP trying things.

* Clean up types and hook usage to comply with kibana eslint rules.

* Clean up code.

* Update new useEffect hooks that are missing dependencies.

* Fix edits that broke a page.
2020-01-02 16:36:07 -05:00
Tim Schnell
71591632bd
[skip-ci] Expression Lifecycle Docs (#51494)
* adding context and arguments section

* Change Your Expression docs section for Canvas Expression docs

* typo or somethin

* Adding Expressions Only Fetch and Manipulate Data section

* Added argument sections of expression docs

* Add Composing Functions and Sub Expression docs

* adding shaun changes

* removing redundant lifecycle link

* PR edits

* fixing links

* more edits

* more edits from kaarina

* Update docs/canvas/canvas-expression-lifecycle.asciidoc

Co-Authored-By: Catherine Liu <catherineqliu@outlook.com>

* Update docs/canvas/canvas-expression-lifecycle.asciidoc

Co-Authored-By: Catherine Liu <catherineqliu@outlook.com>

* Update docs/canvas/canvas-expression-lifecycle.asciidoc

Co-Authored-By: Vadim Dalecky <streamich@users.noreply.github.com>

* more edits for images

* adding image showing no legend

* escaping underscore

* fixing underscore again

* fixing image name

* adjusting image height

Co-authored-by: Poff Poffenberger <poffdeluxe@gmail.com>
Co-authored-by: Catherine Liu <catherineqliu@outlook.com>
Co-authored-by: Corey Robertson <crob611@gmail.com>
Co-authored-by: Vadim Dalecky <streamich@users.noreply.github.com>
2020-01-02 15:18:17 -06:00
Kevin Logan
fa6a801ebd
[Endpoint] add react router to endpoint app (#53808)
* add react router to endpoint app

* linting

* linting

* linting

* correct tests

* change history from hash to browser, add new test util

* remove default values in helper functions

* fix type check, use FunctionComponent as oppsed to FC

* use BrowserRouter component

* use BrowserRouter component lin

* add comments to test framework, change function name to include browserHistory

Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>
2020-01-02 15:58:45 -05:00
Ryland Herrick
d9554ff66c
[SIEM][Detection Engine] Silence 409 errors on signal creation (#53859)
* Remove punctuation from translation

We already had a colon on both uses of this key, resulting in '::' on
the page.

* Ignore 409 errors from our signal creation

In my experience these are always due to a rule being run multiple times
on the same document, generating a duplicate signal with a (correctly)
duplicate id. Only if we encounter non-409 errors do we log a message to
the user.

* Hide 409 errors during signal creation

These are expected and potentially confusing to the user. Instead, we
only show unexpected errors.

Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>
2020-01-02 13:34:57 -06:00
Nathan Reese
47e5342c27
[Maps] get max_result_window and max_inner_result_window from index settings (#53500)
* [Maps] pull ES_SIZE_LIMIT and top hits limit from index settings

* get fetch working

* get min values from indicies response

* use indexSettings.maxResultWindow in documents request size

* use max_inner_result_window to define top hits max

* update jest test

* update docs

* more docs changes for top hits

* fix line spacing

* Update docs/maps/maps-aggregations.asciidoc

Co-Authored-By: gchaps <33642766+gchaps@users.noreply.github.com>

* Update docs/maps/vector-layer.asciidoc

Co-Authored-By: gchaps <33642766+gchaps@users.noreply.github.com>

* add api integration test for indexSettings route

* eslint fixes

* review feedback

* display toast on first index settings fetch failure

* clean up

Co-authored-by: gchaps <33642766+gchaps@users.noreply.github.com>
Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>
2020-01-02 12:25:28 -07:00
Melissa Alvarez
9372100516
[ML] New Platform server shim: update analytics routes to use new platform router (#53521)
* update dfAnalytics routes to use np router

* add route schemas and only show error message

* convert route file to ts and set handlers inline

* update df analytics param type

* update mlClient type and assert mlClient is not null

* handle errors correctly

* ensure error status gets passed correctly to wrapper
2020-01-02 11:38:19 -07:00
Ben Skelker
7f39fd8f34
fixes typo on engine detection page (#53877) 2020-01-02 20:36:58 +02:00
Nathan Reese
b7c53502c5
[Maps] push mapbox value extraction from VectorStyle and into DynamicStyleProperty (#53806) 2020-01-02 07:53:55 -07:00
Jean-Louis Leysens
64dda89a8f
Fix suggested value for time_zone in range query (#53841) 2020-01-02 12:15:13 +01:00
Anton Dosov
dcb8cca63c
Clean up generic hooks, use react-use instead (#53822)
As we recently added react-use as a dependency, makes sense to clean up those generic hooks from Kibana repo.

Removed custom hooks from kibana_react and other places:
useObservable
useUnmount
useShallowCompareEffect

react-use should be used instead:
import useObservable from 'react-use/lib/useObservable'
2020-01-02 14:04:31 +03:00
Brian Seeders
650fcda2ca
Bump year in NOTICE.txt 2019-12-31 21:46:25 -05:00
Brian Seeders
f8f777b5ba
Add kibanamachine support to Github PR comments (#53852)
* Add kibanamachine support to Github PR comments

* Temporary commit for quick successful pipeline

* Only delete the last comment if it was made by kibanamachine

* Revert "Temporary commit for quick successful pipeline"

This reverts commit d31f579697.
2019-12-31 15:14:55 -05:00
Mike Côté
98ac7a64ad
Add tests to ensure AAD isn't broken after performing a change on an alert / action (#53333) 2019-12-31 13:36:39 -05:00
Brian Seeders
9317f16c38
Skip failing test suite 2019-12-30 22:14:58 -05:00
Alexey Antonov
e7ee646124
[Vega] Sample [Flights] Airport Connections (Hover Over Airport) visualization not working (#53799)
Closes: #53748

Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>
2019-12-31 00:48:48 +03:00
Josh Dover
884fba2944
Do not remount applications between page navigations (#53851) 2019-12-30 14:49:18 -06:00
Poff Poffenberger
b8046c7964
[Canvas] Refactor Canvas to no longer use componentWillReceiveProps (#52129)
* Removing componentWillReceiveProps from time filter

* Changing expression form to componentDidUpdate

* Updating expression to be key-driven updates and arg_types to use compomentDidUpdate

* temporary

* Revert "temporary"

This reverts commit 255525d65f.

* typo fix

Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>
2019-12-30 09:19:51 -06:00
Poff Poffenberger
6765def84d
[Canvas] Migrate usage collector to NP plugin (#53303)
* Move canvas usage collector to NP plugin

* Removing old usage collector fom legacy Canvas plugin

* Adding types placeholder

Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>
2019-12-30 09:16:36 -06:00
Eli Perelman
fdd87e024f
Allow chromeless applications to render via non-/app routes (#51527)
* Allow chromeless applications to render via non-/app routes

* Address review nits

* Fix chrome:application integration tests

* Move extraneous application integration tests to unit tests
2019-12-29 15:10:14 -06:00
Eli Perelman
054ec7036d
Add server rendering service to enable standalone route rendering (#52161)
* Add server rendering service to enable standalone route rendering

* Update renovate config

* Move legacy rendering functionality to legacy service

* Use config for exposed variable in new platform

* Lint changes from rebase

* Rebase artifact

* Remove RenderingProvider, add tests for legacy vars implementation, review notes

* Add UI app functionality to legacy service

* Update rendering snapshots

* Update docs

* Fix up functional tests

* Clean up legacy types

* Revise types from reverting injected metadata changes

* Update translations and broken tests

* Mock legacy internals in legacy tests

* Add missing doc types

* Rename InternalRenderOptions to LegacyRenderOptions

* Remove extraneous legacy exports, review nits

* Functional tests fixes

* Rebase, attempt CI test fixes

* Only allow specified appIds in testbed rendering integration test

* Update snapshot names

* Review nits
2019-12-29 02:10:55 -06:00
friol
3ed5264cc3 Possibility to filter when testing scripted fields (#35379) (#44220)
* Possibility to filter when testing scripted fields

* Possibility to filter when testing scripted fields

* Now the i18n test should pass

* use SearchBar instead of EuiFieldText input

* clean up

* test script design improvement

* Fixed SearchBar reference and updated the help_flyout tests

Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>
Co-authored-by: Nathan Reese <reese.nathan@gmail.com>
Co-authored-by: Elizabet Oliveira <elizabet.oliveira@elastic.co>
2019-12-26 20:09:40 -07:00
Aaron Caldwell
6669111f86
Update maps telemetry mappings to account for recent updates (#53803) 2019-12-26 14:02:06 -07:00
Thomas Neirynck
4b00bada23
[Maps] Only show legend when layer is visible (#53781) 2019-12-26 11:15:16 -05:00
Spencer
22b833526a
remove use of experimental fs.promises api (#53346)
* remove use of experimental fs.promises api

* remove one more usage of fs.promises

* switch to an alternate fs module to maintain testing strategy

Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>
2019-12-25 06:27:21 -07:00
Søren Louv-Jansen
53513f6b7b
[APM] Add log statements for flaky test (#53775)
* [APM] Add log statements for flaky test

* Improve logging

* Improve logging

* Log full index on error
2019-12-24 12:39:08 +01:00
Cauê Marcondes
3b0cce0035
[APM] Transaction page throws unhandled exception if transactions doesn't have http.request (#53760)
* Making http.request optional

* changing unit test
2019-12-24 10:33:20 +01:00
Mikhail Shustov
0ded3cb094
Licensing plugin functional tests (#53580)
* NP licensing add functional tests (#53002)

* fix comment

* introduce core provider plugin for integration tests

* platform functional tests use core_provider_plugin for testing

* add 3 scenario for licensing plugins: server, client, legacy

* remove unused code

* run all licensing_plugin tests on CI

* remove duplicated config

* address comments

* declare global type for core provider

* remove potentially dangerous operation

Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>
2019-12-24 12:31:18 +03:00
Maja Grubic
c433c6e497
[Lens] Disable saving visualization until there are no changes to the document (#52982)
Adding unit test for new functionality

Fixing type error

Removing unnecessary act statements

Removing unnecessary assertion

Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>
2019-12-24 08:21:38 +00:00
igoristic
21d6202579
[Monitoring] Added safeguard for some EUI components (#53318)
* merged master

* addressed feedback

* Addressed feedback

Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>
2019-12-23 11:35:25 -05:00
Alexey Antonov
6ff8931d73
[Vega] Shim new platform - cleanup vega_visualization dependencies (#53605)
* Cleanup Vega Vis

* fix PR comments

Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>
2019-12-23 19:01:14 +03:00
Alexey Antonov
57b1f19d73
Display changed field formats without requiring hard page refresh. (#53746)
* Display changed field formats without requiring hard page refresh.

* Update src/plugins/data/public/field_formats_provider/field_formats.ts

Co-Authored-By: Vadim Dalecky <streamich@users.noreply.github.com>

* fix PR commetns

Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>
Co-authored-by: Vadim Dalecky <streamich@users.noreply.github.com>
2019-12-23 18:56:59 +03:00
Greg Thompson
e7076927d7
Upgrade EUI to v17.3.1 (#53655)
* eui to 17.3.0

* eui to 17.3.1

* TS updates

* snapshot updates

* update data-test-subj

Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>
2019-12-23 09:49:35 -06:00
Søren Louv-Jansen
8b0d5f54dd
[APM] Fix missing apm indicies (#53541)
* [APM] Fix missing apm indicies

* Fix infinite loop in ui indices

* Add test for empty settings
2019-12-23 16:44:57 +01:00
Daniil Suleiman
08ff02426b
Disable inspector for timelion (#53747) 2019-12-23 17:06:38 +03:00
Liza Katz
04ef735cd4
Clean up search servie (#53701)
* ts

* fix import path
2019-12-23 12:49:03 +00:00