Commit graph

41760 commits

Author SHA1 Message Date
Larry Gregory 7d0920bbfa
Replace lodash templates with static react renderer for field formatters (#96048) 2021-04-02 22:26:35 -05:00
Jonathan Budzenski 8ccb0d4ca3
[docker] Consistent timestamps across builds (#96081)
Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2021-04-02 18:02:54 -05:00
Constance c97c51876e
Remove incorrect error toast on successful poll (#96159) 2021-04-02 17:28:18 -04:00
James Rodewig a0828c6797
[DOCS] Fix docker run code snippet (#96157)
The current docker run code snippet is malformed and renders incorrectly.

This fixes the rendering.
2021-04-02 16:15:16 -04:00
Jason Stoltzfus 82f7b2127e
Move trs to be under tbody in ResultSettings (#96132)
This was causing console errors.

I factored out the column headers to their own component, and moved
all table rows to be under a tbody. This alleviates the console
warnings.
2021-04-02 13:24:04 -04:00
Constance 1d58266559
[Enterprise Search] Add toasts support to FlashMessages component (#95981)
* Add toasts to FlashMessagesLogic

+ Tests cleanup:

- Group actions by their reducer blocks (since flashMessages has such specific logic) - recommend viewing with whitespace changes off for this
- Do not reset context between each test, but instead by mount(), which allows tests to maintain state between adding/removing/resetting
- Remove '()' from test names (feedback from previous PRs)

* Add toast message helpers

+ refactor FLASH_MESSAGE_TYPES to constants, so that both callouts & toasts can use it effectively

* Update FlashMessages to display toasts as well as callouts

- This means we can automatically use toasts alongside callouts in all views that already have FlashMessages

+ a11y enhancement! update callouts to also announce new messages to screenreaders

* [Example] Update ApiLogsLogic to flash an error toast on poll

+ update copy to better match EUI guidelines (shorter)

* Fix test caused by new FlashMessages structure

* PR suggestion - destructure

Co-authored-by: Scotty Bollinger <scotty.bollinger@elastic.co>

* PR feedback: implicit return

* Fix color types

- adding our own string enum fixes the typescript errors that both EuiCallout & EuiToast emit when passing color props to the base EUI types

* PR feedback: Update flashToast API to match callout helper API

- accepts a string title with optional args, creates a unique ID automatically if missing

Co-authored-by: Scotty Bollinger <scotty.bollinger@elastic.co>
2021-04-02 09:50:39 -07:00
Scotty Bollinger fb681d9062
[Workplace Search] Fix broken reauthenticate URLs and fix spelling (#96140)
* Remove kebabCase

Kibana routes are snake case, which matches the existing serviceType, so this is no longer needed

* Fix route segment

The word reauthenticate is not hyphenated

* Fix all misspelling of reauthenticate

Renames files too
2021-04-02 12:41:27 -04:00
Lukas Olson 59100b5626
Fix autocomplete telemetry (#95724)
Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2021-04-02 08:13:14 -07:00
Melissa Alvarez 8fef5fd9e1
[ML] Data Frame Analytics: adds support for runtime fields (#95734)
* add runtime mapping editor in wizard

* ensure depVar is updated correctly with RF changes

* remove old RF from includes

* ensure cloning works with RF as depVar

* ensure indexPattern RF work

* scatterplot supports RTF. depVar options have indexPattern RTF on first load

* remove unnecessary types

* ensure supported fields included by default

* update types in editor

* use isRuntimeMappings

* fix translations. ensure runtimeMappings persist when going back to step 1

* ensure histograms support runtime fields

* update types
2021-04-02 11:06:31 -04:00
renovate[bot] fe3ec69f9e
Update dependency @elastic/charts to v27 (#95963)
Co-authored-by: Renovate Bot <bot@renovateapp.com>
2021-04-02 16:01:06 +02:00
Constance 3237fd0637
[Enterprise Search] Fix eslint import rule not ordering sibling mocks with parent mocks (#96070)
* Enterprise Search eslint import order rule fix
- mocks in current folder should be grouped with mocks from parent folders

* Run --fix/update instances of importing ./__mocks__
2021-04-02 09:05:53 -04:00
Xavier Mouligneau f042ec8945
[SECURITY SOLUTIONS][Timeline] correlation bug (#96099)
* fix pagination bug with correlation

* fix close resolver to go back to prev tab
2021-04-02 09:00:51 -04:00
Stratoula Kalafateli d2a484c5bd
[TSVB] Enables url drilldowns for range selection (#95296)
* Temp research code

* Make it work

* Cleanup

* Convert series to datatable

* Remove unecessary log

* Minor

* Fix types problem

* Add unit tests

* Take under consideration the override index pattern setting

* Implement brush event for dual mode

* Move indexpatterns fetch outside the loop

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2021-04-02 15:51:09 +03:00
Constance 7db838e0b8
[App Search] API Logs: Add ApiLogsTable and NewApiEventsPrompt components (#96008)
* Set up getStatusColor util for upcoming EuiHealth components

* Add ApiLogsTable component

* Add NewApiEventsPrompt component

* Update ApiLogs view with new components

+ add EuiPageContent wrapper (missed this originally)

* Update EngineOverview with new components

* PR feedback: Comments + mock FormattedRelative

* Fix type error
2021-04-02 08:49:12 -04:00
Rudolf Meijering bffded3ca7
migrations v2: Retry tasks that timeout (#95305)
* Retry tasks that timeout with timeout_exception or receive_timeout_transport_exception

* Integration test: assert waitForPickupUpdatedMappingsTask waitForReindexTask returns retryable error when task has not completed within the timeout

* stateActionMachine: remove infinite loop failsafe

* Introduce wait_for_task_completion_timeout and keep on retrying *_WAIT_FOR_TASK steps until the ES task completes

* cloneIndex integration test if clone target exists but does not turn yellow within timeout

* Try to stabilize waitForReindexTask test

* Fix types

* Make v2 migrations retryAttempts configurable

* Improve type safety by narrowing left res types

* Fix test description

* Fix tests
2021-04-02 10:24:27 +02:00
spalger 6868f18343 skip flaky suite (#95660) (#95706) 2021-04-01 19:17:44 -07:00
James Rodewig eae160c419
Remove unneeded articles from button text (#96045)
Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2021-04-01 18:52:07 -04:00
Constance df8166f20e
[App Search] Update instances of EuiPanel/EuiPageContent to bordered or filled panels (#96090)
* Add hasBorder to all EuiPageContent panels

* EngineCreation: switch EuiPageBody to EuiPageContent
+ add hasBorder

* Credentials: update EuiPanels w/ hasBorder

* ApiCodeExample: switch to hasBorder

* DataPanel: update to take & pass hasBorder prop

* Analytics & EngineOverview: use hasBorder

* Relevance Tuning: update EuiPanels

- switch to hasBorder for top level panels
- switch to color="subdued" for boost accordion
- tweak padding of boost panel
- CSS cleanup

* Role Mappings: switch to hasBorder

+ remove unused class - `euiPanel--disabled` was not applying any styles
+ remove random 'export' string

* Sample engine CTA: switch to subdued panel
+ fix sizing - when loading button pops in, it was causing text to overflow
2021-04-01 17:54:53 -04:00
Tiago Costa f424b9cbb2
chore(NA): moving @elastic/datemath into bazel (#94665)
* chore(NA): majority of the changes needed to build elastic-datemath with bazel

* chore(NA): add missing bits on elastic-datemath package

* chore(NA): add missing build and watch scripts

* chore(NA): remove build scripts for elastic datemah

* chore(NA): remove typo from build baze production projects logs

* chore(NA): force install on CI

* chore(NA): introduce custom preserve symlinks resolver for jest

* chore(NA): update jest integration snapshot

* chore(NA): fix build for bazel packages

* chore(NA): correctly copy bazel built packages into final distributable build

* chore(NA): update kbn pm dist

* chore(NA): experimental new logic to handle bazel yarn rule rerun using yarn-integrity file

* chore(NA): update snapshots

* refact(NA): ensure yarn integrity exists into two methods

* chore(NA): fix ts error

* chore(NA): update snapshots

* chore(NA): update elastic-datemath build file to include ts_project rule

* chore(NA): update basic optimization test snapshots

* chore(NA): merge and solve conflicts cherry-pick from #96066

* chore(NA): update package.json and yarn.lock file

* chore(NA): update bazel/bin into bazel-bin on kbn-pm build bazel packages

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2021-04-01 22:51:32 +01:00
Lisa Cawley 32f2409396
Adds ingest pipeline links to documentation link service (#95837) 2021-04-01 14:21:42 -07:00
spalger 8f2db91cc5 add bazel directory back to .gitignore so it doesn't end up committed 2021-04-01 13:17:56 -07:00
Gabriel Landau 9683d32fa5
Standardize process fields in Endpoint Security Telemetry (#95836)
* Standardize process fields across process and Target.process

* Lint

* Bug fix

* Typo fix

* Add new fields to unit test, fix 0 truthiness bug, and exercise 0 truthiness bug in unit test

* Add a PR-requested unit test case

* Use Yoda Conditions, Kibana does not

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2021-04-01 15:43:37 -04:00
Alison Goryachev 91b7770b3a
[Rollups] Update API integration test (#96071) 2021-04-01 15:36:05 -04:00
Bhavya RM 39d1e62c7d
Test Export and Import saved objects between versions (#91908) 2021-04-01 15:22:14 -04:00
Nathan Reese a70bd991ab
[Maps] top hits layer wizard (#95678)
* [Maps] top hits source

* add icon

* top hits form

* clean up icon

* create descriptor

* add update editor

* update docs

* tslint and i18n fixes

* update jest test

* add sort inputs to create UI

* review feedback

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2021-04-01 13:21:14 -06:00
Nicolas Chaulet 39ebc8068c
[Fleet] Invalidate fleet API keys as internal user (#96054) 2021-04-01 15:20:55 -04:00
Tiago Costa 7c689a5b5b
chore(NA): stop grouping bazel out symlink folders (#96066) 2021-04-01 14:16:14 -05:00
Joe Portner 574391985b
Fix and unskip functional test (#96004) 2021-04-01 14:06:17 -04:00
Oliver Gupte 2abd628f26
[APM] Correlations support for progressively loading sections (#95743)
* [APM] Correlations support for progressively loading sections (#95059)

* fixes type consistency

* - Adds progressive section loading for errors tab in correlations
- code improvements

* Tests for latency correlations and overall distribution APIs

* adds API test for error correlations endpoints

* renamed 'getOverallErrorDistribution' to 'getOverallErrorTimeseries'

* Code improvements

* fix whitespace
2021-04-01 10:54:05 -07:00
Thomas Neirynck 35ba996e84
[Maps] Add suggest EMS layer utility (#94969) 2021-04-01 12:21:29 -04:00
Jonathan Budzenski 34b58a4f6f skip flaky test #95660 2021-04-01 11:19:48 -05:00
Spencer 0758f87352
[packer] skip docker pull if docker is unavailable or running on ARM (#95979)
Co-authored-by: spalger <spalger@users.noreply.github.com>
2021-04-01 09:14:20 -07:00
Zacqary Adam Xeper 6e9e6e5cfd
[Fleet] Correctly parse falsy YAML fields in agent policy integrations (#95966) 2021-04-01 10:39:54 -05:00
Devon Thomson 3b3ad0ecaf
Fixed iframe filtering by not re-creating embed settings on URL change (#95997) 2021-04-01 11:03:27 -04:00
Larry Gregory 37e2aa3b9c
Bump concaveman to 1.2.0 (#95983) 2021-04-01 10:55:46 -04:00
Kaarina Tungseth 1aa6a140dd
Ui changes (#95989) 2021-04-01 09:09:11 -05:00
Spencer 3187567a0e
[cli-dev-mode] complete state subjects when shutting down (#96003)
Co-authored-by: spalger <spalger@users.noreply.github.com>
2021-04-01 09:01:59 -05:00
Madison Caldwell 9c5641dbd7
[Security Solution][Detections][Threshold Rules] Add threshold_result to alert notification context (#95354)
* Don't remove threshold_result from _source prematurely

* Fix type error

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2021-04-01 09:58:54 -04:00
Paul Tavares 6238ef7bad
[Security Solution][Artifacts] Refactor endpoint Artifact manifest processing (#95846)
* Remove references to class `ArtifactClient` and replace with EndpointArtifactClientInterface
* refactor artifact client tests to use new class
* Added additional test to Fleet Artifacts create service
* remove SavedObject type wrapper from getArtifact response
2021-04-01 09:31:17 -04:00
Alison Goryachev b29ccdcac1
Update breaking changes issue template (#95787) 2021-04-01 08:58:48 -04:00
Nathan Reese 7fe316562d
[Maps] fix fit to data doesn't work in TMS (#95980) 2021-04-01 06:45:18 -06:00
Mikhail Shustov b6e582c53e
TS Incremental build exclude test files (#95610)
* add base config for all the TS projects

* all the project use new tsconfig.project.json

* compile test files in the high-level tsconfig.json

* fix TS error in maps plugin

* fix TS error in infra plugin

* exclude mote test and test until folders

* uptime. do not import test code within prod code

* expressions. do not import test code within prod code

* data: export mocks from high level folder

* task_manager: comply with es client typings

* infra: remove unused enzyme_helpers

* check_ts_project requires "include" key

* ts_check should handle parent configs

* all ts configs should extend base one

* exclude test folders from plugins

* update patterns to fix ts_check errors

* Apply suggestions from code review

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

* uptime: MountWithReduxProvider to test helpers

Co-authored-by: Constance <constancecchen@users.noreply.github.com>
Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2021-04-01 14:40:47 +02:00
Walter Rafelsberger a1c36e7a06
[ML] Refactor imports using 'elasticsearch' to '@elastic/elasticsearch'. Extend 'isPopulatedOjbect()'. (#95651)
- Gets rid of imports from 'elasticsearch' and replaces them with '@elastic/elasticsearch'.
- Extends isPopulatedObject() to allow an optional array of attributes to check if they exist. Allows us to get rid of the manual and inconsistent usages of hasOwnProperty().
2021-04-01 11:46:17 +02:00
Spencer 07a3f9eb8d
[kbn/optimizer] import source-map-support in script to avoid breaking jest snapshots (#96011)
Co-authored-by: spalger <spalger@users.noreply.github.com>
2021-03-31 18:36:52 -07:00
spalger 5a9cff2644 skip suite failing es promotion (#96000) 2021-03-31 18:23:46 -07:00
Aaron Caldwell 5db8027657
[Maps] Show empty list when all saved maps in list deleted (#95126)
Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2021-03-31 21:15:42 -04:00
Søren Louv-Jansen e0a1fe18be
[APM] Fix spaces issue for static index patterns (#95799) 2021-04-01 00:43:20 +02:00
spalger 0cdf445718 skip suite failing es promotion (#96002) 2021-03-31 15:24:17 -07:00
spalger c66937d4c6 skip suite blocking es promotion (#96001) 2021-03-31 15:19:58 -07:00
spalger aa81dc52f6 skip flaky suite (#96000) 2021-03-31 15:13:06 -07:00