Commit graph

38070 commits

Author SHA1 Message Date
Dan Panzarella
7e24ae6e70
[Security] Report accurate endpoint count (#83092) 2020-11-11 09:12:25 -05:00
Anton Dosov
7fdd0a1b81
[Search][Discover] Restore searchSessionId from URL (#81633) 2020-11-11 14:03:10 +01:00
Marta Bondyra
a50960e2fd
[Lens] Implement counter rate expression (#82948) 2020-11-11 13:26:53 +01:00
Maja Grubic
cb27a7295b
[Data-Plugin] Add telemetry around query/filter bar usage (#82709)
* [Discover] Add telemetry around query/filter bar usage

* Updating documentation

* Adding a separate method for tracking query submit

* Updating doc changes

* Adding trackUiMetric to Data plugin

* Doc changes

* Do not make usageCollection a start dependency

* Updating documentation

* Adding metrics for filter inclusion, edit, and disabled

* updating docs

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2020-11-11 12:18:41 +00:00
Wylie Conlon
ac150da49d
[Lens] Functional tests for drag and drop (#82796) 2020-11-11 12:36:04 +01:00
Dario Gieselaar
7d3e19801f
[APM] Add metric type interface (#83039)
Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2020-11-11 08:58:35 +01:00
Frank Hassanabad
34c80e5d7c
[Security Solutions] Adds additional cypress tests and utils to value based lists (#83026)
## Summary

Adds additional cypress tests and utils around value lists so that the percent of test driven development (TDD) possibilities will be easier for us to accomplish around bug fixes towards the next release.

* Changes and adds data test subjects within value based lists
* Fixes a bug where the list fixtures were not being converted to base64 before uploads within Cypress
* Adds a [CIDR](https://en.wikipedia.org/wiki/Classless_Inter-Domain_Routing) fixture
* Adds tests for export, delete, close and open the dialog, and all the value based list types for the current modal. 

### 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
2020-11-10 22:02:04 -07:00
Madison Caldwell
f4126eac46
[Security Solution][Detections] Modify threshold rule synthetic signal generation to use data from last hit in bucket (#82444)
* Fix threshold rule synthetic signal generation

* Use top_hits aggregation

* Add timestampOverride

* Account for when threshold.field is not supplied

* Ensure we're getting the last event when threshold.field is not provided

* Add missing import
2020-11-10 22:28:24 -05:00
Nathan L Smith
5ab41f5845
Put APM links into header action menu (#82292) 2020-11-10 19:16:02 -06:00
Tiago Costa
81b3a48c2c
chore(NA): move types wrongly add on production deps to dev deps (#83048) 2020-11-11 01:08:39 +00:00
Constance
9992950855
[App Search] Add EngineLogic (#82992)
* Set up required types

- creating new schema types for now as part of engine details

+ update shared IEngine type

* Migrate EngineLogic file

- w/ basic Kea updates & http call update

* Opinionated cleanup / changes

- | {} is needed for typescript to stop linting but will result in significant code changes / requirements for existence checks downstream
- setIsLoading and dataLoading were previously not being used in ent-search but I plan to change that so that it is used.
- move some reducers to selectors as more applicable
- add hasSchemaConflicts in preparation for upcoming view conditional

* Update EngineLogic w/ recent ent-search changes

* Write tests for EngineLogic

* [PR feedback] Kea best practices
2020-11-10 16:57:12 -08:00
John Schulz
d66ca491ed
[Fleet] Split unpacking an archive and caching its files into separate functions (#83085)
## Summary

 * Separate unpacking an archive from caching it or other side-effects
 * Parse and validate an archive before caching it 
 * Validation has no coupling with caching side-effects or any other code outside the `validation.ts` file

```diff
-  const paths = await unpackArchiveToCache(archiveBuffer, contentType);
-  const archivePackageInfo = parseAndVerifyArchive(paths);
+  const entries = await unpackArchiveEntries(archiveBuffer, contentType);
+  const { archivePackageInfo } = await parseAndVerifyArchiveEntries(entries);
+  const paths = addEntriesToMemoryStore(entries);
```
### Checklist
- [ ] [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
2020-11-10 18:27:34 -05:00
Stacey Gammon
44d45ff1da
Remove missing files and folders from CODEOWNERS file (#82060)
* Remove folders that don't exist anymore

* Fix owner for security solution

* add ml folders

* Remove missing folders added after merge

* Remove missing folder
2020-11-10 18:26:58 -05:00
Tre
3979418fc7
[QA] Encryption Rotation tests via Email Connectors (#82659) 2020-11-10 16:14:26 -07:00
CJ Cenizal
e078e905c6
Update developer docs with heuristics for maintaining quality (#82666)
* Add comment that IE11 isn't supported in 7.9 and onwards.
2020-11-10 14:36:44 -08:00
Constance
2d5de2b3bd
[Enterprise Search] Tech debt/cleanup: remove I/E/T Typescript prefixes (#83099)
* [All] Remove prefixes on simple self-contained type defs

- Types should not be exported
- Types should not be used outside each affected file

* [All][kea] Remove ts prefixes and unnecessary exports

Kea now takes care of type checking for us, so there should virtually never be a need to export our values and actions interfaces going forward

* [shared] Remove createHref type prefixes

* [shared] Remove breadcrumb prefixes

* [shared] Remove telemetry prefixes

* [shared] remove types.ts

Opionionated change: it was only being used for IFlashMessage, and at this point I think it's more useful to go in one level deeper to grab the type you need

* [server] remove route dependencies prefixes

* [server] Various type cleanups

- plugin.ts - remove unnecessary export
- MockRouter - remove prefix for request type, change IMockRouter to match Kibana's IRouter
- check_access - remove prefixes
- callEnterpriseSearchConfigAPI - remove prefixes
- EnterpriseSearchRequestHandler - remove prefixes

* [common] Remove InitialAppData prefix

+ remove unnecessary export from public/plugin.ts

* [common] Remove Meta prefixes

* [common] Remove configured limits prefixes

* [AS] Remove Account and Role prefixes

* [AS] Remove Engine prefixes

* [AS] Remove credentials prefixes

* [AS] Remove log settings prefixes

* [WS] Remove account/organization/initial data prefixes

* [WS] Remove group(s), user, & content source prefixes

+ GroupLogic and GroupsLogic refactor - remove unnecessary defs in actions, it's already defined in the Actions interface above and in some cases (e.g. old History param) is causing out of date issues

* [WS] Misc type fixes

- TSpacerSize -> SpaceSizeTypes
- SourcePriority - remove prefixes
- IComponentLoader - this isn't used anywhere else and appears to be component props so it probably should live only within component_loader.tsx
- Remove recent feed activity prefix

* [WS][Opinionated] Move interfaces not used in server/ out of common/ and to public/

* Fix recently rebased types
2020-11-10 14:00:53 -08:00
Lee Drengenberg
5dde31a7fe
Fix test/functional/apps/management/_index_patterns_empty.ts for Cloud & X-Pack (#82736)
Co-authored-by: Rashmi Kulkarni <rashmi.kulkarni@elastic.co>
Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2020-11-10 15:43:42 -06:00
James Gowdy
096acb4da8
[ML] job saved objects initialization (#82639)
* [ML] job saved objects initialization

* fixing job count logic

* adding missing files

* attempting to fix build crash

* fixing kibana.json

* changes based on review

* removing accidentally added export

* adding intialization promise

* use finally so errors dont stop initialization

* function rename

* removing duplicate header

* adding job initialization count to log message

* adding error to log message

* moving initialization file

* moving intialization file back again to fix git stash issues

* removing .kibana index search

* creating internal saved object client

* code clean up

* removing commented code

* adding check for spaces enabled

* adding ids to saved objects

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2020-11-10 21:02:09 +00:00
James Gowdy
dc287eaadc
[ML] Adding non-space aware checks for existing jobs (#82814)
* [ML] Adding non-space aware checks for existing jobs

* merge with existing jobs exist endpoint

* updating comments

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2020-11-10 20:54:32 +00:00
Tiago Costa
8e4643dcdd
chore(NA): update kbn plugin helpers readme file (#83083)
* chore(NA): update kbn plugin helpers readme file

* chore(NA): update packages/kbn-plugin-helpers/README.md

Co-authored-by: Spencer <email@spalger.com>

* chore(NA): update packages/kbn-plugin-helpers/README.md

Co-authored-by: Spencer <email@spalger.com>

Co-authored-by: Spencer <email@spalger.com>
2020-11-10 20:27:48 +00:00
Robert Oskamp
6f8f8ebdf9
[ML] Functional tests - fix calendar "apply to all jobs" service method (#83071)
This PR fixes the calendar service method assertApplyToAllJobsSwitchCheckState by adding a missing await.
2020-11-10 20:40:06 +01:00
Tyler Smalley
f8d74e240b Revert "[Enterprise Search] Tech debt/cleanup: remove I/E/T Typescript prefixes (#83027)"
This reverts commit c7f085ff0b.
2020-11-10 11:24:02 -08:00
Nathan Reese
104f9aade6
[Maps] Support by value saved objects. (#82486)
* [Maps] saved objects by value

* inject references when unwrapping

* clean up map embeddable initialize

* use attribute service to load savedMap

* clean up

* remove clear ui since each route has its own store instance

* save

* update for API changes

* pass input to stateTransfer

* remove map saved object loader

* remove unused store_operations

* add saved objects to recently accessed

* provide default description

* break originatingApp connection when not returnToOrigin

* clean up file structure

* clean up adding help menu

* use SavedMap in map_embeddable to remove dupicated load attributes code

* clean up

* restore imports

* clean up breadcrumbs to match lens

* fix check for duplicate title

* tslint

* make title map saved object attribute required

* fix jest tests

* fix logic for hasSaveAndReturnConfig to not show save and return button with new map and allowByValueEmbeddables disabled

* tslint

* fix functional test by triggering MapApp render after save

* rename map_app_container to map_page

* move MapApp and redux connector into folder

* review feedback

* use MAP_PATH constant

* update by reference saved object on save and return

* cleanup breadcrumbs and title

* properly handle deleted map saved objects

* tslint cleanup

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2020-11-10 12:15:05 -07:00
gchaps
056d7ff659
[DOCS] Adds dashboard first to Maps tutorial (#82675)
* [DOCS] Adds dashboard first to Maps tutorial

* [DOCS] Incorporates review comments

* [DOCS] Incorporates review comments

* [DOCS] Updates image

* [DOCS] Updates images re; filtering

* [DOCS] Minor edits
2020-11-10 11:03:49 -08:00
Constance
c7f085ff0b
[Enterprise Search] Tech debt/cleanup: remove I/E/T Typescript prefixes (#83027)
* [All] Remove prefixes on simple self-contained type defs

- Types should not be exported
- Types should not be used outside each affected file

* [All][kea] Remove ts prefixes and unnecessary exports

Kea now takes care of type checking for us, so there should virtually never be a need to export our values and actions interfaces going forward

* [shared] Remove createHref type prefixes

* [shared] Remove breadcrumb prefixes

* [shared] Remove telemetry prefixes

* [shared] remove types.ts

Opionionated change: it was only being used for IFlashMessage, and at this point I think it's more useful to go in one level deeper to grab the type you need

* [server] remove route dependencies prefixes

* [server] Various type cleanups

- plugin.ts - remove unnecessary export
- MockRouter - remove prefix for request type, change IMockRouter to match Kibana's IRouter
- check_access - remove prefixes
- callEnterpriseSearchConfigAPI - remove prefixes
- EnterpriseSearchRequestHandler - remove prefixes

* [common] Remove InitialAppData prefix

+ remove unnecessary export from public/plugin.ts

* [common] Remove Meta prefixes

* [common] Remove configured limits prefixes

* [AS] Remove Account and Role prefixes

* [AS] Remove Engine prefixes

* [AS] Remove credentials prefixes

* [AS] Remove log settings prefixes

* [WS] Remove account/organization/initial data prefixes

* [WS] Remove group(s), user, & content source prefixes

+ GroupLogic and GroupsLogic refactor - remove unnecessary defs in actions, it's already defined in the Actions interface above and in some cases (e.g. old History param) is causing out of date issues

* [WS] Misc type fixes

- TSpacerSize -> SpaceSizeTypes
- SourcePriority - remove prefixes
- IComponentLoader - this isn't used anywhere else and appears to be component props so it probably should live only within component_loader.tsx
- Remove recent feed activity prefix

* [WS][Opinionated] Move interfaces not used in server/ out of common/ and to public/
2020-11-10 10:52:20 -08:00
Liza Katz
8842e9b7a9
[Autocomplete] Support useTimeFilter option (#81515)
* pass timefilter to autocomplete

* ignoreTimeRange advanced setting

* Show all results in filter bar autocomplete

* Round timerange to minute for autocomplete memoization

* Change useTimeFilter param name
Update autocomplete tests and docs

* Fix maps test
useTimeFilter in uptime

* docs

* useTimeRange in apm

* remove date validation

* Update src/plugins/data/common/constants.ts

Co-authored-by: Lukas Olson <olson.lukas@gmail.com>

* docs

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
Co-authored-by: Lukas Olson <olson.lukas@gmail.com>
2020-11-10 20:50:09 +02:00
Wylie Conlon
ccb0b35452
[Lens] Use entire layers, not specific columns (#82550)
* [Lens] Use entire layers, not specific columns

* Fix types

* Move all of state_helpers over

* Fix tests

* Fix crash and add tests to prevent future issues

* Prevent users from dropping duplicate fields

* Respond to review feedback

* Fix review feedback

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2020-11-10 13:45:46 -05:00
Mikhail Shustov
ece505b075
require schema for UiSettings (#83037) 2020-11-10 19:26:35 +01:00
Aleh Zasypkin
a63c390ae0
Remove redundant call to _authenticate API after access token is created. (#82980) 2020-11-10 18:12:47 +01:00
Ryan Keairns
28305237a3
Remove kibana-core-ui-designers (#82962)
The people in `kibana-core-ui-designers` have been rolled into the `kibana-design` team.
All `.scss` changes will now ping `kibana-design` since the `kibana-core-ui-designers` entries were overrides (occurring later in this file).
2020-11-10 10:50:54 -06:00
Patryk Kopyciński
915f718c6e
[Security Solution] Fix DNS Network table query (#82778) 2020-11-10 17:36:35 +01:00
Scotty Bollinger
8ff92f2b40
[Workplace Search] Consolidate groups routes (#83015)
* [Workplace Search] Consolidate groups routes

This PR consolidates all of the groups route resgistration functions into a single export so that the `registerWorkplaceSearchRoutes` function only has to call the top-level routes

* Remove redundant test
2020-11-10 10:30:45 -06:00
Catherine Liu
4dba10c76a
Adds cloud links to user menu (#82803)
Co-authored-by: Ryan Keairns <contactryank@gmail.com>
2020-11-10 09:51:27 -06:00
Yara Tercero
00ca555cd9
[Security Solution][Detections] - follow up cleanup on auto refresh rules (#83023)
### Summary

This is a follow up cleanup PR to #82062 . There were a few comments I hadn't gotten to and wanted to follow up on.
2020-11-10 10:50:31 -05:00
Jason Stoltzfus
291c34c84c
[App Search] Added the log retention panel to the Settings page (#82982)
* Added LogRententionPanel

* i18n

* fix axe failure

* Update x-pack/plugins/enterprise_search/public/applications/app_search/components/settings/log_retention/messaging/determine_tooltip_content.test.ts

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

* Apply suggestions from code review

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

* PR Feeback: interpolation

* Apply suggestions from code review

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

Co-authored-by: Constance <constancecchen@users.noreply.github.com>
2020-11-10 10:25:59 -05:00
Nathan Reese
2332c8b6d8
[Maps] show icon when layer is filtered by time and allow layers to ignore global time range (#83006)
* [Maps] show icon when layer is filtered by time and allow layers to ignore global time range

* show icon if layer is narrowed by time fitler

* tslint

* apply global time to source check box

* apply global time to join check box

* tslint and jest expect updates

* one more tslint fix

* tslint, fix apm jest test, update time filter icon when disabling applyGlobalTime

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2020-11-10 08:25:32 -07:00
Kaarina Tungseth
1b86d79319
[DOCS] Consolidates drilldown pages (#82081)
* [DOCS] Consolidated drilldowns

* Review comments pt 1

* Update docs/user/dashboard/drilldowns.asciidoc

Co-authored-by: Anton Dosov <dosantappdev@gmail.com>

* Fixes supported drilldowns link

* Update src/core/public/doc_links/doc_links_service.ts

Co-authored-by: Anton Dosov <dosantappdev@gmail.com>

* Fixes rogue disable section and fixes intro formatting

* Fixes URL drilldown link

Co-authored-by: Anton Dosov <dosantappdev@gmail.com>
Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2020-11-10 09:11:21 -06:00
Thomas Neirynck
e909cee7f1
[Maps] add on-prem EMS config (#82525)
Adds.a new `map.emsUrl` setting. User can configure this to the location of a local on-prem installation of EMS. For this setting to take effect, the cluster must be configured with an enterprise license.
2020-11-10 09:49:20 -05:00
Pierre Gayvallet
f49ee068f4
migrate i18n mixin to KP (#81799)
* migrate i18n mixin to KP

* directly load the config from i18n service

* add base tests

* update telemetry schema

* update legacy telemetry schema

* fix server tests

* use paths from config service instead of manually loading the plugin config

* add tests for get_translation_paths

* add tests for i18n service

* add plugin service test

* update generated doc

* improve tsdoc
2020-11-10 15:16:58 +01:00
Alexey Antonov
b2d6b66fe5
[bundle optimization] fix imports of react-use lib (#82847)
* [bundle optimization] fix imports of react-use lib

* add 2 more files

* add rule into eslintrc.js

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2020-11-10 17:15:26 +03:00
Maja Grubic
dc489e48a4
[Discover] Add metric on adding filter (#82961) 2020-11-10 14:14:25 +00:00
Marco Liberati
0b99841310
[Lens] Performance refactoring for indexpattern fast lookup and Operation support matrix computation (#82829)
Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2020-11-10 14:31:04 +01:00
Tiago Costa
6003cadce4
skip flaky suite (#82804) 2020-11-10 12:43:39 +00:00
Larry Gregory
451e387f40
Fix SO query for searching across spaces (#83025) 2020-11-10 07:37:44 -05:00
Bill McConaghy
446cffeccf
renaming built-in alerts to Stack Alerts (#82873)
* renaming built-in alerts to Stack Alerts

* responding to PR feedback and adding glossary definition for stack alerts

* Update docs/glossary.asciidoc

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

Co-authored-by: gchaps <33642766+gchaps@users.noreply.github.com>
2020-11-10 07:21:52 -05:00
Stratoula Kalafateli
a7a83fd421
[TSVB] Disable using top_hits in pipeline aggregations (#82278)
* [TSVB] Disable using top_hits in bucket script aggregations

* remove console message

* Correct schema for metrics size

* Chanhe hardcoded agg with the exported for the METRIC_TYPES var

* Exclude top_hit agg from all Sibling Pipeline Aggregations and all Parent Pipeline Aggregations

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2020-11-10 13:42:12 +02:00
Stratoula Kalafateli
471c281fa2
[Visualizations] Remove kui usage (#82810)
* [Visualize] Remove kui usage

* Use EuiPromptButton istead of EuiCallout

* Add a link to advanced settings for visualizations docs

* Changes requested on code review

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2020-11-10 13:34:05 +02:00
Stratoula Kalafateli
af5f299b6f
[Visualizations] Make the icon buttons labels more descriptive (#82585)
* [Visualizations] Make the icon buttons labels more descriptive on the Vis Editor

* Fix jest test

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2020-11-10 13:24:07 +02:00
Denis Maximov
0503f873f8
[Lens] Do not reset formatting when switching between custom ranges and auto histogram (#82694) 2020-11-10 11:25:28 +01:00
Yulia Čech
1de3a02a46
Fix ilm navigation (#81664)
* Fix edit policy page navigation

* Fix edit policy page navigation

* Add links to PR for explanation

* Added more tests and linked to a github issue about navigation issues

* Fix decoding function for undefined values

* Fix type check issues

* Renamed dollar sign to percent sign, added a method for (double) encoded paths and better description in test names

* Deleted Index Management from required bundles in ILM

* Fixed merge conflicts

* Revert "Deleted Index Management from required bundles in ILM"

This reverts commit 5a735dfe

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2020-11-10 11:09:37 +01:00