Commit graph

34854 commits

Author SHA1 Message Date
Tiago Costa 9296369bfd
chore(NA): teardown dynamic dll plugin (#72096)
* chore(NA): teardown dynamic dll plugin

* chore(NA): remove missing ts-ignore

* chore(NA): remove last mentions to the DLL machinery

* chore(NA): update notice file

* prevent duplication and searching target/public

* remove changes to es-ui code to unblock pr

* add node internals override for legacy tests bundle

Co-authored-by: spalger <spalger@users.noreply.github.com>
Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>
2020-07-17 11:04:14 +01:00
Larry Gregory 99e14aad76
Register navLink actions for declared applications (#72109) 2020-07-17 05:38:55 -04:00
patrykkopycinski 6164037f18
Fix value for process.hash.sha256 draggable (#72142) 2020-07-17 09:14:37 +02:00
Jen Huang 5cd1f6e562
Call setupIngest before fleet_install tests (#72214) 2020-07-16 22:42:28 -07:00
Ryland Herrick effab78a94
[Security Solution][Detections] Better toast errors (#72205)
* Add new hook to wrap the toasts service

When receiving error responses from our APIs, this gives us better toast
messages.

* Replace useToasts with useAppToasts in trivial case

* WIP: prevent infinite polling when server is unresponsive

The crux of this issue was that we had no steady state when the server
returned a non-API error (!isApiError), as it would if the server was
throwing 500s or just generally misbehaving.

The solution, then, is to addresse these non-API errors in our
underlying useListsIndex and useListsPrivileges hooks.

This also refactors those hooks to:

* collapse multiple error states into one (that's all we currently need)
* use useAppToasts for better UI

TODO: I don't think I need the changes in useListsConfig's useEffect.

* Slightly more legible variables

The only task in this hook is our readPrivileges task right now, so I'm
shortening the variable until we have a need to disambiguate it further.

* Remove unnecessary conditions around creating our index

If the index hook has an error needsIndex will not be true.

* Better toast errors for Kibana API errors

Our isApiError predicate does not work for errors coming back from
Kibana platform itself, e.g. for a request payload error.

I've added a separate predicate for that case, isKibanaError, and then a
wrapping isAppError predicate since most of our use cases just care
about error.body.message, which is common to both.

* Use new toasts hook on our exceptions modals

This fixes two issues:

* toast appears above modal overlay
* Error message from response is now presented in the toast

* Fix bug with toasts dependencies

Because of the way some of the exception modal's hooks are written, a
change to one of its callbacks means that the request will be canceled.

Because the toasts service exports instance methods, the context within
the function (and thus the function itself) can change leading to a
mutable ref.

Because we don't want/need this behavior, we store our exported
functions in refs to 'freeze' them for react.

With our bound functions, we should now be able to declare e.g.
`toast.addError` as a dependency, however react cannot determine that it
is bound (and thus that toast.addError() is equivalent to addError()),
and so we must destructure our functions in order to use them as
dependencies.

* Alert clipboard toasts through new Toasts service

This fixes the z-index issue between modals and toasts.

* Fix type errors

* Mock external dependency

These tests now call out to the Notifications service (in a context)
instead of our redux implementation.
2020-07-16 23:00:22 -05:00
spalger 55da30d17a skip flaky suite (#64696) 2020-07-16 19:11:08 -07:00
Ryland Herrick 5c0743e935
[Security Solution][Detections] Disable exceptions for Threshold and ML rules (#72137)
* Move isThresholdRule predicate into our common folder

This is very similar to isMlRule, which is already used extensively and
lives at this level.

* Disable endpoint association checkbox for ML and Threshold rules

The fullWidth and isDisabled props were not used; what we want is
disabled.

* Fix react warning about nesting buttons

This removes the AdvancedSettingsAccordion in favor of a plain
EuiAccordion with buttonContent, as that seems to be all that's needed
here.

* Disable Exceptions tab on Details for ML or Threshold rules

These rule types do not currently support exceptions.

* Fix type error

Unused import
2020-07-16 20:49:55 -05:00
Ryland Herrick 678dc309af
[Security Solution][Detections,Lists] Miscellaneous post-FF fixes (#71990)
* Overview Alerts Histogram stacking defaults to signal.rule.name

Since this is now the default for all AlertsHistograms, I've moved this
default upstream into the histogram itself.

* Replace magic strings with our constant ENDPOINT_LIST_ID

Also replaced a few unintentional uses of this string with the
non-reserved 'endpoint_list_id'.

Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>
2020-07-16 19:43:15 -05:00
Spencer b695d60516
[baseline/capture] use high-memory nodes with ramDisks (#71894)
Co-authored-by: spalger <spalger@users.noreply.github.com>
2020-07-16 17:13:32 -07:00
spalger fead1f2d1d skip flaky suite (#77207) 2020-07-16 16:42:41 -07:00
Aaron Caldwell 63e6666b13
[Maps] Fix issue preventing TMS from rendering correctly (#71946)
* Ensure getColors selector modifies and returns the same object

* Call onSourceConfigChange on CreateSourceEditor mount

* Back out selector update

Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>
2020-07-16 17:02:15 -06:00
Rashmi Kulkarni 78b39e8b9f
using test_user with minimum privs (#71988)
Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>
2020-07-16 14:51:56 -07:00
Yuliia Naumenko 9da8b768bf
Fixed Webhook connector doesn't retain added HTTP header settings (#71924)
* Fixed Webhook connector doesn't retain added HTTP header settings

* fixed method
2020-07-16 14:43:27 -07:00
Nicolas Chaulet ba76476110
[Ingest Manager] Do not show enrolling and unenrolling agents as online in agent counters (#71921) 2020-07-16 16:54:09 -04:00
Nathan Reese d510263666
[Maps] fix 'New Map' from getting added to recently accessed (#72125) 2020-07-16 14:25:25 -06:00
Fabien Baligand 4278e560ef
[Visualizations] Pass 'aggs' parameter to custom request handlers (#71423) 2020-07-16 14:13:35 -06:00
Chris Roberson 28189c274b
[Monitoring] Out of the box alert tweaks (#71942)
* Tweaks to thresholds and throttle periods

* Fixes

* Type fix, and more defensive against no alerts

* Remove unnecessary restrictions
2020-07-16 15:48:58 -04:00
Quynh Nguyen 7868a569eb
[ML] Fix datafeed start time is incorrect when the job has trailing empty buckets (#71976)
Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>
2020-07-16 14:42:34 -05:00
Nathan Reese 52597b203b
[Maps] typescript vector style phase 1 (#69994)
* [Maps] typescript vector style phase 1

* tslint

* unify Ordinal and Categorical field meta since they are mixed in real data

* field formatter type

* review feedback

Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>
2020-07-16 13:31:43 -06:00
Spencer 5a755ddb01
Add plugin list to docs that is generated from the repo (#71731)
Co-authored-by: Stacey Gammon <gammon@elastic.co>
Co-authored-by: spalger <spalger@users.noreply.github.com>
Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>
2020-07-16 12:17:39 -07:00
MadameSheema 401ad352e9
[SIEM] Bring Cypress tests back to life (#71871)
* fixes and unskips 'Detection rules, custom'

* fixes 'Export rules' test

* unksips 'Deleting prebuilt rules' test

* unskips Alerts timeline

* unskips 'Events viewer' tests

* unskips 'toggle column in timeline' tests

* unskips 'url timeline' test

* fixes Overview test

* skips flaky test
2020-07-16 21:13:55 +02:00
Frank Hassanabad c787b8adbe
[SIEM][Detection Engine][Lists] Fixes bugs, adds tests (#71880)
## Summary

* Adds the createEndpointListSchema to the create_endpoint_list_route for API boundary checks
* Adds unit tests to the requests
* Fixes a few bugs found in the find endpoints for types
* Fixes or deletes the skipped tests
* Updated TODO blocks and removed ones that are obsolete

### Checklist

Delete any items that are not applicable to this PR.

- [x] [Unit or functional tests](https://github.com/elastic/kibana/blob/master/CONTRIBUTING.md#cross-browser-compatibility) were updated or added to match the most common scenarios
2020-07-16 13:07:19 -06:00
Nathan L Smith 26a0cf55b5
[APM] Add name to Observer type (#72110)
Backport #72078 is failing because of the type check because `observer.name` is not defined. Not sure why this wasn't a problem on master, but adding it here so I can include it.
2020-07-16 13:58:13 -05:00
Sandra Gonzales a994f57761
use semver to compare versions (#72107) 2020-07-16 14:44:48 -04:00
Melissa Alvarez acf0617762
[ML] DF Analytics: UI improvements (#71949)
* make hyper parameters one word

* update analytics job types help text

* update job type text

* ensure long description has word break to prevent overflow
2020-07-16 14:32:22 -04:00
Nathan Reese 46eba14669
[Maps] fix notifying user about losing unsaved changes when navigating away from map (#72003)
* [Maps] fix notifying user about losing unsaved changes when navigating away from map

* clean up

* tslint fixes

Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>
2020-07-16 12:16:29 -06:00
Tyler Smalley 394e7ba8ba
Aligns BrowserList config with Support Matrix (#71876)
Starting with 7.9.0 we will be dropping support for IE11. Updating the
config to reflect this should minimize the bundle sizes.

Signed-off-by: Tyler Smalley <tyler.smalley@elastic.co>
2020-07-16 10:56:07 -07:00
Jen Huang 9195ce4e39
Fix clear filters on agents table not working (#71978)
Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>
2020-07-16 10:36:44 -07:00
Melissa Alvarez d0d271c07d
[ML] DF Analytics creation: ensure monitor cluster privilege not required to create job (#71934)
* add checkIndexExists endpoint wrapping field_caps

* replace indexNames with checkIndexExists check

* update translations

* show error toast on index check fail

* add new route to api doc
2020-07-16 13:22:25 -04:00
Quynh Nguyen f75ccd4d8d
[ML] Fix job list crashing due to undefined processed records (#71966)
* [ML] Fix job list crashing due to undefined processed records

* [ML] Add explicit undefined check

* [ML] Add check to toLocaleString and update test

Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>
2020-07-16 12:17:35 -05:00
Nathan L Smith 2b43617856
[APM] Change "Error rate" to "Trans. error rate" on service map popover (#72073)
Fixes #72067.
2020-07-16 11:55:21 -05:00
Ben Skelker fdc2e41ffc
[DOCS] Updates links to security docs (#72099) 2020-07-16 09:51:46 -07:00
spalger 4ec6a71283 skip flaky suite (#72102) 2020-07-16 09:46:56 -07:00
Tre c918d2d355
[QA][Code Coverage] Upload a new Team Assignment on every ci run (#71175)
Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>
2020-07-16 10:34:52 -06:00
Yuliia Naumenko b7bb193cd5
[Actions UI] Fixed Connectors edit flyout retains state after being closed (#71911)
* [Actions UI] Fixed Connectors edit flyout retains state after being closed

* Fixed failing test
2020-07-16 09:08:05 -07:00
spalger d0afbd887d skip flaky suite (#71390) 2020-07-16 08:47:23 -07:00
spalger 0a9f1342e2 skip flaky suite (#72053) 2020-07-16 08:35:38 -07:00
Wylie Conlon b165538486
[Lens] Unskip Lens smokescreen test (#71986) 2020-07-16 11:34:22 -04:00
Nathan L Smith 8d9d323e53
[APM] Aggregated transactions telemetry (#71594)
Add a task to gather transasctions telemetry as described in #71593.

Also:

* Fix typo in mapping for country code mapping
* Add back `mergeTelemetryMapping` function to fix broken `upload-telemetry-data` script.
2020-07-16 10:22:22 -05:00
Spencer d518ce27e0
upgrade re2 and use RE2_DOWNLOAD_MIRROR to prevent CI download issues (#71974)
Co-authored-by: spalger <spalger@users.noreply.github.com>
Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>
2020-07-16 08:17:39 -07:00
Cauê Marcondes 0cb2062831
[Observability] not showing empty state when apps return hasData false (#71844)
* show empty state when has data returns false

* adding return type

* addressing pr comments

Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>
2020-07-16 16:48:12 +02:00
Bohdan Tsymbala 54f67dbee6
Fixed a bit policy details header layout for small screens. (#72042) 2020-07-16 16:42:41 +02:00
Angela Chuang f425de23e7
[Security Solution] Remove compressed prop for EuiBasicTable (#72039)
* remove compressd for tables

* update snapshot
2020-07-16 15:18:43 +01:00
Stacey Gammon a20469f038
Clean up the developer guide (#71631)
* rename float to discrete

* use same section title level on all source files

* Elasticsearch => {es}

Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>
2020-07-16 10:13:51 -04:00
Robert Oskamp 35e1dd6522
[ML] Functional tests - remove by_field_count check for categorization jobs (#72033)
This PR removes the validation of `total_by_field_count` for categorization jobs because the number of detected categories is not necessarily stable across analytics changes.
2020-07-16 15:21:35 +02:00
Patrick Mueller b167d77e3e
[eventLog] search for actions/alerts as hidden saved objects (#70395)
resolves https://github.com/elastic/kibana/issues/70086

Configures the saved object client for the event log to access the recently
hidden action and alert saved objects.

We didn't have tests for action/alert event log activity, so added some now.

Also found a buglet that was preventing access to event log data from actions
and alerts in non-default spaces.
2020-07-16 09:10:51 -04:00
Cauê Marcondes fbf54f0023
showing alerts created in the management page (#72031) 2020-07-16 15:03:50 +02:00
Cauê Marcondes 22365de6ed
[APM] Removing Missing permission page (#72030)
* removing missing permission page

* removing translations
2020-07-16 14:41:07 +02:00
Cauê Marcondes 77d6c4e5fe
[Observability] Update empty state links (#72025)
* changing links

* changing title
2020-07-16 14:18:01 +02:00
Walter Rafelsberger 5ecf31712a
[ML] Deprecate MlInMemoryTable. (#65039)
Now that EUI is fully migrated to TypeScript, we can remove our own typed version of InMemoryTable.
2020-07-16 13:25:53 +02:00