Commit graph

35941 commits

Author SHA1 Message Date
Christiane (Tina) Heiligers
0bdce6afc1
[7.x] Usage collection plugins to ts project refs (#81090) (#81201)
# Conflicts:
#	tsconfig.json
2020-10-20 11:15:43 -07:00
Charlie Pichette
63358163f5
[7.x] Fix security solution template label (#80754) (#81222) 2020-10-20 12:03:47 -06:00
Yara Tercero
a92a3d1af7
[Security Solution][Detections] - rule query preview bug fix (#80750) (#81196)
### Summary 

This PR addresses the remaining query preview bugs. 

- it adds index, and request information to eql inspect - it seems that for some reason the eql search strategy response returns `null` for the `params.body` in complete responses, but not in partial responses and does not include index info. As a workaround, I set the inspect info on partial responses and manually add index info
  - added to-dos pointing this out in the code
- updated eql sequence queries preview to use the last event timestamp of a sequence to display the hits within a histogram
- it checks buckets length to determine noise warning for threshold rules, as opposed to total hit count
- remove unused i18n text
- fixes bug where threshold is being passed in for all rule types as it's always defined in the creation step, added a check to only pass through to `useMatrixHistogram` hook when rule type is threshold
2020-10-20 13:56:07 -04:00
Charlie Pichette
b034db9ed7
[7.x] update template to use the new team label (#80748) (#81219) 2020-10-20 11:55:04 -06:00
Charlie Pichette
3212a85483
[7.x] Update Security Solution Bug Report Template (#80668) (#81213) 2020-10-20 11:43:17 -06:00
Oliver Gupte
0360097c6b
[APM] Fix service map highlighted edge on node select (#80791) (#81088)
* Closes #80633 by passing a reference to the core cytoscape options to correctly reset all edges in the map

* removed commented out debugger statement
2020-10-20 10:42:26 -07:00
Charlie Pichette
26ea9f541d
[7.x] add template for Security Solution bugs (#80574) (#81212) 2020-10-20 11:31:14 -06:00
Devin W. Hurley
b7d201f2e2
[7.x] [Security Solution] [Detections] Read privileges for dependencies (#80852) (#81163)
* remove all privileges on hidden saved object type of alert and change alerting privileges to read when read privileges are set for security solution.
2020-10-20 13:02:03 -04:00
Uladzislau Lasitsa
733feb6fe9
Removed visualization:loadingDelay (#79841) (#79987) 2020-10-20 19:36:39 +03:00
Tiago Costa
b6d1951904
skip flaky suite (#81072) 2020-10-20 17:31:50 +01:00
Matthew Kime
d0dc8c5042
[7.x] Index pattern edit field formatter API (#78352) (#81174)
* Index pattern edit field formatter API (#78352)
2020-10-20 11:29:10 -05:00
Yulia Čech
e15e077c35
Fix reactRouterNavigate when used with a string (#80520) (#81162)
* Fix reactRouterNavigate when used with a string

* Update license management snapshots

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2020-10-20 18:06:51 +02:00
Tim Roes
423ae87eb0
Support unsigned_long fields (#81115) (#81137)
* Support unsigned_long fields

* Change API docs
2020-10-20 18:05:56 +02:00
Justin Kambic
742ba6e768
[Alerting] Add scoped cluster client to alerts and actions services (#80794) (#81167)
* Add scoped cluster client to alerts and actions services.

* Modify functional test to use new ES client.
2020-10-20 11:55:52 -04:00
Justin Kambic
8d66d83a12
[UX] Add empty states (#80904) (#81172)
* Add empty state for user experience metrics.

* Add empty state for page load duration metrics.

* Add empty state for core web vitals.

* Fix bug injected by these changes.

* Add a test.
2020-10-20 11:55:10 -04:00
Chandler Prall
b200fb916c
Upgrade EUI to v29.5.0 (#80753) (#81102)
* Upgraded eui to v29.5.0; snapshot updates

* Cleaned up some types

* addresses feedback on types change

* Update EuiIcon snapshots in jest integration tests

* Updated snapshot from rebasing on master
2020-10-20 09:41:42 -06:00
James Gowdy
dca83a1fca
[ML] Fixing exclude frequent in advanced wizard (#81121) (#81154)
* [ML] Fixing exclude frequent in advanced wizard

* updating description

* adding exclude_frequent to test
2020-10-20 16:23:26 +01:00
EamonnTP
80a2a5081b
Update links (#81125) (#81184) 2020-10-20 16:14:16 +01:00
Gidi Meir Morris
831dbf9068
[Task Manager] Cleans up legacy plugin structure (#80381) (#81139)
This PR addresses a list of legacy code debt the plugin has incurred over the past year due to extensive changes in its internals and the adoption of the Kibana Platform.

It includes:
1. The `TaskManager` class has been split into several independent components: `TaskTypeDictionary`,  `TaskPollingLifecycle`,  `TaskScheduling`,  `Middleware`. This has made it easier to understand the roles of the different parts and makes it easier to plug them into the observability work.
2. The exposed `mocks` have been corrected to correctly express the Kibana Platform api
3. The lifecycle has been corrected to remove the need for  intermediary streames/promises which we're needed when we first introduced the `setup`/`start` lifecycle to support legacy.
4. The Logger mocks have been replaced with the platform's `coreMocks` implementation
5. The integration tests now test the plugin's actual public api (instead of the internals).
6. The Legacy Elasticsearch client has been replaced with the typed client in response to the deprecation notice.
7. Typing has been narrowed to prevent the `type` field from conflicting with the key in the `TaskDictionary`. This could have caused the displayed `type` on a task to differ from the `type` used in the Dictionary itself (this broke a test during refactoring and could have caused a bug in production code if left).
2020-10-20 15:56:49 +01:00
Cauê Marcondes
6b29f9f770
[APM] Error rate on service list page is not in sync with the value at the transaction page (#80814) (#81148)
* fixing error rate

* addressing pr comments

* addressing pr comments

* fixing TS issue

* fixing api test
2020-10-20 16:13:11 +02:00
Nathan L Smith
530c2ec247
Set service map cursors (#80920) (#80984)
* Set service map cursors

* "pointer" when mousing over a node
* "default" when mousing out
* "grabbing" while dragging

Sets the cursor style on the container, not on the individual element.

Since the node can both be clicked (to open a popover) and dragged, I left the cursor on hover as "pointer" to indicate the clickability.

Fixes #64283.
2020-10-20 09:11:38 -05:00
Justin Kambic
8844daf756
Fix typo in toast, slight copy adjustment. (#80843) (#81087)
Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2020-10-20 10:07:58 -04:00
Marco Liberati
421fe04983
[7.x] [Lens] Remove Over time suggestions for numeric intervals (#78442) (#81117)
Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2020-10-20 15:55:39 +02:00
Sébastien Loix
80d3349772
[7.x] [Form lib] Export internal state instead of raw state (#80842) (#81143) 2020-10-20 15:45:22 +02:00
Devin W. Hurley
075efe4842
[7.x] [Security Solution] [Detections] Disable edit button when user does not have actions privileges w/ rule + actions (#80220) (#81055)
* disable edit button only when there is an action present on the rule to be edited, but the user attempting the edit does not have actions privileges

* adds tooltip to explain why the edit rule button is disabled

* prevent user from editing rules with actions on the all rules table

* adds tooltip to appear on all rules table

* updates tests for missing params and missing mock of useKibana

* disable activate switch on all rules table and rule details page

* remove as casting in favor of a boolean type guard to ensure actions.show capabilities are a boolean even though tye are typed as a boolean | Record

* disable duplicate rule functionality for rules with actions

* fix positioning of tooltips and add tooltip to rule duplicate button in overflow button

* update tests

* WIP - display bulk actions dropdown options as disabled + add tooltips describing why they are disabled

* add eui tool tip as child of of each context menu item

* PR feedback and utilize map of rule ids to rules to replace usage of array.finds

* update snapshot

* fix mocks

* fix mocks

* update wording with feedback from design team

Co-authored-by: Patryk Kopycinski <contact@patrykkopycinski.com>

Co-authored-by: Patryk Kopycinski <contact@patrykkopycinski.com>
2020-10-20 09:42:45 -04:00
James Rodewig
61a8146b5d
[DOCS] Update index management docs (#80893) (#81151) 2020-10-20 09:31:10 -04:00
Joe Reuter
1bf85f314f
[Lens] Add toast notification when visualization is saved (#80788) (#81136) 2020-10-20 15:20:40 +02:00
Thomas Neirynck
f844a30283
[Maps] Fix layer-flash when changing style (#80948) (#81059) 2020-10-20 09:03:58 -04:00
Søren Louv-Jansen
ac1850aa2e
[APM] Add correlations API (#78882) (#81124) 2020-10-20 15:01:58 +02:00
Dario Gieselaar
3f92188ca1
[7.x] [APM] Hide service if only data is from ML (#80145) (#81127)
Closes #79998.

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2020-10-20 14:17:34 +02:00
Joe Reuter
c28f106203
Add cumulative sum expression function (#80129) (#81116) 2020-10-20 13:46:01 +02:00
Jason Stoltzfus
9bb02003a0
[Enterprise Search] Added reusable HiddenText component to Credentials (#80033) (#81070) 2020-10-20 07:05:15 -04:00
Søren Louv-Jansen
4d7c9b09d7
[APM] Fix link to trace (#80993) (#81111) 2020-10-20 11:49:15 +02:00
Jean-Louis Leysens
580264fe1a
[ILM] Migrate Hot phase to Form Lib (#80012) (#81013)
* wip

* added missing shared_imports file to index

* initial migration of hot phase to form lib

- tests are now broken
- need to break up the hot_phase file in to meaningful parts
- duplicated set_priority and forcemerge components

* Big refactor

- moved a lot of files around
- removed the need for the state to track whether rollover is set

* Integrate form lib serialization with existing serialization

- refactor serializePolicy -> legacySerializePolicy
- updated serialization of form lib to factor in pre-existing
  policy values. These should be interacted with in a non-lossy
  way.

* wip on fixing jest tests and some other refactors

* fix jest tests and other refactors

* delete existing hot phase serialization and tests

* beginning of serializer test for hot phase

* added serialization tests for form lib components

* fix some i18n issues

* fixed delete phase integration test

* move hot phase serialization test to pre-existing test location

* fix another jest test issue

* fix ui metric tracking for setting input priority in hot phase

* refactor use rollover switch to form lib component and update validation for number segments in force merge

* readded missing validation 🤦🏼‍♂️

* fix type check issues and setting of rollover enabled 🙄

* migrate all form lib components to spreading all rest props in EuiFormRow

* added comment to test helper function

* refactor test helper setPhaseIndexPriorityFormLib -> setPhaseIndexPriority

* refactor to use form schema

* Removed use of UseMultiFields component

- also fix missing "key" on react component in unrelated file
- fixed ordering of JSON in test file
- also removed default value from form schema so that when a
  value is not set for max size, max docs or max age it will
  remain unset in future policies

* update json flyout behaviour

* fix json policy serialization

* Fix type and i18n issues

* do not use form.subscribe

* add missing key value in cells

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2020-10-20 09:55:32 +02:00
Mikhail Shustov
5609c11063
Provide url rewritten in onPreRouting interceptor (#80810) (#81107)
* keep url rewritten in onPreRouting interceptor

* update docs

* add test on undefined
2020-10-20 09:45:09 +02:00
Joe Reuter
ac0766153f
[Lens] Lazy load lens telementry and attribute service (#80479) (#81008) 2020-10-20 09:04:57 +02:00
Frank Hassanabad
175751a313
[Security Solution][Detection Engine] Fixes false positives caused by empty records in threat list (#81097)
## Summary

Fixes false positives that can be caused by empty records in the threat list. Previously I would drop a piece of data in an AND clause if it did not exist in the threat list rather than dropping the entire A clause.

* Adds unit tests
* Adds backend integration tests
* Reduces some boiler plate across the integration tests as suggested in earlier PR reviews

Example is if you create a threat list mapping and add records like so without a field/value such as `host.name`:
```json
"_source" : {
  "@timestamp" : "2020-09-10T00:49:13Z",
  "source" : {
    "ip" : "127.0.0.1",
    "port" : "1001"
}
```

And then you would create an "AND" relationship against the data like so using `host.name` which does not exist in your list:
<img width="1060" alt="Screen Shot 2020-10-16 at 7 29 45 AM" src="https://user-images.githubusercontent.com/1151048/96264530-8581b480-0f81-11eb-8ab9-16160d55c26b.png">

What would happen is that part of the AND would drop and you would match all the `source.ip` which gives us false positives or unexpected results. Instead, with this PR we now drop the entire AND clause if it cannot find part of a record. 

This protection is per record level, so if you have N records where some M set is missing `host.name` only those M record sets would have this "AND" removed.

If you have 1 or more "OR"'s, it will still match the records against those OR's as long as their inner AND clauses have both records in your list match.   

### Checklist

Delete any items that are not applicable to this PR.

- [x] [Unit or functional tests](https://www.elastic.co/guide/en/kibana/master/development-tests.html) were updated or added to match the most common scenarios
2020-10-19 20:56:51 -06:00
Yuliia Naumenko
c9989579c0
Fixed alerts ui test timeout issue, related to the multiple server calls for delete all alerts, by reducing the number of alerts to the two and increasing retry timeout. (#81067) (#81094) 2020-10-19 19:22:10 -07:00
Nathan Reese
78f1743801
docs test (#81080) (#81095) 2020-10-19 19:10:58 -06:00
Matthew Kime
b370047e19
fix commited merge conflict in docs (#81042) 2020-10-19 18:28:01 -05:00
Scotty Bollinger
ebac90bc22
[Workplace Search] Fix Group Prioritization route and clean up design (#80903) (#81069)
* Update route path for prioritizations

* Update prioritization spacing

* Lint fix

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2020-10-19 18:49:29 -04:00
Nathan Reese
ca735f5409
[maps] 7.10 documentation updates (#79917) (#81073)
* [maps] 7.10 documenation updates

* clean up

* clean up connect-to-elasticsearch reference to renamed page

* Update docs/maps/vector-layer.asciidoc

Co-authored-by: gchaps <33642766+gchaps@users.noreply.github.com>

* review feedback

* move upload intro sentences into geospatial import block

* improvements to Import geospatial data

* fix typo

* Update docs/maps/import-geospatial-data.asciidoc

Co-authored-by: gchaps <33642766+gchaps@users.noreply.github.com>

* Update docs/maps/import-geospatial-data.asciidoc

Co-authored-by: gchaps <33642766+gchaps@users.noreply.github.com>

* Update docs/maps/import-geospatial-data.asciidoc

Co-authored-by: gchaps <33642766+gchaps@users.noreply.github.com>

* Update docs/maps/import-geospatial-data.asciidoc

Co-authored-by: gchaps <33642766+gchaps@users.noreply.github.com>

* Update docs/maps/import-geospatial-data.asciidoc

Co-authored-by: gchaps <33642766+gchaps@users.noreply.github.com>

* review feedback

Co-authored-by: gchaps <33642766+gchaps@users.noreply.github.com>

Co-authored-by: gchaps <33642766+gchaps@users.noreply.github.com>
2020-10-19 15:55:39 -06:00
Jason Stoltzfus
40afb87b0d
[Enterprise Search] Added an EuiEmptyState to Credentials page #2 (#80034) (#81050) 2020-10-19 17:11:21 -04:00
Jason Stoltzfus
f69fcaa980
[Enterprise Search] Handle loading state on Credentials page (#80035) (#81051) 2020-10-19 17:11:03 -04:00
Justin Kambic
3d8660f7cd
[Uptime] Add client-side unit tests for remaining synthetics code (#80215) (#80907)
* Test remaining branches in synthetics components.

* Fix TS errors.

* PR feedback.

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2020-10-19 16:59:09 -04:00
Chris Roberson
e1b720ad6a
[Monitoring] Fix cluster listing page in how it handles global state (#78979) (#81048)
* Properly unset global state on the listing page

* Fix how we handle global state in getSafeForExternalLink

* Fix breadcrumbs for clusters link

* Fix tests

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2020-10-19 16:53:38 -04:00
Chris Roberson
5de0501e25
Update label (#80660) (#81028)
Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2020-10-19 16:52:22 -04:00
Mikhail Shustov
da51e758fb
promote --focus flag in docs to speed up the build (#80626) (#81044) 2020-10-19 22:46:38 +02:00
Tyler Smalley
f7f9f9383e
[docker] Removes unnecessary setguid permissions on source directories (#80452) (#81036)
Signed-off-by: Tyler Smalley <tyler.smalley@elastic.co>
2020-10-19 13:33:20 -07:00
Kevin Logan
2a19250b60
[SECURITY_SOLUTION] update security integration text (#80975) (#81035) 2020-10-19 16:17:14 -04:00