Commit graph

45591 commits

Author SHA1 Message Date
renovate[bot] 41162c3940
Update dependency @elastic/elasticsearch to ^8.0.0-canary.17 (#107536)
* Update dependency @elastic/elasticsearch to ^8.0.0-canary.15

* update tests for new error message building mechanism

* fix integration tests

* fix functional test

* mute new type errors

* fix new type errors

* bump es client to canaary.16

* fix integration test

* fix type errors in infra plugin

* mute type error in ml plugin

* fix type errors in monitoring plugin

* fix and mute errors in security solution plugin

* bump version to canary.18

* remove an unnecessary change

Co-authored-by: Renovate Bot <bot@renovateapp.com>
Co-authored-by: restrry <restrry@gmail.com>
2021-08-17 08:44:24 -04:00
Scotty Bollinger b1f38f459f
Add loading states to settings image buttons (#108800) 2021-08-17 08:51:13 -03:00
Scotty Bollinger db2e8ab8e3
Set maxBytes to fix upload bug (#108792) 2021-08-17 08:48:21 -03:00
Yulia Čech a884fab069
[ILM] Added index templates flyout to the edit policy form (#108362)
* [ILM] Added index templates flyout to the edit policy form

* Fixed i18n errors

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2021-08-17 13:46:33 +02:00
Scotty Bollinger ca1546c1fa
[Workplace Search] Clear flash messages when saving Settings (#108785)
* Clear flash messages when saving Settings

Previously when making changes to the UI in Settings, the error messages would persist. This PR removes the flash messages when any API requests are made.

* Also reset when staging/removing images
2021-08-17 08:45:56 -03:00
Dario Gieselaar 0074aa439a
[APM] Apply placeholder/filter for backends kuery bar (#108689) 2021-08-17 13:42:33 +02:00
Yulia Čech a22a079614
[ILM] Fixed policy request flyout requiring policy name to show json (#108550)
* [ILM] Fixed policy request flyout requiring policy name to show json

* [ILM] Fixed policy name in the request flyout for a new policy

* [ILM] Renamed saveAsNew to isClonedPolicy

* Fixed i18n errors

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2021-08-17 13:39:04 +02:00
mgiota 8724826468
[RAC][Observability] fix flyout in fullscreen mode (#108746)
* [RAC][Observability] fix flyout in fullscreen mode

* eslint fixes

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2021-08-17 13:30:24 +02:00
Robert Oskamp 7f8a28049b
[ML] Functional tests - add UI tests for stack management jobs sync (#108402)
This PR adds functional UI tests for job synchronization via the stack management jobs UI.
2021-08-17 13:04:55 +02:00
Esteban Beltran 384700964c
[Security Solution] Show Memory protection specific fields for memory alerts (#108382)
Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2021-08-17 13:00:25 +02:00
Jean-Louis Leysens 3465cc8b69
[Reporting] Deprecate v1 report types (#108499) 2021-08-17 12:46:35 +02:00
Gabriel Landau 2c3fcdb32c
Update security telemetry sender for latest memory protection schema (#108462) 2021-08-17 11:45:21 +01:00
Ross Wolf 0eae57bab4
Collect Events.* fields for telemetry (#107976)
* Collect Events.* fields for telemetry
* Add process.code_signature
2021-08-17 11:42:19 +01:00
Liza Katz 9d1a8a87f8
[Data][Es Query] Use ES types in Kuery functions (#108367)
* es-query types

* jest and lint

* cc

* options

* type

* types for kuery FUNCTIONS

* doc

* sec fixes

* typey type

* test typescript

* test

* fixes

* test

* cr

* cleanup a bit more

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2021-08-17 11:49:16 +02:00
Dmitry Tomashevich e258f46167
[Discover] Improve Doc viewer (#107869)
* [Discover] fix doc-vewer

* [Discover] remove redundant stuff

* [Discover] remove redundant i18n

* [Discover] remove unused translation

* [Discover] fix by comments

* [Discover] clean up remaining things

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2021-08-17 12:48:32 +03:00
Stratoula Kalafateli 99e33215fb
[Lens] Fixes flakiness in editing pre-existing runtime field (#108653)
* [Lens] Fixes flakiness in editing pre-existing runtime field

* Field editor changes

* Unskip test

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2021-08-17 12:11:05 +03:00
Ester Martí Vilaseca ae947ceda9
[Metrics UI] Fix refresh button for node details page (#108666)
* Fix refresh button for node details page

* Fix types
2021-08-17 11:09:38 +02:00
Alexey Antonov 8d5c3c835c
[Lens] Fix when clicking "Save and Return" on a Lens visualization the visualization's description gets erased (#108669)
Closes: #107841
2021-08-17 09:38:11 +03:00
Dario Gieselaar 0e547e402d
[APM] Responsive layout for backends detail (#108680)
Closes #108022.
2021-08-17 07:59:35 +02:00
Lukas Olson 6a39dc1880
[data.search] Handle warnings inside of headers (#103744)
* [data.search] Handle warnings inside of headers

* Update docs

* Add tests

* Remove isWarningResponse

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2021-08-16 21:06:19 -07:00
Steph Milovic 82af747532
[RAC][Security Solution] Alert table: Resolver and Cases icons to bulk action menu (#108420) 2021-08-16 21:09:08 -06:00
Tyler Smalley 689d974729
Removes supertest-as-promised dependency (#100486)
Signed-off-by: Tyler Smalley <tyler.smalley@elastic.co>
2021-08-16 18:01:34 -07:00
Kate Farrar e6d446acd7
updating waffle icon and toggle style (#108758) 2021-08-16 18:36:11 -06:00
John Dorlus 9aa1705cd9
Rewrite Grok Debugger Tests to use Standard Functional Test Runner (#108301)
* Converted Grok debugger tests to use standard functional test runner practices.

* Fixed last test.

* Removed old test now that the new test is passing.

* Fixed condition for retry.

* Removed .only to restore test run.

* fixed errors

* Fixed nits.
2021-08-16 20:19:58 -04:00
ymao1 3ab111e5f8
[Alerting] Adding telemetry usage counter for create rule API when predefined ID is specified (#108572)
* Adding telemetry usage counter for create rule API when predefined ID is specified

* Checking explicitly for default space id

* Handling undefined space id when spaces is disabled

* Consolidating logic in single function

* Tracking total usage and custom usage
2021-08-16 20:03:20 -04:00
Matthew Kime f4022d1862
searchsource should send all index patterns defined on the runtime field (#108549)
* searchsource should send all index patterns defined on the runtime field

* fix jest test

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2021-08-16 18:54:54 -05:00
Jonathan Budzenski f62edecb51
[build] Exclude integration tests (#108790)
`src/core/server/saved_objects/migrationsv2/integration_tests` comes in
at 36mb.  This adds it to the exclude list.
2021-08-16 19:49:15 -04:00
Joe Portner 3bf7275653
Change unexpected log in error message (#108787) 2021-08-16 19:26:35 -04:00
Michael Marcialis f80104df0e
Home Page Solutions & Add Data Updates (#108580)
* balance solutions

* clean up solution changes

* change footer button size

* update management section

* apply max-width to management items

* remove right side items from page header

* add data content update

* illustration poc

* add data content updates per feedback

* img size and alignment

* moved shared images to shared assets folder

* more solutions clean up

* rm unneeded import

* remove references to subtitle and appDescriptions

* update tests and snapshots

* more test and snapshot updates

* restore solution sort order

* ts and jest fixes; thx catherine!

* i18n fixes

* use new `KibanaPageTemplateSolutionNavAvatar` comp

* change solution imgs from png to svg

* update tests and snapshots

* rm spacer and update snapshots

* account for flex margin changes in img offset

* Change "Kibana" overview page text to "Analytics"

* update overview icon to match hp changes

* update snapshots

* center justify solutions and update snapshots

* update snapshots

* title case dev tools and stack management

* update text and snapshots

* fix merge error

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2021-08-16 19:21:25 -04:00
Matthew Kime 0153bdbcbd
Index pattern creation - text improvements (#107860)
* text improvements
2021-08-16 18:09:58 -05:00
Kevin Qualters 34eb8c6c46
Prevent unneeded re-renders of tgrid on opening alert flyout (#108781) 2021-08-16 19:05:13 -04:00
Oliver Gupte 678aa4a29f
[APM] Adds Observability Overview to global search results (#99017) (#108778) 2021-08-16 18:38:20 -04:00
Melissa Alvarez c8ddf94c97
[ML] Data Frame Analytics: replace deprecated EuiCodeEditor (#108306)
* switch dfa create, runtime, and expanded row json editor to new codeEditor

* add aria label. wrap codeEditor in div to allow data attribute for test

* update functional test service for new code editor
2021-08-16 18:29:03 -04:00
Jonathan Budzenski 64a63e6f9e
[keystore] Fix input masking (#108415)
Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2021-08-16 17:08:17 -05:00
Scotty Bollinger ec120a2cc1
[Workplace Search] Misc tech debt (#108767)
* Remove TODOs

Removes 2 todos:
- in index.tsx, the access is handled somewhere else and visiting any org page as a non-admin results in an error message. No further action needed
- error_state.tsx - this had been completed by Constance in a separate PR but the comment was missed.

* Remove a bunch of unused components

These were left over from the user migration project and mainly have to do with users displayed in the groups section, which is no longer a feature.

* This commit needs no explanition

This was missed in this commit:
19ccd27e04

Refacotred and somehow renaming resulted in this monstrosity 🤦🏼‍♂️

* Remove source descriptions

Since this commit, these are no longer displayed in the UI

16d089acfd (diff-a4761afc86544a299d0129b749e3001625f5b194b95ebc31303824f8f95f4381L173)
2021-08-16 18:02:37 -04:00
Nick Peihl ed7c0825b7
Use Elastic Maps Service 7.15 (#108751)
* Bump @elastic/ems-client to 7.15.0

* Also bumps link to ems landing page
2021-08-16 15:00:05 -07:00
Sandra G 7ce9d07746
[Monitoring] change errors dir to typescript (#108297)
* change errors dir to ts

* fix internationalization

* fix internationalization

* change test name
2021-08-16 16:58:27 -04:00
Dominique Clarke febcfa6ee3
[Uptime] Index alert reason in Uptime alert documents (#107336)
* index alert reason

* adjust imports

* adjust imports

* adjust types

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2021-08-16 16:39:46 -04:00
Constance 3ffd6af7c5
[Enterprise Search] Set up basic scaffolding for Cypress tests in Kibana (#108560)
* Set up tsconfigs

- Required if we're going to have several different Cypress suites (one for each plugin/product essentially) in order for global cy.() commands and it()/describe() to register as expected

@see https://docs.cypress.io/guides/tooling/typescript-support#Clashing-types-with-Jest

* Set up shared commands and routes

NOTE: Unlike ent-search, shared/ will *not* have its own set of tests - rather, shared/cypress is a resource/set of helpers for other test suites to extend/import/etc.

* Create basic Enterprise Search Overview E2E tests

- For happy path testing, we _likely_ shouldn't need more than these tests going forward

- If we ever want to add an error connecting test however, this is likely where it should go (or alternatively, use Kibana's FTR with Enterprise Search host set but not spun up)

* Set up App Search Cypress test scaffolding

- placeholder/hello world test only

* Set up Workplace Search Cypress test scaffolding

- placeholder/hello world test only

* Add helper script and update README

* Add config setup & documentation for potentially running Cypress against Kibana functional server

* PR feedback: Fix typescript project names

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2021-08-16 16:30:46 -04:00
Ryan Keairns 36bba6ffe0
Update Analytics overview page to new empty state template (#108532)
* Use empty state page template

* Remove unused translations

* Fixed snaps

* Use docLinks service

* Fix test

* Revert "Use docLinks service"

Use exisiting docLinks.ELASTIC_WEBSITE_URL instead

* Update learn more link and test

* fix test

Co-authored-by: cchaos <caroline.horn@elastic.co>
Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2021-08-16 14:54:22 -05:00
Aaron Caldwell fa64146244
[Maps] Add edit tools defaults for user and timestamp (#103588)
Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2021-08-16 15:51:07 -04:00
Mikhail Shustov ea3fcbd8e9
provide execution context information for task and alerting (#108197)
* provide execution context information for task.run and alert.execute

* log default space

* expose setRequestId to plugins for cases when a runtime scope exists outside of requestHandler

* fix typescript errors in jest test files

Unfortunately, some of the tests are still failing.  Not quite sure what's
going on, but it looks like the calls to `withContext()` are not returning
the result of the function passed in, but only in the tests.  Because the
code seems to run fine when I run Kibana - but perhaps we're just lucky
and don't need the results the tests are looking for, for my simple
smoke tests.  But seems unlikely to me - guessing the mock is not being
set up correctly, or there's some weird interaction with jest mocks
and async hooks.

* fix alerting unit tests

* add tests that withContext is called even when exection_context service is disabled

* update docs

* add fakerequestid registration

* do not attach request id when undefined (FakeRequest, for example)

* Revert "add fakerequestid registration"

This reverts commit ca5a396dcc.

* not to expose setRequestId for time being

* cleanup alerting code

* update docs

* add a unit test for alerting execution context

* add a test for execution context of task runner

* improve description readability

* update type definitons

* fall back to unknownId if no requestId is provided

Co-authored-by: Patrick Mueller <pmuellr@gmail.com>
2021-08-16 15:38:52 -04:00
James Gowdy fa7b414905
[ML] Add support for model_prune_window in job wizard (#108734) 2021-08-16 20:36:53 +01:00
Lisa Cawley 619db1cc5f
[ML] Edits introductory text for uploading files (#108608) 2021-08-16 12:25:11 -07:00
Kerry Gallagher 85e07662d8
[RAC] Disable RAC multi-tenancy (#108506)
* Disable RAC multi-tenancy
2021-08-16 20:01:27 +01:00
James Gowdy 768957a2c2
[ML] Addming failed job import telemetry (#108724) 2021-08-16 19:26:20 +01:00
Thomas Neirynck 911271053b
[Maps] Track proxied EMS requests (#108717) 2021-08-16 14:07:19 -04:00
Dominique Clarke c5ec5468c5
[Uptime] migrate legacy alert apis (#107863)
* uptime - migrate legacy alert apis

* update alert fetch actions

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2021-08-16 14:02:49 -04:00
Dominique Clarke 024eeed3c3
[Uptime] adjust RAC RBAC and index settings (#108200)
Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2021-08-16 14:01:01 -04:00
Jonathan Budzenski da25960022
[package testing] Bump status page timeout (#107813)
The socket timeout for testing whether the status page is available or
not is currently 30 seconds.  This test was disabled for being flaky.
Reproducing this locally hasn't been straight forward, but I am seeing
an average of ~20 seconds, which is close enough to the timeout that I'd
like to rule out machine differences.  This gives the status check 120
seconds before dropping the connection.

Related to #106749 and #107300

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2021-08-16 10:55:32 -07:00