Commit graph

40979 commits

Author SHA1 Message Date
Stacey Gammon 88f9c4ae02
Add support for building a deprecation list with usage (#99154) (#99538)
* Add support for building a deprecation list with usage

* Update API docs
2021-05-06 17:59:11 -04:00
Kibana Machine 5587723aa1
[ftr] auto assign ciGroupDocker to suites with dockerServers (#99393) (#99535)
Co-authored-by: spalger <spalger@users.noreply.github.com>
Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>

Co-authored-by: Spencer <email@spalger.com>
Co-authored-by: spalger <spalger@users.noreply.github.com>
2021-05-06 17:42:19 -04:00
Kibana Machine e710abaa23
Add Component Integration Test For Common Processor Fields (#97194) (#99532)
* Added test for setting common fields. All except the if field as it uses monaco text editor. Reaching out for help with this issue.

* Added  assertion for the code editor.

* Added await to fix promise rejection.

* Added mockCodeEditor data test subject to correct file.

* Removed unneeded comment.

* Split out common processors test and fixed nits in PR feedback.

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

Co-authored-by: John Dorlus <silne.dorlus@elastic.co>
2021-05-06 17:27:02 -04:00
Melissa Alvarez 94d424658b
[ML] Anomaly Detection explorer: ensure map reflects anomalies selected (#99403) (#99533)
* show choropleth layer for anomalies present

* use type guard
2021-05-06 17:22:13 -04:00
Gloria Hornero 40bfd76396
[Security Solution] [Detections] Adds investigate in timeline test for indicator match generated alerts (#99214) (#99529)
* adds investigate in timeline test for indicator match generated alerts

* refactor

* removes duplicated line

* refactor

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

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2021-05-06 17:09:31 -04:00
Kibana Machine da82bd558b
[packages] Move @kbn/ace to Bazel (#99129) (#99528)
Co-authored-by: Jonathan Budzenski <jon@budzenski.me>
2021-05-06 20:53:39 +00:00
Jonathan Budzenski 7475357b52 skip flaky test. #98249 2021-05-06 15:51:39 -05:00
Pierre Gayvallet 097b8bf92c
Ensure deterministic plugin import order (#99451) (#99525)
* Ensure deterministic plugin import

* remove exclusive test

* shorter sort
2021-05-06 16:48:28 -04:00
Kibana Machine eefcc596d7
[packages] Add @kbn/dev-utils as a dependency of @kbn/crypto (#99500) (#99522)
Co-authored-by: Jonathan Budzenski <jon@budzenski.me>
2021-05-06 16:28:29 -04:00
Alejandro Fernández Haro 47c3e20546
[Usage Collection] Report the number of SOs per type (#99344) (#99509)
Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
# Conflicts:
#	api_docs/core.json
#	api_docs/dashboard.json
#	api_docs/data.json
#	api_docs/data_search.json
#	api_docs/fleet.json
#	api_docs/infra.json
#	api_docs/ml.json
#	api_docs/observability.json
#	api_docs/presentation_util.json
#	api_docs/reporting.json
#	api_docs/visualizations.json
2021-05-06 15:08:20 -04:00
Brandon Morelli 2633db289e
docs: replace error rate image (#99430) (#99520) 2021-05-06 11:54:59 -07:00
Matthias Wilhelm 86a2b7367e
[Discover] Rename Legacy table to Classic table and Data grid to New table (#99336) (#99506)
* Rename "Legacy table" to "Classic table"

* Rename "Data grid" to "New table"
2021-05-06 14:47:13 -04:00
Kibana Machine 3925ed048e
[Security Solution][Endpoint] User can edit existing event filters from the list (#98898) (#99495)
* Makes width 100% to allow multilang

* Removes state/index types and move those types into the parent types file

* Allows fill form from existing exception by id. Adds unit tests. Fixes wrong comments display when there is more than one comment.

* Allows user update an existing event filter. Adds unit tests. Fixes some wrong behaviours when opening the flyout after create/update action

* Fixes typo

* Fixes wrong entry type

* Uses selectors when it's possible instead of accessing directly to state object

* Fixes typechecks

* Allows edit from the card edit button. Removes unused imports and fixes some types

* Reverts type name

* Changes reducer to don't add entry to the list manually after creation, list will be reloaded with api call. Also check always if data exists to display the add new entry button at the first time

Co-authored-by: David Sánchez <davidsansol92@gmail.com>
2021-05-06 14:09:42 -04:00
Kibana Machine 9dde2cf51b
[ML] Functional tests - reenable clone and edit tests for transform latest (#99306) (#99492)
This PR fixes the data grid parsing and re-enables the clone and edit tests for transform latest.

Co-authored-by: Robert Oskamp <robert.oskamp@elastic.co>
2021-05-06 17:47:09 +00:00
Lisa Cawley c0ac8c10b3
[ML] Add popover help for swim lanes (#98855) (#99491)
Co-authored-by: Dima Arnautov <arnautov.dima@gmail.com>
Co-authored-by: Michael Marcialis <michael@marcial.is>

Co-authored-by: Dima Arnautov <arnautov.dima@gmail.com>
Co-authored-by: Michael Marcialis <michael@marcial.is>
2021-05-06 13:46:56 -04:00
Kevin Logan 029817945f
[Security Solution][Detections] Add linux artifact for exception lists (#99104) (#99469)
Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2021-05-06 13:41:43 -04:00
Diana Derevyankina 245e196c48
[TSVB] Removal of validation schema (#99063) (#99486)
* [TSVB] Removal of validation schema

* Move types to a separate folder and rename some of them

* Remove nulls from types and move enums to a separate folder

* Rename common to panel_model

* Remove nulls from optional color_rules types, replace QueryObject with Query type from data plugin and remove empty strings from some types and corresponding default values

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

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2021-05-06 13:27:36 -04:00
Kibana Machine beb1c77a70
[Fleet] Update no results content for integrations (#99415) (#99485)
* Update no results content for integrations

- Update content when no results returned from search on integrations
screen
- Add links to custom integrations and discuss forums to bottom of
results grid, even when results are returned

Closes #87015

* Don't show missing integration message for installed integrations

* Remove unneeded history.push

Co-authored-by: Kyle Pollich <kyle.pollich@elastic.co>
2021-05-06 13:23:04 -04:00
Kibana Machine c7c345a571
[Security Solutions] Fixes more Cypress flakes by adding abilities to do refresh on timelines (#99413) (#99480)
## Summary

This should fix the flakes by adding the ability to do refreshes when timelines aren't being shown.

* Fixes the missing data subjects and tests in our code base
* Fixes the flakes in each of the tests we were seeing
* Cleans up some of the .then() and additional checks we were using
* Returns more chainables from Cypress so we can use more then() logic to keep things cleaner
* Removes 1 dead duplicated function found 

You can replicate the flake by adding this code below in any before code of this pull request. This is how I was able to replicate it and then fix it within the utils.

```ts
export const waitForTimelinesPanelToBeLoaded = (): Cypress.Chainable<JQuery<HTMLElement>> => {
  cy.get(TIMELINES_TABLE).should('exist');
  cy.wait(5000); // <--- Do a wait for 5 seconds to ensure the table is fully loaded with zero hits to replicate the flake this fixees
  return cy.get(TIMELINES_TABLE).should('exist');
};
```

A secondary issue is that when you do fast refreshes the click handlers are not on the timelines in the timeline table. However, we cannot do fast pipe/re-clicking on those because that causes a different type of flake. The flake that can cause is multiple clicks are registered and then we end up with multiple URL/route reloads.

So instead, we have to unfortunately rely on one `cy.wait(1000)` Cypress wait of 1 second.

### 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

Co-authored-by: Frank Hassanabad <frank.hassanabad@elastic.co>
2021-05-06 13:16:43 -04:00
Kibana Machine da07904260
[sec/actions] move constants to a separate file to avoid circular deps (#99439) (#99477)
* [sec/actions] move constants to a separate file to avoid circular deps

* split out setupSavedObjects import

* remove unused import

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

Co-authored-by: Spencer <email@spalger.com>
Co-authored-by: spalger <spalger@users.noreply.github.com>
2021-05-06 11:50:08 -04:00
David Sánchez 1e0f972dd8
Fixes special characters and quotes on trusted apps search (#99377) (#99475)
* Escapes special chars and backslashes and colons. Updates test.

* Uses regexp to escape all non alphanumeric chars

* Skips whitespaces

* Skips slashes

* Fixes regex and adds more test cases
2021-05-06 11:34:18 -04:00
Kibana Machine 94abf73357
[Metrics UI] Don't mount NodeContextMenu when is not visible (#99207) (#99448)
* Avoid render NodeContextMenu when mounting node

* Fix popover on inventory table view

* Remove unnecessary condition

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

Co-authored-by: Ester Martí Vilaseca <ester.martivilaseca@elastic.co>
2021-05-06 15:02:08 +00:00
Kibana Machine e171259f1b
[Task Manager] Using track_total_hits in workload agg (#99360) (#99467)
* Using track_total_hits in workload agg

* Increasing size of terms aggregation

Co-authored-by: ymao1 <ying.mao@elastic.co>
2021-05-06 10:56:28 -04:00
Ahmad Bamieh 3a537c5dd0
[i18n] [7.x] Integrate 7.13.0 Translations (#99367) 2021-05-06 10:53:53 -04:00
Dmitry Tomashevich c06ba9252a
[Discover] Migrate remaining context files from js to ts (#99019) (#99457)
* [Discover] migrate remaining context files from js to ts

* [Discover] get rid of any types

* [Discover] replace constants with enums, update imports

* [Discover] use unknown instead of any, correct types

* [Discover] skip any type for tests

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

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2021-05-06 08:59:54 -04:00
Yuliia Naumenko a5d698b760
[Connectors][UI] Updated connectors list UI for connectors that need to be updated after import. (#98565) (#99435)
* [Connectors][UI] Updated connectors list UI for connectors that need to be updated after import

* added ui property isMissingSecrets

* added info for medit form

* fixed tests

* fixed due to comments

* fixed due to comments

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

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2021-05-06 00:11:11 -04:00
Kibana Machine 1152586e03
chore(NA): moving @kbn/es into bazel (#99371) (#99405)
* chore(NA): moving @kbn/es into bazel

* chore(NA): remove build scripts from pkg json

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

Co-authored-by: Tiago Costa <tiagoffcc@hotmail.com>
2021-05-06 02:07:43 +00:00
Kibana Machine bfaba0bb20
[ftr] validate that suites are not in multiple ciGroups (#99398) (#99419)
* [ftr] validate that suites are not in multiple ciGroups

* remove unused import

* include filename in error message

* remove redundant ciGroup tags

* fix more duplicate ciGroups

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

Co-authored-by: Spencer <email@spalger.com>
Co-authored-by: spalger <spalger@users.noreply.github.com>
2021-05-06 01:57:11 +00:00
Kibana Machine d7c1b97a0f
[APM] transaction type is not persisted from service inventory (#99407) (#99432)
Co-authored-by: Cauê Marcondes <55978943+cauemarcondes@users.noreply.github.com>
2021-05-05 21:37:03 -04:00
Vadim Dalecky 7043ba61ef
feat: 🎸 close drilldown manager on view mode switch (#99309) (#99424) 2021-05-05 20:22:10 -04:00
igoristic b06ae0c3e6
[Monitoring] Checking source node and aggregations before accessing its properties (#98255) (#99423)
* checking source node

* Fixed types

* Added aggregations check

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

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2021-05-05 20:14:43 -04:00
Kaarina Tungseth f06ee00504
[7.x] Add known issues to saved-objects migrations (#99388) (#99408) 2021-05-05 16:08:30 -05:00
Dominique Clarke fc9d240e76
[Uptime][Synthetics] fleet managed monitor telemetry (#97502) (#99387)
* add fleet monitor telemetry

* add changes to telemetry json file

* add functional tests

* document telemetry fields

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
# Conflicts:
#	x-pack/test/api_integration/apis/uptime/rest/helper/make_ping.ts
2021-05-05 16:29:57 -04:00
Kibana Machine a3c0f891b0
[App Search] Create Engine UI polish (#99281) (#99378)
* Remove incorrect external icon indicator

davey pls

* Add isLoading state to the Create Engine button

* Add isLoading state to the Create Meta Engine button

Co-authored-by: Constance <constancecchen@users.noreply.github.com>
2021-05-05 15:45:38 -04:00
Kibana Machine e3cea87c74
Implement missing privileges callout component (#98125) (#99384)
Co-authored-by: Dmitry Shevchenko <dmshevch@gmail.com>
2021-05-05 15:42:07 -04:00
Xavier Mouligneau c402f610b9
[SECURITY SOLUTION] Get case ids from alert ids (#98702) (#99376)
* wip to get caseIds with alertId

* make work the API with the latest aggs from SO :)

* review

* change logic to re-do aggregation if we think that we are missing data

* Integration tests

Co-authored-by: Jonathan Buttner <jonathan.buttner@elastic.co>

Co-authored-by: Jonathan Buttner <jonathan.buttner@elastic.co>
2021-05-05 14:46:34 -04:00
Kibana Machine eacae19d3a
Use vega-interpreter to safely evaluate Vega expressions (#98832) (#99354)
Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>

Co-authored-by: Larry Gregory <larry.gregory@elastic.co>
2021-05-05 18:39:05 +00:00
Kibana Machine 060bff76fb
[Workplace Search] Refactor RoleMappingsLogic (#99284) (#99375)
* Reorder methods

* Reorder actions interface

* Reorder values interface

* Reorder server details interface

* Add path

* Refactor handleDeleteMapping logic

* REorder and refactor actions

Also changes functions with no return values to properties to match app search

// Before:
foo: () => true

// After
foo: true

* Reorder reducers

* Reorder JSON body props

* Change JSON order in test

Passes locally but fails on CI

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

Co-authored-by: Scotty Bollinger <scotty.bollinger@elastic.co>
2021-05-05 14:36:12 -04:00
Kibana Machine 4535c5958b
[packages] Move @kbn/crypto to Bazel (#99233) (#99374)
Co-authored-by: Jonathan Budzenski <jon@budzenski.me>
2021-05-05 14:29:30 -04:00
Melissa Alvarez 307c0bc46f
[ML] Anomaly Detection Explorer: adds choropleth map (#98847) (#99369)
* adds choropleth map to explorer

* improve suggestions check

* improve state management in anomalies map

* fix translation

* ensure map updates correctly when filtering by entity

* update import from maps
2021-05-05 13:53:52 -04:00
Kibana Machine f787882cc6
[Alerting] Export rules and connectors (#98802) (#99361)
* Adding importableAndExportable but hidden saved object types to saved object feature privilege

* Adding helper function for transforming rule for export. Added audit logging

* Adding helper function for transforming rule for export. Added audit logging

* Adding unit test for transforming rules for export

* Exporting connectors

* Removing auditing during export

* Adding import/export to docs

* PR fixes

* Using action type validation onExport

* Fixing logic for connectors with optional secrets

* Fixing logic for connectors with optional secrets

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

Co-authored-by: ymao1 <ying.mao@elastic.co>
2021-05-05 13:28:47 -04:00
Kibana Machine 47d761f6f1
Document plugin API for spaces and spacesOss (#98966) (#99355)
Co-authored-by: Joe Portner <5295965+jportner@users.noreply.github.com>
Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>

Co-authored-by: Larry Gregory <larry.gregory@elastic.co>
Co-authored-by: Joe Portner <5295965+jportner@users.noreply.github.com>
2021-05-05 16:45:41 +00:00
Quynh Nguyen c5b1c8aeec
[ML] Fix Single Metric Viewer annotation tooltip hard to trigger (#98233) (#99352)
Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2021-05-05 12:36:42 -04:00
Matthias Wilhelm 44f1f1728c
[7.x] [Discover] Fix horizontal scrolling of legacy table (#98770) (#99164)
* [Discover] Fix horizontal scrolling of legacy table (#98770)

* Add CSS class to fix scrolling of legacy table

* Add functional test

* Update _doc_table.ts
2021-05-05 12:35:01 -04:00
Kibana Machine ecd9fd401a
Enable custom time ranges for saved searches (#99180) (#99351)
* Enable custom time ranges for saved searches

* Add functional test

* Fix Typing

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

Co-authored-by: Tim Roes <tim.roes@elastic.co>
2021-05-05 12:34:03 -04:00
Kibana Machine dca374c339
Load FLS suggestions on-demand (#98681) (#99349)
Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>

Co-authored-by: Larry Gregory <larry.gregory@elastic.co>
2021-05-05 12:19:23 -04:00
Nathan Reese 295f2d695d
[file upload] use index exists API for /internal/file_upload/index_exists route (#98471) (#99348)
Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2021-05-05 12:01:10 -04:00
James Rodewig 6aa5625343
[DOCS] Update Docker run instructions (#99340) (#99362)
Co-authored-by: Kaarina Tungseth <kaarina.tungseth@elastic.co>
# Conflicts:
#	docs/index.asciidoc
2021-05-05 08:55:28 -07:00
Diana Derevyankina 9f9c417f67
[Vega] Supports runtime fields (#98707) (#99342)
* [Vega] Support of Runtime Fields

* Refactor es_query_parser

* Refactor es_query_parser

* Remove unnecessary object creation

* Revert tests and move changes related to runtime fields into search_api

* Remove unnecessary code
2021-05-05 11:31:53 -04:00
Kibana Machine d8002529de
[TSVB] Adds ignore DST switch for timeseries (#98484) (#99343)
* [TSVB] add ignore DST switch

* [TSVB] move YesNo component to timeseries panel, get rid of getTimezone call

* [TSVB] reduce formatter creation number

* [TSVB] add usage EuFormRow, remove redundant translations

* [TSVB] use boolean instead of number

* [TSVB] use number for YesNo

* [TSVB] resolve YesNo value type

* [TSVB] replace number with boolean

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

Co-authored-by: Dmitry Tomashevich <39378793+Dmitriynj@users.noreply.github.com>
2021-05-05 11:26:24 -04:00