Commit graph

44750 commits

Author SHA1 Message Date
Kerry Gallagher 32206b9284
Fix top controls responsive layout (#106107) 2021-07-20 12:01:42 +01:00
Stratoula Kalafateli 8b2ceaed44
[Vislib XY axis] Adds a deprecation notice in the UI and a docs section (#105055)
* [Vislib XY axis] Adds a deprecation notice in the UI and a docs section

* Remove cyclic dependency

* Fix link

* Add functional test

* fix functional tests

* Apply PR comments

* Update docs/user/dashboard/aggregation-based.asciidoc

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

* Apply PR changes

* minor

* Change the implementation

* Use title calse in Advanced Settings

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
Co-authored-by: Kaarina Tungseth <kaarina.tungseth@elastic.co>
2021-07-20 13:33:10 +03:00
Thom Heymann 1f5be1e1e1
Space management page UX improvements (#100448)
* Updated spaces management page

* Fixed test failures

* updated snapshot

* Added suggestions form code review

* Fixed unit test

* Review suggestion #2

* WIP

* Fix build errors

* fix type

* remove test for popup that doesnt exist anymore

* fix test

* fix a11y issues

* fix a11y issue

* Removed unused css

* Fix functional test

* Added suggestions from code review

* Fix typescript errors

* Added suggestions from code review

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2021-07-20 09:33:39 +01:00
Jean-Louis Leysens 2fb1a47137
[Reporting] Unskip flaky test when downloading CSV with "no data" (#105252)
* unskipped test and added additional checks when using time picker

* rather wait for the timepicker to close

* set up test for flaky test runner

* Additional .only

* Remove .only

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2021-07-20 10:30:54 +02:00
renovate[bot] 1e30148f59
Update dependency @elastic/charts to v33 (master) (#105633) 2021-07-20 03:33:22 -04:00
mgiota 41289fadc3
[Observability RAC] Improve alerts table columns (#105446)
* right align duration on alerts observability table

* reason column takes up the remaining width

* add horizontal scrollbar to the table

* add actions label temp solution

* use abbreviated format for duration

* Internationalization for actions

* remove horizontal scroll and bring back initial width

* remove unused import

* remove data as dependency

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2021-07-20 07:44:52 +02:00
Aleh Zasypkin 237256a4ba
Introduce preboot lifecycle stage (#103636) 2021-07-20 06:52:23 +02:00
Davis Plumlee a34a15ea3d
[Security Solution] Invalid kql query timeline refresh bug (#105525)
* poc test

* adds disable for refresh button

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2021-07-20 00:37:42 -04:00
Tiago Costa 591c11988d
skip flaky suite (#106121) 2021-07-20 00:09:05 +01:00
Paul Tavares 879b1a40dc
[Security Solution][Endpoint] Fix UI inconsistency between isolation forms and remove display of Pending isolation statuses (#106118)
* comment out UI display of pending isolation statuses and associated tests
* Change un-isolate form to use `EuiForm` and `EuiFormRow`
* Fix: move component `displayName` to file that has that component's src
2021-07-19 16:54:13 -04:00
Brandon Morelli fc49ae12e6
docs: APM RUM Source map API (#105332) 2021-07-19 13:29:18 -07:00
Ece Özalp 7e4c73ad2e
[CTI] Adds indicator match rule improvements (#97310)
Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2021-07-19 15:36:22 -04:00
Kevin Logan 15285bf03b
[Security Solution] update text for Isolation action submissions (#105956) 2021-07-19 15:24:25 -04:00
Pete Hampton 75c573a368
EP Meta Telemetry Perf (#104396)
* Add comments for other developers.

* Move OS infomation into meta key.

* Refmt endpoint metrics.

* Add helper funcs to batch sending.

* Add test to ensure opt in status.

* Add helpers test.

* Finish reshaping the document based on feedback.

* Add better type safety. Add policy package version to output.

* Fix sender implementation for aggregating EP datastreams.

* Fix type issues.

* Fix cadence inference + miss default agent id.

* Dynamically control search ranges for metrics + policy responses.

* Set back to 24h.

* Add comment for ignoring the default policy id.

* explicitly type the sub agg search query.

* Improve type safety.

* Add additional type safety + try/catch the last block.

* Remove unneeded optional chaining.

* Destructure host metrics.

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2021-07-19 20:19:05 +01:00
Chris Cowan cb7187f71f
[Metrics UI] Drop partial buckets from ALL Metrics UI queries (#104784)
* [Metrics UI] Change dropLastBucket to dropPartialBuckets

- Change offset calculation to millisecond percission
- Change dropLastBucket to dropPartialBuckets
- Impliment partial bucket filter
- Adding partial bucket filter to metric threshold alerts

* Cleaning up getElasticsearchMetricQuery

* Change timestamp to from_as_string to align to how date_histgram works

* Fixing tests to be more realistic

* fixing types; removing extra imports

* Fixing new mock data to work with previews

* Removing value checks since they don't really provide much value

* Removing test for refactored functinality

* Change value to match millisecond resolution

* Fixing values for new partial bucket scheme

* removing unused var

* Fixing lookback since drops more than last buckets

* Changing results count

* fixing more tests

* Removing empty describe

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2021-07-19 12:11:50 -07:00
DeDe Morton e4a8363087
Remove beta admonitions for Fleet docs (#106010) 2021-07-19 11:51:36 -07:00
Felix Stürmer 44f7a99e6f
[Observability RAC] Remove indexing of rule evaluation documents (#104970) 2021-07-19 19:56:06 +02:00
Josh Dover 595056060a
Parameterize migration test for kibana version (#105417) 2021-07-19 13:41:01 -04:00
Chris Roberson 887a149076
[Alerting] Allow rule to execute if the value is 0 and that mets the condition (#105626)
* Allow rule to execute if the value is 0 and that mets the condition

* PR feedback

* Fix type issue

* PR feedback

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2021-07-19 12:54:44 -04:00
Quynh Nguyen 3b921cea56
[ML] Fix Index data visualizer sometimes shows wrong doc count for saved searches (#106007)
* [ML] Fix flaky saved search

* [ML] Re-enable tests

* [ML] Make data viz the only tests for flaky test suite runner

* [ML] Make ML only

* [ML] Remove describe.only

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2021-07-19 12:49:03 -04:00
Kevin Logan 7101c42bec
[Security Solution] UX fixes for Policy page and Case Host Isolation comment (#106027)
* [Security Solution] UX fixes for Policy page and Case Host Isolation comment
2021-07-19 12:46:21 -04:00
Esteban Beltran ebc02741b3
[Security Solution]Memory protection configuration card for policies integration. (#101365) 2021-07-19 12:42:11 -04:00
Candace Park 47c30c35cd
[Security Solution][Endpoint][Host Isolation] Removes empty comment box for host isolation (#105642) 2021-07-19 12:13:56 -04:00
gchaps 404337514e
[DOCS] Updates screenshots to show new theme (#104998)
* [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 08:41:19 -07:00
Mark Hopkin 4e7f9460e5
bugfix: default to null when agentPolicy not loaded (#106092) 2021-07-19 11:36:13 -04:00
Mikhail Shustov f9089e11df
Instrument vis_type_vislib, lens and vis_type_timeseries with execution context service (#105206)
Co-authored-by: Josh Dover <1813008+joshdover@users.noreply.github.com>
2021-07-19 17:35:33 +02:00
Josh Dover ab010ae25c
Fix bug where loaded event is not sent when no user ID (#106090) 2021-07-19 11:13:01 -04:00
ymao1 59b56e5ac1
Fixing bug with es query rule so it handles epoch millis (#105618)
Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2021-07-19 10:55:46 -04:00
Joe Portner ea062391bb
Fix sub-feature privilege "minimumLicense" bug (#106008) 2021-07-19 10:47:41 -04:00
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