Commit graph

35759 commits

Author SHA1 Message Date
Shahzad de4b502cb3
Fix docs in trigger alerting UI (#75363) 2020-08-19 09:13:40 +02:00
MadameSheema 6c00cb2ec2
[SIEM] Fixes search bar Cypress test (#74833)
* fixes search bar test

* fixes typecheck issue

* fixes test

* uses data-test-subj locator instead of class

* fixes failing kibana tests

Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>
2020-08-19 08:39:13 +02:00
Joel Griffith 0707e29de3
Add libnss3.so to Dockerfile template (reporting) (#75370) 2020-08-18 15:46:50 -07:00
Andrea Del Rio 245c0a3708
[Discover] Create field_button and add popovers to sidebar (#73226)
Co-authored-by: Michail Yasonik <michail.yasonik@elastic.co>
Co-authored-by: cchaos <caroline.horn@elastic.co>
Co-authored-by: Joe Reuter <johannes.reuter@elastic.co>
2020-08-18 13:51:47 -07:00
Tim Sullivan 982402145c
[Reporting] Network Policy: Do not throw from the intercept handler (#75105)
Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>
2020-08-18 13:26:52 -07:00
Tim Sullivan 47d41437d9
[Reporting] Increase capture.timeouts.openUrl to 1 minute (#75207)
* [Reporting] Increase capture.timeouts.openUrl to 1 minute

* update the docs
2020-08-18 13:26:31 -07:00
Brandon Kobel 83bc5004e3
Allow routes to specify the idle socket timeout in addition to the payload timeout (#73730)
* Route options timeout -> timeout.payload

* timeout.idleSocket can now be specified per route

* Removing nested ternary

* Fixing integration tests

* Trying to actually fix the integration tests. Existing tests are hitting
idle socket timeout, not the payload timeout

* Fixing payload post timeout integration test

* Fixing PUT and DELETE payload sending too long tests

* Fixing type-script errors

* GET routes can't specify the payload timeout, they can't accept payloads

* Removing some redundancy in the tests

* Adding 'Transfer-Encoding: chunked' to the POST test

* Fixing POST/GET/PUT quick tests

* Adding idleSocket timeout test

* Removing unnecessary `isSafeMethod` call

* Updating documentation

* Removing PUT/DELETE integration tests

* Working around the HapiJS bug

* Deleting unused type import

* The socket can be undefined...

This occurs when using @hapi/shot directly or indirectly via
Server.inject. In these scenarios, there isn't a socket. This can also
occur when a "fake request" is used by the hacky background jobs:
Reporting and Alerting...

* Update src/core/server/http/http_server.ts

Co-authored-by: Josh Dover <me@joshdover.com>

* Adding payload timeout functional tests

* Adding idle socket timeout functional tests

* Adding better comments, using ?? instead of ||

* Fixing the plugin fixture TS

* Fixing some typescript errors

* Fixing plugin fixture tsconfig.json

Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>
Co-authored-by: Josh Dover <me@joshdover.com>
2020-08-18 10:46:08 -07:00
Spencer f0430f298f
[src/dev/build] remove node-version from snapshots (#75303)
Co-authored-by: spalger <spalger@users.noreply.github.com>
2020-08-18 10:45:26 -07:00
Bohdan Tsymbala 4a274e0325
[ENDPOINT] Reintroduced tabs to endpoint management and migrated pages to use common security components (#74886)
* Reintroduced tabs to endpoint management and migrated pages to use common security components.

* Empty trusted apps tab.

* Changed casing in the translations.

* Switched to using route path generation functions.

* Added propagation of data-test-subj attribute to Wrapper component.

* Fixed CommonProps import.

* Moved out shared component for administration list page.

* Removed unused file.

* Removed unused translation keys.

* Removed redundant snapshot.

* Added some minimal tests.

* Attempt to fix functional tests.

* Attempt to fix functional tests again.

* Reverted function declarations back to const.

* Wrapped component in memo.
2020-08-18 19:42:47 +02:00
Poff Poffenberger e6e7354a9e
[Canvas] Remove dependency on legacy expressions APIs (#74885)
* Remove legacy types and function registration

* Pull server interpreter functions routes into Canvas and update them to use new expressions API

* Clean up comment

* Removing boom and doing more cleanup

* Add functions test and refactor other router tests

* Adding a type and refactoring a forgotten test

* more tests

Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>
2020-08-18 12:39:46 -05:00
Sébastien Loix f02fad4e5a
Skip failing test in CI (#75266) 2020-08-18 18:58:38 +02:00
Gidi Meir Morris 773883f6a4
[Task Manager] time out work when it overruns in poller (#74980)
If the work performed by the poller hangs, meaning the promise fails to resolve/reject, then the poller can get stuck in a mode where it just waits for ever and no longer polls for fresh work.
This PR introduces a timeout after which the poller will automatically reject the work, freeing the poller to restart pulling fresh work.
2020-08-18 17:32:59 +01:00
Anton Dosov 50f9a97a41
[Drilldowns] misc improvements & fixes (#75276)
Added support for isCompatible. It is checked during execution.
Pass actionFactory context into createConfig, IsConfigValid
Fix bug that selectedTriggers wasn't reset when switching action factories
Check if license is active in action factories
2020-08-18 17:50:02 +02:00
Joel Griffith e30220f04c
Small README note on bumping memory for builds (#75247) 2020-08-18 08:24:53 -07:00
Davis Plumlee bfdaacdaa6
[Security Solution][Detections] Adds exception modal tests (#74596) 2020-08-18 11:20:35 -04:00
Alexey Antonov 8d851981ac
[Dashboard] Sample data link does not work (#75262)
Closes #74812
2020-08-18 17:35:53 +03:00
Devon Thomson 2af2b60b00
[Dashboard First] Unlink from Library Action With ReferenceOrValueEmbeddable (#74905)
* Added an unlink from library action which works with the ReferenceOrValue interface. Once
2020-08-18 10:31:55 -04:00
Sébastien Loix 196cb7f865
[Form lib] Fix issue where serializer on fields are called on every change (#75166)
Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>
2020-08-18 16:05:10 +02:00
Jean-Louis Leysens 0e28dae410
convert processor labels to sentence case (#75278) 2020-08-18 15:42:43 +02:00
Jean-Louis Leysens 36f0c75088
[Monaco] Refactor the way XJSON grammar checker gets registered (#75160)
* Refactor the way XJSON grammar checker gets registered

- avoid registering multiple model add listeners
- remove regsiterGrammarChecker from public API!
- fix getWorker handler to register XJSON only for XJSON models

* remove unused import

* updateAnnos -> updateAnnotations
2020-08-18 15:13:15 +02:00
Melissa Alvarez 2a212cbad8
Clarify no documents error message when filtering by is_training (#75227) 2020-08-18 08:58:15 -04:00
Marta Bondyra e04e05aa56
[Lens] Fix crash when two layers xychart switches to pie (#75267)
* [Lens] fix crash on two layers and add a functional test with two layers switching to pie chart
2020-08-18 14:27:43 +02:00
Shahzad ce8a92ea1f
[Observability Homepage] Fix console error because of side effect (#75258) 2020-08-18 14:07:18 +02:00
Alejandro Fernández Haro e077a28928
[Usage Collection] Add legacy=true option to the /api/stats request in the docs (#75146) 2020-08-18 12:01:34 +01:00
Robert Oskamp 834a287379
[ML] Functional tests - re-activate DFA test suites (#75257)
This PR re-enables the DFA test suites for cloning, regression creation and classification creation.
2020-08-18 12:32:13 +02:00
Pierre Gayvallet c844187ee9
GS providers improvements (#75174)
* exclude apps with non visible navlinks from results

* change SO provider to prefix search

* fix service tests
2020-08-18 12:24:48 +02:00
Maja Grubic 9bef31725b
[Visualize] First version of by-value visualize editor (#72256)
* First version of new by-value editor

Fixing broken behavior and applying relevant changes

Adding changes to dashboard

Removing unnecessary empty line

Removing unnecessary deepClone

Fixing some stuff in dashboard container

Extracting logic into common components

Fixing eslint

Fix breadcrumbs

Fixing error in search interceptor

Reintroduce mistakenly removed empty lines

Renaming function

* Adding missing null check

* Making typescript play nicely

* Fixing failing tests

* Applying PR comments

* Fixing eslint errors

* Fix save as behavior

* Fixing HTMLElement type

* Passing in setOriginatingApp parameter

* Redirect back to dashboard if input is missing

* Fixing i18n error

* Unlink saved search

* Fix duplicating embeddable by reference

Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>
2020-08-18 11:19:26 +01:00
Pierre Gayvallet 890fc31dff
Beats Management plugin: migrate server-side code (#70930)
* move all the legacy codebase to KP plugin

* fix imports

* add empty handler context & rename routes folder

* start migrating routes

* migrate rest of the routes

* migrate adapters

* remove beats from legacy xpack plugin

* use nullable + replace response.custom

* fix wrapRouteWithSecurity, remove incorrect header validation

* remove comment

* updating generated plugin list

* fix typos in doc

* adapt readme too.

* remove old commented routes from route files

* remove eslint disabling

* use camel case for plugin id

* update generated doc

Co-authored-by: Josh Dover <me@joshdover.com>
2020-08-18 12:00:39 +02:00
Stratoula Kalafateli 198806baef
Timelion app deprecation warning (#74660)
* wip deprecation notice on timelion app

* Add a deprecation notice on timelion app

* Minor, add visualize and timelion on the docLinks

* Chage the layout a bit

* Change the deprecation notice message

* Change the deprecation notice message

Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>
2020-08-18 11:18:41 +03:00
Marco Liberati bdcbfdc8e4
[Data Table] Fix download filename when using split table (#74231)
Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>
2020-08-18 09:37:16 +02:00
Patryk Kopyciński 7b785c62e4
[Security Solution] Fix unit tests (#75165) 2020-08-18 09:00:50 +02:00
Aleh Zasypkin e46e66210f
Implement Server-Side sessions (#68117) 2020-08-18 08:38:23 +02:00
Stratoula Kalafateli 28e6dd3521
[Functional] Increases the time to locate the Create Visualization button (#75133) 2020-08-18 09:12:06 +03:00
Ben Skelker 843c2383ea
[Docs]Security docs 7.9 updates (#75156)
* security docs 7.9 updates

* terminology

* updates advanced settings

* terminology

* corrections
2020-08-18 08:25:06 +03:00
Spencer cf0e287c9e
[jenkins/security-cypress] run build before the tests (#75203)
Co-authored-by: spalger <spalger@users.noreply.github.com>
2020-08-17 20:48:22 -07:00
CJ Cenizal ec6cc14a9f
Allow Watcher index actions to be configured without specifying an index name. (#74684) 2020-08-17 19:29:38 -07:00
Brent Kimmel b8dc0a02a0
[Security Solution][Resolver] Enzyme tests for graph layout (#75010)
* [Security Solution][Resolver] Enzyme tests for graph layout

Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>
Co-authored-by: Robert Austin <robert.austin@elastic.co>
2020-08-17 18:07:19 -04:00
Joe Portner 8a110a3c15
lodash 4.17.19 -> 4.17.20 (#75205) 2020-08-17 16:56:32 -04:00
Marshall Main 24773f3a00
[Security solution][Exceptions] Add separate io-ts types for endpoint exceptions (#74468)
* Add separate io-ts types for endpoint exception entries

* Fix text typos

* Fix test

* address review comments

* Add extra entry validation when adding items to endpoint_list

* fix test

* fix tests again

* really actually fix the tests

Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>
2020-08-17 16:42:04 -04:00
Tyler Smalley 83678e1388
[build] Use CentOS/UBI 8.2 as Docker base image (#74656)
Signed-off-by: Tyler Smalley <tyler.smalley@elastic.co>
2020-08-17 13:24:39 -07:00
Nathan L Smith 4b4050c8db
APM and Observability storybook fixes (#75168)
In APM:

* Fix stories crashing with errors
* Hide some additional prop tables
* Fix node severites story to show correct node severites
* Fix Service Map Popover story
* Use knobs on sync badge story

In Observability:

* Remove an extra stray paren in decorators

There's additional refactoring and fixes that can be done but this just gets everything in working order.
2020-08-17 14:33:00 -05:00
Tiago Costa df9b28a4ce
skip flaky suite (#75124) 2020-08-17 20:25:22 +01:00
Pierre Gayvallet 57a802c43f
expose es config on es setup contract (#73055)
* expose es config on es setup contract

* move config$ back to legacy
2020-08-17 21:08:27 +02:00
Alison Goryachev 156692cbfb
[Ingest pipelines] Add KibanaContextProvider as dependency of processor editor (#75018) 2020-08-17 14:25:26 -04:00
Peter Pisljar 22f0641ec3
esdsl (#69254) 2020-08-17 20:21:48 +02:00
Spencer 7d3fe58dfa
[jenkins/security-cypress] send status emails to entire team (#75171)
Co-authored-by: spalger <spalger@users.noreply.github.com>
2020-08-17 09:54:59 -07:00
Constance 0b28dc2f48
[Enterprise Search][tech debt] Refactor external URL generation to a single DRY helper (#75093)
* Set up App Search routes constants file

* Create new helper/generator for external URLs

* Update plugin to pass externalUrl helper in KibanaContext

* Update AS & WS navs to use new external url generator

* Update App Search views to use new externalUrl.getAppSearchUrl helper

* Update Workplace Search to use externalUrl.getWorkplaceSearchUrl helper

+ remove old useRoutes.getWSRoute helper, which was the inspiration for this

* Rename top-level enterpriseSearchUrl to config.host

- This allows us to more clearly separate concerns between the URL set in config.host and externalUrl.enterpriseSearchUrl (used for front-end links, may be a vanity/public URL)
- This change also enables us to not mutate Kibana's config obj, which is much cleaner

Misc tech debt:
- Reorder renderApp args (from least to most likely to change)
- Rename our public url methods/vars to more generic "init data" names - this is in preparation for upcoming changes where we pull more than just external_url from our client endpoint

* Fix broken Workplace Search nav links

- that require a hash for routing to work

Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>
2020-08-17 09:37:21 -07:00
Nathan Reese 4ac0e81554
[Maps] fix double fetch when filters are modified (#74893)
* [Maps] fix double fetch when filters are modified

* add unit tests

Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>
2020-08-17 09:44:08 -06:00
Nathan Reese b07db9dec8
[Maps] convert kibana_services to TS (#74901)
* [Maps] convert kibana_services to TS

* tslint

* fix jest test

* tslint

Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>
2020-08-17 09:41:08 -06:00
Chris Roberson 4c2f0760dc
Use actual link for cluster listing page (#75016)
Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>
2020-08-17 11:27:41 -04:00