Commit graph

50113 commits

Author SHA1 Message Date
Tiago Costa
1efe999990
chore(NA): adds backport config for 8.2.0 bump (#124411) (#124426)
(cherry picked from commit 3b63ca1f59)
2022-02-02 21:14:30 +00:00
Tiago Costa
c83e94e19b
chore(NA): update branch to 8.1 2022-02-02 20:22:40 +00:00
Tiago Costa
f7d9b0dc87
skip flaky suite (#124326) 2022-02-02 12:50:15 +00:00
Dominique Clarke
6b9e127654
[Uptime] [Synthetics Service] log errors when fetching service locations (#124239)
* log errors when fetching service locations

* update tests

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2022-02-02 07:42:30 -05:00
Shahzad
2781a855e4
[Exploratory view] Update constant from lens (#124257) 2022-02-02 13:23:56 +01:00
Abdul Wahab Zahid
2c9f8a956c
[Uptime][Monitor Management UI]Add sorting to Monitor Management monitors list table. (#124103)(#121117)
* Adds sorting to Monitor Management monitors list table. Default sorting is 'asc' on the 'name' column.
* Fix column wrapping on monitor list table (Monitor Management UI).

#121117
2022-02-02 12:49:03 +01:00
Uladzislau Lasitsa
e5a8cec25e
[Lens] Color stop UI follow-ups (#123924)
* Round min/max values when we are turning off auto auto mode

* Fix the behavior so that we don't see the warning "The specified value '-Infinity' cannot be parsed or is out of range."  in console.

* Allow to use correct max value in percentage mode for heatmap

* Change the wording of the `Add color range` button to `Add color` and `Distribute equally` button to `Distribute values`

* Don't show percent symbol append for the EuiFieldText components that are set to be the current data's min or max value

* Adds  tooltips for the min, max, and pencil icon buttons

* Add support of changing the opacity

* Add tooltips for disabled color range action buttons (Reverse colors, Distribute values)

* Change the `Maximum value should be greater than preceding values` error message to be `Maximum value must be greater than preceding values`

* Apply sorting if min on mid value more than max instead of showing error

* Fix test

* Change increment by +1 for adding new color ranges

* Fix CI

* Allow customize max/min values in color ranges for gauge

* Fix CI

* Change Outside Data Bounds Message from warning to info type

* Remove warnings about value outside databounds

* Fix Checks

* Add tests

* Fix some remarks

* Update x-pack/plugins/lens/public/shared_components/coloring/color_ranges/color_ranges_item_buttons.tsx

Co-authored-by: Marta Bondyra <marta.bondyra@gmail.com>

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
Co-authored-by: Marta Bondyra <marta.bondyra@gmail.com>
2022-02-02 14:40:42 +03:00
Stratoula Kalafateli
a5ee534bad
[Lens] Label placeholder always defaults to the lens proposed text (#124222)
* [Lens] Label placeholder always defaults to the lens proposed text

* Fix bug
2022-02-02 13:36:01 +02:00
James Gowdy
fd0e1aed0e
[ML] Fix anomaly detector jobs list search delay (#124328) 2022-02-02 11:35:23 +00:00
Vadim Kibana
28ba010233
Short URL browser client (#121886) 2022-02-02 11:26:41 +01:00
Julia Bardi
22d87fcdf0
[Fleet] support setting id in new agent policy API (#124255)
* support setting id in new agent policy API

* added integration test

* fixed test
2022-02-02 11:11:28 +01:00
Joe Reuter
fbe6836be9
improve mock (#124284) 2022-02-02 09:42:00 +01:00
Dmitry Tomashevich
a7e0171dfa
[Discover] Add row height options for document explorer (#122087)
Enable configuring of the row height using document explorer in Discover

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
Co-authored-by: andreadelrio <andrea.delrio@elastic.co>
2022-02-02 07:24:46 +01:00
Kevin Qualters
a6c7d968e5
[Security Solution] Use timelineId to tell when investigate in timeline is in a table (#124310)
## Summary

Fixes #124307 by preventing event tables from making event detail requests when in a timeline by skipping the data fetching hook when the action is in a timeline.
0 calls to the detection detail api when viewing just the table:
![image](https://user-images.githubusercontent.com/56408403/152084212-4b61fb5d-240b-4921-9842-61f3e505d7c7.png)
1 made when opening the detail flyout:
![image](https://user-images.githubusercontent.com/56408403/152084244-d94ac8f5-c336-458a-b1a2-3a2780e102f4.png)


### Checklist

- [ ] [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-01 21:19:45 -07:00
Mat Schaffer
fb1ca61db5
Ensure logstash getNodes always contains a uuid (#124201)
This is less of an issue on main since we've stopped querying `metricbeat-*` but might become important when we start doing agent testing (`metrics-*`).

On 8.0 it's easy to have error documents land in `metricbeat-*` for standalone logstash and break the UI.
2022-02-01 20:11:15 -07:00
Georgii Gorbachev
20e838115c
[Security Solution][Detections] Rule execution logging overhaul follow-up (#124194)
**Related to:** https://github.com/elastic/kibana/pull/121644
**Addresses:** https://github.com/elastic/kibana/issues/86202

## Summary

Done in this PR:

- Removed the deprecated `warning` rule execution status ([comment](https://github.com/elastic/kibana/pull/121644#discussion_r783220778)).
- Added a new `running` status ([ticket](https://github.com/elastic/kibana/issues/86202)).
- Simplified the internal implementation of the `rule_execution_log` folder. Hopefully naming of folders, files and interfaces is clearer now as well. ([comment](https://github.com/elastic/kibana/pull/121644#discussion_r787001671), [comment](https://github.com/elastic/kibana/pull/121644#discussion_r786102788))
- Added APM measurements with `withSecuritySpan`.
- Added rule id to the react-query key used for loading last rule failures ([comment](https://github.com/elastic/kibana/pull/124198#discussion_r796836948))
- Addressed most of the `// TODO: https://github.com/elastic/kibana/pull/121644` comments

In the next PR that could be merged after the FF I'd address the rest of the stuff:

- Add comments to all the interfaces and methods in the `rule_execution_log` folder. Write a readme for it.
- Address the remaining of the `// TODO: https://github.com/elastic/kibana/pull/121644` comments. All of them are related to tests.
- Fix for the gap column ([comment](https://github.com/elastic/kibana/pull/121644#discussion_r787110865))
2022-02-01 20:04:07 -07:00
Tiago Costa
b08b2c9ef8
chore(NA): splits types from code on @kbn/storybook (#124199)
* chore(NA): splits types from code on @kbn/storybook

* chore(NA): correct export syntax

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2022-02-02 02:00:18 +00:00
Walter Rafelsberger
815537afd4
[ML] Transforms: Support to set destination ingest pipeline. (#123911)
* [ML] Support to set destination ingest pipeline.

* [ML] Fix jest tests.

* [ML] Fix permissions.

* [ML] Use EuiComboBox to be able to empty input.

* [ML] Add support to allow editing a transform destination ingest pipeline.

* [ML] Fix setting ingest pipeline field to optional.

* [ML] Fix translations.

* [ML] Fix functional tests.

* [ML] Fix unexposed form state.

* [ML] Tweaks.
2022-02-01 17:45:20 -06:00
Kevin Logan
3efcf5218e
[Security Solution] Advanced policy options for Mac NetworkExtensions (#124296)
* [Security Solution] Advanced policy options for Mac NetworkExtensions

* pr comments
2022-02-01 16:28:24 -07:00
Lisa Cawley
bfbb4a9864
[DOCS] Removes APM NodeJS and RUM Javascript modules (#124180) 2022-02-01 13:28:15 -08:00
Lukas Olson
a8aa3bfbd7
Refactor saved query request to not set page size of 10000 (#124187)
* Update saved query service to fix expensive query

* Fix types
2022-02-01 13:55:00 -07:00
Frank Hassanabad
ac7745ed0a
[Security Solutions] Adds a security solutions experimental telemetry preview endpoint and e2e tests (#123989)
## Summary

For e2e testing to be possible we have to enable an experimental preview endpoint:

```ts
GET /internal/security_solution/telemetry
```

You can only enable this endpoint if you edit your `kibana.dev.yml` and add this line:
```yml
xpack.securitySolution.enableExperimental: ['previewTelemetryUrlEnabled']
```

This PR adds the following:
* Pulls up an interface from both `TelemetryEventsSender` and `TelemetryReceiver` 
* Issue in the e2e FTR where we weren't removing lists from agnostic and regular space
* Adds preview capabilities for `DetectionRules`, `SecurityLists`, `Endpoint`, and `Diagnostics`
* 19 FTR e2e tests for `DetectionRules` and `SecurityLists`. But does _NOT_ add any for `Endpoint` or `Diagnostics`
* Fixes a dangling promise that makes the preview deterministic
* Fixes a small issue seen with the trusted applications and endpoint application createLists

To run the test server and runner for FTR:

Start the FTR server and wait for it to be initialized first:
```sh
cd kibana/x-pack
node scripts/functional_tests_server.js --config test/detection_engine_api_integration/security_and_spaces/config.ts
```

In a seperate terminal run:
```sh
cd kibana/x-pack
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/telemetry/index.ts
```

### Checklist

- [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-01 12:58:27 -07:00
Kyle Pollich
68466226b3
[Fleet] Support bundling packages as zip archives with Kibana source (#122297)
* Support installing bundled packages during Fleet setup

* Fix failing API integration test

* Sort packages in test

* Move get bundled packages + add tests

* Fix mock installPackage type

* Don't attempt to install already-installed bundled packageS

* Use unique installation status for bundled packages

* Fix failing tests

* Fix type error

* Fix logic for latest value

* Remove bundled packages from test since they no longer come back from list endpoint

* Change assertion for empty preconfiguration update request

* Add all bundled packages + refactor install to use Promise.allSettled

* Fix name comparison again

* Rework approach to use preferred source at install-time instead

* Add helper script + update bundled packages + allow updates for upload path

* Fix failing test

* Address code review + add additional tests for update cases

* Fix type error

* Remove configOverride concept for now

* Fix another type error 🙃

* Add build step for bundling fleet packages

* Fix unused import in build step

* Keep bundled_packages directory in place to prevent setup failures

* Remove gitkeep + make bundled package directory lookup fault tolerant

* Update gitignore

* Add doc comment + use build.resolvePath

* Add --use-snapshot-registry CLI flag

* Update snapshots

* Rename arg to use-snapshot-epr

* Don't fail the build on failure to bundled packages

* Update all checksums + don't attempt download multiple times

* Skip checksum process for bundled packages for now

* mkdirp destination directory to fix tests

* Revert build_distributables file

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2022-02-01 14:29:34 -05:00
Paul Tavares
40817b2fae
[Security Solution][Endpoint] Fix event filters create/update API body validator to allow for nested fields (#124272)
* change event filters schema
* changes to generator + FTR test
2022-02-01 11:38:44 -07:00
Dominique Clarke
782f396822
[Uptime] overwrite SYNTHETICS_REMOTE_KIBANA_URL if defined in environment (#124183) 2022-02-01 13:30:30 -05:00
Dima Arnautov
62fbaf83d4
[ML] Add missing document titles (#124125)
* model management titles

* settings titles

* useDocTitle

* data vis titles

* ad titles

* dfa titles

* fix capitalization

* update translation files

* fix typo

* Update x-pack/plugins/ml/public/application/routing/routes/trained_models/nodes_list.tsx

Co-authored-by: Lisa Cawley <lcawley@elastic.co>

* fix edit calendar and filter

* fix data vis titles
2022-02-01 11:24:04 -07:00
Quynh Nguyen
aea8aefb84
[ML] Synchronize Anomaly charts cursor position for X-axis with Lens visualizations in Dashboard (#123951)
* Add cursor sync from anomaly chart to elastic charts/lens

* Sync two way

* Sync two way

* Fix jest tests

* Add comments

* Move bg to constant, move exit to the end

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2022-02-01 12:20:43 -06:00
István Zoltán Szabó
15a573b86f
[ML] Changes DFA intro text (#124038)
Co-authored-by: Lisa Cawley <lcawley@elastic.co>
2022-02-01 19:09:19 +01:00
Nathan Reese
790089e18f
[maps] shapefile import (#123764)
* [maps] shapefile importer

* render importer editor

* shapefile_editor

* break geojson_importer into abstract class

* start shapefile_importer _readNext

* parse shapefile

* getProgress

* comments

* set table row count

* hide shapefile editor once all files selected

* i18n fixes

* validate sidecar file names match .shp name

* rename JsonUploadAndParse to GeoUploadWizard

* eslint

* tslint

* fix getFileNameWithoutExt

* backout i18n changes

* reset i18n files to main

* revert to main zh-CN.json

* i18n updates

* use geoJsonCleanAndValidate to clean features from all geo importers

* update docs

* doc refinement

* tslint fix for loaders

* eslint

* shapefile upload functional test

* geoFileUploadPageObject

* add geojson functional test with geoFileUpload page object

* replace old workflow functional tests with new ones based on geoFileUplad page object

* tslint and eslint

* eslint

* fix jest test

* use smaller chunks to avoid timeout in CI

* try without geojson test

* try small geojson file in CI

* point.json

* do not use copy to clipboard, does not work in CI

* eslint

* more linting

* add retry

* one more thing for functional tests

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2022-02-01 11:06:49 -07:00
Sandra G
6e7fcfe181
[Stack Monitoring] improve unit tests in fetch functions in alerts (#124033)
* add cluster_stats dataset to index pattern of query in fetchClusters

* update unit tests to test the params being called with

* add node_stats term filter

* update test for node_stats filter in missing monitoring fetch rule

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2022-02-01 12:54:19 -05:00
Stacey Gammon
3bbbbb9ed3
Don't include teams with no usage of due deprecations (#124268)
* Don't include teams that have 0 due deprecations

* Update api docs
2022-02-01 10:53:35 -07:00
Ashokaditya
641b5cf586
[Security Solution][Endpoint] Extend base schema to validate host isolation exception entry (#124238)
* extend base schema to validate host isolation exception entry

ref elastic/security-team/issues/2906

* clean up test scopes

review changes
2022-02-01 10:44:31 -07:00
Walter Rafelsberger
278a4993b2
[ML] Fix refresh when transform list is filtered. (#124267)
Fixes the issue where the transform list wouldn't be correctly refreshed when a filter is active via the query bar. The fix refactors application of the query so that filteredTransforms can no longer be a stale value. Also includes some cleanup regardings types and tests.
2022-02-01 18:41:27 +01:00
Matthew Kime
0f0a835bdb
[data views] add usage counters to data views REST api endpoints (#123107)
* add data views rest usage counters
2022-02-01 11:40:43 -06:00
Anton Dosov
14e0238781
Improve <CodeEditor/> font glitches fix (#124018) 2022-02-01 17:57:05 +01:00
Max Kovalev
ad7ad48fcf
#119356 - Remove Filter API from maps app (#124091)
Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2022-02-01 09:51:05 -07:00
Shahzad
1af949c0b1
Revert "Uptime Monitor Management - Adjust monitor details page href for browser monitors" (#124082) 2022-02-01 17:48:19 +01:00
Jean-Louis Leysens
5310c647aa
[Screenshotting/Reporting] Remove server side i18n in logs (#124003)
* removed unnecessary i18n

* .message instead of .toString in jest snapshots

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2022-02-01 17:37:07 +01:00
Scotty Bollinger
e7d9569440
[App Search] Fix bugs where non-owner/admins shown schema actions they can't access (#124178)
* Hide schema actions for non-admin/owners

* Disable schema table row actions for non-owner/admins

* Hide actionable callouts for non-owner/admins
2022-02-01 10:12:44 -06:00
Xavier Mouligneau
76fb361cfa
[RAM] Need to hide monitoring.* from our public API (#123875)
* remove internal field like monitoring on public API

* add/fix tests

* fix test

* update test for create/update route

* simplify api integration test + add three more to validate new functionality

* use internal api to test monitoring

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2022-02-01 09:09:14 -07:00
Shahzad
61133a545e
[Uptime Monitor management] Implement permissions for readonly users (#123934) 2022-02-01 17:07:06 +01:00
Giorgos Bamparopoulos
f9fa486a23
Add Tail-based sampling settings (#124025)
* Add Tail-based sampling settings

* Add platinum badge, interval validation and yaml editor for policies

* Add unit tests for isTailBasedSamplingValid function

* Hide Tail-based sampling settings if tail_sampling_enabled is not in the input vars

Co-authored-by: miriam.aparicio <miriam.aparicio@gmail.com>
Co-authored-by: Brandon Morelli <bmorelli25@gmail.com>
2022-02-01 16:00:52 +00:00
Thom Heymann
b94ef10c01
audit space deletion (#124145)
* Add audit logging to space deletion

* Fix outcome

* Delete all non-global saved objects

* Added suggestions from code review

* Fix tests

* Fix wording

* Fix alert type errors

* updated snapshot

* update mocks

* Added suggestions from code review

* fix type error
2022-02-01 10:57:20 -05:00
Dmitrii Shevchenko
5b4be373e0
Update in-memory rules table implementaion feature switch logic (#124043) 2022-02-01 16:02:15 +01:00
Clint Andrew Hall
dd13c8e815
[cloud] Add Chat to File Upload (#124172) 2022-02-01 08:41:05 -06:00
Julia Bardi
c463c1ace9
fix fleet server host placeholder (#124225) 2022-02-01 07:37:02 -07:00
Nathan Reese
b6a0a23747
[Maps] drawing layer documentation (#123373)
* [Maps] drawing layer documentation

* fix formatting

* more formating fixes

* text changes

* Update docs/maps/import-geospatial-data.asciidoc

Co-authored-by: gchaps <33642766+gchaps@users.noreply.github.com>

* Update docs/maps/import-geospatial-data.asciidoc

Co-authored-by: gchaps <33642766+gchaps@users.noreply.github.com>

* Update docs/maps/import-geospatial-data.asciidoc

Co-authored-by: gchaps <33642766+gchaps@users.noreply.github.com>

* Update docs/maps/import-geospatial-data.asciidoc

Co-authored-by: gchaps <33642766+gchaps@users.noreply.github.com>

* Update docs/maps/import-geospatial-data.asciidoc

Co-authored-by: gchaps <33642766+gchaps@users.noreply.github.com>

* Update docs/maps/import-geospatial-data.asciidoc

Co-authored-by: gchaps <33642766+gchaps@users.noreply.github.com>

* review feedback

* Update docs/maps/import-geospatial-data.asciidoc

Co-authored-by: gchaps <33642766+gchaps@users.noreply.github.com>

* fix formatting of nested bullet

Co-authored-by: gchaps <33642766+gchaps@users.noreply.github.com>
Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2022-02-01 07:07:49 -07:00
Andrew Tate
62c76b9700
[Lens] use data plugin migrations for search sources in legacy visualizations (#123005) 2022-02-01 08:01:41 -06:00
Tiago Costa
021285e4b3
skip flaky suite (#114215) 2022-02-01 13:50:41 +00:00
Pablo Machado
d862d9bf8f
Add host risk tab to Hosts page (#122980)
* Add host risk tab to Hosts page

Co-authored-by: Steph Milovic <stephanie.milovic@elastic.co>
Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2022-02-01 14:47:38 +01:00