Commit graph

8185 commits

Author SHA1 Message Date
Joe Reuter
f1f26729be
[Lens] Add suffix formatter (#82852) 2020-11-12 16:49:47 +01:00
Constance
bd99b19bd8
[App Search] Version documentation links (#83245)
* Fix CURRENT_MAJOR_VERSION for use in Elastic docs links

- Was previously just sending (e.g.) "7". instead of "7.9"

* Add App Search DOCS_PREFIX constant

- follow WS's example

* Update all App Search doc links to use prefixed URLs

- except for Enterprise Search setup guide, which should be updated to use a shared URL at some point in any case
2020-11-12 07:42:41 -08:00
Anton Dosov
eaa65535ed
Use saved object references for dashboard drilldowns (#82602) 2020-11-12 15:54:55 +01:00
Bohdan Tsymbala
58ad7ecd5a
Btsymbala/registered av (#81910)
* Moved out type for OperatingSystem and moved OS translations one level higher.

* Changed the translation to be consistent between trusted apps and policy.

* Unified translations of OS types between trusted apps and policy.

* Removed unused types.

* Added registered AV form section.

* Changed the property structure to match the format expected by endpoint.

* Fixed the visual alignment of titles in the form and added responsiveness.

* Updated snapshots.

* Moved out type for OperatingSystem and moved OS translations one level higher.

* Added config form heading component.

* Cleaned up translations.

* Fixed type error with initialization.

* Fixed error in trusted app creation form test.

* Removed the guard for now in favour of better initialization.

* Fixed the store test.

* Fixing functional test data.

* Added functional test config option to account for a custom header within security app.

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2020-11-12 15:53:53 +01:00
Dario Gieselaar
afbf1a983a
[APM] Errors table for service overview (#83065) 2020-11-12 15:49:22 +01:00
Patrick Mueller
c3e57943ad
[alerts] add executionStatus to event log doc for action execute (#82401)
resolves https://github.com/elastic/kibana/issues/79785

Until now, the execution status was available in the the event
log document for the execute action.  In this PR we add it.

The event log is extended to add the following fields:

- `kibana.alerting.status` - from executionStatus.status
- `event.reason`           - from executionStatus.error.reason

The date from the executionStatus and start date in the event
log will be set to the same value.

Previously, errors encountered while trying to execute an
alert executor, eg decrypting the alert, would not end up
with an event doc generated.  Now they will.

In addition, there were a few places where events that could
have had the action group in them did not, and one where the
instance id was undefined - those were fixed up.
2020-11-12 09:32:22 -05:00
Scotty Bollinger
35656b9921
Add additional sources routes (#83227)
These were missed in #83125
2020-11-12 08:28:35 -06:00
Dima Arnautov
169dcef2bf
[ML] Persisted URL state for the "Anomaly detection jobs" page (#83149)
* [ML] table config in the URL state

* [ML] fix job list on the management page

* [ML] store query filter in the URL

* [ML] fix context for the management page

* [ML] update module_list_card.tsx in Logs UI

* [ML] fix unit tests

* [ML] fix unit tests

* [ML] fix unit tests

* [ML] move utils functions

* [ML] url generator to support both job and group ids
2020-11-12 15:16:23 +01:00
Alejandro Fernández Gómez
0e7bcf6164
[Logs UI] Add pagination to the log stream shared component (#81193)
Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2020-11-12 15:11:43 +01:00
Yulia Čech
3a849ff104
[Index Management] Add an index template link to data stream details (#82592)
* Add index template link to data stream details

* Fixed ILM policy link and added a check for index template name after navigation

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2020-11-12 15:05:08 +01:00
John Schulz
4721b3211a
[Ingest Manger] Move asset getters out of registry (#83214)
## Summary
Packages/Archives aren't limited to the registry any longer.  Continue moving file- & cache-related functions from services/registry to services/archive.

Move `getAsset` and `pathParts` to archive/index. The behavior is the same for now, but it's more accurate to separate these from registry namespace.

Registry has `fetch*` and other functions for dealing with the online service.
2020-11-12 05:47:43 -05:00
Marta Bondyra
268bd09543
[Lens] Remove background from lens embeddable (#83061) 2020-11-12 09:09:28 +01: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
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
Joe Reuter
be66841f2d
[Lens] Enable other bucket for top values operation (#82704) 2020-11-11 17:18:15 +01: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
Marta Bondyra
a50960e2fd
[Lens] Implement counter rate expression (#82948) 2020-11-11 13:26:53 +01: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
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
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
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
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
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
Aleh Zasypkin
a63c390ae0
Remove redundant call to _authenticate API after access token is created. (#82980) 2020-11-10 18:12:47 +01: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