Commit graph

38046 commits

Author SHA1 Message Date
Marta Bondyra
268bd09543
[Lens] Remove background from lens embeddable (#83061) 2020-11-12 09:09:28 +01:00
Matthias Wilhelm
b44a0e5b02
[Discover] Unskip flaky tests based on discover fixture index pattern (#82991) 2020-11-12 05:45:17 +01:00
kobelb
6f1fa74897 Removing unnecessary trailing slash in CODEOWNERS 2020-11-11 16:54:46 -08:00
Brandon Kobel
52c2416d9d
Trying to fix CODEOWNERS again, where was a non-existent team prior (#83236) 2020-11-11 16:16:04 -08:00
Brandon Kobel
5a9c456088
Trying to fix CODEOWERS, missing a starting slash (#83233) 2020-11-11 16:05:27 -08:00
spalger
8bd2809bb7 skip flaky suite (#83231) 2020-11-11 16:59:25 -07:00
Constance
c27422fdc8
Add enzyme rerender test helper (#83208)
Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2020-11-11 15:43:47 -08:00
Nathan L Smith
bc2da67608
Move Elasticsearch type definitions out of APM (#83081)
...and into x-pack.

Also remove `PromiseReturnType` from APM and use the copy in observability everywhere.

All of the additional changes to APM imports are just automatic sorting.

This makes doing #77720 a little easier and removes some implicit circular dependencies for #80508.

Co-authored-by: Dario Gieselaar <dario.gieselaar@elastic.co>
2020-11-11 16:23:34 -06:00
Spencer
2f26eaf87c
[ts/checkTsProjects] produce a more useful error message (#83209)
Co-authored-by: spalger <spalger@users.noreply.github.com>
2020-11-11 15:09:45 -07:00
Spencer
5e06f43adf
[kbnClient] retry updating config if necessary (#83205)
Co-authored-by: spalger <spalger@users.noreply.github.com>
2020-11-11 14:51:10 -07:00
Stacey Gammon
3d665ef7b2
I accidentally removed this line in a recent PR (#83201) 2020-11-11 16:36:10 -05:00
John Schulz
2d3261fc44
Don't make the caller do work the function can do (#83180) 2020-11-11 15:20:04 -05:00
Constance
e6070782d6
[App Search] Update EngineRouter & EngineNav to use EngineLogic (#83138)
* Add server-side route

* Add EngineRouter logic
- useEffect init
- redirect/data loading
- setQueuedErrorMessage helper

* Add EngineNav logic
- logic values
- icon alerts

- update tests w/ real conditional testing
+ remove use of mount, mount combined with shallow_useeffect leads to weirdness

* Split out EngineRouter and EngineNav into separate files

* [PR feedback] More explicit test cases
2020-11-11 11:57:52 -08:00
Scotty Bollinger
877853add0
[Workplace Search] Add routes for Sources (#83125)
* [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

* [Workplace Search] Add routes for Sources
2020-11-11 12:46:35 -06:00
Jay Modi
b460414489
Update logstash pipeline management to use system index APIs (#80405)
This change updates the logstash pipeline management plugin to use
pipeline management APIs in Elasticsearch rather than directly
accessing the .logstash index. In Elasticsearch 8.0, direct access to
system indices will no longer be allowed when using standard APIs.
Given this change, a new set of APIs has been created specifically for
the management of Logstash pipelines and this change makes use of the
APIs.

Co-authored-by: Kaise Cheng <kaise.cheng@elastic.co>
Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>

ES:#53350
LS:#12291
2020-11-11 19:00:31 +01:00
Quynh Nguyen
af51394986
[ML] Replace EuiBasicTable with EuiInMemoryTable (#83057) 2020-11-11 11:30:30 -06:00
Phillip Burch
88312d83a4
[Metrics UI] Add basic interaction and shell for node details overlay (#82013)
* Add basic interaction and shell for node details overlay

* Fix typecheck

* Remove context menu tests because context menu doesn't exist

* Remove outdated tests

* Remove unused variable

* Show the old overlay by default

* Fix typecheck

* Fix typo

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2020-11-11 11:19:00 -06:00
Jason Stoltzfus
83b52bfd38
[App Search] Added the log retention confirmation modal to the Settings page (#83009) 2020-11-11 11:46:14 -05:00
Nathan Reese
01daf28e75
[docs] Fix create map title in import geospatial page (#83172) 2020-11-11 09:26:45 -07:00
Joe Reuter
be66841f2d
[Lens] Enable other bucket for top values operation (#82704) 2020-11-11 17:18:15 +01:00
Kaarina Tungseth
7fc5d1d9a5
[DOCS] Fixes handlebar links in URL drilldowns (#83177)
* [DOCS] Fixes handlebar links in URL drilldowns

* And another one
2020-11-11 09:59:23 -06:00
Paul Tavares
1fff1f6bca
[Fleet] Refactor Integration Package Details view navigation links to tabbed interface (#83116) 2020-11-11 10:56:31 -05:00
Ryan Keairns
352a65507f
Change left nav category name to Analytics (#83132)
* Change left nav category name to Analytics

* update snapshot

* update x-pack snapshot

* remove existing default translations
2020-11-11 09:55:15 -06:00
Sébastien Loix
244ce85fb4
[Index management] Fix test in index template wizard (#83150) 2020-11-11 15:51:58 +01:00
Jean-Louis Leysens
9038e5c397
[Grokdebugger] Fix simulate error handling (#83036)
* Fix detection of 4xx errors in grokdebugger simulate endpoint

- removed code to call simulate endpoint from "KibanaFramework"
- fixed throwing of string value
- using new elasticsearch client instead of legacy
- handle error with shared error handling logic

* added deprecation notice to register route on KibanaFramework

* remove deprecation notice
2020-11-11 15:43:17 +01:00
Dima Arnautov
c32215d7ff
[ML] Fix apiDocs extractor script (#82582)
* [ML] fix serializer script

* [ML] fix extractor

* [ML] bump apiDoc version

* [ML] update yarn.lock
2020-11-11 15:42:53 +01:00
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