Commit graph

44571 commits

Author SHA1 Message Date
Yaroslav Kuznietsov cc1dd52977
[Canvas] Expression reveal image. Async libs and images loading. (#103399)
* 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>
2021-07-19 17:10:18 +03:00
Nathan L Smith c0528f263f
Hide Analyze Data button if no dashboard access (#106020)
Fixes #105476.
2021-07-19 08:21:00 -05:00
Anton Dosov 00d8f05f2e
[Search Sessions] Fixes management actions not accessible (#105940) 2021-07-19 13:11:16 +02:00
Mark Hopkin 1c4818e0db
bugfix: move namespace description text to namespace element (#105795) 2021-07-19 07:10:12 -04:00
Walter Rafelsberger daa81c9306
[ML] Fix custom index name settings, functional tests for APM Latency Correlation. (#105200)
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 12:48:59 +02:00
Michael Dokolin 15a613f488
[Partial Results] Update esaggs expressions function to return partial results (#105620)
* Update `esaggs` expressions function to support partial results
* Add partial results throttling in the expressions loader
2021-07-19 12:44:17 +02:00
Alexey Antonov dc45560e80
[Visualize] Client Side caching (#105589)
* [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>
2021-07-19 13:12:02 +03:00
Stratoula Kalafateli 54717eb178
[TSVB] Refactor the index pattern mode functional test (#105725)
Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2021-07-19 11:31:00 +03:00
Ignacio Rivas df1882eac0
[Ingest Pipelines] Allow to update an existing processor and change its type (#105765)
* 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>
2021-07-19 10:12:46 +03:00
Thom Heymann e389c9260d
Security/document audit deprecation (#104685) 2021-07-19 07:47:34 +01:00
Brian Seeders e9988b1cc2 skip flaky suite (#97701) 2021-07-18 10:55:29 -04:00
Brian Seeders 2eed53ffd2 skip flaky suite (#106051) 2021-07-18 10:54:20 -04:00
Chenhui Wang 373d6e2a2e
Use empty string for unassigned Display Settings fields (#105921) 2021-07-17 12:01:55 +08:00
Constance da7c43c1db
[App Search] Fix bash API code example (#106015)
* 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
2021-07-16 19:25:55 -04:00
Ece Özalp 5b68c54568
[CTI] removes inspect button (#105988)
* [CTI] removes inspect button
2021-07-16 19:06:13 -04:00
Ece Özalp 54b5fd275b
updates NoEnrichmentPanel props (#106022) 2021-07-16 18:35:04 -04:00
Brian Seeders fce93b1430
Revert "Adds FS integration tests to CI (#105794)" (#106037)
This reverts commit 59846c3e8e.
2021-07-16 17:09:53 -04:00
John Schulz c74e8cf40d
[Fleet] Add missing required kbn-xsrf header to API spec (#105858)
## 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
2021-07-16 16:59:49 -04:00
Davis Plumlee fcd515f942
[Security Solution][Exceptions] Adds error catch to Exceptions toString method (#105928) 2021-07-16 16:51:46 -04:00
Devin W. Hurley dadeb78b44
[RAC] [RBAC] add space ids array to each alert document (#105173)
* 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
2021-07-16 16:05:46 -04:00
Michael Olorunnisola 9c5d5c1137
[Security Solution][RAC] Implement hover actions (#105500) 2021-07-16 12:53:41 -07:00
Dominique Clarke 743c8c2a14
[Uptime] migrate to observability rules registry (#100699)
* 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>
2021-07-16 15:34:15 -04:00
Nathan L Smith ce5a798fdd
Fix ENVIRONMENT_ALL links to exploratory view (#105704)
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.
2021-07-16 14:26:33 -05:00
Cauê Marcondes 219e1e5ab2
[APM][Fleet-Migration] API error when opening settings Schema tab with apm_read_user (#105990) 2021-07-16 15:03:01 -04:00
Shahzad 966f81e4ea
[User Experience App] Fix ux app env filter (#105918) 2021-07-16 19:28:37 +02:00
Pete Hampton ca0b362754
Revert "Remove security example from telemetry management panel. (#105722)" (#105974)
This reverts commit 6ae078f3c6.
2021-07-16 13:23:25 -04:00
James Gowdy 8f4111e204
[ML] Fixing rare wizard detector state (#105966) 2021-07-16 17:50:54 +01:00
Corey Robertson 076634cca1
[Canvas] Fixes messed up form layout on custom interval form (#101967)
* Fixes messed up form layout on custom interval form

* update storyshots

* Fix snapshot

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2021-07-16 12:38:50 -04:00
Mark Hopkin 3aa8e9759f
fix: add missing aria labels to agent details page (#105962) 2021-07-16 12:36:37 -04:00
Wylie Conlon 8ad443aa6c
[Sample data] Use Lens in flights dashboard (#104780)
* [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>
2021-07-16 12:01:05 -04:00
Cauê Marcondes 26c3362892
[APM] Add support to upload source map as string or file (#105443)
* adding support to upload a sourcemap

* addressing PR comments

* addressing PR comments
2021-07-16 11:54:05 -04:00
Domenico Andreoli 4630965882
Explain that integration-test also runs tests (#105933)
Document integration-test wrt. CCS Cypress tests
2021-07-16 17:26:44 +02:00
Dario Gieselaar 9fcfeba464
[UX] make route match optional in EnvironmentFilter (#105780)
Closes #105757.
2021-07-16 10:52:40 -04:00
Christiane (Tina) Heiligers 59846c3e8e
Adds FS integration tests to CI (#105794)
Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2021-07-16 07:43:03 -07:00
Greg Thompson 2af1d595e9
use FormattedMessage instead of i18n.translate (#105841) 2021-07-16 09:30:53 -05:00
Peter Pisljar 4ce446766d
filterManager PersistableStateService implementation (#104897) 2021-07-16 16:20:51 +02:00
Gloria Hornero 9f2d9d4d54
Fixes "servers.elasticsearch.auth" must be a string error (#105095)
* 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>
2021-07-16 16:19:30 +02:00
Matthew Kime 2dd3693dbe
[rollup index patterns] don't show fields not present in field caps response (#105533)
* remove fields not present in field caps response
2021-07-16 09:07:31 -05:00
Tre d0b5c9e016
[QA] Extend Saved Objects Info Svc (#105800) 2021-07-16 15:02:39 +01:00
Ashokaditya 21d447d707
[Security Solution][Endpoint] Fix unhandled promise rejections in endpoint host middleware (#105593)
* 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>
2021-07-16 15:59:34 +02:00
Pete Hampton 6ae078f3c6
Remove security example from telemetry management panel. (#105722)
* Remove security example from telemetry management panel.

* Fix types.

* Update component snapshot.

* Fix translations.

* Remove code to test for sec solution enabled.

* Fix type.

* Remove management section setting from security solution.

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2021-07-16 14:56:06 +01:00
Alison Goryachev d3ccb982c7
Improve painless validation handling in monaco (#105799) 2021-07-16 08:36:59 -04:00
Liza Katz 71385b6944
[Search Sessions] Hide search sessions menu after interaction (#105610)
* 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>
2021-07-16 14:12:06 +02:00
James Rodewig 2adb59f5d9
[DOCS] Update watcher screenshots for new EUI (#105843) 2021-07-16 08:01:41 -04:00
Marco Liberati 2e5e4ca57f
[Lens][Visualize][Inspector][Reporting] Unified check for CSV cells for known formula characters (and value escaping more in general) (#105221)
*  Unify escaping logic for csv export

* 📝 Update api doc

*  Fix test with new escape logic

* 👌 First batch of feedback

* 💬 Fix typo

* 👌 Memoize function

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2021-07-16 10:55:49 +02:00
Marco Liberati 8e5d83d995
[Lens] Add more Lens QA doc (#105057)
* 📝 Add more Lens qa doc

* 🐛 Fix wrong ref

* 🔥 Remove section anchor for now

* Apply suggestions from code review

Co-authored-by: Kaarina Tungseth <kaarina.tungseth@elastic.co>

* 👌 Integrated feedback

Co-authored-by: Kaarina Tungseth <kaarina.tungseth@elastic.co>
2021-07-16 10:55:16 +02:00
Søren Louv-Jansen 2cf1bd540c
[APM] Enable metric-powered ui (#104929)
Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
Co-authored-by: Dario Gieselaar <dario.gieselaar@elastic.co>
2021-07-16 04:30:11 -04:00
John Schulz f220ee63af
[Fleet] Reordered & more consistent summaries in API docs (#105824)
## Summary

Some changes to the order & summaries in the OpenAPI docs.

 * Removed `Fleet - ` and `EPM - ` text from the summaries. It saves space and I don't think the extra text helped the user
 * Replaced `Enrollment` prefix with `Enrollment API Key`
 * Used plural (`policies`, `agents`) for operations that return a list
 * Rearranged the order of the routes to group the routes vs using an alphabetic sort. 
   * Not sure if it's priority/domain but it feels better to me
   * `/setup` is the first route; not last.  
   * installing integrations and adding agents are "above the fold"

<details><summary>screenshots from one viewer - before (left) vs PR (right)</summary>
<img align="top" width="40%" alt="Screen Shot 2021-07-15 at 1 53 48 PM" src="https://user-images.githubusercontent.com/57655/125836353-1b3c10e2-6c1d-4a7a-99c7-04d49a37cbac.png"><img align="top" width="40%" alt="Screen Shot 2021-07-15 at 1 53 57 PM" src="https://user-images.githubusercontent.com/57655/125836358-6f0647c3-4209-43a3-8fc7-7b33ad97d543.png">
</details>
2021-07-15 20:23:14 -04:00
Quynh Nguyen dced8bb1aa
[ML] Add functional tests for Anomaly Detection annotations (#105527)
* [ML] Add functional tests for annotations

* [ML] Update jest tests

* [ML] Fix regression caused by #104994

* [ML] Rename for clarity, clean up

* [ML] Fix rename typo, adds more log steps

* [ML] Update getVisibleText

* [ML] Move job & datafeed config to before
2021-07-15 19:33:21 -04:00
Justin Kambic 7c09bb5c5f
Fix broken doc links in Uptime app. (#105482)
Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2021-07-15 18:28:18 -04:00