Commit graph

40970 commits

Author SHA1 Message Date
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
Kibana Machine 64f6c707e4
Update agent status labels and colors (#99314) (#99335)
fixes elastic/kibana/issues/97457

Co-authored-by: Ashokaditya <am.struktr@gmail.com>
2021-05-05 10:45:40 -04:00
Mikhail Shustov 9577265c62
do not crash when es client throws any type of error (#99175) (#99332) 2021-05-05 10:42:32 -04:00
igoristic dc99a29faf
Merged local branch (#99157) (#99330) 2021-05-05 10:41:26 -04:00
David Sánchez dc0eb11dd3
[Security Solution][Endpoint] Trusted apps search throws an error when searching special chars (#99185) (#99325)
* Escapes special chars and backslashes and colons. Updates test.

* Uses regexp to escape all non alphanumeric chars

* Skips whitespaces

* Skips slashes
2021-05-05 10:21:38 -04:00
Yulia Čech eeab52c744
[Remote clusters] Fixed skipped test for search bar (#97472) (#99323)
* Fixed skipped search test

* Fixed eslint error

* Added setSearchBarValue helper to testbed and unskipped search tests in CCR

* Fixed eslint errors and added a comment to the setSearchBarValue method

* Added a mock for EuiSearchBox

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 10:10:51 -04:00
Kibana Machine 2219b1ecfa
[ML] Support trained model aliases (#99174) (#99320)
* [ML] use toString to make sure boolean values are rendered

* [ML] extract metadata

* [ML] retrieve pipelines associated with model alias

* [ML] fix ts issues

* [ML] functional tests

* [ML] remove unused models definitions

Co-authored-by: Dima Arnautov <dmitrii.arnautov@elastic.co>
2021-05-05 09:34:47 -04:00
Kibana Machine d8b6d2def7
Add more strict eslint rules for discover (#99241) (#99307)
Co-authored-by: Tim Roes <tim.roes@elastic.co>
2021-05-05 06:50:49 -04:00
Vadim Dalecky dd7fd38a5b
Close drill manager flyout on application change (#99026) (#99304)
* fix: 🐛 close drilldown create flyout on app change

* fix: 🐛 close drill edit flyout on navigation to diff app

* test: 💍 fix test mocks after refactor
2021-05-05 06:11:08 -04:00
Kibana Machine 2a1f977801
Added deprecation to all the io-ts types and copies of them (#99260) (#99289)
## Summary

Adds deprecation to all the io-ts types and copies of them found in the code base.

Phase 1 (Completed): Copy all the utilities to the `packages/kbn-securitysolution-io-ts-utils`
Phase 2: Add all the deprecation messages about them to the code base
Phase 3+: Teams and others will eventually remove/replace them with the utils from `kbn-securitysolution-io-ts-utils`

Co-authored-by: Frank Hassanabad <frank.hassanabad@elastic.co>
2021-05-05 00:05:08 -04:00