Commit graph

44940 commits

Author SHA1 Message Date
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
Byron Hulcher f20bce4bf9
[App Search] New GenericEndpointInlineEditableTable component (#107252)
* Here's the logic

* Added GenericEndpointInlineEditableTable

* small component test suggestions

- clarify relationship between onX props and logic actions
- assert on a few props (isLoading override and title ...rest)

* [opinionated] remove EndpointRoute generic

I'm not sure I see the benefit of DRYing this type - it makes it less clear that the prop is a function, and when all the other onX props are standard typescript function defs and repeated a bunch next to them, it seems a bit futile

In this scenario I'd rather us be explicit if repetitive (and be able to skim all props/actions at once) than obtuse but super DRY

* Fix reorderItems ts-ignores

- remove unnecessary hasReorderProps fn in favor of an early return
- destructure props
- remove confusing itemsFromResponse destructure in favor of a 2nd line

* Fix TODO where we don't actually set table loading state to true for the async call

* Fix ts-ignored

+ prefer 2nd const over confusing destructure

* [opinionated] clean up unnecessary separate types

since reorder props are optional anyway, I don't see a reason to separate them out into a completely different type

* Refactor stripIdAndCreatedAtFromItem to a util file, write tests, and attempt to address type TODO

- not really sure the type change is accurate, but ? should minimize the impact

* [opinionated] Remove saveAndCallback fn in favor of straightforward try/catch http calls

- easier to read and requires less jumping back and forth through the file to see what's happening in what order
- matches the flow/pattern of all our other logic files http calls
- it's actually 16 less total lines in any case heh

Co-authored-by: Jason Stoltzfus <jastoltz24@gmail.com>
Co-authored-by: Constance Chen <constance.chen.3@gmail.com>
2021-07-30 18:14:30 -04:00
Dominique Clarke 6b637bbc88
[Uptime] Fix Synthetics Integration flaky tests (#107323)
* focus flaky tests

* add test subjects for header field buttons

* remove focused tests

* adjust types

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2021-07-30 17:12:19 -04:00
Brian Seeders ddd2655202 skip flaky suite (#106658) 2021-07-30 16:35:55 -04:00
Cauê Marcondes f50843dc52
[APM] Fleet: APM Integration settings (fleet editor) redesign (#106535)
* initial commig

* adding forms

* moving settings_form

* moving settings_form

* renaming

* fixing import

* adding error message per settings

* fixing onchange bug

* adding isValid to onchange func

* fixing TS issue

* fixing default value

* validating form

* refactoring to validate form

* renaming to vars

* refactoring

* adding apm integration settings

* fixing some stff

* refactoring name

* adding translations

* refactoring

* fixing test

* adding unit test

* flats settings

* refactoring cloud policy constant

* removing fleet exported function

* fixing TS issue

* fixing bug

* fixing ts

* addressing PR comments

* addressing PR comments

* addressing PR comments
2021-07-30 16:18:48 -04:00
Tiago Costa b9acd3ce74
chore(NA): moving @kbn/dev-utils to babel transpiler (#107245)
* chore(NA): moving @kbn/dev-utils to babel transpiler

* chore(NA): fix types field on tsconfig files for packages missing it

* chore(NA): update package.jsons

* chore(NA): update kbn/pm dist

* chore(NA): update types field on package jsons

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2021-07-30 16:03:42 -04:00
Stacey Gammon 01293bf86f
update api docs (#107312) 2021-07-30 15:26:29 -04:00
Chris Roberson caee1257f4
Fix broken health test (#107036)
Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2021-07-30 15:18:56 -04:00
Mikhail Shustov 7aef1be90d
migrate integration tests to the new es client (#107130)
* migrate integration tests to the new es client

* error field does not exist on result

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2021-07-30 19:45:09 +02:00
Tiago Costa 561b89889f
chore(NA): moving @kbn/utility-types to babel transpiler (#107159)
* chore(NA): moving @kbn/utility-types to babel transpiler

* chore(NA): fix type imports

* chore(NA): fix type imports

* chore(NA): fix type imports

* chore(NA): fix rootdir of tsd tests

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2021-07-30 18:43:50 +01:00
Tiago Costa e0ea3233d9
chore(NA): moving @kbn/es-query to babel transpiler (#107281)
* chore(NA): moving @kbn/es-query to babel transpiler

* chore(NA): update limits
2021-07-30 18:38:02 +01:00
Spencer 926db441b9
[dev-utils/run] support --info flag when default log level changed (#107244)
* [dev-utils/run] support --info flag when default log level changed

* update kbn/pm dist and remove excess --debug flag

Co-authored-by: spalger <spalger@users.noreply.github.com>
2021-07-30 10:22:18 -07:00
Michael Dokolin e066a49e7c
[Reporting] Fix API client wrapper in the reporting diagnostics (#107282) 2021-07-30 19:06:21 +02:00
Nicolas Chaulet f2a5cd740f
[Fleet] Missing SO Installation migration (#107214) 2021-07-30 12:02:51 -04:00
Pete Hampton 0f05ecf2c0
Security Telemetry: Trusted applications (#106526)
* [7.15] Setup project for trusted apps telemetry.

* Create dependency on exception list client + query trusted applications.

* Add trusted telemetry apps task.

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2021-07-30 16:28:29 +01:00
Tim Sullivan 03ca8c7d35
[Reporting CSV] Fix scroll ID bug for deprecated csv export (#106892)
* [Reporting CSV] Fix scroll ID bug for deprecated csv export

* fix unit test

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2021-07-30 08:17:29 -07:00
Mikhail Shustov 5294f1ca17
remove elasticsearch package imports from reporting (#107126)
* remove elasticsearch package imports from reporting

* remove dead code
2021-07-30 08:15:50 -07:00
Melissa Alvarez 9dcecaedc6
[ML] Data frame analytics: ensure results view loads correctly for job created in dev tools (#107024)
* check analyzed_fields exists

* update DataFrameAnalyticsConfig type to make analyzed_fields optional

* updating accessing analyzed_fields for type update
2021-07-30 11:12:52 -04:00
Melissa Alvarez faed2f6fe1
[ML] Anomaly Detection: ability to clear warning notification from jobs list - improvements (#106879)
* add isClearable function for checking notifications index

* clear messages from multiple indices when messages stored in multiple indices

* only return clearable indices. update disable clear button check

* add unit test
2021-07-30 11:04:46 -04:00
Nathan L Smith 121bccb4d3
Add owner to APM and Observability plugin kibana.json (#107201)
As described in #103016.
2021-07-30 09:12:57 -05:00
Matthew Kime b072a5d32b
[index pattern managment] remove IFieldType references (#107239)
* remove IFieldType references

* typescript fixes

* update snapshot
2021-07-30 08:58:23 -05:00
Tre c330fc5a9a
[Archive Migration] x-pack..security/flstest (#107045) 2021-07-30 14:47:50 +01:00
Tiago Costa f21c7e1c47
skip flaky suite (#96895) 2021-07-30 14:33:33 +01:00
Dario Gieselaar efd254047d
[APM] Dependencies table for backend inventory/detail views (#106995) 2021-07-30 09:23:45 -04:00
Stratoula Kalafateli 2a9d17c317
[Lens] Formats correctly the falsy values on the x axis (#107134)
* [Lens] Formats correctly the falsy values on the x axis

* Address PR comments

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2021-07-30 16:22:20 +03:00
Yulia Čech c6420fbb7e
[ILM] Added a flyout with linked index templates (#106734)
* [ILM] Server to use new in_use_by property returned by ES API

* [ILM] Cleaning up the PR changes

* [ILM] Fixed functional test

* [ILM] Fixed 'modifiedDate' display in the table

* [ILM] Fixed sorting test

* [ILM] Removed a not needed function declaration

* [ILM] Added index templates flyout to the policies list

* [ILM] Added test for the index templates flyout

* [ILM] Added an a11y test for the index templates flyout

* Update x-pack/plugins/index_lifecycle_management/public/application/components/index_templates_flyout.tsx

Co-authored-by: debadair <debadair@elastic.co>

* [ILM] Fixed jest test and made 0 index templates to not open the flyout

* [ILM] Fixed a11y test

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
Co-authored-by: debadair <debadair@elastic.co>
2021-07-30 14:43:25 +02:00
Anton Dosov 3c3087855f
[data] Extract @kbn/field-types to a package (#106973) 2021-07-30 06:34:17 -04:00