Commit graph

42762 commits

Author SHA1 Message Date
Kibana Machine 50d6106e56
Instrument vis_type_vislib, lens and vis_type_timeseries with execution context service (#105206) (#106117)
Co-authored-by: Josh Dover <1813008+joshdover@users.noreply.github.com>

Co-authored-by: Mikhail Shustov <restrry@gmail.com>
Co-authored-by: Josh Dover <1813008+joshdover@users.noreply.github.com>
2021-07-19 19:19:19 +00:00
DeDe Morton dde965559d
Remove beta admonitions for Fleet docs (#106010) (#106143) 2021-07-19 15:01:40 -04:00
Kibana Machine 37affff893
[Security Solution] UX fixes for Policy page and Case Host Isolation comment (#106027) (#106131)
* [Security Solution] UX fixes for Policy page and Case Host Isolation comment

Co-authored-by: Kevin Logan <56395104+kevinlog@users.noreply.github.com>
2021-07-19 14:58:36 -04:00
Candace Park 701d8ee966
[Security Solution][Endpoint][Host Isolation] Removes empty comment box for host isolation (#105642) (#106126) 2021-07-19 14:48:09 -04:00
Kibana Machine 0a80918e0d
Fix bug where loaded event is not sent when no user ID (#106090) (#106115)
Co-authored-by: Josh Dover <1813008+joshdover@users.noreply.github.com>
2021-07-19 13:26:13 -04:00
gchaps 9d051dad0b
[DOCS] Updates screenshots to show new theme (#104998) (#106133)
* [DOCS] Updates screenshots to show new theme

* [DOCS] Updates more screenshots in Discover docs

* [DOCS] Updates screenshot for license management

* [DOCS] Attempt to make the screenshots more readable
2021-07-19 13:06:21 -04:00
Kibana Machine 6099b4af9f
Fix sub-feature privilege "minimumLicense" bug (#106008) (#106104)
Co-authored-by: Joe Portner <5295965+jportner@users.noreply.github.com>
2021-07-19 17:06:00 +00:00
Kibana Machine 8b46a27ea5
Fixing bug with es query rule so it handles epoch millis (#105618) (#106109)
Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>

Co-authored-by: ymao1 <ying.mao@elastic.co>
2021-07-19 13:04:49 -04:00
Kibana Machine c80f0f78c4
[Canvas] Expression reveal image. Async libs and images loading. (#103399) (#106103)
* Added lazy loading of async libs to storybook.

* Refactored lazy loading of import for a storybook.

* more refactoring stuff.

* more refactoring.

* small refactor of waitFor.

* Added support of async functions.

* Types fix.

* fixed docs.

* Fixed some mistakes.

* Fixed type of tests.

* added type for async function to write dicts easier.

* Updated stories and view with async image.

* Changed all static to  async imports.

* Removed static import of `elasticLogo`. Fixed type error.

* Changed way of returning async functions in `functionWrapper`.

* fixed renderer test.

* fixed errors.

* added outline and fixed types.

* added outline everywhere.

* waitFor fixed.

* removed useless exports.

* Fixed type error.

* fixed types of dropdown_control.test.ts

* fixed `csv.test.ts` types.

* Tests fixed.

* Fixed storybooks.

* Fixed failed tests.

* [Canvas] Expression reveal image. (#101987)

* expression_reveal_image skeleton.

* expression_functions added.

* expression_renderers added.

* Backup of daily work.

* Fixed errors.

* Added legacy support. Added button for legacy.

* Added storybook.

* Removed revealImage from canvas.

* setState while rendering error fixed.

* tsconfig.json added.

* jest.config.js added.

* Demo doc added.

* Types fixed.

* added limits.

* Removed not used imports.

* i18n namespaces fixed.

* Fixed test suite error.

* Some errors fixed.

* Fixed eslint error.

* Removed more unused translations.

* Moved UI and elements, related to expressionRevealImage from canvas.

* Fixed unused translations errors.

* Moved type of element to types.

* Fixed types and added service for representing elements, ui and supported renderers to canvas.

* Added expression registration to canvas.

* Fixed

* Fixed mutiple call of the function.

* Removed support of a legacy lib for revealImage chart.

* Removed legacy presentation_utils plugin import.

* Doc error fixed.

* Removed useless translations and tried to fix error.

* One more fix.

* Small imports fix.

* Fixed translations.

* Made fixes based on nits.

* Removed useless params.

* fix.

* Fixed errors, related to jest and __mocks__.

* Removed useless type definition.

* Replaced RendererHandlers with IInterpreterRendererHandlers.

* fixed supported_shareable.

* Moved elements back to canvas.

* Moved views to canvas, removed expression service and imported renderer to canvas.

* Fixed translations.

* Types fix.

* Moved libs to presentation utils.

* Fixed one mistake.

* removed dataurl lib.

* Fixed jest files.

* elasticLogo removed.

* Removed elastic_outline.

* removed httpurl.

* Removed missing_asset.

* removed url.

* replaced mostly all tests.

* Fixed types.

* Fixed types and removed function_wrapper.ts

* Fixed types of test helpers.

* Changed limits of presentationUtil plugin.

* Fixed imports.

* One more fix.

* Fixed huge size of bundle.

* Reduced allow limit for presentationUtil

* Updated limits for presentationUtil.

* Fixed public API.

* fixed type errors.

* Moved css to component.

* Fixed spaces at element.

* Changed order of requiredPlugins.

* Updated limits.

* Removed unused plugin.

* Added rule for allowing import from __stories__ directory.

* removed useless comment.

* Changed readme.md

* Fixed docs error.

* A possible of smoke test.

* onResize changed to useResizeObserver.

* Remove useless events and `useEffect` block.

* Changed from passing handlers to separate functions.

* `function` moved to `server`.

* Fixed eslint error.

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>

* Fixed mistake of merge.

* Storybook fixed.

* Fixed a mistake that occurred while resolving merge conflicts.

* removed registerFunctionAsync and changed functionWrapper from async to sync. + RepeatImageFunction.

* Fixed async functionWrapper usage and fixed `image.test.js` to run.

* Added default value for image.

* More fixes of async.

* Fixed a lot of legacy.

* Type fixes.

* Fix of fallen tests.

* First part of suggestions completed.

* Made image required.

* Removed useless `async`

* Jest test fixed.

* Fixed code, based on nits.

* Moved to `emotion`.

* Fixed prettier error.

* replaced jsx pragma with react.

* Removed unused jsx.

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>

Co-authored-by: Yaroslav Kuznietsov <kuznetsov.yaroslav.yk@gmail.com>
2021-07-19 12:20:39 -04:00
Yulia Čech 735c04d947
[K8] Small fixes (#98099) (#106096)
# Conflicts:
#	src/plugins/discover/public/application/components/sidebar/discover_field_search.tsx
#	src/plugins/presentation_util/public/components/solution_toolbar/items/button.scss

Co-authored-by: Andrea Del Rio <delrio.andre@gmail.com>
2021-07-19 11:38:01 -04:00
Kibana Machine f6782ad63b
Hide Analyze Data button if no dashboard access (#106020) (#106095)
Fixes #105476.

Co-authored-by: Nathan L Smith <nathan.smith@elastic.co>
2021-07-19 11:32:33 -04:00
Kibana Machine 10842487fd
[Canvas] Fixes messed up form layout on custom interval form (#101967) (#106087)
* Fixes messed up form layout on custom interval form

* update storyshots

* Fix snapshot

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>

Co-authored-by: Corey Robertson <corey.robertson@elastic.co>
2021-07-19 11:09:03 -04:00
Corey Robertson 42146fcc8c
[Canvas] Fixes messed up form layout on custom interval form (#101967) (#106088)
* Fixes messed up form layout on custom interval form

* update storyshots

* Fix snapshot

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2021-07-19 11:06:57 -04:00
Kaarina Tungseth fdcf9060b4
[7.x] [DOCS] Adds the 7.13.4 release notes (#105245) (#106106)
* [DOCS] Adds the 7.13.4 release notes

* Specifies 7.13.0 in breaking changes links
2021-07-19 11:03:55 -04:00
Walter Rafelsberger faf5baaba7
[ML] Fix custom index name settings, functional tests for APM Latency Correlation. (#105200) (#106077)
Adds first functional tests for APM Latency Correlations code.
- Fix: The log log chart's Y axis would only start at 1 by default which hides results for small datasets like the ones used in these tests. Starting the axis at 0 isn't supported to log based ones so we're setting it to just a small value above 0.
- Fix: Instead of the hard coded apm-* index we passed on from the client, we now correctly consider APM's custom settings.
2021-07-19 09:26:51 -04:00
Kibana Machine 41416d87c0
bugfix: move namespace description text to namespace element (#105795) (#106081)
Co-authored-by: Mark Hopkin <mark.hopkin@elastic.co>
2021-07-19 13:20:24 +00:00
Kibana Machine e4016a41bd
[Search Sessions] Fixes management actions not accessible (#105940) (#106083)
Co-authored-by: Anton Dosov <anton.dosov@elastic.co>
2021-07-19 09:19:01 -04:00
Michael Dokolin b0b92a97ac
[Partial Results] Update esaggs expressions function to return partial results (#105620) (#106076)
* Update `esaggs` expressions function to support partial results
* Add partial results throttling in the expressions loader
2021-07-19 08:55:07 -04:00
Alexey Antonov e6d944a50a
[Visualize] Client Side caching (#105589) (#106072)
* [Visualize] Client Side caching

Closes: #102622

* apply caching for returning to originatingApp

* fix case with 'save as' functiionality

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2021-07-19 08:19:49 -04:00
Stratoula Kalafateli c89f9d3450
[TSVB] Refactor the index pattern mode functional test (#105725) (#106063)
Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2021-07-19 06:42:07 -04:00
Ignacio Rivas 486f31a317
[Ingest Pipelines] Allow to update an existing processor and change its type (#105765) (#106058)
* Patch bugs

* Add tests for allowing to edit the type of an existing processor

* Add more tests

* Add docs

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2021-07-19 05:22:56 -04:00
Kibana Machine fbe1781b64
Security/document audit deprecation (#104685) (#106057)
Co-authored-by: Thom Heymann <190132+thomheymann@users.noreply.github.com>
2021-07-19 05:00:47 -04:00
Brian Seeders 5ed51b4e7c skip flaky suite (#97701) 2021-07-18 10:55:32 -04:00
Brian Seeders a00a4e0861 skip flaky suite (#106051) 2021-07-18 10:54:26 -04:00
Kibana Machine 4a11414887
[App Search] Fix bash API code example (#106015) (#106047)
* Fix bash/curl API code example not correctly having `\`s at the end of non-body lines

- Doing this requires removing the `dedent()` fn which is messing up backslashes

- Removing dedent requires setting the template literal indentation to 0 and changing the indent level on DOCUMENTS_API_JSON_EXAMPLE

* I unindented DOCUMENTS_API_JSON_EXAMPLE too hard
- the { is no longer lined up with the [ I think??? what am I even doing with my life

Co-authored-by: Constance <constancecchen@users.noreply.github.com>
2021-07-16 21:34:26 -04:00
Kibana Machine b2fbb4df99
[Fleet] Add missing required kbn-xsrf header to API spec (#105858) (#106043)
## Summary

All mutating HTTP methods (`POST`, `PUT`, `DELETE`) require a `kbn-xsrf` header & value. Found an operation which was missing the requirement.

Only real changes are 98dc5b5fdf (file `/paths/agent_policies@{agent_policy_id}@copy.yaml`. Others will disappear when https://github.com/elastic/kibana/pull/105824 lands in master

### Checklist

- [x] [Documentation](https://www.elastic.co/guide/en/kibana/master/development-documentation.html) was added for features that require explanation or tutorials

Co-authored-by: John Schulz <john.schulz@elastic.co>
2021-07-16 20:38:29 -04:00
Kibana Machine 23e1dd2599
[APM][Fleet-Migration] API error when opening settings Schema tab with apm_read_user (#105990) (#106013)
Co-authored-by: Cauê Marcondes <55978943+cauemarcondes@users.noreply.github.com>
2021-07-16 19:53:11 -04:00
Kibana Machine 8d38dd0e53
[Security Solution][Exceptions] Adds error catch to Exceptions toString method (#105928) (#106031)
Co-authored-by: Davis Plumlee <56367316+dplumlee@users.noreply.github.com>
2021-07-16 19:10:06 -04:00
Devin W. Hurley 588989567b
[RAC] [RBAC] add space ids array to each alert document (#105173) (#106023)
* kind of working solution... need to fix types.. would be great if all of this could go in the authorization class but I don't think we have access to the spaceids when we generate the kibana security action strings?

* update mapping type as array:true for space_ids field, fixes types, updates jest tests, adds integration tests

* undo changes in alerting authz class

* update snapshot for apm api integration test for rules writing alerts

* fix apm integration tests

* omit version and sequence from expected outcome

* re-add space id after this code was moved in master

* add another default space id to test

* fixes bug to remove duplicate spaceids

* add space ids filter to elasticsearch query, updates detection role

* update snapshot

* update type docs for alerts client

* remove dead code

* fix type error

* renames space ids field on alert documents from kibana.rac.alert.space_ids to kibana.space_ids

* fixes kb-rule-data-utils package

* update snapshots

* remove references to kibana.rac.alert.space_ids and replace with kibana.space_ids in rule registry integration tests and apm integration tests

* fix apm functional test snapshots

* undo index name changes I made in apm integration test configs

* update typedocs references to upstream, not local repo
# Conflicts:
#	x-pack/test/rule_registry/security_and_spaces/tests/trial/update_alert.ts
2021-07-16 18:27:12 -04:00
Kibana Machine b1e1a9ed7f
[Security Solution][RAC] Implement hover actions (#105500) (#106021)
Co-authored-by: Michael Olorunnisola <michael.olorunnisola@elastic.co>
2021-07-16 18:09:32 -04:00
Kibana Machine 58b5a7b786
[Uptime] migrate to observability rules registry (#100699) (#106019)
* uptime - migrate to observability rules registry

* Modify Uptime alert types to work with server rule registry.

* Export `RuleType` type for consumption by client plugins.

* Add platinum as an option for `minimumLicenseRequired` field of `RuleTypeBase`.

* Simplify alert bootstrapping, inherit `RuleType` for alert factories.

* update rule field map

* adjust rule registery to be created within setup instead of mount

* adjust plugin setup to account for rule registry changes

* export types from rule registry

* move alert action message translations to common

* update rule field map

* update monitor status public alert model

* update tls public alert model

* update monitor status alert server model

* update tls alert sever model

* update server plugin file to scope alerts indices to synthetics

* add initContext to server Plugin class

* adjust public plugin to register alerts when core start is availabile

* update mappings

* update asset names

* adjust dependencies for alert initialization

* adjust duration anomaly server alert model

* adjust duration anomaly and monitor status public alert model to account for undefined types

* add duration_anomaly tests

* add anomaly severity

* adjust types

* update uptime server plugin

* remove test_helpers

* add getMonitorRouteFromMonitorId helper

* export AlertTypeWithExecutor from rule_registry

* adjust types

* mock time zone

* update types

* update types for legacy tls alert

* update mappings

* update monitor status check tls types

* update tls types and indexed fields

* update duration anomaly types and indexed fields

* update mappings

* delete unnecessary file

* adjust types

* adjust ruleDataClient initialization

* index anomaly bucket span

* update types

* adjust registration of legacy tls alert type

* adjust types

* update index alias name

* update anomaly detection rule mappings

* adjust import for certificate alert

* adjust rbac settings

* adjust content

* adjust uptime server plugin

Co-authored-by: Justin Kambic <justin.kambic@elastic.co>
Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>

Co-authored-by: Dominique Clarke <doclarke71@gmail.com>
Co-authored-by: Justin Kambic <justin.kambic@elastic.co>
2021-07-16 17:44:38 -04:00
Kibana Machine 6227f7e9b6
Fix ENVIRONMENT_ALL links to exploratory view (#105704) (#106017)
Leave the environment out of the URL for the exploratory view when "All" is selected in the environment dropdown.

Move the analyze data button to its own component.

Add tests and stories for the the APM service template and analyze data button.

Fixes #105467.

Co-authored-by: Nathan L Smith <nathan.smith@elastic.co>
2021-07-16 17:39:13 -04:00
Brian Seeders 538e67f2b5
Revert "[7.x] Adds FS integration tests to CI (#105794) (#105975)" (#106034)
This reverts commit aa1706efa2.
2021-07-16 17:00:23 -04:00
Kibana Machine b26051ded0
[User Experience App] Fix ux app env filter (#105918) (#106001)
Co-authored-by: Shahzad <shahzad.muhammad@elastic.co>
2021-07-16 15:41:10 -04:00
Kibana Machine e333c67b39
[ML] Fixing rare wizard detector state (#105966) (#105995)
Co-authored-by: James Gowdy <jgowdy@elastic.co>
2021-07-16 15:04:43 -04:00
Kibana Machine 97dc9c7338
fix: add missing aria labels to agent details page (#105962) (#105993)
Co-authored-by: Mark Hopkin <mark.hopkin@elastic.co>
2021-07-16 14:58:42 -04:00
Kibana Machine 98994240ba
[Sample data] Use Lens in flights dashboard (#104780) (#105986)
* [Sample data] Use Lens in flights sample data

* Fix test issues

* Fix functional tests

* Fix a11y test names

* Fix tests again

* Fix test

* Update from comments

* Fix sizing from feedback

* Fix typo

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>

Co-authored-by: Wylie Conlon <william.conlon@elastic.co>
2021-07-16 14:23:01 -04:00
Kibana Machine dfc286d667
[APM] Add support to upload source map as string or file (#105443) (#105984)
* adding support to upload a sourcemap

* addressing PR comments

* addressing PR comments

Co-authored-by: Cauê Marcondes <55978943+cauemarcondes@users.noreply.github.com>
2021-07-16 14:14:55 -04:00
Christiane (Tina) Heiligers aa1706efa2
[7.x] Adds FS integration tests to CI (#105794) (#105975)
* Adds FS integration tests to CI (#105794)

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
# Conflicts:
#	x-pack/scripts/functional_tests.js

* fix backport merge conflict issue
2021-07-16 13:48:34 -04:00
Peter Pisljar 5ef9026ae0
filterManager PersistableStateService implementation (#104897) (#105972) 2021-07-16 13:14:00 -04:00
Kibana Machine 38f6c18e63
[UX] make route match optional in EnvironmentFilter (#105780) (#105969)
Closes #105757.

Co-authored-by: Dario Gieselaar <dario.gieselaar@elastic.co>
2021-07-16 13:07:59 -04:00
Greg Thompson 4463abf202
use FormattedMessage instead of i18n.translate (#105841) (#105965) 2021-07-16 12:44:14 -04:00
Gloria Hornero 7c280f27a8
Fixes "servers.elasticsearch.auth" must be a string error (#105095) (#105960)
* fixes integration with stack testing upgrade framework

* fixes the provider name flexibility

* fixes type check error

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2021-07-16 12:31:41 -04:00
Kibana Machine fb50f83041
[rollup index patterns] don't show fields not present in field caps response (#105533) (#105958)
* remove fields not present in field caps response

Co-authored-by: Matthew Kime <matt@mattki.me>
2021-07-16 12:21:30 -04:00
Kibana Machine 1f001ba8e7
[Security Solution][Endpoint] Fix unhandled promise rejections in endpoint host middleware (#105593) (#105955)
* handle promise rejections

fixes elastic/security-team/issues/1407

* traverse array only once

* unskip test

* correctly mock activity log loading test

* review changes

:)

* unique ids only

* add comment to ignored line

review changes

* undo

* mock action_log api

* use mocked api

* mock endpoint meta data for tests

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>

Co-authored-by: Ashokaditya <am.struktr@gmail.com>
2021-07-16 12:10:48 -04:00
Kibana Machine 001d9801f8
[Security Solution] Fix UX for Success banner for Host Isolation (#105083) (#105608)
Co-authored-by: Kevin Logan <56395104+kevinlog@users.noreply.github.com>
2021-07-16 15:48:59 +00:00
Kibana Machine eaca5e9376
Explain that integration-test also runs tests (#105933) (#105978)
Document integration-test wrt. CCS Cypress tests

Co-authored-by: Domenico Andreoli <domenico.andreoli@elastic.co>
2021-07-16 11:38:05 -04:00
Alison Goryachev 21a66ffd84
Improve painless validation handling in monaco (#105799) (#105949) 2021-07-16 10:50:22 -04:00
Kibana Machine 698864c5de
[Search Sessions] Hide search sessions menu after interaction (#105610) (#105947)
* Hide search sessions menu after interaction

* simpler code using cores openModal

* fix ts and closing delete dialog

Co-authored-by: Anton Dosov <anton.dosov@elastic.co>
Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>

Co-authored-by: Liza Katz <lizka.k@gmail.com>
Co-authored-by: Anton Dosov <anton.dosov@elastic.co>
2021-07-16 10:22:39 -04:00
Pablo Machado e766f3fc2d
Add empty string validation for Tags and Authors (#101756) (#105479)
Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2021-07-16 09:19:22 -04:00