Commit graph

14690 commits

Author SHA1 Message Date
Jason Stoltzfus 6ab3fc0107
[App Search] Added relevance tuning search preview (#93054) 2021-03-04 11:47:10 -08:00
Corey Robertson d673f5601d
[Canvas] Fix reports embeddables (#93482)
* wip

* WIP

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2021-03-04 14:30:30 -05:00
John Dorlus 572f6888c2
[ILM] Added new functional test in ILM for creating a new policy (#92936)
* Added data-test-subj for ILM policies row and added a functional UI test to create a new ILM policy.

* Removed .only from test to allow entire test suite to run again.

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2021-03-04 13:55:00 -05:00
Thomas Neirynck db3db0cebc
[Maps] Track tile loading status (#91585) 2021-03-04 13:22:03 -05:00
Alison Goryachev ebe1f1f6d3
[Upgrade Assistant] Disable UA and add prompt (#92834) 2021-03-04 13:03:14 -05:00
Alison Goryachev 67ca801c3f
[Snapshot Restore] Remove cloud validation for slm policy (#93609) 2021-03-04 13:02:08 -05:00
Nathan Reese 05db7c60b1
[Maps] Support GeometryCollections in GeoJson upload (#93507) 2021-03-04 11:01:33 -07:00
ymao1 cad26537a9
[Alerting] Improving health status check (#93282)
* wip

* Moving catchError so observable stream does not complete. Adding retry on failure

* Using retryWhen. Updating unit tests

* PR fixes

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2021-03-04 11:58:20 -05:00
Joe Reuter 1882b82531
fetch node labels via script execution (#93225) 2021-03-04 17:08:26 +01:00
Ece Özalp 3d374e2686
[Security Solution] Adds getMockTheme function (#92840)
Closes elastic/security-team#866.
2021-03-04 10:31:39 -05:00
Gidi Meir Morris 79134b3b6d
[Alerting][Docs] Adds Alerting & Task Manager Scalability Guidance & Health Monitoring (#91171)
Documentation for scaling Kibana alerting, what configurations can change, what impacts they have, etc.
Scaling Alerting relies heavily on scaling Task Manager, so these docs also document Task manager Health Monitoring and scaling.
2021-03-04 14:11:53 +00:00
Joe Reuter 462fe0829e
stabilize waiting for visualization (#93469) 2021-03-04 14:56:56 +01:00
Alejandro Fernández Gómez a050b7af79
[Fleet] Correctly track install status of an integration (#93464) 2021-03-04 11:01:23 +01:00
István Zoltán Szabó 284a77c7c0
Reviews data frame analytics UI text (#93033)
Co-authored-by: Lisa Cawley <lcawley@elastic.co>
2021-03-04 09:09:43 +01:00
Kevin Qualters 89373490d0
Display multiple copyable fields for process.args in resolver node detail panel (#93280) 2021-03-04 00:24:58 -05:00
Davis Plumlee 3316fb43fd
[Security Solution][Detections] ML Popover overflow fix (#93525)
Co-authored-by: Garrett Spong <spong@users.noreply.github.com>
2021-03-03 21:22:05 -05:00
Angela Chuang a953e90dd4
[Security Solution] fix data provider cypress test (#93465)
## Summary
This PR is to fix data_provider's cypress test: displays the data provider action menu when Enter is pressed.

When I ran it locally, I couldn’t reproduce it every time. There’s a chance that the timeline was opened but the filter we put wasn’t there, this happen when I simulate slow 3G with Chrome or once out of my 10-time-trial with `loop_cypress_tests.js`

[failure 1](https://kibana-ci.elastic.co/job/elastic+kibana+security-cypress/4313/testReport/junit/(root)/displays%20the%20data%20provider%20action%20menu%20when%20Enter%20is%20pressed/timeline_data_providers_displays_the_data_provider_action_menu_when_Enter_is_pressed/)
[failure 2](https://kibana-ci.elastic.co/job/elastic+kibana+security-cypress/4313/testReport/junit/(root)/displays%20the%20data%20provider%20action%20menu%20when%20Enter%20is%20pressed/timeline_data_providers_displays_the_data_provider_action_menu_when_Enter_is_pressed_2/)

How to run this test several times automatically:
1. Go to the file and mark your case with .only
2. Copy the relative path of the file
3. Go to x-pack/plugins/security_solution/package.json Line 13, change —spec to the path you just copied (e.g: ./cypress/integration/timelines/data_providers.spec.ts)
4. Go to Kibana/ and run node x-pack/plugins/security_solution/scripts/loop_cypress_tests.js 1 (1 means run it once, you can put more to check flakiness)
5. After it finishes, it generates you a report under: kibana/target/loop-cypress-tests.txt
6. Search for `displays the data provider action menu when Enter is pressed.` and see if all passes.
2021-03-03 17:27:29 -07:00
Nathan L Smith 4e21faeeb6
Fix service map for All environment single service (#93517)
Before we removed environment from the UI filters (#89647), the environment query parameter would be undefined if "All" was selected. Now we send ENVIRONMENT_ALL in as the query parameter.

Changes in https://github.com/elastic/kibana/blob/master/x-pack/plugins/apm/server/lib/service_map/get_service_map_from_trace_ids.ts made it so no connections would be returned if ENVIRONMENT_ALL was selected, rather than all connections. Since no connections were being returned, no elements except the selected service would be returned in the API response.

This changes it so if ENVIRONMENT_ALL is selected, the connection will always be returned, just like what used to be the case when environment was undefined.

Add an API test for this case.

Fixes #93385.
2021-03-03 17:30:08 -06:00
Nicolas Chaulet a61e1dd9fa
[Fleet] Fix package version comparaison in the UI (#93498) 2021-03-03 17:04:52 -05:00
Marshall Main 4c893985e3
[Security Solution][Lists] Escape quotes in list ids and quote the id in KQL query (#93176)
* Escape quotes in list ids and quote the id in KQL query

* Remove decodeURIComponent because too many KQL queries don't handle quotes

* Add quotes to user supplied IDs for other KQL queries

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2021-03-03 15:02:08 -05:00
Tiago Costa 2d17821f08
Revert "Make tests deterministic by providing unique timestamps (#93350)"
This reverts commit 3ce614fe46.
2021-03-03 19:48:54 +00:00
Davey Holler c0aa199759
App Search - Polishing Analytics Views (#92939)
* WIP analytics polish

* Working on tests.

* Finishing up tests.

* Updating the engine overview page.

* eslint fixes

* i18n fixes

* Icons feedback

- Remove unused svg file
- Add TODO comment
- Add test coverage

* linting - unnecessary ternaries

* EnginesOverview feedback

TotalCharts
- adjust chart height
- tests: simplify / convert back to shallow

RecentApiLogs
- switch to DataPanel

* DataPanel feedback

Component
- move CSS table bg override out from being an AnalyticsTable concern to a DataPanel concern
  + bem naming, todo comment
- add responsive={false} for better mobile UX
- add className and data-test-subj prop passing
- change title to pass full heading tags rather than a string
- move subtitle below title for better screen reader order
- add index.ts export

Tests
- capitalization for consistency, ordering/describe
- remove data-test-subjs on source code (simpler to grab & inspect tags directly so we can more easily call .text() on passed content)
- add new tests for props (fliled/className/data-test-subj)

Usage
- update other files using DataPanel to start passing heading tags + use index export
- fix RecentApiLogs tests
- change RecentQueries section to use a DataPanel (per Davey)

* Analytics tags - updates & responsive tweaks

Tags
- Rename to more general tags.tsx file
- Add CSS limiting width of variable length tags
- Break up into two separate components for easier readability & testing
- Split up tags column constants so that the wider tables can use the old tags list component

Tables
- add isSmall flag to AnalyticsTable to use new tag count  component
- reduce actions column width
- revert unnecessary table test changes

Analytics
- add custom CSS that switches tables/panels into full-width earlier

* AnalyticsSection fixes

- fix responsive behavior with icon
- add missing AnalyticsSection branch coverage

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
Co-authored-by: Constance Chen <constance.chen.3@gmail.com>
2021-03-03 11:26:05 -08:00
John Schulz b5522ed30c
[Fleet] Add lint rule/fix for import order groups (#93300)
## Problem
Blocks of 10-15 `import`s are common in the plugin and there a few places which have ~50 lines of `import`s. It makes it more difficult to understand the where/why of what's being imported.

We've had instances while files import from the same module in different lines. i.e.

```ts
import { a } from './file';
... 5-10 lines later
import { b } from './file';
```

## Proposed solution
Add a lint rule to enforce a convention on the module `import` order. This can help in the same way Prettier & ESLint help to format type signatures or other code. It makes it easier to understand or notice any changes in the code. It's also able to be fixed automatically (`node scripts/eslint.js --fix` or any existing "format on save" in an editor).

## This PR
replaces #92980 (based on https://github.com/elastic/kibana/pull/92980#pullrequestreview-601070556)

### Lint rule
f9be98d Add eslint rule to enforce/autofix import group order. Use the same rule as a few other plugins. Groups `import` statements by type as shown in the [lint rule docs](https://github.com/benmosher/eslint-plugin-import/blob/master/docs/rules/order.md#importorder-enforce-a-convention-in-module-import-order
). The order is:

  1. node "builtin" modules
  2. "external" modules
  3. "internal" modules
  4. modules from a "parent" directory
  5. "sibling" modules from the same or a sibling's directory, "index" of the current directory, everything else

e.g.

```typescript
import fs from 'fs';
import path from 'path';

import _ from 'lodash';
import chalk from 'chalk';

import foo from 'src/foo';

import foo from '../foo';
import qux from '../../foo/qux';

import bar from './bar';
import baz from './bar/baz';
import main from './';
```
The [lint rule](https://github.com/benmosher/eslint-plugin-import/blob/master/docs/rules/order.md#importorder-enforce-a-convention-in-module-import-order) is relatively light handed. It only ensures  the `imports` are groups together in the given order. It doesn't alphabetize or otherwise sort the order of the files.


e.g. imports aren't rewritten to be in alphabetical order. This is fine

```ts
import from './c';
import from './a';
import from './b';
```

The [docs show other options](https://github.com/benmosher/eslint-plugin-import/blob/master/docs/rules/order.md#options) and 2831f02bc7/.eslintrc.js (L1138-L1168) uses many of them

### Newlines option
The newlines settings means a change from something like

```typescript
import fs from 'fs';
import path from 'path';
import _ from 'lodash';
import chalk from 'chalk';
import foo from 'src/foo';
import foo from '../foo';
import qux from '../../foo/qux';
import bar from './bar';
import baz from './bar/baz';
import main from './';
```

to 

```typescript
import fs from 'fs';
import path from 'path';

import _ from 'lodash';
import chalk from 'chalk';

import foo from 'src/foo';

import foo from '../foo';
import qux from '../../foo/qux';

import bar from './bar';
import baz from './bar/baz';
import main from './';
```



Added it as a separate commit 2831f02 in case we want to avoid it, but I believe it's an improvement overall. Especially on the files with 25+ lines of imports. Even the "worst case" of something like this isn't bad (IMO). Especially since it's an automatic reformat like anything else in prettier


```typescript
import fs from 'fs';

import _ from 'lodash';

import foo from '../foo';

import main from './';
```
2021-03-03 13:58:20 -05:00
Jonathan Buttner 9dd395b452
[Security Solution][Case][Bug] Only update alert status in its specific index (#92530)
* Writing failing test for duplicate ids

* Test is correctly failing prior to bug fix

* Working jest tests

* Adding more jest tests

* Fixing jest tests

* Adding await and gzip

* Fixing type errors

* Updating log message

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2021-03-03 13:28:59 -05:00
Wylie Conlon cae9ca4c19
[Field formats] Correctly format numeric histograms outside Discover (#91576)
* [Field formats] Correctly format numeric histograms outside Discover

* Fix types

* Fix types

* Fix failures

* Fix merge issue

* Fix tests

* Fix i18n

* Fix i18n

* Add doc and fix integration

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2021-03-03 13:13:57 -05:00
Wylie Conlon eec777b7ef
[Index patterns] Guarantee order of fields in flattenHits (#93344)
* [Discover] Guarantee order of fields in table preview

* Remove comments

* Fix test that relied on discover ordering

* Fix ordering of test
2021-03-03 13:12:36 -05:00
Ryland Herrick 3ce614fe46
Make tests deterministic by providing unique timestamps (#93350)
The threat intel data that we are loading for these tests was previously
copy/pasted, resulting in all docs having the same @timestamp value.
This resulted in nondeterministic ordering which manifested as test
failures.

This fixes the issue by giving a unique timestamp to each indicator
document, and then unskips/updates tests according to this new ordering.
2021-03-03 11:53:47 -06:00
Dima Arnautov a8d45e7457
[ML] fix alert instance key for the single metric job (#93442) 2021-03-03 12:23:10 -05:00
Joe Reuter 73f8b335e1
[Lens] Add retry and remove unused test (#93233) 2021-03-03 17:56:26 +01:00
Ece Özalp 6467afa615
[Security Solution] Updates redirect route upon rule creation (#92715)
* [Security Solution] Updates redirect route upon rule creation

Closes #82562.
2021-03-03 11:55:11 -05:00
Zacqary Adam Xeper dc6d0b7910
[Metrics UI] Fix removing warning threshold from alert expressions (#93338) 2021-03-03 10:39:38 -06:00
Melissa Alvarez ccc70b4960
[ML] Data Frame Analytic: adds api integration tests for _start and _stop endpoints (#92532)
* add start and stop endpoint tests

* add start and stop within spaces endpoint tests

* move start and start_spaces tests to separate files

* wip: move stop and stop_spaces to separate files

* use slow running job config so job is still running when stop request happens

* check started job state is actually started

* check job is stopped after stopping

* add debug logs

* ensure jobs are created/started before stopping attempt

* remove unnecessary debug logs
2021-03-03 11:17:05 -05:00
Marta Bondyra c42b994193
[Lens] Fix unintentional switching to pie (#93219) 2021-03-03 15:39:51 +01:00
Tanish 8c6caf841b
[APM] Reduce log level to debug when no agent config is found (#93035) 2021-03-03 09:23:35 -05:00
Christos Nasikas 1c019025bc
[Security Solution][Case] Fix individual case deletion on case view (#93218) 2021-03-03 15:36:00 +02:00
Pete Harverson be0b444873
[ML] Transforms: Adds a11y tests for Transform plugin (#93197) 2021-03-03 11:41:44 +00:00
Joe Reuter 8525bd5e6e
remove portal for screenreader component (#93274) 2021-03-03 12:07:21 +01:00
Marta Bondyra 4f750bd9dc
[Lens] fix long field name on field stats panel doesn't wrap (#93279) 2021-03-03 10:17:20 +01:00
Shahzad 80a34a3e1d
[uptime] Fix anomaly alert edit (#93025) 2021-03-03 09:22:36 +01:00
Casper Hübertz d41170f90e
[APM] Add missing bottom border to header (#93179)
Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2021-03-03 08:45:01 +01:00
Nathan Reese bd9b349dfd
rename advanced setting ml:fileDataVisualizerMaxFileSize to fileUpload:maxFileSize and increase max geojson upload size to 1GB (#92620)
* rename ml:fileDataVisualizerMaxFileSize to fileUppload:maxFileSize

* add saved object migration

* file preview

* importing status

* remove console statement

* import complete view

* fix geojson_importer test

* tslint

* i18n fixes

* cleanup

* update documenation for advanced setting rename

* advanced settings usage_collection

* remove ml:fileDataVisualizerMaxFileSize from schemas and types

* add copy buttons for import response and fix geojson upload functional tests

* tslint

* remove clipboard-read check

* return early if env does not support reading from clipboard

* fix reporting tests

* review feedback

* update GeoJsonFileSource to support showing results trimmed icon and tooltip

* add fileUpload to useMlKibana context and replace dependencyCache with useMlKibana

* tslint

* review feedback

* lower case file name

* default to selecting geo_shape when file contains both points and shapes

* fix wizard onError callback to not advance to next step

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2021-03-02 19:07:03 -07:00
ymao1 fda67adb9f
[Alerting][Docs] Adding template for documenting alert and action types (#92830)
* Alert type template

* Action type template

* Cleanup

* Cleanup

* Removing callout list

* Cleanup

* Apply suggestions from code review

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

* Adding title to actions page

* PR fixes

* PR fixes

* PR fixes

* PR fixes

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
Co-authored-by: gchaps <33642766+gchaps@users.noreply.github.com>
2021-03-02 18:08:58 -05:00
Aaron Caldwell 21338080db
[Maps] Update Map extent queries to use bounding box logic for both point and shape queries (#93156) 2021-03-02 16:48:02 -05:00
Ece Özalp 819cb485dc
Add searchDuration to EQL and Threshold rules (#93149)
Closes #82861.
2021-03-02 16:47:09 -05:00
Thomas Neirynck 33010bebf9
[Maps] Abort ES-search when tile request is cancelled (#92069) 2021-03-02 16:46:09 -05:00
Yuliia Naumenko a102fa9a70
[Alerting][Docs] Moved alerting links from hard-coded to documentation link service. (#92953)
* [Alerting][Docs] Moved alerting links from hard-coded to documentation link service

* fixed due to comments

* Update x-pack/plugins/triggers_actions_ui/public/application/components/health_check.tsx

Co-authored-by: Mike Côté <mikecote@users.noreply.github.com>

* fixed jest tests

* fixed due to comments

Co-authored-by: Mike Côté <mikecote@users.noreply.github.com>
2021-03-02 13:43:10 -08:00
Melissa Alvarez 36523bb3a1
ensure regex works for filter with optional multiple spaces (#93071) 2021-03-02 15:40:10 -05:00
Zacqary Adam Xeper 6be9adac0d
[Alerts] Add spaces as optional dep to triggers_actions_ui (#93267) 2021-03-02 14:08:55 -06:00
Zacqary Adam Xeper 1b8d20c1c1
[Fleet] Fix default integration name when adding 10+ names (#93278) 2021-03-02 15:08:03 -05:00
Lukas Olson aa6591afe9
Update KQL field autocompletion to suggest fields that match search (#92559)
Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2021-03-02 13:07:19 -07:00
renovate[bot] 9e354bdf28
Update dependency @elastic/charts to v25.1.0 (master) (#93151)
* Update dependency @elastic/charts to v25.1.0

Co-authored-by: Renovate Bot <bot@renovateapp.com>
2021-03-02 13:54:45 -06:00
Gabriel Landau 3c4595de5e
[7.12][Security] Shellcode telemetry update for schema adjustment (#93143)
* Shellcode telemetry update for schema adjustment

* Lint

* Lint

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2021-03-02 14:44:42 -05:00
Constance fd3b3eb8cd
[App Search] Refactor AppLogic to initialize data via props rather than action (#92841)
* [Misc cleanup] Move Access type to common

- it was being duplicated in server/check_access and InitialAppData

+ add mock access data to DEFAULT_INITIAL_APP_DATA
+ update server/ tests to account for access in DEFAULT_INITIAL_APP_DATA

* Update AppSearchConfigured to pass props to AppLogic vs calling initializeAppData

+ update tests to rerender a wrapper rather than doing {...DEFAULT_INITIAL_APP_DATA} repeatedly

* Update AppLogic to set values from props rather than a listener

- main goal of this PR is to prevent the flash of state between mount and initializeX being called

- note: I recommend turning off whitespace changes in the test file

* Update AppLogic typing so that app data is always expected

- which it should be in any case in a production environment

- note: I could have changed InitialAppData to remove the ? optional notation, but decided on this route instead since InitialAppData affects more than just App Search (e.g. server, WS), and I didn't want this to have potential far-reaching side effects

* Update type scenarios where AppLogic values were previously thought potentially undefined

- which is mostly just configuredLimits it looks like

* [PR feedback] Type name
2021-03-02 11:25:01 -08:00
Oliver Gupte 3f5473ef7d
[APM] Fixes duplicate ML job creation for existing environments (#85023) (#93098)
* [APM] Fixes duplicate ML job creation for existing environments (#85023)

* Removes commented out test code.

* Adds API integration tests

* clean up code for readability
2021-03-02 11:20:30 -08:00
Dmitry d30be3f100
[code coverage] run more functional tests (#93249) 2021-03-02 21:56:42 +03:00
Christiane (Tina) Heiligers d230720e2d
[Usage Collection] Supports field descriptions as meta data (#92701)
Co-authored-by: Alejandro Fernández Haro <afharo@gmail.com>
Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2021-03-02 13:34:13 -05:00
ymao1 3dd3297371
[Actions][Docs] Moving subaction and subaction params back to README (#92878)
* Moving subaction and subaction params back to README

* Apply suggestions from code review

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

* PR fixes

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
Co-authored-by: gchaps <33642766+gchaps@users.noreply.github.com>
2021-03-02 13:09:53 -05:00
Clint Andrew Hall 84dc217aff
Convert Canvas docs to MDX for use in Elastic Docs (#91969)
Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2021-03-02 12:44:18 -05:00
Scotty Bollinger 5788a6bd78
[Workplace Search] Role Mappings to Kibana (#93123)
* Add routes for role mapings

* Initial copy/paste

* Update RoleMappingsRouter

- Update all paths
- Change router to use children instead of render props
- Remove legacy app chrome

* Update RoleMappings

- Update all paths
- Use global flash messages

* Update RoleMapping

- Update all paths
- Use global flash messages
- Add types to fix errors
- Use React Router Hooks instead of legacy withRouter HOC

* Fix path in index and add route helper

* Update paths in RoleMappingsLogic

* Remove history in favor of KibanaLogic.navigateToUrl

* Add Role type

* Remove ID prop

This is not needed because the ID is actually passed in the URL itself and is not a requirement in the body of the request

* Replace contextual flash messages with global

It appeared that the server sometimes sent flash messages with the API response, but I checked the Rails server code and there is no `flashMessages` sent back from the server so I am omitting that from the `RoleMappingsServerDetails` interface as well.

* Replace Rails http with kibana http

* Fix route path

* Add route and update global navigation

* Add breadcrumb/page title

* Update flash messages in RoleMapping

I did this for RoleMappings but forgot this one

* Use explicit AttributeName type instead of string

* Add i18n

* Fix type issue

Because the shared role mapping components work for both App Search and Workplace Search, the more generic string is used here because App Search has different role names.

* Add tests for components and router

* Add optional to interface

In the case of a new role mapping, the server is called at the ‘/new’ route and the server responds without a roleMapping prop, as it has not yet been created.

* Add tests for RoleMappingsLogic

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2021-03-02 11:22:20 -06:00
John Schulz 1702cf98f0
[Fleet] Use type-only imports where possible (#92979)
## Summary

Use [type-only `import`](https://www.typescriptlang.org/docs/handbook/release-notes/typescript-3-8.html#type-only-imports-and-export) to differentiate between runtime values and (erasable) TS types.

<img width="1499" alt="Screen Shot 2021-02-27 at 6 34 46 PM" src="https://user-images.githubusercontent.com/57655/109403323-84e32c80-792a-11eb-94b7-854d0e5c3e99.png">

Allows Babel and `tsc` to make some optimizations since it can be sure what can be erased.

It can also be helpful in situations like below which highlights that even though `KibanaAssetType` and `KibanaSavedObjectType` are named a certain way and from `common/types`, they are JS values _not_ TS types. They are `enum`s which means they are JS objects at runtime; not eliminated at runtime.

d92a1a08d8/x-pack/plugins/fleet/common/types/models/epm.ts (L41-L63)
2021-03-02 12:10:39 -05:00
Marco Liberati 92134cb88e
[Lens] Set pie chart slices sorted clockwise (#92617)
Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2021-03-02 17:34:46 +01:00
Byron Hulcher 3d065739ea
[App Search] Migrate Create Meta Engine View (#92127)
* New empty MetaEngineCreation component

* Added MetaEngineCreation to AppSearchConfigured router

* Empty MetaEngineCreationLogic

* Add rawName value and setRawName action to MetaEngineCreationLogic

* Add indexedEngineNames value and setIndexedEngineNames action to MEtaEngineCreationLogic

* Add selectedIndexedEngineNames value and setIndexedEngineNames action to MetaEngineCreationLogic

* Add description to MetaEngineCreation

* Add name selector to MetaEngineCreationLogic

* Added MetaEngineCreationNameInput to MetaEngineCreation

* Add fetchIndexedEngineNames listener to MetaEngineCreationLogic

* Call fetchIndexedEngineNames when MetaEngineCreation first renders

* Add EuiComboBox for selectedEngineNames to MetaEngineCreation

* WIP Add meta engine source engine limit warning to MetaEngineCreation

* Add submitEngine listener to MetaEngineCreationLogic

* Add onEngineCreationSuccess to MetaEngineCreationLogic

* Fixing tests for MetaEngineCreationLogic

* Fix tests for MetaEngineCreation

* Add Create a meta engine button to EnginesOverview

* Use DEFAULT_META for fetching indexed engine names in MetaEngineCreationLogic

* Copy fixes

* Updating POST /api/engines tests

* Add noItemsMessage prop to EnginesTable

* Add empty prompt to Meta Engines table in EnginesOverview

* Apply suggestions from code review

Co-authored-by: Constance <constancecchen@users.noreply.github.com>

* Better form functionality in MetaEngineCreation

* Fix errors from github

* More MetaEngineCreation coverage

* Meta MetaEngineCreationLogic coverage

* Update x-pack/plugins/enterprise_search/public/applications/app_search/components/meta_engine_creation/meta_engine_creation_logic.ts

Co-authored-by: Constance <constancecchen@users.noreply.github.com>

* Update x-pack/plugins/enterprise_search/public/applications/app_search/components/meta_engine_creation/meta_engine_creation_logic.ts

Co-authored-by: Constance <constancecchen@users.noreply.github.com>

* Update x-pack/plugins/enterprise_search/public/applications/app_search/components/engines/constants.ts

Co-authored-by: Constance <constancecchen@users.noreply.github.com>

Co-authored-by: Constance <constancecchen@users.noreply.github.com>
2021-03-02 08:20:27 -08:00
Jean-Louis Leysens cce6861b89
[ILM] Allow multiple searchable snapshot actions (#92789)
* remove logic that disables SS action in cold if no rollover and always show replicas field

* update test coverage to be consistent with new form behaviour and expand hot phase without rollover test

* only licensing can disable searchable snapshot field

* clean up i18n

* remove ss field callout

* update error reporting logic to include causes chain, also update UI to show causes

* updated searchable snapshot field in hot phase callout

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2021-03-02 16:00:11 +01:00
Larry Gregory 5cc480a375
Improve consistency for display of management items (#92694)
Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2021-03-02 09:54:43 -05:00
Tiago Costa b33ea364af
skip flaky suite (#93152) 2021-03-02 14:34:27 +00:00
Tiago Costa a8adbbf800
skip flaky suite (#93152) 2021-03-02 14:29:48 +00:00
Yulia Čech bf9517ed7b
[ILM] Refactor edit_policy client integration tests into separate feature files (#92826)
* Refactor edit_policy client integration tests into separate feature files

* Fixed merge conflicts with master

* Updated rollover tests to match master branch code

* Split reactive_form into smaller files

* Renamed flyout tests file
2021-03-02 15:28:12 +01:00
Angela Chuang 356d4609e8
[Security Solution] Case ui enhancement (#91863)
* ui enhancement

* fix actions

* unit test

* update row actions

* add case status all

* update find status

* fix type

* remove all case count from dropdown

* fix type error

* fix unit test

* disable bulk actions on status all

* clean up

* fix types

* fix cypress tests

* review

* review

* update status is only available for individual cases

* update available actions on status all

* fix unit test

* remove lodash get

* rename status all

* omit status if it is set to all

* do not sent status if itis set to all

* Remove all status from the backend

* Hide actions on all status

* fix unit test

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
Co-authored-by: Christos Nasikas <christos.nasikas@elastic.co>
2021-03-02 09:13:55 -05:00
Devin W. Hurley 1bdf0022ee
[Security Solution] [Detections] Updates warning message when no indices match provided index patterns (#93094)
* updates warning messages and modifies warning message when endpoint security rule is missing index pattern

* fix integration test text
2021-03-02 09:10:59 -05:00
Sonja Krause-Harder ca25e5162c
Collect agent telemetry even when fleet server is disabled. (#93198) 2021-03-02 15:09:36 +01:00
Marco Liberati 547600b9b1
[Lens] Fix runtime validation error message (#93195) 2021-03-02 14:51:54 +01:00
Marta Bondyra 4077718a2a
[Lens] Remove warning about ordinal x-domain (#93049) 2021-03-02 14:49:32 +01:00
Andrew Goldstein 5a09a296d1
[Security Solution] Fixes the Customize Event Renderers modal by removing the EuiOverlayMask (#93150)
* ## [Security Solution] Fixes the Customize Event Renderers modal by removing the EuiOverlayMask

Fixes [this issue](https://github.com/elastic/kibana/issues/92798), introduced when [the EUI modal implementation changed](https://github.com/elastic/eui/pull/4480), such that it's no longer necessary to wrap modals in an `EuiOverlayMask`. The mask is now built-in to `EuiModal`.

The change above became effective throughout Kibana when it was upgraded to use a newer version of EUI via [this commit on Feb 16](8126488021 (diff-7ae45ad102eab3b6d7e7896acd08c427a9b25b346470d7bc6507b6481575d519)).

This PR resolves the issue by removing the `EuiOverlayMask` around the `Customize Event Renderers modal`, shown in the `After` screenshot below:

### Before

![before](https://user-images.githubusercontent.com/59917825/109154007-b2e23880-7793-11eb-83bb-4774df77c5d6.png)

### After

![after](https://user-images.githubusercontent.com/4459398/109561954-0c4fad80-7a9b-11eb-9283-51d50ec8ea26.png)

### Desk testing

Desk-tested on a 16" 2019 MBP, and on the desktop with the following browser versions:

- Chrome `88.0.4324.192`
- Firefox `86.0`
- Safari `14.0.3`

* - force precommit git hooks to run

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2021-03-02 08:45:47 -05:00
Joe Portner 6ecffcc57c
Cleanup Security plugin imports (#93056) 2021-03-02 08:42:01 -05:00
Michael Olorunnisola 3c4a3b833e
[Security Solution] - Bug fixes (#92294)
Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2021-03-02 08:37:30 -05:00
Jason Stoltzfus 16a3780021
Updated doc links (#92968) 2021-03-02 07:39:04 -05:00
Walter Rafelsberger 8201d4fd01
[ML] Transforms: Fixes chart histograms for runtime fields. (#93028)
Fixes chart histograms for runtime fields. The runtime field configurations were not passed on to the endpoint to fetch the charts data, so charts ended up being empty with a 0 documents legend.
2021-03-02 13:37:29 +01:00
Alejandro Fernández Haro c0535abc06
[chore] Enable core's eslint rule: @ts-expect-error (#93086)
* [chore] Enable core's eslint rules

* Change comment from platform-team to core-team
2021-03-02 05:53:36 -05:00
Marco Liberati 03cc5cc0c2
[Lens] Introduces new chart switcher (#91844)
Co-authored-by: Wylie Conlon <wylieconlon@gmail.com>
Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2021-03-02 11:25:35 +01:00
Marta Bondyra 657c273866
[Lens] fix selection when dragging (#93034) 2021-03-02 11:08:18 +01:00
Christiane (Tina) Heiligers d7cac22ba2
Converts usage collection README to .mdx (#92982)
Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2021-03-02 09:40:43 +00:00
Xavier Mouligneau 2903844dd1
[SECURITY SOLUTIONS] Bug case connector (#93104)
* bring back case connector to design

* disable connector sir in collection

* missing to only create collection type

* fix fields connector when you need to hide service-now sir
2021-03-01 22:46:22 -05:00
Steph Milovic 90976ee119
[Security Solution] [Timeline] Bugfix to include unmapped fields in the timeline event details JSON (#92025) 2021-03-01 21:40:54 -06:00
Yuliia Naumenko 7a1944a5a0
[Alerting][Docs] Changed alerting documentation to point to a single source of explaining the configurations. (#92942)
* [Alerting][Docs] Changed alerting documentation to poin to a single source of explaining the configurations.

* fixed due to comments

* fixed due to comments

* Apply suggestions from code review

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

* fixed due to comments

Co-authored-by: gchaps <33642766+gchaps@users.noreply.github.com>
2021-03-01 19:34:27 -08:00
Oliver Gupte 6897a4ac0b
[APM] Fix hidden search bar in error pages while loading (#84476) (#93139) 2021-03-01 18:39:32 -08:00
Yara Tercero fb1394812d
[Security Solution][Detections] -Fixes rule edit flow bug with max_signals (#92748)
### Summary

Fixes a bug where max_signals was being reverted to it's default value when the rule was edited via the UI.
2021-03-01 20:35:21 -05:00
Christos Nasikas aa62a130ee
[SecuritySolution][Case] Disable cases on detections in read-only mode (#93010)
* Disable cases on detetions on read-only mode

* Add cypress tests
2021-03-01 17:38:49 -05:00
Jonathan Buttner 4739eab490
[Security Solution][Case][Bug] Prevent closing collection when pushing (#93095)
* Prevent closing collection when pushing

* Fixing translations
2021-03-01 17:11:47 -05:00
Madison Caldwell cb053f4672
[Security Solution][Detections][7.12] Critical Threshold Rule Fixes (#92667)
* Threshold cardinality validation

* Remove comments

* Fix legacy threshold signal dupe mitigation

* Add find_threshold_signals tests

* remove comment

* bug fixes

* Fix edit form value initialization for cardinality_value

* Fix test

* Type and test fixes

* Tests/types

* Reenable threshold cypress test

* Schema fixes

* Types and tests, normalize threshold field util

* Continue cleaning up types

* Some more pre-7.12 tests

* Limit cardinality_field to length 1 for now

* Cardinality to array

* Cardinality to array

* Tests/types

* cardinality can be null

* Handle empty threshold field in bulk_create_threshold_signals

* Remove cardinality_field, cardinality_value
2021-03-01 17:10:22 -05:00
Jason Stoltzfus 892d44cafd
[App Search] Implement various Relevance Tuning states and form actions (#92644) 2021-03-01 16:49:57 -05:00
Patrick Mueller ff546a1af4
[actions] for simplistic email servers, set rejectUnauthorized to false (#91760)
resolves https://github.com/elastic/kibana/issues/91686

The poor email action has not had great success in setting TLS options
correctly.  Prior to 7.11, it was basically always setting `rejectUnauthorized`
to false, so was never validating certificates.  Starting in 7.11.0, it
started respecting TLS certificates, but there are some simple/test servers
in use that use self-signed certificates.

The real fix for this will be the resolution of issue
https://github.com/elastic/kibana/issues/80120 , but until then, this PR
does a special-case check if the `secure` option is off (so the email client
connects with a plain socket and then upgrades to TLS via STARTTLS) and both
the user and password for the server are not set, then it will use
`rejectUnauthorized: false`.  Otherwise, it uses the global configured value
of this setting.

This also changes some other cases, where `secure: true` often did not
set any `rejectUnauthorized` property at all, and so did not get verified.
Now in all cases, `rejectUnauthorized` will be set, and the value will
correspond to the globally configured value, except for the special case
checked here, and when a proxy is in use (that logic did not change).

So it is possible this would break customers, who were using insecure servers
and email action worked, but with this fix the connections will be rejected.
They should have been rejected all this time though.

The work-around for this problem, if we don't implement a fix like this, is
that customers will need to set the global `rejectUnauthorized` to `false`,
which means NONE of their TLS connections for any actions will be verified.
Which seems extreme.
2021-03-01 16:30:21 -05:00
Christos Nasikas 31889a589d
[Security Solution][Case] Migrate category & subcategory fields of ServiceNow ITSM connector (#93092) 2021-03-01 16:21:00 -05:00
Nathan L Smith 0320f1afb7
Hide instances latency distribution chart (#92869)
...until #88852 and #92631 are resolved.

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2021-03-01 15:16:29 -06:00
Nathan Reese 59c0380de0
[Maps] fix MapboxDraw import from pointing to dist just pointing to folder (#93087) 2021-03-01 14:11:39 -07:00
Nathan Reese 08c40955a4
[Maps] fix results trimmed tooltip message doubles feature count for line and polygon features (#92932)
Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2021-03-01 14:11:18 -07:00
Ryland Herrick a55d8b60ea
[Security Solution][Detecttions] Indicator enrichment tweaks (#92989)
* Update copy of rule config

* Encode threat index as part of our named query

* Add index to named query, and enrich both id and index

We still need mappings and to fix integration tests, but this generates
the correct data.

* Update integration tests with new enrichment fields

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2021-03-01 14:57:35 -06:00
Nathan Reese d02294cb98
[Maps] fix fit to data on heatmap not working (#92697)
* [Maps] fix fit to data on heatmap not working

* tslint

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2021-03-01 13:42:14 -07:00
Candace Park 1a3bbbf917
[Security Solution][Endpoint][Admin] Fixes policy sticky footer save test (#92919)
* commented code to close out toast
2021-03-01 15:31:05 -05:00
Candace Park 33b24c5d89
[Security Solution][Endpoint][Admin] Fixes 7.12 ransomware migration and mac bug (#92639) 2021-03-01 15:27:02 -05:00
Jonathan Buttner d9043c1c46
[Security Solution][Case][Bug] Removing empty collections when filtering on status (#92048)
* Removing empty collections when not filtering on status

* Fixing add comment response

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2021-03-01 14:47:38 -05:00
Frank Hassanabad 1a7709541c
Changes out the default arrays and adds types (#93063)
## Summary

Follow up from: 
https://github.com/elastic/kibana/pull/92928

Removes the default arrays and adds typing to the rule schema in order to see which ones require default arrays vs. which ones can/should be defaulted as `undefined`. Updates unit tests.

### Checklist

- [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
2021-03-01 12:09:39 -07:00
Alejandro Fernández Haro f44916b6aa
[Telemetry] Full schema definition (#90273)
Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2021-03-01 18:30:51 +00:00
Tim Sullivan 40fa961d53
[Reporting] Remove unused priority field (#92552)
* [Reporting] Remove unused priority field

* fix test

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2021-03-01 10:41:08 -07:00
Tim Sullivan 348472cd59
[Reporting] Clean up test helpers and mocks (#92550)
* [Reporting] Clean up logger instances and mocks

* revert logging changes, just keep test changes

* remove fluff

* clean up too much logger.clone

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2021-03-01 10:19:13 -07:00
Jonathan Buttner b5cd44e7ac
[Security Solution][Case][Bug] Only add rule object for alert comments (#92977)
* Adding test for alert rule fields migration

* Fixing directory issue

* Add more descriptive message

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2021-03-01 11:14:14 -05:00
Christos Nasikas 4ab91daa2d
[Security Solution][Case] Show the current connector name in case view (#93018) 2021-03-01 18:09:09 +02:00
Angela Chuang 1fa774cfe9
[Security Solution] Remove unused mock data (#92357)
* update mocked index

* update mocked index

* update mocked index

* remove unused mock data

* update mock data

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2021-03-01 15:25:12 +00:00
Frank Hassanabad 4b42574846
Adds mapping to the signals for the indicator rules that were missing (#92928)
## Summary

Indicator rules were missing the mappings and the copy code for when they were being created. This fixes that.

**Manual testing instructions**

Add an indicator rule:
<img width="1075" alt="Screen Shot 2021-02-25 at 3 33 05 PM" src="https://user-images.githubusercontent.com/1151048/109229217-37c35700-7780-11eb-9988-573d53f2c076.png">

Then after it fires check that it shows up in the timeline and tables and also check that it is queryable:
<img width="473" alt="Screen Shot 2021-02-25 at 3 31 48 PM" src="https://user-images.githubusercontent.com/1151048/109229261-4a3d9080-7780-11eb-808b-06fb0e9e4099.png">
<img width="509" alt="Screen Shot 2021-02-25 at 3 32 12 PM" src="https://user-images.githubusercontent.com/1151048/109229269-4c075400-7780-11eb-96bd-2464a7ac555e.png">
<img width="1390" alt="Screen Shot 2021-02-25 at 3 39 20 PM" src="https://user-images.githubusercontent.com/1151048/109229290-545f8f00-7780-11eb-982c-4506552973df.png">

### Checklist
- [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
2021-03-01 08:43:43 -06:00
Tiago Costa 31041af43c
skip flaky suite (#85208) 2021-03-01 13:34:10 +00:00
Joe Portner 8710a81bea
Cleanup spaces plugin (#91976) 2021-03-01 07:56:44 -05:00
Uladzislau Lasitsa ccf1fcc00e
Control round and decimal places in Gauge Visualization when using aggregate functions like average (#91293)
* Add field for providing format in percentage mode

* Fix CI

* Add tests

* Fix ci

* Fix some remarks

* Fix ci

* Fix some remarks

* Fix ci

* Fix width

* Fix some remarks

* Fix text

* Fix i18n

* Remove unneeded import

* Remove unneeded code

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2021-03-01 14:58:16 +03:00
Shahzad b3499f0849
Added alerting ui mock for jest test (#92604)
Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2021-03-01 12:55:41 +01:00
Vadim Dalecky 99929433a4
Remove "beta" label from URL Drilldown as it is now GA (#92859)
* fix: 🐛 remove "beta" label from URL Drilldown as it is now GA
2021-03-01 12:54:07 +01:00
Felix Stürmer c116477198
[Logs UI] Round up the end timestamp in the log stream embeddable (#92833)
This fixes the interpretation of the end timestamp in the log stream embeddable such that it rounds it up. Without this a date range of `now/d` to `now/d` would be resolved to a zero-duration time range even though the date picker semantics are "Today".
2021-03-01 08:59:03 +01:00
Tiago Costa c6336e50bf
skip flaky suite (#91939) 2021-02-28 00:56:02 +00:00
Tiago Costa 58a5a7c67d
skip flaky suite (#89072) 2021-02-28 00:47:40 +00:00
Dario Gieselaar 38bcde1aea
[APM] Include services with only metric documents (#92378)
* [APM] Include services with only metric documents

Closes #92075.

* Explain as_mutable_array

* Use kuery instead of uiFilters for API tests
2021-02-27 08:44:47 +01:00
Jonathan Buttner 993ac50105
[Security Solution][Case][Bug] Improve case logging (#91924)
* First pass at bringing in more logging

* Adding more logging to routes

* Adding more logging fixing tests

* Removing duplicate case string in logs

* Removing unneeded export

* Fixing type error

* Adding line breaks to make the messages more readable

* Fixing type errors

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2021-02-26 12:48:09 -05:00
Yuliia Naumenko 83234aad2d
[Alerts][Doc] Added README documentation for alerts plugin status and framework health checks configuration options. (#92761)
* [Alerts][Doc] Added README documentation for alerts plugin status and framework health checks configuration options.

* Apply suggestions from code review

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

Co-authored-by: gchaps <33642766+gchaps@users.noreply.github.com>
2021-02-26 08:48:51 -08:00
Marshall Main 910a19f3c4
Add warning for EQL and Threshold rules if exception list contains value list items (#92914) 2021-02-26 10:25:06 -05:00
Christos Nasikas c2877a6d96
[Security Solution][Case] Fix subcases bugs on detections and case view (#91836)
Co-authored-by: Jonathan Buttner <jonathan.buttner@elastic.co>
2021-02-26 15:35:43 +02:00
Dario Gieselaar a1d2d870d3
[APM] Always allow access to Profiling via URL (#92889) 2021-02-26 10:37:24 +01:00
Tiago Costa 3d9139089f
skip flaky suite (#92114) 2021-02-26 02:58:55 +00:00
Oliver Gupte 7aae6c5f50
[APM] Fix for default fields in correlations view (#91868) (#92090)
* [APM] Fix for default fields in correlations view (#91868)

* removes useCallback hook

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2021-02-25 18:56:06 -08:00
Nathan Reese e409405ccb
[Maps] fix selecting EMS basemap does not populate input (#92711)
* [Maps] fix selecting EMS basemap does not populate input

* tslint
2021-02-25 17:09:52 -07:00
Spencer 0aabc317ec
[kbn/test] add import/export support to KbnClient (#92526)
Co-authored-by: Tre' Seymour <wayne.seymour@elastic.co>
Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
Co-authored-by: spalger <spalger@users.noreply.github.com>
2021-02-25 16:13:27 -07:00
Constance 0198607eb3
[App Search] Create Curation view/functionality (#92560)
* Add server route and logic listener

* [Misc] Remove 'Set' from 'deleteCurationSet'
- to match createCuration

- IMO, this language isn't necessary if we're splitting up Curations and CurationLogic - the context is fairly evident within a smaller and more modular logic file

* Add CurationQueries component

+ accompanying CurationQueriesLogic & CurationQuery row

* Add CurationCreation view
2021-02-25 17:07:05 -05:00
Tim Sullivan fd348d3f82
[Reporting/Discover] include the document's entire set of fields (#92730)
* fix get_sharing_data to provide a list of fields if none are selected as columns in the saved search

* add logging for download CSV that fields must be selected as columns

* add more functional test coverage

* fix ts in test

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2021-02-25 14:47:04 -07:00
Paul Tavares cb60584571
[Fleet] Add new index to fleet for artifacts being served out of fleet-server (#92860)
* Added index definition for artifacts
2021-02-25 16:42:50 -05:00
Yuliia Naumenko ad19f821d6
[Alerts][Doc] Added README documentation for API key invalidation configuration options. (#92757)
* [Alerts][Doc] Added README documentation for API key invalidation configuration options.

* Apply suggestions from code review

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

Co-authored-by: gchaps <33642766+gchaps@users.noreply.github.com>
2021-02-25 12:49:00 -08:00
Yuliia Naumenko 0627573dbd
[Alerts][Docs] Extended README.md and the user docs with the licensing information. (#92564)
* [Alerts][Docs] Extended README.md and the user docs with the licensing information.

* Apply suggestions from code review

Co-authored-by: Lisa Cawley <lcawley@elastic.co>
Co-authored-by: gchaps <33642766+gchaps@users.noreply.github.com>

* fixed due to comments

Co-authored-by: Lisa Cawley <lcawley@elastic.co>
Co-authored-by: gchaps <33642766+gchaps@users.noreply.github.com>
2021-02-25 12:41:48 -08:00
Pete Hampton 9306663115
[7.12][Telemetry] Security telemetry allowlist fix. (#92850)
* Security telemetry allowlist fix.

* Also add process.thread.
2021-02-25 15:15:09 -05:00
Sandra Gonzales fa4dda0def
[Metrics UI] use global kibana time for metrics explorer in Default View (#92520)
* use global kibana time for explorer, stop using local storage for time

* fix inventory time
2021-02-25 14:26:34 -05:00
Kerry Gallagher c561a18b1e
[Logs UI] Hide Create Alert option when user lacks privileges (#92000)
* Hide Create Alerts option when lacking permissions
2021-02-25 18:44:47 +00:00
James Gowdy 3b66bf7cc5
[ML] Adding ml_capabilities api tests (#92786)
* [ML] Adding ml_capabilities api tests

* updating test text

* changes based on review
2021-02-25 18:24:39 +00:00
Nathan Reese 37d7ea2713
[Maps] fix index pattern references not extracted for tracks source (#92226)
* [Maps] fix index pattern references not extracted for tracks source

* merge with master

* tslint

* tslint

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2021-02-25 11:11:15 -07:00
Jean-Louis Leysens 2d011e2b95
[Rollup] Fix use of undefined value in JS import (#92791)
* Remove use of undefined import

* added component integration test for default value in frequency
2021-02-25 18:09:14 +01:00
Jean-Louis Leysens bc347d8633
[ILM] Fix replicas not showing (#92782)
* remove logic that disables SS action in cold if no rollover and always show replicas field

* update test coverage to be consistent with new form behaviour and expand hot phase without rollover test

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2021-02-25 18:05:19 +01:00
Yuliia Naumenko bd38d4aab2
[Event Log] Extended README.md with the documentation for a REST API and Start plugin contract. (#92562)
* [Event Log] Extended README.md with the documentation for a REST API and Start plugin contract.

* Apply suggestions from code review

Co-authored-by: Mike Côté <mikecote@users.noreply.github.com>
Co-authored-by: gchaps <33642766+gchaps@users.noreply.github.com>

* fixed due to comments

Co-authored-by: Mike Côté <mikecote@users.noreply.github.com>
Co-authored-by: gchaps <33642766+gchaps@users.noreply.github.com>
2021-02-25 08:59:30 -08:00
Christos Nasikas a3760ce988
[Security Solution][Case] Improve hooks (#89580) 2021-02-25 18:30:02 +02:00
Angela Chuang 6c96fbbddc
[Security Solution] Update wordings and breadcrumb for timelines page (#90809)
* update wordings

* unit tests

* remove tabName from breadcrumbs

* update wordings

* change default status of timelines to null

* fix loading message

* update select timeline wording

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2021-02-25 16:21:49 +00:00
Ece Özalp 6b91f480f5
[Security Solution] Replace EUI theme with mocks in jest suites (#92462)
Previously there were a large number of jest specs that utilized
the ThemeProvider (from styled-components package) to inject EUI
themes into the mounted components. The full EUI theme is almost
never necessary for unit tests as each tested component usually
consumes no more than a single field or two from the EUI theme.
In certain cases, the theme was not used at all. This change is
intended to remove all unnecessary ThemeProviders from the suites,
and replaces the imported EUI theme json files with mock themes
customized for each tested component. With this change, snapshots
are now significantly smaller, and tests are lighter.

Closes #64092.
2021-02-25 11:00:42 -05:00
Jean-Louis Leysens 83593bd8ee
[ILM ] Fix logic for showing/hiding recommended allocation on Cloud (#90592)
* updated logic for hiding recommended allocation options on cloud and moved tests over from legacy test folder

* added version check and tests for version check to enable pre v8 behaviour

* implement feedback to make tests more legible, fix test names and minor refactors

* added additional callout for data tier state, also added some new copy specific to the migration of a deployment on cloud

* remove unused stackVersion context value

* address windows max path length constraint

* - Fix botched conflict resolution!
- Addressed PR feedback, updated data allocation field for readability; added comments and refactored default allocation notice and warning
- Added one more test case for on cloud; when to show the call to migrate to node roles

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2021-02-25 16:34:42 +01:00
Marshall Main f0838e6ee5
[Security Solution][Detections] Pull gap detection logic out in preparation for sharing between rule types (#91966)
* Pull gap detection logic out in preparation for sharing between rule types

* Remove comments and unused import

* Remove unncessary function, cleanup, comment

* Update comment

* Address PR comments

* remove unneeded mocks

* Undo change to parseInterval

* Remove another unneeded mock

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2021-02-25 09:35:44 -05:00
Frank Hassanabad bb8e505be2
Fixes Cypress flake by adding pipe, click, and should (#92762)
## Summary

We were seeing flake tests with the error messages:

```ts
expected '<button.euiButton.euiButton--primary>' to have text 'Install 2 Elastic prebuilt rules ', but the text was 'Install 1 Elastic prebuilt rule '
```

Running this locally several times I was able to reproduce the flake. I was able to see that the click handler when clicked on the check boxes is not always taking effect for the first check box. A common issue with Cypress is that a lot of page loads and JS activities on pages can add/remove click handlers quickly such as when we are frosting and un-frosting a loading screen.

When we try and click on the click handlers for a test and the click handlers are not added yet, we miss one or more and end up with a flake test. Instead we can click as fast as possible using `pipe` and then checking that the check box is clicked before continuing using a `should`

Even though the loading screen is done frosting in these tests, the click handler can take one or two milliseconds before they end up being added to the checkboxes.

**Analysis**

When you have the flake and fail you can scroll in Cypress and pin a point in time and see that indeed we did not get the first checkbox checked even though we had a click. Which makes sense as within a few milliseconds the click handlers are added and we do check the second checkbox:
<img width="2083" alt="analysis" src="https://user-images.githubusercontent.com/1151048/109119992-a19d1b80-7702-11eb-882a-c035eba97455.png">

### Checklist

- [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
2021-02-25 04:50:28 -05:00
Pete Harverson 54b4d9a928
[ML] Fixes positions of calendar arrow buttons in start datafeed modal (#92625)
* [ML] Fixes positions of calendar arrow buttons in start datafeed modal

* [ML] Move height styling to parent container.

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2021-02-25 09:23:10 +00:00
Marco Liberati 019473948f
[Expressions] [Lens] Add id and copyMetaFrom arg to mapColumn fn + add configurable onError argument to math fn (#90481)
Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2021-02-25 09:43:15 +01:00
Marco Liberati 27f6a3b3e7
[Lens] Fix Workspace hidden when using Safari (#92616)
Co-authored-by: Marta Bondyra <marta.bondyra@elastic.co>
2021-02-25 09:42:50 +01:00
Marco Liberati 69272cb8b1
[Lens] Fixes vertical alignment validation messages (#91878)
Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
Co-authored-by: Michael Marcialis <michael.marcialis@elastic.co>
2021-02-25 09:42:08 +01:00
Ryland Herrick f67fef9e50
[Security Solution][Detections] Set default indicator path to reduce friction with new filebeat modules (#92081)
* Distinguish source and destination config for indicator matches

We were previously conflating the path to retrieve indicator fields with
the path to persist indicator fields, since they were the same value.

To reduce friction in use with the new filebeat modules, we've decided
to make the default source path threatintel.indicator. However, we still
want to persist to threat.indicator, so we add a new constant, here.

* Update our integration tests following change of default

These tests were assuming a default path of threat.indicator. Since that
is the ECS standard, we're not going to rewrite the tests but instead
just add this rule override. In the future if the default changes, this
parameter might be unnecessary.

* DRY up unit tests a bit

* Add a note for future devs

If/when that constant changes, I imagine this will be useful context.

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2021-02-24 20:45:44 -06:00
John Dorlus f0f7fea488
[ILM][Accessibility] Added A11y test for ILM new policy form. (#92570)
* Added A11y test for ILM new policy form.

* Separated out the takeSnapshot calls to separate tests.
2021-02-24 21:43:03 -05:00
Yara Tercero 9d2a7b8ece
[Security Solution][Exceptions] - Fixes exceptions builder UI where invalid values can cause overwrites of other values (#90634)
### Summary

This PR is a follow-up to #89066 - which fixed the same issue occurring with indicator match lists UI. The lack of stable ids for exception item entries resulted in some funky business by where invalid values could overwrite other values when deleting entries in the builder.
2021-02-24 18:32:44 -08:00
Davis Plumlee 3471eaa481
[Security Solution][Detection Rules] Update prebuilt rule threats to match schema (#92281) 2021-02-24 17:16:50 -05:00
Frank Hassanabad ebb0435401
[Security Solutions][Detection Engine] Fixes bug with not being able to duplicate indicator matches (#92565)
## Summary

Fixes an unreleased regression bug where indicator rules could not be be duplicated.
https://github.com/elastic/kibana/issues/90356

- [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
2021-02-24 14:31:55 -07:00
Corey Robertson 510bc698ff
[Dashboard] Export appropriate references from byValue panels (#91567)
* Adds references from byValue panels when saving dashboard

* Remove extra spaces

* Rework a type check

* Fix type check

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2021-02-24 16:23:44 -05:00
Alison Goryachev fe6bd2ecbb
[Upgrade Assistant] Align code between branches (#91862) 2021-02-24 16:15:06 -05:00
Christos Nasikas 32ffc80768
[Security Solution][Case] Fix alerts push (#91638)
Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2021-02-24 21:48:40 +02:00
Wylie Conlon 78bed9e56d
[Lens] Fix bug in Safari and Firefox form rendering (#92542)
Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2021-02-24 14:04:46 -05:00
Shahzad 8957ed8eef
[Uptime] waterfall improve legend spacing (#92158) 2021-02-24 19:28:24 +01:00
ymao1 b303c9df70
[Alerting] Fixing Failing test: X-Pack Alerting API Integration Tests.x-pack/test/alerting_api_integration/security_and_spaces/tests/alerting/rbac_legacy·ts - alerting api integration security and spaces enabled Alerts legacy alerts alerts superuser at space1 should schedule actions on legacy alerts (#92549)
* Unskipping test

* Increasing runAt time

* Increasing runAt time

* Logging

* Increasing wait time even more

* Removing logs

* Resetting task status

* Re-enabling all tests

* Re-enabling all tests

* Adding comment
2021-02-24 13:25:27 -05:00
Quynh Nguyen 96e34d96b1
[ML] Add functional tests for Transform start/delete (#92314) 2021-02-24 12:10:04 -06:00
Walter Rafelsberger e19773b789
[ML] Data Frame Analytics: Adds missing info icon tooltips to scatterplot matrix option labels. (#92626)
Adds missing info icon tooltips to scatterplot matrix option labels.
2021-02-24 12:12:00 -05:00
Jason Stoltzfus d9d0790966
[App Search] Add relevance tuning boost forms (#91912) 2021-02-24 08:58:01 -08:00
spalger e1fa0bfa9c skip flaky suite (#88177) 2021-02-24 09:38:45 -07:00
Wylie Conlon 614c6c6853
[Lens] Fix unformatted timeseries functions (#92498)
Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2021-02-24 10:42:07 -05:00
Brian Seeders d9417635e8 skip flaky suite (#92567) 2021-02-24 10:32:04 -05:00
Shahzad 1be0612b05
[Uptime] Search made easy (#88581)
Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2021-02-24 16:02:32 +01:00
Wylie Conlon 3aad1b7527
[Lens] Stop requesting stats on Records field (#92508)
Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2021-02-24 09:56:52 -05:00
Casper Hübertz b1316300c0
[APM] Correlations style polish in prep for release (#92514)
- Removed the icon from the "View correlations" button
- Moved the tabs to the FlyoutHeader
- Removed unneeded spacers in the content
- Reduced the filtering by callout and button
- Made the introduction text color `subdued` to make it less noisy
- Reduced ImpactBar size and extended width so the bar itself is `100`
- Changed the selected term visualization color to `euiColorVis2` because the `euiColorAccent` is not great for visualizations.
- Changed the latency distribution visualization color to `euiColorVis1` to make it consistent with the Transactions visualization colors in the other charts.
2021-02-24 15:49:30 +01:00
Joe Reuter a3f7b1d55a
[Lens] Fix sorting undefined, null and NaN values (#92575) 2021-02-24 15:47:11 +01:00
Nathan L Smith 06418ae523
Put environment back in uiFilters (#92561)
`environment` is still used in `uiFilters` in UX, but not anywhere else.

It was removed when removing environment from UI filters for the rest of APM and broke UX's environment switcher. Put it back.
2021-02-24 08:27:56 -06:00
Alejandro Fernández Haro fd9e159816
[Usage Collection] Remove unused UI Metric APIs (#91620)
Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2021-02-24 07:21:40 -05:00
ymao1 69bf127730
[Actions][Doc] Clean up Actions README (#91789)
* Removing REST API from README. Updating configuration docs

* Updating action config docs

* Cleaning up action type configs in README and user docs

* Cleaning up action type configs in README and user docs

* Fixing formatting

* Apply suggestions from code review

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

* PR fixes

* Update x-pack/plugins/actions/README.md

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

Co-authored-by: gchaps <33642766+gchaps@users.noreply.github.com>
Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2021-02-23 21:29:41 -05:00
Candace Park 048425daa0
[Security Solution][Endpoint][Admin] Match Policy Details in Security Solution with Fleet (#92047) 2021-02-23 20:58:13 -05:00
Scotty Bollinger 4619f02189
[Enterprise Search] Change icon for error in EuiCallouts (#92527) 2021-02-23 18:47:20 -05:00
Yara Tercero 226ed1710f
[Security Solution][Exceptions] - Update exceptions modal to use existing lists plugin useApi hook (#92348)
Doing a quick refactor to help with #90634 . While working on #90634 found that I would introduce a circular dependency if I didn't refactor the hook used by the exception builder component to make use of the existing useApi hook in the lists plugin.

#90634 adds temporary ids to item entries to mitigate some React key requirements and the logic to remove/add these id's isn't at the boundary but in the hooks (so as not to pollute the data for everyone wanting to use the api.

An upside is that it removed some of the looping and seemed to speed things up a bit. I briefly considered adding the bulk SO endpoints for exception items, but they are still experimental.
2021-02-23 14:55:42 -08:00
Devin W. Hurley 0c3d30cced
[Security Solution] [Detections] Adds integration test to ensure max_signals param is obeyed (#92489) 2021-02-23 17:16:48 -05:00
Nathan L Smith 57dfb811d6
Remove kuery from uiFilters (#91932)
* Make kuery a standalone query parameter instead of part of uiFilters
* Move getEsFilters helper to RUM
* Move query utils from "common" to "server" (it uses esKuery from the data plugin, which is exported from server, not common.)
* Move uiFiltersRt to RUM routes

References #84526.
2021-02-23 14:04:12 -06:00
Melissa Alvarez 4f8cd8399b
fix escapeDoubleQuotes regex to ensure quotes escaped correctly (#92471) 2021-02-23 14:48:49 -05:00
Aaron Caldwell f4b16f3d87
[Maps] Fix geo shape agg telemetry not collecting due to missing index pattern IDs (#90886) 2021-02-23 14:06:36 -05:00
Constance 301df28a66
[App Search] Standardize table pagination logic/UX (#92293)
* Create table pagination helpers

* Update Curations table to use new pagination helpers

* Update Credentials table to use new helpers

+ update to use DEFAULT_META and pass page[size] customization
+ update useEffect to manually call fetchCredentials on current page change
+ update table to pass empty prompt within table (rather than instead of), and add a loading indicator
- update deleteApiKey to re-fetch credentials from API rather than modify the in-memory array (which more correctly handles pagination)

* Update Engines table to use new helpers

Server:
+ update server route to take page[current] (consistent w/ other routes) and page[size]
- remove custom param translation (passing as-is)
- remove ENGINES_PAGE_SIZE constant, basically stored within DEFAULT_META now and page size is passed from client-side
- remove misc header cruft from engines table

EnginesLogic:
- Update http calls to send page[current] & page[size] (same as other files)
- Change individual *Total/*Page vars to store the meta obj coming back from the API (same as other logic files)
- Change on*Load actions to simply pass the API response (update typing to clarify)
- Add new individual enginesLoading/metaEnginesLoading vars so that tables can show individual loading indicators between pagination
- Change dataLoading to a selector (should only show on initial page load, and should use table loading indicators after)

EnginesTable:
- Update props to more closely match EuiBasicTable (items, onChange, add loading) so users can do a simple pass-through
- Reorganize tests so that language block doesn't need its own custom wrapper vars
- Remove empty data test (no longer really testing anything meaningful) and add loading test

EnginesOverview:
- Update to use new helpers, values, props, etc.
- Add new test for onPaginate handlers
2021-02-23 10:41:35 -08:00
Quynh Nguyen 50b23e2176
[ML] Fix geo_shape not aggregetable and misaligned examples list in other_content (#92198) 2021-02-23 12:36:43 -06:00
Constance 5ab2d25006
[App Search] Standardize date/timestamps displayed in tables (#92287)
* Add new reusable FormattedDateTime helper

* Update Analytics RecentQueriesTable to use helper

* Update CurationsTable to use new helper

- requires adding a utility fn to convert the server-sent string to a Date-parseable string

* Update EnginesTable to use FormattedDateTime

- mostly to standardize/DRY out the FormattedDate display style
- adds a new hasTime flag since the EnginesTable does not display time

* [PR feedback] hasTime -> hideTime
2021-02-23 13:26:27 -05:00
Quynh Nguyen accf6b8c2e
[ML] Fix Total feature importance section not expandable when set to False (#92450) 2021-02-23 12:22:38 -06:00
Jason Stoltzfus e1166999e0
[Enterprise Search] Shared unsaved changes prompt component (#92277) 2021-02-23 12:55:42 -05:00
Dima Arnautov 4891f7c09e
[ML] Fix Anomaly detection alert condition validation (#92377)
* [ML] config validation

* [ML] validation messages

* [ML] fix message

* [ML] refactor resolveBucketSpanInSeconds

* [ML] fix messages

* [ML] change validation messages

* [ML] change validation messages

* [ML] double bucket span outside of resolveBucketSpanInSeconds

* [ML] check only for started datafeed, update bucket span check
2021-02-23 12:43:47 -05:00
igoristic 0e6c38d630
[Monitoring] Added cgroup option for APM cpu usage (#90873)
* Added APM cpu cgroup

* Fixed tests

* Fixed i18n

* Removed agent logic and fixed tests

* Fixed test

* Fixed tests and backup field

* Removed backup field fix

* Fixed cluster tests

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2021-02-23 12:19:10 -05:00
Walter Rafelsberger 45155f089d
[ML] Show mini histograms by default if row count below threshold. (#92021)
Show mini histograms by default if row count below threshold of 10000 docs.
2021-02-23 17:34:59 +01:00
Melissa Alvarez 70645b367e
show creation triggered indication. disable continue while included fields load (#92254) 2021-02-23 11:14:16 -05:00
Candace Park 49dee63705
[Security Solution][Endpoint][Admin] Policy response flyout view has scrolling (#92265) 2021-02-23 11:07:45 -05:00
Devon Thomson cb932075fa
[Dashboard] Remove Multiple History Entries & Stay in Edit Mode on Save As (#92105)
* made save as stay in edit mode when not navigating to another dashboard. Removed extra history entires from save
2021-02-23 11:01:21 -05:00
Spencer d01fb56d75
[ci/ftr] run new fleet_functional suite (#92296)
Co-authored-by: spalger <spalger@users.noreply.github.com>
2021-02-23 09:15:44 -06:00
Constance 80f697d91f
Remove external/popout icon from Create Engine CTA (#92272)
- now that create engine is no longer linking out to standalone UI
2021-02-23 08:43:37 -05:00
Alison Goryachev 77bc230901
[Upgrade Assistant] Remove reindex logic that is no longer applicable (#91193) 2021-02-23 08:42:59 -05:00
Shahzad 7593a911ca
[Uptime] fix double scroll on legend height change (#92155) 2021-02-23 14:38:29 +01:00
Anton Dosov ef5d5cf7b1
[Search Sessions] Fix Discover doesn't clean session when navigating to Context (#91874) 2021-02-23 08:14:54 -05:00
Rudolf Meijering 3b1ca526a7
v1 migrations: drop fleet-agent-events during a migration (#92188)
* v1 migrations: drop fleet-agent-events during a migration

* Add TODO to fleet to make it clear that fleet-agent-events should not be used

* Fix test
2021-02-23 11:44:43 +01:00
Alejandro Fernández Gómez 004238ac16
[Logs UI] Add default panel title to log stream embeddable (#91817)
Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2021-02-23 11:23:26 +01:00
Gidi Meir Morris ee81110516
renamed reloadAlerts to onSave wit hdeprecation (#91997)
The `reloadAlerts` properties in `AlertAdd` and `AlertEdit` are confusing property names.
In this PR we deprecate those and replace them with `onSave`.
2021-02-23 10:00:17 +00:00
Shahzad 2ce344019a
Add text search mode in global kuery bar (#91814)
Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2021-02-23 10:37:56 +01:00