Commit graph

35070 commits

Author SHA1 Message Date
Spencer
b32f72d370
skip 6.8 branch when triggering baseline-capture builds (#72706)
Co-authored-by: spalger <spalger@users.noreply.github.com>
2020-07-21 14:00:19 -07:00
Brian Seeders
2437db63ef
[CI] In-progress PR comments (#72211) 2020-07-21 16:51:58 -04:00
Nick Partridge
b0ef3e9580
Fix sorting of scripted string fields (#72681) 2020-07-21 15:31:49 -05:00
Ryland Herrick
8d5a5d0860
[Security Solution][Detections] Adds loading states to export/delete on modal (#72562)
* Add loading spinners to Value Lists modal

While export or a delete is pending, we display a loading spinner
instead of the button that was clicked.

Since state is controlled in the parent, we must pass this additional
state in the same way; the table component simply reacts to this state.

* Fix bug with useAsync and multiple calls

Multiple calls to start() would not previously reset the hook's state,
where useEffect on the hook's state would fire improperly as subsequent
calls would not travel the same undefined -> result path.

* Fix style of loading spinner

This fits the size of the button it's replacing, so no shifting occurs
when replacing elements.

* Better styling of spinner

Keep it roughly the same size as the icons themselves, and fill the
space with margin.

* Fix circular dependency in value lists modal

Moves our shared types into a separate module to prevent a circular
dependency.
2020-07-21 15:26:51 -05:00
Tyler Smalley
33a9604800 [test] Skips flaky bulk operation buffer tests
Signed-off-by: Tyler Smalley <tyler.smalley@elastic.co>
2020-07-21 12:57:29 -07:00
Andrew Goldstein
3f2913b5b8
[Security Solution] Full screen Timeline CSS fixes (#72559)
## [Security Solution] Full screen Timeline CSS fixes

Fixes CSS issues related to the [Full screen timeline, Collapse event](https://github.com/elastic/kibana/pull/71786) feature:

- Sometimes, Timeline's left padding is missing in Full screen mode
- The `Attach to new case` and `Attach to existing case...` actions should be centered in Full screen mode
- The Timeline flyout button is not opaque when the alerts table is in Full screen mode

### Sometimes, Timeline's left padding is missing in Full screen mode

To reproduce:

1) Drag anything to the Timeline
2) Click the `Full screen` button

**Expected result**
- [x] The timeline has left padding in full screen mode

**Actual result**
- [x] Sometimes, the left padding of the Timeline is missing, per the screenshot below:

![timeline-full-screen-before](https://user-images.githubusercontent.com/4459398/87998223-8acf8000-cab4-11ea-91a1-6b5644856b44.png)

### Fix: screenshot

![timeline-full-screen-after](https://user-images.githubusercontent.com/4459398/87998363-e3068200-cab4-11ea-8484-41d87ba4c97e.png)

### The `Attach to new case` and `Attach to existing case...` actions should be centered in full screen mode

1) Create a new timeline with the following KQL query: `agent.type : endpoint`
2) Click the `Analyze event` button on any enabled event to view Resolver

**Expected result**
- [x] The `Attach to new case` and `Attach to existing case...` actions should be centered between the horizontal lines

**Actual result**
- [x] The `Attach to new case` and `Attach to existing case...` actions are **NOT** centered, per the screenshot below:

![attach-to-case-before](https://user-images.githubusercontent.com/4459398/87998636-b9018f80-cab5-11ea-87e8-a54355386519.png)

### Fix: screenshot

![attach-to-case-after](https://user-images.githubusercontent.com/4459398/87998553-82c41000-cab5-11ea-9e33-fcffce11e4b4.png)

### The Timeline flyout button is not opaque when the alerts table is in Full screen mode

To reproduce:

1) Navigate to Security > Detections
2) Click on the `Full screen` button

**Expected result**
- [x] The Timeline flyout button is opaque when the alerts table is in Full screen mode

**Actual result**
- [x] The Timeline flyout button is **NOT** opaque when the alerts table is in Full screen mode, per the screenshot below:

![flyout-button-before](https://user-images.githubusercontent.com/4459398/87998761-0d0c7400-cab6-11ea-9cd3-0c091e0291c9.png)

## Fix: screenshot (light theme)

![flyout-button-after-light](https://user-images.githubusercontent.com/4459398/87998784-231a3480-cab6-11ea-8fc9-17c28cf25202.png)

## Fix: screenshot (dark theme)

![flyout-button-after-dark](https://user-images.githubusercontent.com/4459398/87998824-45ac4d80-cab6-11ea-96ef-6242b8494f84.png)

### Desk testing

Desk tested in :
- Chrome `84.0.4147.89`
- Firefox `78.0.2`
- Safari `13.1.2`
2020-07-21 13:46:05 -06:00
Clint Andrew Hall
b05d3d114e
Optimize Functions and Renderers for Webpack builds (#72683) 2020-07-21 15:29:15 -04:00
Alex Kahan
13ec56db8b
Limit concurrent access to download API + Replace with LRU cache (#72503)
* Limit concurrent access to  download API

* Replacing cache with LRU Cache

* Configure the LRU cache

Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>
2020-07-21 15:18:01 -04:00
Clint Andrew Hall
eb71e599ce
[pre-req] Convert Page Manager, Page Preview, DOM Preview (#70370)
Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>
Co-authored-by: Corey Robertson <corey.robertson@elastic.co>
2020-07-21 14:12:56 -04:00
Patryk Kopyciński
4b06a4eb41
[Security Solution][Timeline] Add Empty view to the Timelines page (#72576) 2020-07-21 19:15:27 +02:00
Kevin Qualters
3f5f9b7669
[Security Solution][Resolver] Show process detail panel when clicking a process node (#72563) 2020-07-21 13:07:40 -04:00
Madison Caldwell
c3bd7ae9df
Move manifest packageConfig mocks into security_solution plugin (#72527) 2020-07-21 12:22:53 -04:00
Tre
98fabd4690
[QA][Code Coverage] Fixup Team Assignment (#72467) 2020-07-21 09:58:21 -06:00
Nathan Reese
a7a2b7cb4c
[docs] remove references to tile map visualization in supported aggregations (#72493) 2020-07-21 09:26:05 -06:00
Victor Martinez
42d2b7def5
[ci][apm-ui] fix argument name for disabling pr comments (#72633) 2020-07-21 16:16:47 +01:00
Jonathan Buttner
245940ac11
Only check that the event ids are the same in arrays (#72624) 2020-07-21 10:56:06 -04:00
CJ Cenizal
a540cafb85
Add doc titles to ES UI apps (#71045)
* Add doc titles to CCR, ILM, Index Management, Ingest Node Pipelines, License Management, Remote Clusters, Rollup Jobs, Watcher, and Upgrade Assistant. Clear doc title when leaving Dev Tools.
* Refactor Watcher boot file to follow index-oriented pattern of other plugins.
2020-07-21 07:04:40 -07:00
CJ Cenizal
1cde692ab7
Add Upgrade Assistant API integration test to ensure the reindex operation saved object can handle immense error messages (#72347) 2020-07-21 07:04:06 -07:00
Søren Louv-Jansen
05ee3da80d
[APM] Disable flaky rum e2e’s (#72614) 2020-07-21 15:56:43 +02:00
Devon Thomson
9facf416f5
Applying tiny fix from 72532 to main branch (#72533) 2020-07-21 09:56:13 -04:00
Søren Louv-Jansen
2fc7112ec2
[APM] Update script with new roles/users (#72599)
* [APM] Update script with new roles/users

* add log

* Add validation for http prefix
2020-07-21 15:55:43 +02:00
Michael Olorunnisola
5d4827f14f
[Security Solution] Add margin (#72542) 2020-07-21 09:54:13 -04:00
Uladzislau Lasitsa
98478b49e0
Migrated fixed_scroll karma tests to jest (#72258)
Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>
2020-07-21 16:51:29 +03:00
James Gowdy
fbf41e5379
[ML] Handling data recognizer saved object errors (#72447)
* [ML] Handling data recognizer saved object errors

* adding text for unknown errors

* fixing typos
2020-07-21 14:28:10 +01:00
Chris Roberson
c63ab91c7b
[Monitoring] Fix the messaging around needing TLS enabled (#72310)
* Fix the copy

* Fix type issues

* PR feedback

* Add missing code
2020-07-21 09:12:50 -04:00
Gidi Meir Morris
8fdebc9e82
[Task Manager] Batches the update operations in Task Manager (#71470)
This PR attempts to batch update tasks in Task Manager in order to avoid overloading the Elasticsearch queue.
This is the 1st PR addressing https://github.com/elastic/kibana/issues/65551

Under the hood we now use a Reactive buffer accumulates all calls to the `update` api in the TaskStore and flushes after 50ms or when as many operations as there are workers have been buffered (whichever comes first).
2020-07-21 14:08:29 +01:00
Gil Raphaelli
c74b214fe3
allow some env settings for ingest manager (#72544) 2020-07-21 08:14:12 -04:00
Alexey Antonov
e1ffcccb96
Add inspector for VEGA (#70941)
* [WIP] Add inspector for VEGA

Closes: #31189

* view -> dataset

* cleanup

* add spec viewer

* cleanup code

* use rx to retrieve data from adapters

* Make custom inspector adapters registerable from the visType

* fix flex-box size

* cleanup

* remove visTypesWithoutInspector from visualize_embeddable

* fix PR comments

* add vega folder to sass-lint

* fix jest

* Update src/plugins/vis_type_vega/public/vega_inspector/components/data_viewer.tsx

Co-authored-by: Wylie Conlon <wylieconlon@gmail.com>

* use addSignalListener

* cleanup

* add onColumnResize handler

* EuiCodeEditor -> CodeEditor

* fix type_check

* fix issue with pagination

* fix extra vertical scroll

* add area-label for EuiButtonIcon

* add area-label for EuiComboBox

* Design Commit

- Fixing up layout trying to remove any `.eui` classes and uses flex instead of percentage
- Fixing text to use `Sentence case` not `Title Case`

* Wrapper around signal viewer table

* fix Jest snapshot

Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>
Co-authored-by: Wylie Conlon <wylieconlon@gmail.com>
Co-authored-by: cchaos <caroline.horn@elastic.co>
2020-07-21 14:45:51 +03:00
Tiago Costa
81cbd13db4
chore(NA): fix grunt task for test:coverage (#72539) 2020-07-21 12:17:01 +01:00
cachedout
c5073f4849
Archive e2e test results in ES (#72575)
* Archive e2e test results in ES

* Disable flaky comment feature and PR notifications

* Update .ci/end2end.groovy

Co-authored-by: Victor Martinez <victormartinezrubio@gmail.com>

Co-authored-by: Victor Martinez <victormartinezrubio@gmail.com>
2020-07-21 10:08:54 +00:00
Pierre Gayvallet
517c34a7eb
preserve 401 errors from new es client (#71248)
* intercept 401 error from new client in routing layer

* improvements

* lint

* fix mocked client construction due to 7.9-rc1 bump

* use default WWW-Authenticate value when not provided by ES 401
2020-07-21 11:34:04 +02:00
MadameSheema
20c6d9fe52
[SIEM][Detections] Updates text for severity and risk_score overrides (#72244)
* updates severity mapping description text

* updates risk score mapping description

* updates default messages with the given suggestions

Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>
2020-07-21 10:35:31 +02:00
Cauê Marcondes
efa1795cfd
fixing error occurences tooltip (#72425) 2020-07-21 10:09:30 +02:00
Pierre Gayvallet
005a1121cc
use KibanaClient interface instead of Client for new client interface (#72388)
* use KibanaClient interface instead of Client

* add back helpers to ElasticsearchClient interface

* use TransportRequestPromise for transport.request

* update generated doc
2020-07-21 09:44:25 +02:00
Søren Louv-Jansen
511e4543a7
[APM] Handle ML errors (#72316)
* [APM] Handle ML errors

* Add capability check

* Improve test

* Address Caue’s feedback

* Move getSeverity

* Fix tsc

* Fix copy
2020-07-21 08:41:15 +02:00
Matthias Wilhelm
7f6cd5148a
[Discover] Improve histogram tests (#72235) 2020-07-21 07:09:25 +02:00
Spencer
a1753ffffd
[ftr/webdriver] retry on all errors, use Rx so that timers are canceled (#72540)
* [ftr/webdriver] retry on all errors, use Rx so that timers are canceled

* throw if attemptToCreateCommand() aborts by resolving to undefined

Co-authored-by: spalger <spalger@users.noreply.github.com>
2020-07-20 20:35:15 -07:00
Clint Andrew Hall
bfbb8d2138
[pre-req] Move .storybook to storybook; standardize files (#72384) 2020-07-20 22:18:20 -04:00
Brent Kimmel
990d4c5eec
[Security_Solution][Resolver][Bug]: Restore breadcrumb background (#72538) 2020-07-20 20:59:55 -04:00
Quynh Nguyen
3760dc4f45
[ML] Fix annotation detector linking & delayed_data(0) (#72468) 2020-07-20 19:34:53 -05:00
Yara Tercero
21977a7e6a
[Security Solution][Exceptions] - Make esTypes and subType available to index patterns (#72336)
## Summary

This PR updates the following:

- `useFetchIndexPatterns` now returns `indexPatterns` whose fields include `esTypes` and `subType`
  - Why?? The exceptions builder needs these two fields to determine what fields are of ES type `nested` and parent paths
- exceptions add and edit modals now use the `rule.index` field to pass into `useFetchindexPatterns`
  - Before we were using the signals index and alerts index for endpoint, needs to be rule's index patterns
  - if no index patterns exist on the rule (if rule created via API, it's not required), then uses `DEFAULT_INDEX_PATTERN`
- updates the autocomplete validation to use `IField.esTypes` to check type instead of `IField.type`
2020-07-20 19:18:42 -04:00
Frank Hassanabad
03fe8c3e89
[SIEM] Uses faster wait from testing-library and removes duplicate older wait idiom (#72509)
## Summary

* Removes the older wait pattern that does a block no matter what
* Utilizes the improved and better pattern for test-library's waitFor which will test immediately and then poll for results
* Changes everything to put their expect statement within the waitFor
* Once the waitFor is in TypeScript/JS we can change the import statement to use that

If you get a timeout or error this is what it looks like now which improves the developer experience in some ways but does degrade things in others as it suggests that everything is timeout related. However, developers should inspect the values and remove the waitFor() and re-run their tests if they think that they have a real problem during development.

<img width="990" alt="Screen Shot 2020-07-20 at 12 40 39 PM" src="https://user-images.githubusercontent.com/1151048/87975739-4084d980-ca89-11ea-83c9-ba3fb932a175.png">


See the API for more information:
https://testing-library.com/docs/dom-testing-library/api-async#waitfor

But in short we should be using:

```ts
await waitFor(() => expect(...));
```

throughout our code at this point and the waitFor will loop quickly and efficiently until it either times out or gets the condition expected.

### 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-20 16:23:38 -06:00
Jen Huang
709e0a0a11
Fix long combo box items breaking out of flex item width (#72512) 2020-07-20 15:16:46 -07:00
Spencer
a221e04b3c
[pipeline/commitStatus] update commit status in baseline-capture job (#72366)
Co-authored-by: spalger <spalger@users.noreply.github.com>
2020-07-20 15:06:02 -07:00
Kevin Qualters
c3263aa9a2
[Security Solution][Resolver] Update the resolver element ref on scroll events if the position of the element has changed within the page (#72461) 2020-07-20 17:41:25 -04:00
Nathan Reese
9947c671ec
[Maps] auto-fit to data bounds (#72129)
* [Maps] auto-fit to data bounds

* update jest snapshot

* add buffer to fit to bounds

* sync join layers prior to fitting to bounds

* clean-up comment

* better names

* fix tslint errors

* update functional test expect

* add functional tests

* clean-up

* change test run location

* fix test expect

Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>
2020-07-20 15:24:32 -06:00
Devin W. Hurley
b9413cf3c8
[SIEM] [Detections] Fixes faulty circuit breaker (#71999)
* removes useSortIds which was leftover from a previous attempt at implementing gap detection mitigation code. This only showed up because I modified the count variable used to determine when we hit maxSignals from utilizing the searchResult hits length to using the count of bulk created items (signals indexed) in this commit 56de45d156

* removes logs and fixes if statement ordering

* adds tests, increases code coverage for search after and bulk create function, updates log statements

* update tests after rebase onto master

* clean up if statements

* fix test data

* merge conflicts are hard
2020-07-20 15:55:26 -04:00
Davis Plumlee
4ccf1aed96
[Security Solution][Detections]Exceptions modal bugs (#72471) 2020-07-20 15:34:26 -04:00
Jen Huang
0f964f6691
[Ingest Manager] Disable asset facet links (#72158)
* Disable asset facets

* Fix prop name

Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>
2020-07-20 12:14:33 -07:00
Frank Hassanabad
3ccdd79aa7
[SIEM][Detection Engine] Reduces flakiness within the tests using waitFor() and un-skips the tests (#72479)
## Summary

* Utilizes the `waitFor` so that the tests are less flaky and more resilient
* Unskips a test that was due to a regression within Elastic Search that should be fixed now
* https://github.com/elastic/kibana/issues/71867
* https://github.com/elastic/kibana/issues/71814
* https://github.com/elastic/kibana/issues/71612

### 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-20 12:55:52 -06:00