Commit graph

52768 commits

Author SHA1 Message Date
Spencer
eda92d49e0
[precommit-hook] autofix precommit check failures on CI (#132141)
Co-authored-by: kibanamachine <42973632+kibanamachine@users.noreply.github.com>
2022-05-12 12:01:28 -05:00
Ying Mao
b932dcab0b
[Connectors] ConnectorTokenClient improvements (#131955)
* Throwing error if service now access token is null. Properly returning rejected promise

* Setting time to calculate token expiration to before the token is created

* Returning null access token if stored access token has invalid expiresAt date

* Adding response interceptor to delete connector token if using access token returns 4xx error

* Adding test for tokenRequestDate

* Handling 4xx errors in the response

* Fixing unit tests

* Fixing types
2022-05-12 12:29:06 -04:00
gchaps
e9b1d3834a
[DOCS] Fixes typo in Console doc (#132078)
* [DOCS] Fixes typo in Console doc

This PR fixes a typo in the Console doc.

* Update docs/dev-tools/console/console.asciidoc

* Update docs/dev-tools/console/console.asciidoc
2022-05-12 09:23:30 -07:00
Rickyanto Ang
e51e4579c4
[8.3] [Session View]Metadata Tab (#131465)
* Metadata tab + new fields, edited Host tab jest, need to add more unit test and delete unused fields

* added accordion for Host, modified new fields

* [CI] Auto-commit changed files from 'node scripts/eslint --no-cache --fix'

* added more unit test for helper function, removed dropped fields from ECS spreadsheet, PR comments

* PR Comments, Fixing Checks issue, more Jest

* eslint

* changed the logic for checking which accordion not to render

* PR comments

* PR Comments, localized new accordion

* renaming file and component name from Host to Metadata

* merge main + PR comments

Co-authored-by: kibanamachine <42973632+kibanamachine@users.noreply.github.com>
2022-05-12 09:23:01 -07:00
Madison Caldwell
cddd41dfae
[Security Solution] Better threshold rule error checking (#131088)
* Better threshold rule error checking

* Add more type dependent checks

* create/import/update/add-prepackaged

* Fix tests

* whoops

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2022-05-12 08:37:28 -07:00
David Sánchez
0b162b6881
[Security Solution][Endpoint] Adds generic functional test for artifac list pages (#131532)
* Adds generic functional test for artifac list pages

* Unify page objects to be generic. Moved test data into a mock file

* Fix wrong blocklist js comments

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2022-05-12 08:28:31 -07:00
Jonathan Budzenski
179cf309ec
[artifacts testing] Re-enable FTR smoke tests (#132076)
* [artifacts testing] Re-enable FTR smoke tests

* --quiet

* docker disable chromium sandbox

* newline
2022-05-12 08:03:39 -07:00
Kevin Qualters
56dedf3856
Make some data fetching hooks state updates atomic (#132069) 2022-05-12 10:59:44 -04:00
Lisa Cawley
23bde01d17
Minor UI text edits in Cases (#132074) 2022-05-12 07:39:51 -07:00
Stratoula Kalafateli
5603c94568
Controls fixes the flakiness (#132107) 2022-05-12 17:36:55 +03:00
Candace Park
8808a1c8f1
[Security Solution][Admin][Policy] Fixes a bug where the last side nav item is hidden by the policy details sticky save bar (#131646) 2022-05-12 10:22:24 -04:00
Nathan Reese
5909f5400c
[Maps] fix Map panels should not show the user controls in a dashboard report (#131970)
* [Maps] fix Map panels should not show the user controls in a dashboard report

* fix jest tests

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2022-05-12 07:57:59 -06:00
mgiota
6871c65849
[Actionable Observability] Application usage for Alerts, Cases, Rules views (#132006)
* add application usage to observability

* wrap Alerts page in a TrackApplicationView component

* define alerting pages in a config file

* add UsageCollectionSetup contract

* pass useCollection in the renderApp

* fix failing tests

* application usage for cases and rules
2022-05-12 15:48:16 +02:00
Julia Rechkunova
32980bef70
[Discover][Alerting] Prevent rule flyout from being open simultaneously with other popovers like search suggestions (#132108)
* [Discover][Alerting] Prevent rule flyout from being open simultaneously with other popovers like search suggestions

* [Discover][Alerting] Update tests

* [Discover][Alerting] Update tests

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2022-05-12 15:41:51 +02:00
spalger
2c634d2a21 skip flaky jest suite (#131346) 2022-05-12 08:35:02 -05:00
Milton Hultgren
5398394f24
[Stack Monitoring] Prevent exceptions in rule when no data present (#131332)
* [Stack Monitoring] Prevent exceptions in rule when no data present (#120111)

* Remove optional chaining

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2022-05-12 15:31:21 +02:00
Sergey Kleyman
504b72245c
Fixed typo in Kibana's APM PHP Agent configuration page (#132122) 2022-05-12 16:30:46 +03:00
Kerry Gallagher
fece4c9ddb
[Stack Monitoring] Fix error handling on pipelines page (#132055)
* Fix error handling on pipelines page
2022-05-12 14:27:15 +01:00
Jeramy Soucy
f4eb311f6a
Resolves UI Breaks from Malformed Roles (#131915)
* Adds catch of exceptions from PrivilegeSerializer deserialize methods to role transform function.
Resolves 124808 where malformed Elasticsearch roles cause Kibana users and roles UIs to not display correctly.

* Adds logger to role transform functions

* File accidentally not saved prior to last commit
2022-05-12 15:26:41 +02:00
CohenIdo
a10d698743
[Cloud Posture] update CSP rules configuration template 2022-05-12 16:23:52 +03:00
Joe Reuter
6af6863cc4
unskip test (#132009)
Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2022-05-12 14:58:57 +02:00
Nathan Reese
c9372dc3a3
[maps] fix marker size scale issue for counts (#132057)
* [maps] fix marker size scale issue for counts

* fix test names

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2022-05-12 06:42:38 -06:00
Dominique Clarke
94b894a63f
[Synthetics] fix script_type for monitor management telemetry (#131855)
* synthetics - fix script_type for monitor management telemetry

* adjust tests

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2022-05-12 08:08:42 -04:00
Stratoula Kalafateli
b70b89994f
[Visualize] Fixes metric label font size (#132100) 2022-05-12 14:52:32 +03:00
Walter Rafelsberger
6df1b28a82
[ML] Explain log rate spikes: Plugin setup (#131317)
Sets up the boilerplate code for the aiops plugin and adds a demo page within the ML app to demonstrate single API request data streaming from Kibana server to UI client.
2022-05-12 13:36:53 +02:00
Joe Reuter
d6805f9a8a
fix time shift bug (#132000) 2022-05-12 13:02:05 +02:00
Larry Gregory
66332425ba
unskip flaky test (#132015) 2022-05-12 06:59:16 -04:00
Alexey Antonov
d46d101b64
TSVB] Chart is failing when the user tries to add a percentile_rank (#132105)
Closes: #131999
2022-05-12 13:56:15 +03:00
Jonathan Budzenski
b191f141f3
Upgrade axios dependency (0.21.10.27.2). (#111655)
Co-authored-by: Aleh Zasypkin <aleh.zasypkin@elastic.co>
2022-05-12 11:49:52 +02:00
Stratoula Kalafateli
155e5bf54e
[Unified search] Decrease plugin's size (#131784)
* [Unified search] Decrease plugin's size

* Load scss from a single file where possible

* Apply PR comment

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2022-05-12 12:16:52 +03:00
James Garside
d38e836ab3
Updated tutorial to use Filebeat and Datastreams rather than Logstash… (#132052)
* updated tutorial to use Filebeat and Datastreams rather than Logstash and a static index

* Fixed pipeline issue when inCongestion is null the pipeline fails. Now if null its set as false

* Fixed pipeline issue when inCongestion is null the pipeline fails. Now if null its set as false

* Corrected minor mistakes in docs

* Update docs/maps/asset-tracking-tutorial.asciidoc

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

* Update docs/maps/asset-tracking-tutorial.asciidoc

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

* Update docs/maps/asset-tracking-tutorial.asciidoc

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

* Update docs/maps/asset-tracking-tutorial.asciidoc

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

* Update docs/maps/asset-tracking-tutorial.asciidoc

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

* Update docs/maps/asset-tracking-tutorial.asciidoc

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

* Update docs/maps/asset-tracking-tutorial.asciidoc

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

* Update docs/maps/asset-tracking-tutorial.asciidoc

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

* Update docs/maps/asset-tracking-tutorial.asciidoc

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

* Update docs/maps/asset-tracking-tutorial.asciidoc

* Update docs/maps/asset-tracking-tutorial.asciidoc

* Update docs/maps/asset-tracking-tutorial.asciidoc

Co-authored-by: gchaps <33642766+gchaps@users.noreply.github.com>
2022-05-12 10:02:51 +01:00
Robert Oskamp
1c054a766c
[ML] Fix copy/paste error and typo in plugin readme (#132096)
This PR fixes a copy/paste error and a typo in the ML plugin readme file.
2022-05-12 11:01:16 +02:00
Esteban Beltran
ba96eef433
[Cases] Show a tooltip with all tags when tags are hovered in the cases list (#132023) 2022-05-12 01:16:44 -07:00
Julia Rechkunova
cb83c9af97
[Unified Search] Provide an option to hide specified filter actions from SearchBar filter panels (#132037)
* [Unified Search] Configurable filter menu options

* [Unified Search] Add tests for query menu

* [Unified Search] Add a story

* [Unified Search] Update comments
2022-05-12 09:29:46 +02:00
Jiawei Wu
8d1baec63f
[RAM] Shareable rule run history data grid component (#131821)
* Shareable rule event log

* Addressed comments

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2022-05-11 20:56:32 -07:00
Mashhur
716609ef9e
Add a note that if list pipelines exceeds 10k, Kibana faces performan… (#131992)
* Add a note that if list pipelines exceeds 10k, Kibana faces performance issue. #131992
2022-05-11 16:24:16 -07:00
Spencer
3670316789
[ci] bump kibana-buildkite-library (#132081) 2022-05-11 16:22:58 -07:00
Nathan Reese
72ec630f91
[maps] vector tile inspector (#131565)
* [maps] Vector tile inspector adapter

* empty prompt

* add layer select

* tile request view

* show gridTile es path and body

* show error message

* hits request

* tab with editor

* clean up

* open in console

* do not track same tile multiple times

* remove layer from vector tile inspector when layer is removed

* refactor tile request generation

* show path in inspector

* requests view callout

* remove duplicated server side code

* remove unused files

* fix map_actions test

* open requests view when getting requests from inspector

* only show view when adapter is present

* fix open in console link not matching tile request

* tslint

* fix search sessions functional test

* update trouble shooting docs

* use bold in docs

* fix tiles at zoom level 0

* revert changes to mb_map

* include path when copying to clipboard

* clear inspector when layer type changes

* tslint fix

* clean-up

* update callout copy

* empty prompt copy

* copy updates

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2022-05-11 15:04:33 -06:00
Alejandro Fernández Haro
03e1233408
[EBT] Elastic V3: fetch cannot be deconstructed (#132056) 2022-05-11 22:23:20 +02:00
Cauê Marcondes
15ca113c1b
[Fleet APM Integration] static Java agent version list becomes stale quickly (#131759)
* changing version field to text input

* disable save button

* fixing storybook

* adding doc links

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2022-05-11 15:52:01 -04:00
Michael Olorunnisola
c0e03c894b
[Security Solution][Investigations] - Add pagination to alert details table (#131358)
Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2022-05-11 15:48:46 -04:00
Steph Milovic
6fc82ba0bd
[Security Solution] Fix cloud logs exclusion (#130069) 2022-05-11 13:47:48 -06:00
PopoPilote90
02724011ee
[Fleet] Fixing wrong validation message displayed [Closes#131227] (#132029)
* [Fleet] Fixing wrong validation message displayed [Closes#131227]

* Condition added in function validateLogstashHosts in the try catch
* [Fleet]: Wrong validation message is displayed when host field is left empty while adding new output. #131227
Co-authored-by: Pernot Nicolas nicolasn.pernot1@gmail.com

* Fix lint error

Co-authored-by: Kyle Pollich <kyle.pollich@elastic.co>
2022-05-11 15:16:58 -04:00
Jonathan Budzenski
b16486a999
[artifacts] Test cloud context (#130394)
* [artifacts] Test cloud context

This artifact currently has no consumers, but in the near future the
release-manager will produce Cloud images using the context.  This
ensures builds are working before we publish artifacts.

* update permissions

* fix if statement

* DOCKER_CONTEXT -> KIBANA_DOCKER_CONTEXT
2022-05-11 12:03:40 -07:00
Nicolas Chaulet
3f6df1a46f
[Fleet] Allow to specify an upgrade window for rolling upgrade (#131964) 2022-05-11 14:31:55 -04:00
Dzmitry Lemechko
80427ea1ba
[scalability testing] extend FTR config with optional scalability configuration (#132047)
* [scalability testing] extend FTR config

* update schema with defaults for testData
2022-05-11 20:29:30 +02:00
Vitalii Dmyterko
e3c47ecc46
[RAM] Adds Bulk Edit API to rulesClient (#126904)
Addresses
- https://github.com/elastic/kibana/issues/124715

## Summary

- adds bulkEdit method to rulesClient
- adds multi_terms bucket aggregations to savedObjectClient
- adds createPointInTimeFinderAsInternalUser to encryptedSavedObjectClient
- adds alerting API for bulkEdit
```bash
curl --location --request POST 'http://localhost:5601/kbn/internal/alerting/rules/_bulk_edit' \
--header 'kbn-xsrf: reporting' \
--header 'Authorization: Basic ZWxhc3RpYzpjaGFuZ2VtZQ==' \
--header 'Content-Type: application/json' \
--data-raw '{
    "ids": ["4cb80374-b5c7-11ec-8f1e-adaa7d7d57e5"],
    "operations":  [{
        "operation": "add",
        "field": "tags",
        "value": ["foo"]
    }]
}'
```
### 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


## Release note

Adds new `bulkEdit` method to alerting rulesClient and internal _bulk_edit API, that allow bulk editing of rules.
2022-05-11 11:27:52 -07:00
James Gowdy
1dc6216053
[ML] Adding type for job summary state (#131643)
* [ML] Adding type for job summary state

* renaming type

* translations

* fixing jobState types in security

* fixing snapshots

* fixing test
2022-05-11 19:21:42 +01:00
Brian Seeders
c21c8f7006
[bazel] Use a GCS bucket for local dev remote bazel cache (#131866) 2022-05-11 14:21:23 -04:00
Steph Milovic
5f5a6cf50f
[Security Solution] Remove fields from sourcerer response (#130917) 2022-05-11 12:21:04 -06:00