Commit graph

32946 commits

Author SHA1 Message Date
patrykkopycinski
a06c02f606
[SIEM] Eliminate Superfluous Untitled Timelines (#64341) 2020-05-06 14:56:09 +02:00
Aleh Zasypkin
2a32f8f399
Sync Kerberos + Anonymous access tests with the latest security/_authenticate API (user roles now include roles of anonymous user). (#65421) 2020-05-06 13:17:42 +02:00
Dmitry Lemeshko
ced64f43f7
add tsvb tests to Firefox suite (#65425) 2020-05-06 14:13:52 +03:00
Pierre Gayvallet
c6b1f70ed8
Fix flaky ServerMetricsCollector integration test (#65420)
* fix flaky test

* add comment on supertest behavior
2020-05-06 12:53:43 +02:00
Cauê Marcondes
4e2b944576
[APM] Custom links section inside the Actions menu is showing outside of the menu (#65428) 2020-05-06 12:50:28 +02:00
Walter Rafelsberger
8a65950de4
[ML] Adds docs_per_second to transform edit form. (#65365)
Adds an option to edit the docs_per_second option for throttling for transforms.
2020-05-06 11:56:58 +02:00
Silvia Mitter
81ad646d22
update apm index pattern (#65424) 2020-05-06 11:53:01 +02:00
Mikhail Shustov
da28df5b15
add direct build command (#65431) 2020-05-06 11:51:50 +02:00
James Gowdy
8944dbaac4
[ML] Adding daily_model_snapshot_retention_after_days to types and schemas (#65417) 2020-05-06 10:22:40 +01:00
Anton Dosov
6114ebabec
[chore] Improve request cancelation handling in vis embeddable (#65057) 2020-05-06 10:58:34 +02:00
Gidi Meir Morris
94127d803a
[Alerting] migrates acceptance and functional test fixtures to KP (#64888)
This PR migrates the vast majority of Alerting legacy code to the Kibana Platform.

This includes:

1. Removed legacy Task Manager
2. Migrates Fixture plugins in Alerting, Triggers UI and Task Manager Perf

This does not includes:

1. The PagerDuty simulator due to a lack of support for custom responses in the platform. issue opened. https://github.com/elastic/kibana/issues/65045
2. The Webhooks simulator due to a lack of support for custom authorisation. Requires investigation.
2020-05-06 09:57:26 +01:00
Pete Harverson
8483574d1e
[ML] Fixes reordering in view by selection when overall cell selected (#65290) 2020-05-06 09:26:58 +01:00
Ryan Keairns
a108b23c27
Additional branding updates (#64712)
* branding updates

* update snapshots

* update loginPage snapshot

* removed unused EuiText imports

* update button label for exiting full screen

* remove unused translations

* update loading_news snapshot

* update functional baseline screenshots
2020-05-06 01:39:29 -05:00
Matthias Wilhelm
9dc5c7debe
Remove redundant formatting of percentage column (#64948)
* Remove redundant formatting of percentage column

* Fix functional test

* Fix browser test
2020-05-06 08:31:03 +02:00
Christos Nasikas
3ca63a6119
[SIEM][CASE] Configuration pages UI redesign (#65355) 2020-05-06 08:46:21 +03:00
Michail Yasonik
35e10273d3
New nav (#64018)
Notably, also removes aria-hidden from many visualizations
2020-05-05 23:14:14 -05:00
Alison Goryachev
9d88805a95
[Ingest pipelines] Address copy feedback (#65175) 2020-05-05 20:12:55 -07:00
Steph Milovic
edc8cb532b
bug fixing (#65387) 2020-05-05 21:08:04 -06:00
spalger
42d2443338 skip whole suite blocking snapshots (#65377) 2020-05-05 18:55:43 -07:00
Brent Kimmel
e977df40ad
add related event generation to ancestor nodes (fixes a bug) (#64950)
* add related event generation to ancestor nodes
* fix tests to account for alert at n-1
2020-05-05 21:48:04 -04:00
Corey Robertson
b8bea5b8b2
[Canvas] move files from legacy/plugins to plugins (#65283)
* Moves the files

* Rename legacy/plugins/canvas paths

* Correct paths

* Fix shareable_runtime and storybook

* ESLint Fixes

* Fix jest test and paths
2020-05-05 20:52:56 -04:00
Angela Chuang
a5fe3ce92a
[SIEM] template timeline UI (#64439)
* init template timeline's tab

* add template filter

* add routes for timelines tabs

* add tabs hook

* add filter type

* fix unit test

* add breadcrumbs

* fix types error

* fix flashing table

* fix types

* fix flashing table

* fix filter

* add comments for filters

* review X

* review x

* fix create note for template timeline

* rename timelineTypes to timelineType

* update unit test

* fix types

* update filter for timeline savedObject

* fix lint error

Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>
Co-authored-by: Patryk Kopycinski <contact@patrykkopycinski.com>
Co-authored-by: Xavier Mouligneau <189600+XavierM@users.noreply.github.com>
2020-05-05 20:05:12 -04:00
Sandra Gonzales
daceebb329
[Ingest] check and create default indices during setup (#64809)
* check and create default indices during setup

* fix typos

* add kibana issue

* add date mapping

* add removeDocValues to each field to stop apps from creating a new index pattern

* update snapshot

* add property to test data
2020-05-05 19:36:47 -04:00
spalger
a1f8ad039e skip flaky suite (#64812) (#64723) 2020-05-05 16:17:23 -07:00
Spencer
dc647a6e4c
[pre-commit script] refactor for speed (#65202) 2020-05-05 16:13:48 -07:00
Tyler Smalley
65447ec62f [test] Skip ML test preventing promotion of ES snapshot
"machine learning anomaly detection single metric job cloning displays
the summary step"

https://github.com/elastic/kibana/issues/65377

Signed-off-by: Tyler Smalley <tyler.smalley@elastic.co>
2020-05-05 16:04:11 -07:00
Spencer
65ab0c6b35
[interpreter] remove unused code (#65332) 2020-05-05 16:03:45 -07:00
John Schulz
ee9c1a0ba1
[Ingest Manager] Use cloudId for ES & Kibana URLs if available. (#65366)
* Use cloudId for ES & Kibana URLs if available.

* Add tests and a missing return

* Use console.debug for consistency
2020-05-05 18:58:54 -04:00
Brandon Morelli
f5e8f3d3c2
docs: update timeline (#65182) 2020-05-05 15:32:18 -07:00
Andrew Goldstein
ecd16dcc71
Drag between ANDs in timeline queries / add to timeline (#65228)
## Summary

This enhancement: 

- Enables drag and drop between `AND`s in a timeline query to narrow or widen a search

![drag-between-ANDs](https://user-images.githubusercontent.com/4459398/81045705-f457cf00-8e73-11ea-9df0-231a30e1bbd9.gif)

- Introduces a new `Add to timeline investigation` context menu action that automatically drags and drops any draggable to the timeline

![add-to-timeline](https://user-images.githubusercontent.com/4459398/81045745-08033580-8e74-11ea-9f3e-0e173f925aea.gif)

- When dragging while the timeline is closed, the timeline drop target automatically opens (and closes), making it possible to directly add to an existing `AND` (in addition to the original behavior, which added an `OR`)

![drag-directly-to-group](https://user-images.githubusercontent.com/4459398/81045882-5e707400-8e74-11ea-8c18-91399546214c.gif)

### Desk testing

Desk tested in:
- Chrome `81.0.4044.129`
- Firefox `75.0`
- Safari `13.1`
2020-05-05 16:26:49 -06:00
Spencer
ee270c7c3f
disallow external imports to src/core/utils (#64852) 2020-05-05 14:56:22 -07:00
Yuliia Naumenko
509ea6a91c
Updated README for alerting API (#65219)
* Updated README for alerting API

* Fixed due to comments
2020-05-05 14:43:15 -07:00
gchaps
bf7ace3109
[DOCS] Fix indentation in code blocks in Timelion (#65343) 2020-05-05 14:39:09 -07:00
Devon Thomson
5bad855e4b
Return to dashboard after editing embeddable (#62865)
Changed the process for saving visualizations and lens visualizations when the user has been redirected there from another application.
2020-05-05 16:58:36 -04:00
Nathan Reese
932d6ad214
[Maps] do not show auto-clustering capabilities for a geo_shape source (#65306)
* [Maps] do not show auto-clustering capabilities for a geo_shape source

* add check in UpdateSourceEditor
2020-05-05 14:56:31 -06:00
IgorG
4302161112
New resolver (#64704)
* New commit

* New commit adding data-test-subj to controls

* Final commit for the resolver tests

* Final commit for the resolver tests

* Final commit for the resolver tests

* Final commit for the resolver tests

* Final commit for the resolver tests

* Removed sleep statements and added "WaitForTableToHaveData"

* Removed sleep statements and added "WaitForTableToHaveData"

* Fixed type check and modified style parsing

* Removed window resize

* Fixed style type errors

* Removed unnecessary sleeps and added verifications for Nodes location

* Removed unnecessary sleeps and added verifications for Nodes location

* Merge branch 'master' of https://github.com/elastic/kibana into new_resolver

* Merge branch 'master' of https://github.com/elastic/kibana into new_resolver

* Merge branch 'master' of https://github.com/elastic/kibana into new_resolver

* Added resize the window for PAss the test

* Added resize the window for PAss the test

* Added resize the window for PAss the test

* Added resize the window for PAss the test

* Added resize the window for PAss the test

Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>
2020-05-05 13:50:00 -07:00
Jen Huang
ea19374a21
[Ingest] Enforce security required and superuser permissions (#65315)
* Add check permissions route and request hook

* Conditionally register routes

* Add security not enabled and permissions missing warning UIs

* Hide global settings when there is an error
2020-05-05 13:44:39 -07:00
Jen Huang
e344adb572
Remove events.module from query, use dataset string or index name instead (#65328) 2020-05-05 13:42:21 -07:00
Wylie Conlon
e5d7bb6e9a
[Lens] Pie and treemap charts (#55477)
* [Lens] Add pie and treemap visualizations

* Fix types

* Update to new platform

* Support 2-layer treemap and legends, dark mode

* Significant restructuring of code

* Upgrade to latest charts library

* Commit yarn.lock

* chore: update elastic-charts

* fix types after merge master

* Add settings panel and merge visualizations

* Fix tests

* build: upgrade @elastic/charts to 19.0.0

* refactor: onBrushEnd breaking changes

* fix: missing onBrushEnd argument changes

* More updates

* Fix XY rendering issue when all dates are empty

* Fix bugs and tests

* Use shared services location

* Fix bug in XY chart

* fix: update ech to 19.1.1

* fix: lens onBrushEnd breaking changes

* Change how pie/treemap settings work

* [Design] Fix up settings panel

* [Design] Update partition chart config styles

* fix eslint

* Fix legend issues in pie and XY, add some tests

* update to 19.1.2

* Fix text color for treemap

* Fix chart switch bug

* Fix suggestions

Co-authored-by: Marta Bondyra <marta.bondyra@elastic.co>
Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>
Co-authored-by: Marco Vettorello <vettorello.marco@gmail.com>
Co-authored-by: cchaos <caroline.horn@elastic.co>
2020-05-05 15:59:32 -04:00
Ryland Herrick
7cd44e02b8
[SIEM][Detections] ML services refactor (#65187)
* Use generic type for our cluster call

Our callCluster function is currently an ML client being scoped by
alerting.

* Use the ML client in our anomaly query

This will allow us to refactor getAnomalies to use ML services.

* Use ml-provided services to query for anomalies

This gets us a free license check from ML. In the future, it will also
check user privileges.

* Add unit tests for our ML query function

This is going to be touched in the near future for lists.

* Retrieve job summary info as the alerting user

This will ensure the proper permissions checks when retrieving this
information.

* Remove TODO about ML error condition

If the service call fails on e.g. a license check, an error will be
thrown and it will be recorded as a rule failure.
2020-05-05 14:52:45 -05:00
James Gowdy
943f8b9df1
[ML] Fix packetbeat module query (#65241) 2020-05-05 20:44:52 +01:00
Walter Rafelsberger
2de9346ed1
[ML] Progress to include step. (#65305)
Changes the way progress is reported to include the steps and the progress for each step.
2020-05-05 21:30:26 +02:00
Walter Rafelsberger
32be411e1f
[ML] Transforms: Edit transform flyout. (#65033)
Adds an option to be able to edit certain attributes of transforms. This PR adds the ability to edit the description and frequency of the transform config. The PR is prepration to add support for editing throttling in a follow up.
2020-05-05 21:27:16 +02:00
Alexey Antonov
e864fd685e
[Vis Editor] - console error on opening the Inspector from visualization editor (#65277)
Closes: #65268
2020-05-05 22:20:47 +03:00
Tiago Costa
33376fc368
Integration of a static filesystem for the node_modules (#47998)
* feat(NA): added new build step to generate a static file system for node_modules and monkey patch the bin start files to include the static file system loader on begining.

* chore(NA): updated lockfile.

* chore(NA): replace import to the correct static-fs files.

* fix(NA): resolve for a correct static fs loader.

* chore(NA): last static-fs working version.

* feat(NA): changed patched entryPoints.

* chore(NA): update to last static fs.

* fix(NA): fix imports on webpack shims. chore(NA): added new static-fs version.

* chore(NA): update to static-fs with stat and statSync.

* fix(NA): vendor chunk filtering in order to include default node modules and static node modules.

* refact(NA): major refact on create static modules fs task.

* fix(NA): remove global from clean empty folders task.

* chore(NA): change args order for deleteAll.

* chore(NA): move to the new static fs

* feat(NA): migrate to last apis of static fs

* fix(NA): patch correct entry file.

* chore(NA): last stable integration with static-fs task

* chore(NA): rollback some unecessary changes

* chore(NA): remove changes on sinon webpackshim

* chore(NA): integrate with official static-fs version

* chore(NA): integrate last thread-loader version

* chore(NA): added last static-fs version

* chore(NA): upgrade to last static-fs version

* chore(NA): upgrade to last static-fs version 1.1.1

* chore(NA): rever static-fs version to 1.1.0

* chore(NA): upgrade static-fs to 1.1.1

* chore(NA): upgrade static-fs for last 1.2.0 version

* chore(NA): update package.json

* chore(NA): run apm after patched environment

* chore(NA): specify rule to disable eslint for

* chore(NA): remove changes in the src/apm file

* chore(NA): change apm order in the dev scripts

* chore(na): update static-fs versin

* chore(NA): bump static fs version

* chore(NA): correctly lint task file

* chore(NA): move away from rimraf to del

* chore(NA): bump static-fs version

* chore(NA): bump static-fs version

* chore(NA): bump static-fs version

* chore(NA): bump static-fs version

* chore(NA): bump to last static-fs version

* chore(NA): apply changed according PR review feedback

* chore(NA): remove changes to base optimizer

* chore(NA): fix discover pattern

* chore(NA): bump static-fs version

* chore(NA): bump static fs to 1.6.3

* chore(NA): bump static-fs to 1.6.4

* chore(NA): bump static-fs to last version

* chore(NA): bump static-fs to last version

* chore(NA): bump static-fs to last version

* chore(NA): bump static-fs to last version

* chore(NA): bump static-fs to last version

* chore(NA): bump static-fs to last version

* chore(NA): bump static-fs for 1.8.3

* chore(NA): bump static-fs to 1.9.0

* chore(NA): bump static-fs to 1.9.1

* chore(NA): update to last static-fs version 1.10.0

* chore(NA): moving to @elastic/static-fs package

* fix(NA): change import to the new package

* chore(NA): bump elastic static-fs to 1.0.1

Co-authored-by: spalger <email@spalger.com>
Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>
2020-05-05 20:16:47 +01:00
Oliver Gupte
4896b65c98
[APM] Service maps anomaly detection status in popover (#65217)
* Adds ML status to the service maps popover. Modifies the query a bit to
get the actual vs typical values necessary to generate a proper anomaly description

* fixed failures and updated tests

* component clean up

* makes the ML link open in a new window

* - Closes #64278 by removing the framework badge.
- changes anomaly score display to integer formatting
- update link test to 'View anomalies'

* - Closes #65244 by displaying a message for services without anomalies detected
- removes unecessary service framework name in service map queries
- adds date range filter for anomaly detection
2020-05-05 12:15:15 -07:00
The SpaceCake Project
bec09fde87
[SIEM] Add initial candidate rules for 7.8 merge may 4 (#65169)
* 78 rules

populated rules with a package from the siem-rules repo

* Update index.ts

* Update rule.ts

adjust rule count to 145

Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>
Co-authored-by: Garrett Spong <spong@users.noreply.github.com>
2020-05-05 15:14:01 -04:00
Alison Goryachev
fdfbf7d7f7
[Ingest pipelines] Fix bug when deleting pipeline from details panel (#65216) 2020-05-05 15:13:24 -04:00
Justin Kambic
c7ae1c0e95
[Uptime] Flatten dynamic settings object, update saved object mapping (#64856)
* Flatten dynamic settings object, update saved object mapping.

* Update broken types.

* Delete commented code.

* Rename a test.
2020-05-05 15:05:05 -04:00
Uladzislau Lasitsa
2ccc397fe7
[data.search.aggs]: Expression functions for metric agg types (#64914) 2020-05-05 12:59:58 -06:00