Commit graph

50435 commits

Author SHA1 Message Date
Pierre Gayvallet
ff5a4dce9d
SavedObjects management: change index patterns labels to data views (#125356)
Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2022-02-15 07:59:08 +01:00
Spencer
48e8a84c8c
[ci-stats] add Client class for accessing test group stats (#125164)
Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2022-02-14 14:25:17 -07:00
Vadim Kibana
f4713f5a26
[ML] Use Discover locator in Data Visualizer instead of URL Generator (#124283)
* use discover locator in data_visualizer to generate url

* pass in discover plugin into context

* format according to linter

* add console messages

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2022-02-14 21:06:29 +01:00
Nicolas Chaulet
57aefd0a6b
[Fleet] Add retries when starting docker registry in integration tests (#125530) 2022-02-14 15:04:45 -05:00
Melissa Burpo
1751cb2774
Update osquery.asciidoc to address doc issue (#125425)
This update fixes the issue raised in #125355

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2022-02-14 13:59:31 -06:00
Dominique Clarke
9afca7332f
synthetics e2e - use custom location when defined (#125560) 2022-02-14 14:35:57 -05:00
Brian Seeders
31c44389a1
[ci] Retry failed steps in on-merge pipeline (#125550) 2022-02-14 12:16:32 -07:00
Brian Seeders
e1ad246fde
[babel] Bump babel packages (#125446) 2022-02-14 14:06:21 -05:00
Kaarina Tungseth
3b833f3d5b
[DOCS] Updates Upgrade Assistant API status (#125410)
Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2022-02-14 11:50:48 -06:00
gchaps
93cb99db5d
[DOCS] Minor tweaks to upgrade docs (#125538) 2022-02-14 09:31:40 -08:00
Dominique Clarke
52e9c51d15
[Uptime] handle null duration on ping list (#125438)
* uptime - handle null duration

* adjust types

* Update x-pack/plugins/uptime/server/lib/synthetics_service/service_api_client.ts

* raise per page of synthetics monitors

* Remove tooltip
2022-02-14 12:10:47 -05:00
Stratoula Kalafateli
d364f237c5
[TSVB][Lens] Navigate to Lens with your current configuration (#114794)
* [Lens][TSVB] Convert to Lens

* Add logic for multiple series

* Basic formula

* Fix circular dependencies

* Minor cleanup

* Fix types

* fix jest tests

* Fix test

* Change the schema, add more styling options, fix bugs

* Supports time shift and custom date interval

* Fix types

* Fix some types

* Move edit in lens button to top nav menu

* Cleanup

* Further cleanup

* Add try it badge in menu, controlled by localStorage

* Add go back to app button

* Discard changes modal and go back to TSVB

* Update by value and by reference visualizations, delete existing by ref

* Fix bug

* Apply some changes

* get title and description only if has context

* Pass originating app, title and description from the savedVis

* By ref TSVB to by ref Lens

* Match TSVB cardinality with Lens unique_count function

* Support moving average

* Fix test

* Support derivative

* Support cumulative_sum

* Add overall functions

* Support filter ratio

* Refactor code for easier testing

* Fix bug with auto interval

* Fetch types from visualizations plugin

* Pipeline aggs compatible with percentile

* Add some bugs

* Support nesred aggs

* Mini refactor and support all aggregations to Math

* Transfer terms sorting options

* Transfer axis position

* Fix translations keys

* Revert

* Fix redirectToOrigin buttion when the there is no embeddableId but comes from dashboard

* Improve context identification

* Support yExtents

* Fix bug in formula caused by changes in the main branch

* Support formatters

* Support custom label

* Cleaning up

* Fix terms bugs

* Support filter breakdown by

* Fixes math bug and escapes filter ratio query

* Add some unit tests

* Testing triggerOptions payload

* Fix console warning

* Add more unit tests on TSVB function helpers

* Adds a unit test on the vis top nav menu testing the new menu item

* Add unit tests

* Fix unsupported palette bug, clean up, add a unit test case

* Add final unit tests

* Support timeScale in derivative

* Add functional tests

* Cleanup

* Fix jest test

* Fix some bugs

* Fix some math agg bugs

* Fix more bugs

* Fixes jest test

* Fix the problem with the dashboard state

* Hides the badge and link instead of disabling it

* Changes the text

* Adds menu item vertical separator

* Enhance the appLeace confirm modal to change the confirm button text and color

* Fixes CI

* Adress code review comments

* Address some of the comments

* Fix more bugs

* Fix more bugs

* Zero decimals for formatting

* fix tests

* Navigate from dashboard to TSVB to Lens hides the appLeave modal

* Adds support for terms on a date field

* Support filter by

* Move the trigger to the visualizations plugin

* Minor

* Fix CI

* Support percentage charts

* Improve the vertical separator

* Fixes on the appLeave logic

* Remove unecessary import

* Add badge to the nav item level

* Fix jest test

* Fi filter ratio and filter by bug

* Replace all occurences of a variable

* Nest badge into the button level

* Design improvements

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2022-02-14 19:10:17 +02:00
Tomasz Ciecierski
1f4a7d4d72
[Osquery] Fix infinite loop (#124332)
Co-authored-by: Patryk Kopycinski <contact@patrykkopycinski.com>
2022-02-14 17:57:22 +01:00
Julia Bardi
b4855ba793
[Fleet] refresh policies on create and flyout open (#125499)
* refresh policies on create and flyout open

* fix checks

* fixed scenario when newly created policy should be preselected
2022-02-14 09:55:59 -07:00
Dima Arnautov
b51c87f24c
[ML] Fix flaky Trained Models tests (#125484)
* add extra assertion

* prevent extra call on init

* fix stats call
2022-02-14 17:41:39 +01:00
Robert Oskamp
91314e0942
[ML] Docs screenshots - fix weblogs anomaly explorer screenshot (#125501)
This PR fixes the weblogs anomaly explorer docs screenshot by expanding the cell selection to the last element of the array and using another scrollIntoView.
2022-02-14 17:28:26 +01:00
Peter Pisljar
cc74733a8b
fixing issue with expressions pending (#125520) 2022-02-14 17:19:22 +01:00
Tyler Smalley
435b772786
[ci] Splits Jest integration tests (#125454) 2022-02-14 17:12:42 +01:00
Nicolas Chaulet
d383bda82e
[Fleet] Fix invalid permission entry if the elastic agent package is not installed (#125447) 2022-02-14 11:09:15 -05:00
Tiago Costa
09ff04db09
skip flaky suite (#123372) 2022-02-14 15:45:20 +00:00
Yaroslav Kuznietsov
54de36f85a
[PieVis] PartitionVis integration to Lens. (#123937)
* Removed pie/donut/mosaic/treemap expressions from lens

* Replaced pie/donut/mosaic/treemap expressions with expressions from expression_partition_vis

* Fixed bug with __other__ labels.

* Cleaned up not used fields at Lens.

* Added support of empty results for multiple chart types.]

* Refactored visualization_noresults.

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2022-02-14 16:55:57 +02:00
Katerina Patticha
4c31b157be
[APM] Migrate service overview api test to apmApiClient (#125404)
* [APM] Migrate service overview api test to apmApiClient

* Pass path values via path property
2022-02-14 15:37:57 +01:00
Mark Hopkin
ae31eb883d
[Fleet] Trim whitespace from package policy names (#125400)
* Do not allow package policies with whitespace in their name

* Update x-pack/test/fleet_api_integration/apis/package_policy/create.ts

Co-authored-by: Nicolas Chaulet <n.chaulet@gmail.com>

Co-authored-by: Nicolas Chaulet <n.chaulet@gmail.com>
2022-02-14 07:22:10 -07:00
Josh Dover
9278294b08
[Fleet] Use registry version check on main (#125495) 2022-02-14 07:17:45 -07:00
Vitalii Dmyterko
b3a7bf24b9
Fixes rules bulk edit tagd helper text (#125482)
Fixes helper text for tags combobox in rules bulk edit from:

## Before
<img width="1290" alt="Screenshot 2022-02-14 at 10 42 43" src="https://user-images.githubusercontent.com/92328789/153849260-dfd7d90c-e6ec-46cf-ab99-57396c12e20d.png">



## After
<img width="1281" alt="Screenshot 2022-02-14 at 10 42 08" src="https://user-images.githubusercontent.com/92328789/153849147-fb069a32-f0bb-4801-9191-77bcc9bc64dc.png">
2022-02-14 13:59:28 +00:00
Yulia Čech
c14173cd09
[Snapshot & Restore] Fix date parsing in the search bar (#125234)
Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2022-02-14 14:47:21 +01:00
renovate[bot]
c52ffd8d17
Update dependency elastic-apm-node to ^3.29.0 (#125453)
Co-authored-by: Renovate Bot <bot@renovateapp.com>
Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2022-02-14 14:46:55 +01:00
Joe Reuter
5babc9f663
[TSVB] Use panel interval for annotations (#125222) 2022-02-14 14:33:55 +01:00
Joe Reuter
617a602c5d
fix formatting logic for terms (#125408)
Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2022-02-14 14:33:32 +01:00
Giorgos Bamparopoulos
d2a5c3d5f4
Add stories for agent keys (#125407)
* Add story for agent keys table

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2022-02-14 12:06:11 +00:00
Julia Bardi
a3e045b877
updated fleet dependencies in readme (#125477) 2022-02-14 05:05:17 -07:00
Dima Arnautov
eb34596bf1
[ML] Fix auto-refresh interval (#124851)
* fix auto refresh

* update unit tests

* update mock

* show warning only with enabled auto refresh interval

* add extra assertion

* change default refresh interval to 10s

* handle time range updates, show warning with reset button

* fix side nav URLs update

* fix i18n

* update jest tests

* fix resolving of an active route

* change text, set default to 5s

* sync refresh interval, restore from timefiler on the AD list page

* fix smv refresh

* fix AE refresh

* fix setting of default value

* update jest test

* change toast life to 30s

* fix setting a global filter on init
2022-02-14 12:31:19 +01:00
Vadim Kibana
8f4de1b8a8
Make embeddable example plugin not fail for read-only user (#125459)
* wrap write operation in try-catch block

* add space
2022-02-14 10:33:32 +01:00
István Zoltán Szabó
759f87b1f2
[DOCS] Formats and fine-tunes ES query rule type docs (#125104) 2022-02-14 10:25:18 +01:00
Uladzislau Lasitsa
7c475d8c92
[TSVB] Fix number fields which show NaN on invalid values (#124508)
* Replace input to EuiFieldNumber, fix createNumberHandler in case when value can be optional

* Add placeholder

* Fix remarks

* Fix name

* Replace `input` to `EuiFieldNumber` in window field

* Rename `isOptional` to `isClearable`

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2022-02-14 12:18:19 +03:00
Marta Bondyra
db7ad4e67a
[Lens] small visual flyouts adjustments (#124970)
* [Lens] adjust visual changes for configuration flyouts

* paddings for add layer

* fix bug for extra space for reference lines

* fix non loading icon

* moving options for references

* remove warning from test

* show px inside the line thickness slider

* Update x-pack/plugins/lens/public/xy_visualization/visualization.tsx

Co-authored-by: Michael Marcialis <michael@marcial.is>

* refactor contextMenu

* Update add_layer.tsx

* change name, don't display decoration position if there's no decoration,

* left, auto, right & bottom, auto, top

* display none no

* icon value name changes

* tests

* icon in prepend

* cleaning up after the last piece of feedback

Co-authored-by: Michael Marcialis <michael@marcial.is>
Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2022-02-14 09:13:42 +01:00
Patryk Kopyciński
259d1b7778
[Osquery] Add telemetry for packs and saved queries (#122501) 2022-02-14 07:43:48 +01:00
Pierre Gayvallet
6627bd8b3a
Elasticsearch client: no longer default to using meta: true (#124488)
* Use `Client` interface instead of `KibanaClient`

* get rid of getKibanaEsClient and convertToKibanaClient

* get rid of last KibanaClient usages

* update usages and types in @kbn/securitysolution-es-utils

* fix some violations

* add sugar method around client mock

* update SO repository calls

* adapt more core usages

* export mock types

* batch 1

* batch 2

* batch 3

* batch 4

* batch 5

* batch 6

* batch 7

* batch 8

* batch 9

* security - batch 1

* security - batch 2

* security - batch 3

* last batch of initial violations

* fix resolve_time_pattern

* update generated doc

* fix /internal/index-pattern-management/preview_scripted_field endpoint

* fix monitoring's getLegacyClusterShim

* fix /api/snapshot_restore/privileges route

* fix UptimeESClient

* fix transforms/_nodes endpoint

* lint

* unit test fix - batch 1

* unit test fix - batch 2

* unit test fix - batch 3

* integration test fix - batch 1

* lint

* adapt ML client

* unit test fix - batch 4

* fix uptime test helper

* fix /api/transform/transforms/{transformId}/_update route

* fix ES client FTR test

* fix uptime unit test

* fix type errors on last unit tests

* fix RollupSearchStrategy call

* fix /internal/security/fields/{query} route

* fix GET /api/index_lifecycle_management/policies route

* fix mlClient.getDataFrameAnalytics

* fix APMEventClient

* fix security solution getBootstrapIndexExists

* fix data_enhanced's getSearchStatus

* remove unused @ts-expect-error

* fix unit tests due to latest code changes

* fix more calls in security_solution routes

* fix more calls in ml routes

* fix POST /api/index_management/component_templates route

* fix unit tests due to latest changes

* fix rule_registry's ResourceInstaller.createOrUpdateIndexTemplate

* fix more fleet client calls

* fix UA's GET cloud_backup_status route

* fix createLifecycleExecutorApiTest

* fix hasFleetServers

* fix unit tests due to latest changes

* changes due to last merge

* fix ml modelProvider.getModelsPipelines

* fix security_solution LifecycleQuery.search

* fix new CoreUsageDataService usage

* fix security solution's StatsQuery.search

* improve ml FTR assertions

* fix security_solution's EventsQuery.search

* fix EsClient type as we're keeping transport

* NITs

* clean RepositoryEsClient type

* update generated doc

* review comments

* adapt mlClient.anomalySearch signature

* remove unnecessary .then((body) => body)

* nit

* add unit tests for the client mocking functions

* fix new upgrade assistant /remote_clusters endpoint
2022-02-12 09:19:44 +01:00
Tiago Costa
172bf98942
chore(NA): upgrades rules nodejs to v4.0.0 (#125163)
* chore(NA): upgrade rules_node_js into v4.4.3

* chore(NA): update bazel typescript dep to 4.6.1

* chore(NA): downgrade rules nodejs to v4.0.0

* chore(NA): update dep on bazel/typescript pkg

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2022-02-12 03:53:03 +00:00
Joey F. Poon
93aa4f4184
[Security Solution] add feature usage notifications (#124766) 2022-02-11 16:20:09 -07:00
Hannah Mudge
17a997cccb
[Dashboard] Transfer state when drilldown is opened in a new tab (#124770)
* Translate dashboard state to URL conditionally

* Add functional tests

* Fix typo in functional test descriptions

* Remove deprecated references

* Rename useUrl to be more specific
2022-02-11 14:27:06 -07:00
Matthew Kime
d06dc147ea
fix data view runtime fields api service key (#125430) 2022-02-11 15:00:12 -06:00
Corey Robertson
ddbb06032e
Fix Controls storybook config (#125305) 2022-02-11 15:46:49 -05:00
Tiago Costa
4eb8ab8d1a
chore(NA): upgrade bazel into v5 (#125332)
Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2022-02-11 20:45:36 +00:00
Frank Hassanabad
6d88579a50
Reduces timeouts from 10 minutes per test down to 2 minutes and changes one log.error to log.debug to avoid spamming cloud servers (#125432)
## Summary

Fixes https://github.com/elastic/kibana/issues/125319

Reduces timeouts from 10 minutes per test down to 2 minutes and changes log.error to log.debug to avoid spamming

I test this by making a failing test here:
```
x-pack/test/detection_engine_api_integration/security_and_spaces/tests/aliases.ts
```

By increasing `await waitForSignalsToBePresent(supertest, log, 4, [id]);` from `4` to `5`....Then I watched the logs and timed it to ensure it doesn't take 2 minutes.

I did this by running the server:
```sh
 node scripts/functional_tests_server.js --config test/detection_engine_api_integration/security_and_spaces/config.ts
```

And then running the client:
```sh
 node scripts/functional_test_runner.js --config test/detection_engine_api_integration/security_and_spaces/config.ts --include test/detection_engine_api_integration/security_and_spaces/tests/aliases.ts
```

If we start to see flake again on the regular build servers we might have to slightly increase this number again. If this doesn't allow failing servers to fully complete we might need to also decrease this number further or we might need to make this more configurable.

### Checklist

Delete any items that are not applicable to this PR.

- [x] [Unit or functional tests](https://www.elastic.co/guide/en/kibana/master/development-tests.html) were updated or added to match the most common scenarios
2022-02-11 13:41:25 -07:00
Matthew Kime
7db7b1aa8c
update docs (#125419) 2022-02-11 13:46:52 -06:00
Vitalii Dmyterko
ae51f810f5
[Security solution][Detections] Fixes multiple Bulk Edit issues/suggestions and increases test coverage (#124525)
Issue: https://github.com/elastic/kibana/issues/125223
## Summary

- removes try/catch for bulk edit operation
- removes isElasticRule in bulk route API, replaces with rule.params.immutable check(as isElasticRule is used within telemetry)
- adds Cypress tests
- fixes case when index pattern action applied to ML rule. As ML rules don't have index pattern, so we will throw error if there is an attempt to run this action. It partially addresses https://github.com/elastic/kibana/issues/124918
- now checks if updated index patterns array is empty, if it is: throws error(https://github.com/elastic/kibana/issues/125223)
2022-02-11 12:43:31 -07:00
Joe Portner
5629decd9e
Add origin conflict checks when resolving import errors (#125241) 2022-02-11 14:08:19 -05:00
Steph Milovic
4fe96b799e
[Security Solution] Use search strategy error in timeline (#125178) 2022-02-11 11:06:05 -07:00
Dima Arnautov
67fb388acd
[ML] Fix Trained Model stats and pipelines tab (#125382) 2022-02-11 11:03:50 -07:00