Commit graph

45116 commits

Author SHA1 Message Date
Tre 8f16ad3657
[Archive Migration] Swap es archiver for kbn archiver - Canvas app (#102533)
Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2021-08-03 10:40:03 +01:00
Tre 837eca1e32
[Archive Migration] x-pack..discover/feature_controls/security (#107156)
* [Archive Migration] x-pack..discover/feature_controls/security

Migrate x-pack..discover/feature_controls/security

* Drop fields stanza.

Signed-off-by: Tre' Seymour <wayne.seymour@elastic.co>

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2021-08-03 10:37:31 +01:00
Stratoula Kalafateli 4d3aed52a1
[Visualizations] Adds dimensionName in datatable meta info (#107265)
* [Visualizations] Adds dimensionName in datatable meta info

* Delete unused file

* fix i18n

* Another fix of i18n

* Fix translations

* Remove double types

* Fix types

* Another type fix

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2021-08-03 12:05:55 +03:00
Pablo Machado 402702d55b
[Security solution] [RAC] Add checkbox control column to t-grid (#107144)
* Add checkbox control column to t-grid

* Add unit tests

* Update translations

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2021-08-03 09:31:14 +02:00
Liza Katz 7af1ec246d
[Data] Align deprecation messages (#107175)
* Move more utils to package and cleanup API

* docs and imports

* better imports

* change comment

* Better docs

* typos

* typo

* Align deprecation messages

* fixes

* casting

* Code review

* Update meta_filter.ts

* Update types.ts

* Deprecate by 8.1

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2021-08-03 09:18:44 +02:00
Tiago Costa a923d9e091
chore(NA): moving @kbn/monaco to babel transpiler (#107461) 2021-08-03 02:40:19 +01:00
Zacqary Adam Xeper 26c1dae0df
[Stack Monitoring] Convert first half of server/lib folder to Typescript (#106327)
* TS convert top-level files

* Fix ccs_utils

* TS convert beats folder

* Add missing types file

* TS covert cluster folder

* TSify details folder

* TSify top level of nodes folder

* TSify elasticsearch nodes folder

* TSify elasticsearch shards folder

* TSify APM folder

* Fix type errors

* Fix failing typechecks and tests

* Fix more failing checks and tests

* Fix typecheck

* Fix typecheck

* Restore lodash get to logstash

* Fix fetching logstash cluster

* Restore lodash get to get_clusters_from_request

* Fix typecheck

* Fix detect_reason

* Fix get_kibanas_for_clusters

* Simplify kibanaUuids in get_kibanas_for_clusters

* Revert "Simplify kibanaUuids in get_kibanas_for_clusters"

This reverts commit 99597b09d7.

* Simplify kibanaUuids

* Fix test fixture
2021-08-03 10:33:59 +09:00
Clint Andrew Hall 5533a4061f
[canvas] Create Embeddables Service; remove legacy service (#107351) 2021-08-02 21:29:17 -04:00
Catherine Liu cc9d69ebc6
Fixed import for buildQueryFilter helper function (#107321)
Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2021-08-02 20:12:58 -04:00
Marius Dragomir f0e9210302
add accept alerts option (#107414)
Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2021-08-02 18:03:35 -04:00
Tiago Costa 24c85b51ca
chore(NA): moving @kbn/test to babel transpiler (#107455) 2021-08-02 22:35:43 +01:00
Tiago Costa 78a54fb985
chore(NA): moving @kbn/typed-react-router-config to babel transpiler (#107437) 2021-08-02 22:35:13 +01:00
Clint Andrew Hall 303526ffdb
[canvas] Create Expressions Service; remove legacy service (#107350) 2021-08-02 17:10:38 -04:00
Casper Hübertz 5707178b8e
[Observability] Change Resource links and labels (#107155)
* [Observability] Change labels
* [Observability] Add link to quick start videos
2021-08-02 23:05:33 +02:00
ymao1 1334622833
Removing legacy es client from alerting test (#107152)
Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2021-08-02 15:26:53 -04:00
Matthew Kime 9d47c6a9ec
STYLEGUIDE reference .md => .mdx (#107440)
Path to styleguide needs to be updated.
2021-08-02 14:05:58 -05:00
Kaarina Tungseth d699d165b5
[DOCS] Adds runtime fields vs formula to Lens (#107419)
* [DOCS] Adds runtime fields vs formula to Lens

* Moved up in list

* Review comment

* Comments from Graham
2021-08-02 13:56:40 -05:00
Jonathan Budzenski 91bb2c5b57
[kbn/pm] Remove legacy build code (#107217) 2021-08-02 13:53:27 -05:00
Tyler Smalley f3a17a80b4
[docs] Include information on supplying array config options (#107258)
Signed-off-by: Tyler Smalley <tyler.smalley@elastic.co>
2021-08-02 11:43:46 -07:00
Scotty Bollinger 571c5c41b6
[Workplace Search] Fix a11y issues for Workplace Search dashboards (#107240)
* Add “Actions” table header to tables

- Also adds missing i18n to SourcesTable
- Replaces bespoke TableHeader component with EUI comonents
- TableHeader is only used in one other place, GroupUsersTable, and that component itself is no longer used. Will delete both in a separate PR

* Refactor ViewContentHeader and ContentSection

Before using EuiTitle for sizing, we used conditional headings. We now only need to know if this is the top-level ViewContentHeader or nested in a ContentSection. ContentSections will use h3 and the top-level ViewContentHeader will use h2. The Personal Dashboard does not have an h1 tag, so we will add an h1 in the sidebar on those pages.

* Add some i18n

* Change headings to be semantically correct

- Removed unnecessary strong tag from heading
- Replaces instances of EuiText wrapping headings with EuiTitle
- For the Content Source Overview, spans were used for chldren of h6’s since h6 has special styling and there is no h7

* Add labels

* Hide Action header from Personal dashboard org sources

* Fix icon label

AXE was complaining because the text (name of the source) was the same as the alt text. Added ‘ logo’ to differentiate

* - Configured Sources list
- Connect instance heading
Also removes unused imports from 16d089acfd (diff-a4761afc86544a299d0129b749e3001625f5b194b95ebc31303824f8f95f4381)

Will create a separate PR to clean up this code more.

* Add roles to Personal Dashboard

* Update Platinum Feature badge for a11y

After discussion, it was determined to remove all custon styles and use the 'accent' built-in color for this badge

* Fix failing tests

* Flip boolean from isPersonal to isOrganization

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2021-08-02 14:40:33 -04:00
Clint Andrew Hall 01eb6c7430
[canvas] Create Reporting Service; remove legacy service (#107352)
* [canvas] Create Reporting Service; remove legacy service

* Fix merge mistake
2021-08-02 14:20:12 -04:00
Oliver Gupte 100ab8b615
[APM] Adds custom tabs with new UI extension point 'package-policy-edit-tabs' (#107400)
* [APM] Adds custom tabs with new UI extension point 'package-policy-edit-tabs' (#106440)

* fixes linting error
2021-08-02 14:10:22 -04:00
Byron Hulcher afb5044f56
[App Search] Add multi-step validation to the Crawler Add Domain Form (#107251)
* New types

* Add crawlDomainValidationToResult to crawler utils

* Add domainValidationStateToPanelColor and domainValidationFailureResultChange to add domain utils

* New ValidationStateIcon component

* New ValidationStepPanel component

* New AddDomainValidation component

* Add AddDomainValidation to AddDomainForm

* Updates to AddDomainLogic to support multi-step validation

* i18n-itize all text

* Update AddDomainFormSubmitButton to use new allowSubmit selector

* Added displayValidation selector to AddDomainLogic

* Clean up AddDomainLogic tests

* Clean-up crawlDomainValidationToResult tests

* Clean-up AddDomainForm tests

* Clean-up ValidationStepPanel component and tests

* Clean-up AddDomainLogic tests
2021-08-02 13:44:03 -04:00
Sergi Massaneda 3832aeb608
[RAC] [TGrid] Field Browser migrated to modal (#106541)
* tGid header using EuiDataGrid

* useFetchIndex migrated and column_headers refactor

* removed useless mock

* add badges translations

* i18n translations keys fixed

* code format

* filter default columns not present in field browser

* reset button to initial columns

* cleaning

* dependencies moved

* fix functional test with missing data service

* remove unused code (unrelated)

* fieldBrowser integration with security solutions timeline

* lint and translations cleaned

* timeline toolbar removed for merge & some test fixes

* type fix

* type fixes

* timeline static default colums

* limit size temporary increase

* limit size temporary increase

* field browser migrated to modal

* field browser header remaned to search

* commented code removed

* toolbar index removed

* security solutions field browser button custom styles

* bring back FieldsBrowserContainer

* UI fixes

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2021-08-02 19:28:27 +02:00
CJ Cenizal 3491f05e95
Migrate Index Management and enrichers to the new ES JS client (#105863)
* Destructure index API request bodies consistently.
* Remove unnecessary calls to encodeURIComponent on the server.
* Migrate routes to handleEsError. Delete wrapEsError helpers. Remove unused isEsError and parseEsError dependencies. Remove isEsError from es_ui_shared.
* Update tests and migrate API integration tests.
* Clarify test details in CCR README. Update Index Management README with steps for testing Cloud-managed index templates and steps for testing indices and data streams that contain special characters.
2021-08-02 10:20:54 -07:00
Tim Sullivan 5e8b24230a
[Reporting] add version to all export types job params (#106137)
* add version to csv params

* fix ts

* fix api tests

* use kibana version from packageInfo

* use kibana version from packageInfo

* clean up ide warnings

* utility to log and set a default params version

* fix baseparams ts

* update snapshot

* check version in enqueue job

* add temporary ts-ignore for canvas

* clarify comment

* fix hardcoded version in png_pdf_panel

* clarify the UNVERSIONED_VERSION variable with a comment

* fix canvas jest test

* fix ts in example app

* fix types

* send version param to canvas util for job params

* update jest snapshot

* Update utils.test.ts

* fix snapshot

* remove browserTimezone and version from integration boilerplate

* wip ensure version is always populated in job params inside of the service

* wip2

* wip3

* wip4

* wip5

* wip6

* update note

* update example plugin

* wip7

* improve tests

* fix dynamic job params

* better testing

* improve enqueue_job test

* more tests

* fix types

* fix types

* fix example ts

* simplify props

* fix test

* --wip-- [skip ci]

* consolidate baseparams back into one interface

* fix rison encoding of apiClient param

* clean up

* reorganize imports

* back out functional change

* fix 400 error in download csv

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2021-08-02 13:00:37 -04:00
Stacey Gammon 81fd64c838
Remove line numbers from the json files (#107158)
* Stop tracking line numbers

* Updated api docs

* Fix type error and update tests

* wrap label in encodeURIComponent for the links

* Update docs after encodeUriComponent change
2021-08-02 12:57:22 -04:00
Clint Andrew Hall 2d17071c9f
[canvas] Create Nav Link service; remove legacy service (#107346)
Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2021-08-02 11:49:49 -04:00
Mikhail Shustov 3bd9ff361d
Disable reporting for all "oss: false" integration tests (#107360)
* disable reporting for all the integration test with oss:false

* unskip test
2021-08-02 17:44:50 +02:00
Mikhail Shustov 169d75ff9f
remove core dependency on data plugin (#107259)
Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2021-08-02 17:44:20 +02:00
Nicolas Chaulet 08bb8a73ea
[Fleet] Make preconfiguration add package policy error fatal and allow recovery on next setup retry (#107304) 2021-08-02 11:30:39 -04:00
Matthew Kime 8d62cd28e8
use IndexPattern instead of IIndexPattern (#107222)
Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2021-08-02 10:25:22 -05:00
Matthew Kime df9330ae7a
use IndexPattern instead of IIndexPattern (#107176)
Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2021-08-02 09:55:31 -05:00
ymao1 df421f869f
[Alerting] Fix health check to allow access to alerting when ES security is disabled (#107032)
* Using license plugin to check if es security is enabled

* Adding unit tests and updating legacy health route

* Updating UI copy and docs

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2021-08-02 10:37:30 -04:00
Anton Dosov 0c69b10d84
[data][bfetch] Avoid using Buffer in client code (#107278) 2021-08-02 15:31:20 +02:00
Matthias Wilhelm 47f5f81765
[Discover][Main] Split single query into 2 queries for faster results (#104818)
Co-authored-by: Tim Roes <tim.roes@elastic.co>
2021-08-02 15:07:58 +02:00
Matthew Kime 7e12ea84d5
use IndexPattern instead of IIndexPattern (#107198)
Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2021-08-02 07:28:37 -05:00
Matthias Wilhelm d4a225cb2c
[Discover] Improve functional saved query test to prevent flakiness (#107204) 2021-08-02 13:40:22 +02:00
Stratoula Kalafateli f27c94c118
[Lens] Updates UI terminology (#106983)
* [Lens] Update UI terminology

* Change the translation key

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2021-08-02 14:32:24 +03:00
Anton Dosov 1b315bb01d
[Lens] Fix suffix field format leaks to index pattern management (#107139) 2021-08-02 06:59:56 -04:00
Liza Katz c048f71626
[Data] Cleanup filter docs (#107169)
* Move more utils to package and cleanup API

* docs and imports

* better imports

* change comment

* Better docs

* typos

* typo

* fixes

* casting

* Code review

* Update meta_filter.ts

* fix

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2021-08-02 12:14:19 +02:00
Matthew Kime 3e85a0e24f
use IndexPattern instead of IIndexPattern (#107223)
Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2021-08-02 05:12:42 -05:00
Matthew Kime a33039fc04
use IndexPattern instead of IIndexPattern (#107225)
Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2021-08-02 05:12:24 -05:00
Matthew Kime 153d65f3cf
[discover] remove IFieldType references (#107237)
* remove IFieldType references

* remove IFieldType references

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2021-08-02 05:12:05 -05:00
Esteban Beltran ee04f6dc95
Filter out empty values for exceptions (#106685) 2021-08-02 05:55:47 -04:00
Stratoula Kalafateli ced9aecab5
[Vislib] Removes the angular import (#106968)
Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2021-08-02 11:58:10 +03:00
Uladzislau Lasitsa 8088565ee9
Replace flot with elastic-chart in Timelion (#81565)
* First draft migrate timelion to elastic-charts

* Some refactoring. Added brush event.

* Added title. Some refactoring

* Fixed some type problems. Added logic for yaxes function

* Fixed some types, added missing functionality for yaxes

* Fixed some types, added missing functionality for stack property

* Fixed unit test

* Removed unneeded code

* Some refactoring

* Some refactoring

* Fixed some remarks.

* Fixed some styles

* Added themes. Removed unneeded styles in BarSeries

* removed unneeded code.

* Fixed some comments

* Fixed vertical cursor across Timelion visualizations of a dashboad

* Fix some problems with styles

* Use RxJS instead of jQuery

* Remove unneeded code

* Fixed some problems

* Fixed unit test

* Fix CI

* Fix eslint

* Fix some gaps

* Fix legend columns

* Some fixes

* add 2 versions of Timeline app

* fix CI

* cleanup code

* fix CI

* fix legend position

* fix some cases

* fix some cases

* remove extra casting

* cleanup code

* fix issue with static

* fix header formatter

* fix points

* fix ts error

* Fix yaxis behavior

* Fix some case with yaxis

* Add deprecation message and update asciidoc

* Fix title

* some text improvements

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
Co-authored-by: Alexey Antonov <alexwizp@gmail.com>
2021-08-02 04:53:03 -04:00
Matthias Wilhelm 33bc6f1d37
[Discover] Improve functional testing searchOnPageLoad (#107181) 2021-08-02 09:46:19 +02:00
Matthew Kime 63ec45880f
[apm] use IndexPattern instead of IIndexPattern (#107187)
* use IndexPattern instead of IIndexPattern

* typefix

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2021-08-01 19:05:10 -05:00
Justin Kambic e771748d96
[Synthetics] Improve dedupe client performance (#103979)
* Add new runtime types for parsing on client/server.

* Add more runtime types.

* Remove dead code.

* Mark parameter as unused.

* Improve typing for failed journey request function.

* Add new API functions, improve typing in a few others.

* Modify API calls to work with new screenshot_ref data.

* Fix untested refactor error.

* Add required fields to runtime type.

* Update typing in failed steps component.

* Adapt client to work with old screenshots as well as new screenshot_ref.

* Refactor composite code to reusable hook.

* Implement screenshot blocks endpoint.

* TEMP COMMIT.

* Add new runtime types for parsing on client/server.

* Add more runtime types.

* Remove dead code.

* Mark parameter as unused.

* Improve typing for failed journey request function.

* Add new API functions, improve typing in a few others.

* Modify API calls to work with new screenshot_ref data.

* Fix untested refactor error.

* Add required fields to runtime type.

* Update typing in failed steps component.

* Adapt client to work with old screenshots as well as new screenshot_ref.

* Refactor composite code to reusable hook.

* Implement screenshot blocks endpoint.

* Define runtime types for full-size screenshots.

* Delete dedicated screenshot and ref queries.

* Optimize screenshot endpoint by combining queries.

* Handle parsing error.

* Clean up screenshot/ref typings.

* Remove dead types. DRY a type out.

* Simplify types.

* Improve typing in step screenshot components.

* Prefer PNG to JPG for canvas composite op.

* Simplify and clean up some code.

* Remove reliance on `Ping` type, clean up types.

* Add a comment.

* Add a comment.

* Fix typing for `FailedStep` component.

* Standardize loading spinner sizes.

* Add comments to composite code.

* Remove unnecessary optional chaining.

* Reformat error string.

* Remove unneeded key from request return object.

* Add a comment to a return object explaining very large cache value.

* Make type annotation more accurate.

* Resolve some type and test errors.

* Clean up remaining type errors.

* Move type definitions to simplify imports.

* Simplify `PingTimestamp` interface.

* Refactor failing unit test to use RTL and actually test things.

* Add tests for new helper functions.

* Add a comment.

* Test `PingTimestamp` for screenshot ref data.

* Test `StepImageCaption` for ref data.

* Improve typing for step list column definitions.

* Harden a test.

* Extract code to avoid repeated declarations.

* Create centralized mock for `useCompositeImage`.

* Add test for ref to `StepScreenshotDisplay`.

* Add tests for `getJourneyDetails`.

* Extract search results wrapper to helper lib.

* Add tests for `getJourneyFailedSteps`.

* Add support for aggs to result helper wrapper.

* Write tests for `getJourneyScreenshot` and simplify type checking.

* Write tests for `getJourneyScreenshotBlocks`.

* Add new runtime types for parsing on client/server.

* Add more runtime types.

* Remove dead code.

* Mark parameter as unused.

* Improve typing for failed journey request function.

* Add new API functions, improve typing in a few others.

* Modify API calls to work with new screenshot_ref data.

* Fix untested refactor error.

* Add required fields to runtime type.

* Update typing in failed steps component.

* Adapt client to work with old screenshots as well as new screenshot_ref.

* Refactor composite code to reusable hook.

* Implement screenshot blocks endpoint.

* Define runtime types for full-size screenshots.

* Delete dedicated screenshot and ref queries.

* Optimize screenshot endpoint by combining queries.

* Handle parsing error.

* Clean up screenshot/ref typings.

* Remove dead types. DRY a type out.

* Simplify types.

* Improve typing in step screenshot components.

* Prefer PNG to JPG for canvas composite op.

* Simplify and clean up some code.

* Remove reliance on `Ping` type, clean up types.

* Add a comment.

* Add a comment.

* Fix typing for `FailedStep` component.

* Standardize loading spinner sizes.

* Add comments to composite code.

* Remove unnecessary optional chaining.

* Reformat error string.

* Remove unneeded key from request return object.

* Add a comment to a return object explaining very large cache value.

* Make type annotation more accurate.

* Resolve some type and test errors.

* Clean up remaining type errors.

* Move type definitions to simplify imports.

* Simplify `PingTimestamp` interface.

* Refactor failing unit test to use RTL and actually test things.

* Add tests for new helper functions.

* Add a comment.

* Test `PingTimestamp` for screenshot ref data.

* Test `StepImageCaption` for ref data.

* Improve typing for step list column definitions.

* Harden a test.

* Extract code to avoid repeated declarations.

* Create centralized mock for `useCompositeImage`.

* Add test for ref to `StepScreenshotDisplay`.

* Add tests for `getJourneyDetails`.

* Extract search results wrapper to helper lib.

* Add tests for `getJourneyFailedSteps`.

* Add support for aggs to result helper wrapper.

* Write tests for `getJourneyScreenshot` and simplify type checking.

* Write tests for `getJourneyScreenshotBlocks`.

* Simplify prop types for `FailedStep`.

* Remove unused type.

* Fix regression in step navigating for new style screenshots.

* Add type check function.

* Simplify and refactor merge issues.

* Add pruning effects for block cache.

* Handle pruning in redux store, write tests.

* Revert an unwanted change.

* Fix broken unit tests.

* Add throttle to reduce request volume.

* Resolve type issues.

* Add tests and fix a bug for journey screenshot route.

* Fix new test to provide expected values to tested route.

* Simplify blocks route.

* Add tests to blocks route.

* Remove unneeded function.

* Combine redundant selectors into single one.

* Add tests for composite image hook.

* Add a test for compose image.

* Fix bug found during code review.

* Remove double-bang assertions.

* Extract reducer logic to separate functions to improve readability.

* Remove `_source` clause from query.

* Fix issue where journey detail thumbnails would not update on page change.

* Fix https://github.com/elastic/kibana/issues/107308.

* Remove unneeded error skipping.

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2021-07-31 15:24:37 -04:00