Commit graph

61324 commits

Author SHA1 Message Date
Christiane (Tina) Heiligers
41f7e633a9
[http] Adds route config option access flag to indicate if an API is public or internal (#152404) 2023-03-02 08:14:59 -07:00
Maja Grubic
0c5fb37670
[Graph] Replace SavedObjectsFinder component (#152432)
## Summary

This PR replaces the `SavedObjectsFinder` component from `saved_objects`
plugin with the one in `saved_objects_finder` plugin.


### Checklist

Delete any items that are not applicable to this PR.

- [X] Any text added follows [EUI's writing
guidelines](https://elastic.github.io/eui/#/guidelines/writing), uses
sentence case text and includes [i18n
support](https://github.com/elastic/kibana/blob/main/packages/kbn-i18n/README.md)
~- [ ]
[Documentation](https://www.elastic.co/guide/en/kibana/master/development-documentation.html)
was added for features that require explanation or tutorials~
- [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
~- [ ] Any UI touched in this PR is usable by keyboard only (learn more
about [keyboard
accessibility](https://webaim.org/techniques/keyboard/))~
~- [ ] Any UI touched in this PR does not create any new axe failures
(run axe in browser:
[FF](https://addons.mozilla.org/en-US/firefox/addon/axe-devtools/),
[Chrome](https://chrome.google.com/webstore/detail/axe-web-accessibility-tes/lhdoppojpmngadmnindnejefpokejbdd?hl=en-US))~
~- [ ] If a plugin configuration key changed, check if it needs to be
allowlisted in the cloud and added to the [docker
list](https://github.com/elastic/kibana/blob/main/src/dev/build/tasks/os_packages/docker_generator/resources/base/bin/kibana-docker)~
~- [ ] This renders correctly on smaller devices using a responsive
layout. (You can test this [in your
browser](https://www.browserstack.com/guide/responsive-testing-on-local-server))~
- [X] This was checked for [cross-browser
compatibility](https://www.elastic.co/support/matrix#matrix_browsers)


### For maintainers

- [ ] This was checked for breaking API changes and was [labeled
appropriately](https://www.elastic.co/guide/en/kibana/master/contributing.html#kibana-release-notes-process)

---------

Co-authored-by: kibanamachine <42973632+kibanamachine@users.noreply.github.com>
2023-03-02 16:12:32 +01:00
James Gowdy
446f04d7b2
[ML] Fixing single to multi metric wizard redirect (#152547)
Typo in redirect path introduced in [this
PR](https://github.com/elastic/kibana/pull/149590)
2023-03-02 15:10:46 +00:00
renovate[bot]
daaa7ea1ea
Update dependency terser to ^5.16.5 (main) (#152573)
[![Mend
Renovate](https://app.renovatebot.com/images/banner.svg)](https://renovatebot.com)

This PR contains the following updates:

| Package | Change | Age | Adoption | Passing | Confidence |
|---|---|---|---|---|---|
| [terser](https://terser.org)
([source](https://togithub.com/terser/terser)) | [`^5.16.4` ->
`^5.16.5`](https://renovatebot.com/diffs/npm/terser/5.16.5/5.16.5) |
[![age](https://badges.renovateapi.com/packages/npm/terser/5.16.5/age-slim)](https://docs.renovatebot.com/merge-confidence/)
|
[![adoption](https://badges.renovateapi.com/packages/npm/terser/5.16.5/adoption-slim)](https://docs.renovatebot.com/merge-confidence/)
|
[![passing](https://badges.renovateapi.com/packages/npm/terser/5.16.5/compatibility-slim/5.16.5)](https://docs.renovatebot.com/merge-confidence/)
|
[![confidence](https://badges.renovateapi.com/packages/npm/terser/5.16.5/confidence-slim/5.16.5)](https://docs.renovatebot.com/merge-confidence/)
|

---

### Configuration

📅 **Schedule**: Branch creation - At any time (no schedule defined),
Automerge - At any time (no schedule defined).

🚦 **Automerge**: Disabled by config. Please merge this manually once you
are satisfied.

♻ **Rebasing**: Whenever PR becomes conflicted, or you tick the
rebase/retry checkbox.

🔕 **Ignore**: Close this PR and you won't be reminded about this update
again.

---

- [ ] <!-- rebase-check -->If you want to rebase/retry this PR, check
this box

---

This PR has been generated by [Mend
Renovate](https://www.mend.io/free-developer-tools/renovate/). View
repository job log
[here](https://app.renovatebot.com/dashboard#github/elastic/kibana).

<!--renovate-debug:eyJjcmVhdGVkSW5WZXIiOiIzNC4xNTMuMiIsInVwZGF0ZWRJblZlciI6IjM0LjE1My4yIn0=-->

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2023-03-02 07:49:56 -07:00
Oliver Gupte
35008c955e
[APM] Adds service map dsl to synthtrace (#152526)
Adds `serviceMap` helper to generate transaction and spans in synthtrace
by defining a set of traces from which a service map can be rendered.
This can be considered a follow-up to
https://github.com/elastic/kibana/pull/149900 where synthtrace was used
to generate service maps for api integration tests.

---------

Co-authored-by: kibanamachine <42973632+kibanamachine@users.noreply.github.com>
2023-03-02 09:49:14 -05:00
Sander Philipse
5250d859f4
[Enterprise Search] Change Azure Cloud Storage to Azure Blob Storage (#152566)
## Summary

This fixes the name we'd used for our Azure connector: it's Azure Blob
Storage, not Azure Cloud Storage.
2023-03-02 07:48:24 -07:00
renovate[bot]
8fdcf09567
Update babel to ^7.21.2 (main) (#152569)
[![Mend
Renovate](https://app.renovatebot.com/images/banner.svg)](https://renovatebot.com)

This PR contains the following updates:

| Package | Change | Age | Adoption | Passing | Confidence |
|---|---|---|---|---|---|
| [@babel/parser](https://babel.dev/docs/en/next/babel-parser)
([source](https://togithub.com/babel/babel)) | [`^7.21.1` ->
`^7.21.2`](https://renovatebot.com/diffs/npm/@babel%2fparser/7.21.2/7.21.2)
|
[![age](https://badges.renovateapi.com/packages/npm/@babel%2fparser/7.21.2/age-slim)](https://docs.renovatebot.com/merge-confidence/)
|
[![adoption](https://badges.renovateapi.com/packages/npm/@babel%2fparser/7.21.2/adoption-slim)](https://docs.renovatebot.com/merge-confidence/)
|
[![passing](https://badges.renovateapi.com/packages/npm/@babel%2fparser/7.21.2/compatibility-slim/7.21.2)](https://docs.renovatebot.com/merge-confidence/)
|
[![confidence](https://badges.renovateapi.com/packages/npm/@babel%2fparser/7.21.2/confidence-slim/7.21.2)](https://docs.renovatebot.com/merge-confidence/)
|
| [@babel/traverse](https://babel.dev/docs/en/next/babel-traverse)
([source](https://togithub.com/babel/babel)) | [`^7.21.0` ->
`^7.21.2`](https://renovatebot.com/diffs/npm/@babel%2ftraverse/7.21.2/7.21.2)
|
[![age](https://badges.renovateapi.com/packages/npm/@babel%2ftraverse/7.21.2/age-slim)](https://docs.renovatebot.com/merge-confidence/)
|
[![adoption](https://badges.renovateapi.com/packages/npm/@babel%2ftraverse/7.21.2/adoption-slim)](https://docs.renovatebot.com/merge-confidence/)
|
[![passing](https://badges.renovateapi.com/packages/npm/@babel%2ftraverse/7.21.2/compatibility-slim/7.21.2)](https://docs.renovatebot.com/merge-confidence/)
|
[![confidence](https://badges.renovateapi.com/packages/npm/@babel%2ftraverse/7.21.2/confidence-slim/7.21.2)](https://docs.renovatebot.com/merge-confidence/)
|
| [@babel/types](https://babel.dev/docs/en/next/babel-types)
([source](https://togithub.com/babel/babel)) | [`^7.21.0` ->
`^7.21.2`](https://renovatebot.com/diffs/npm/@babel%2ftypes/7.21.2/7.21.2)
|
[![age](https://badges.renovateapi.com/packages/npm/@babel%2ftypes/7.21.2/age-slim)](https://docs.renovatebot.com/merge-confidence/)
|
[![adoption](https://badges.renovateapi.com/packages/npm/@babel%2ftypes/7.21.2/adoption-slim)](https://docs.renovatebot.com/merge-confidence/)
|
[![passing](https://badges.renovateapi.com/packages/npm/@babel%2ftypes/7.21.2/compatibility-slim/7.21.2)](https://docs.renovatebot.com/merge-confidence/)
|
[![confidence](https://badges.renovateapi.com/packages/npm/@babel%2ftypes/7.21.2/confidence-slim/7.21.2)](https://docs.renovatebot.com/merge-confidence/)
|

---

### Configuration

📅 **Schedule**: Branch creation - At any time (no schedule defined),
Automerge - At any time (no schedule defined).

🚦 **Automerge**: Disabled by config. Please merge this manually once you
are satisfied.

♻ **Rebasing**: Whenever PR becomes conflicted, or you tick the
rebase/retry checkbox.

🔕 **Ignore**: Close this PR and you won't be reminded about these
updates again.

---

- [ ] <!-- rebase-check -->If you want to rebase/retry this PR, check
this box

---

This PR has been generated by [Mend
Renovate](https://www.mend.io/free-developer-tools/renovate/). View
repository job log
[here](https://app.renovatebot.com/dashboard#github/elastic/kibana).

<!--renovate-debug:eyJjcmVhdGVkSW5WZXIiOiIzNC4xNTMuMiIsInVwZGF0ZWRJblZlciI6IjM0LjE1My4yIn0=-->

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2023-03-02 07:45:27 -07:00
Cleydyr Bezerra de Albuquerque
f22b297bd6
add loading state to delete data streams modal (#152444)
## Summary

Add a loading state to the `DeleteDataStreamConfirmationModal` component
to inform users that the action is being performed.

When running the linter, it changed the file formatting completely. Let
me know if I should bypass the lint hook and send the PR again.

Fixes #152439
2023-03-02 14:55:38 +01:00
renovate[bot]
dc1717d53c
Update dependency react-hook-form to ^7.43.2 (main) (#152420) 2023-03-02 14:38:20 +01:00
David Sánchez
e2f0f59993
[Security Solution][Endpoint] Hide policy link from artifacts flyout when no policy management privileges (#152330)
## Summary

It hides the policy details link from artifacts form flyout when user
does not have policy management privileges.


### For maintainers

- [ ] This was checked for breaking API changes and was [labeled
appropriately](https://www.elastic.co/guide/en/kibana/master/contributing.html#kibana-release-notes-process)

---------

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2023-03-02 14:34:39 +01:00
Kerry Gallagher
e772fa18c1
[Logs UI] Support inline Log Views in routes (#151760)
## Summary

Closes https://github.com/elastic/kibana/issues/151489

This is the server side portion of support for transient / inline Log
Views. Alerting and ML based functionality is scoped to the persisted
type only, as we won't be supporting inline Log Views in those contexts.

In terms of UI, changes have been made as close to the edge / boundary
to the server (e.g. where we actually make network requests) as
possible. This is because the bulk of the UI changes will come in
https://github.com/elastic/kibana/issues/142840.

## Testing

This is predominantly a type-driven refactoring (the best kind), so we
should be relatively safe here (especially since inline views aren't in
the UI yet). But, a quick test of each page and a high level functional
test would still be good.
2023-03-02 13:04:51 +00:00
Alexander Wert
bdb4f87275
Clean up and align central config for APM Agents (#150414)
Clean up and align central config for APM Agents

---------

Co-authored-by: kibanamachine <42973632+kibanamachine@users.noreply.github.com>
2023-03-02 13:47:14 +01:00
James Gowdy
47ac4c7a4b
[ML] Fixing lens integration for ad hoc data views (#152487)
Fixes https://github.com/elastic/kibana/issues/152384

The `isCompatibleVisualizationType` function will now return `false` no
layers contain data views.
Also improves the incompatible reason to be `Cannot find a date field.`
if the layer dimension does not contain a `operation` object, rather
than `Cannot read properties of undefined (reading 'dataType')`

Also removes an unused aria label which causes a browser console error.
2023-03-02 12:44:36 +00:00
Jonathan Buttner
7d81cf290f
[Cases] Integrating file service and registering file kinds (#152031)
This PR registers three file kinds for cases. One for each instance of
cases (stack, observability, and security). Each solution needs separate
http tags for the routes that are generated by the file service to
implement RBAC.

I refactored the logic to remove some duplication across the three
plugins since we're essentially registering the same http tags with
slightly different names.

This PR shouldn't affect any of the current functionality.

Notable changes:
- I split up the constants.ts file, really the only change is adding the
file kinds logic to generate the http tags the rest is copy/paste
- Refactored the logic to generate the `api` http tags for each plugin
- Registered the three file kinds

Issues: https://github.com/elastic/kibana/issues/151780
https://github.com/elastic/kibana/issues/151933

---------

Co-authored-by: kibanamachine <42973632+kibanamachine@users.noreply.github.com>
2023-03-02 07:35:03 -05:00
James Gowdy
54b2a4affa
[ML] Fixing wizard input vertical alignment (#152469)
Fixes. https://github.com/elastic/kibana/issues/152465

Some description components wrap the children in a `EuiFormRow`, this
adds a slight height difference to the inner inputs.
This PR adds `EuiFormRow` wrappers to all description components.

Before: 


![](https://user-images.githubusercontent.com/7405507/222182204-50509b4c-54ad-4947-b73c-f2d6a1fc0818.png)


After:


![image](https://user-images.githubusercontent.com/22172091/222194929-43231c45-7213-483a-9031-221b90f8e63b.png)
2023-03-02 11:57:23 +00:00
Walter Rafelsberger
1b9b77fd12
[ML] Fix regression to skip considering future data on use full data button in ML plugin. (#152435)
Fixes a regression where the "Use full data" button in the ML plugin
would no longer avoid considering future data.
2023-03-02 11:47:24 +01:00
James Gowdy
0d04fd7a62
[ML] Removing scss override files for anomaly detection jobs (#152240)
Removes the scss files which were being used to override various eui
styles or add styles to custom components.
Affect the anomaly detection jobs list and wizards.

This is not an in-depth refactor of our styles, and so some overrides
are still necessary in order to retain an identical UI, in these cases
the style overrides have been moved to inline emotion `css`.

Part of https://github.com/elastic/kibana/issues/140695
2023-03-02 09:46:18 +00:00
Jill Guyonnet
6dcdabce99
Add details to Fleet README (#152348)
Update the Fleet plugin README
2023-03-02 09:22:45 +01:00
Coen Warmer
cb96fea0d9
[SLO] Add Auto-Refresh button on SLO List (#152460) 2023-03-02 01:04:36 -07:00
Walter Rafelsberger
b3c3461fe1
[ML] removed orphaned code (#152196)
Removes client side `getTimeFieldRange()` code within the data
visualizer plugin. The code has been moved to the date picker package in
`x-pack/packages/ml/date_picker/src/services/time_field_range.ts`and the
duplicate is no longer necessary.
2023-03-02 08:37:08 +01:00
Kibana Machine
babe0339e3
[api-docs] 2023-03-02 Daily api_docs build (#152531)
Generated by
https://buildkite.com/elastic/kibana-api-docs-daily/builds/264
2023-03-02 01:00:08 -05:00
Jonathan Budzenski
b8bae97714 skip flaky suite (#148349) 2023-03-01 16:34:57 -06:00
Yara Tercero
957c0d43c2
[Security Solution][Exceptions] - Fix bulk rule duplicate, exception modal rule count (#152403)
## Summary

When user selects to bulk duplicate, a modal pops up asking them how
they want to proceed with any rule exceptions. The rule count in this
modal is wrong when all rules are selected. Updated so that now the
count in the modal matches the actual selected count.
2023-03-01 13:34:52 -08:00
Yara Tercero
df2869a5fe
[Security Solution][Exceptions] - Fix export toast message (#152301)
## Summary

Addresses https://github.com/elastic/kibana/issues/145680
2023-03-01 13:33:50 -08:00
Maja Grubic
d4abfa28a8
[Saved Object Finder] Move to the component in saved_objects_finder plugin (#151764)
## Summary

This PR replaces the `SavedObjectsFinder` component from `saved_objects`
plugin with the one in `saved_objects_finder` plugin. Code changes are
pretty straightforward; most of the changes are around modifying the
functional tests to work with the selectors from the new component.

### Checklist

Delete any items that are not applicable to this PR.

~- [ ] Any text added follows [EUI's writing
guidelines](https://elastic.github.io/eui/#/guidelines/writing), uses
sentence case text and includes [i18n
support](https://github.com/elastic/kibana/blob/main/packages/kbn-i18n/README.md)~
~- [ ]
[Documentation](https://www.elastic.co/guide/en/kibana/master/development-documentation.html)
was added for features that require explanation or tutorials~
- [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
~- [ ] Any UI touched in this PR is usable by keyboard only (learn more
about [keyboard
accessibility](https://webaim.org/techniques/keyboard/))~
~- [ ] Any UI touched in this PR does not create any new axe failures
(run axe in browser:
[FF](https://addons.mozilla.org/en-US/firefox/addon/axe-devtools/),
[Chrome](https://chrome.google.com/webstore/detail/axe-web-accessibility-tes/lhdoppojpmngadmnindnejefpokejbdd?hl=en-US))~
~- [ ] If a plugin configuration key changed, check if it needs to be
allowlisted in the cloud and added to the [docker
list](https://github.com/elastic/kibana/blob/main/src/dev/build/tasks/os_packages/docker_generator/resources/base/bin/kibana-docker)~
~- [ ] This renders correctly on smaller devices using a responsive
layout. (You can test this [in your
browser](https://www.browserstack.com/guide/responsive-testing-on-local-server))~
~- [ ] This was checked for [cross-browser
compatibility](https://www.elastic.co/support/matrix#matrix_browsers)~!



### For maintainers

- [ ] This was checked for breaking API changes and was [labeled
appropriately](https://www.elastic.co/guide/en/kibana/master/contributing.html#kibana-release-notes-process)

---------

Co-authored-by: kibanamachine <42973632+kibanamachine@users.noreply.github.com>
2023-03-01 22:33:18 +01:00
Xavier Mouligneau
4eefb9ec30
[RAM] Uptime allow rac api in read (#152475)
## Summary

Allow `rac` api in read for uptime privileges and to avoid that
<img width="1341" alt="image"
src="https://user-images.githubusercontent.com/189600/218848172-251d4525-4324-4c6d-8a48-2d3a068387dc.png">
2023-03-01 13:35:29 -07:00
Nathan Reese
72868e2ae1
[canvas] unskip Jest Tests.x-pack/plugins/canvas/shareable_runtime/components (#152401)
Fixes https://github.com/elastic/kibana/issues/95899

unskips test. There is no flaky test runner for jest.
2023-03-01 13:34:23 -07:00
Kaarina Tungseth
3de0009dd1
[DOCS] Adds Visualizations features for 8.7 (#151045)
## Summary

Adds the 8.7 docs for:

- #149388
- #148829
- Closes #144590
- Replaces #144551
2023-03-01 14:28:19 -06:00
Alexi Doak
5187a6f9aa
[ResponseOps] Update flapping logic order to determine whether an alert is flapping after it's returned for notification (#151148)
Resolves https://github.com/elastic/kibana/issues/151135

## Summary

Moved the logic around to check flapping after an alert is already
returned for notification. I also updated the event log test cases to
match examples in the rfc.


### 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

### To Verify
The new test cases capture this example but if you want to test it
locally:
- Create a connector and make sure to save the connector id
```
curl -X POST -u {username}:{password} "http://localhost:5601/api/actions/connector" -H 'kbn-xsrf: true' -H 'Content-Type: application/json' -d'
{
  "connector_type_id": ".server-log",
  "name": "server log",
  "config": {},
  "secrets": {}
}'
```
- Create the rule and let it run
```
curl -X POST -u {username}:{password} "http://localhost:5601/api/alerting/rule/" -H 'kbn-xsrf: true' -H 'Content-Type: application/json' -d'
{
  "rule_type_id": "example.pattern",
  "name": "pattern",
  "schedule": {
    "interval": "5s"
  },
  "actions": [
    { "group": "default", "id": {connector id}, "params": { "message": "{{alert.id}} active on run {{context.runs}} step {{context.patternIndex}} flapping {{alert.flapping}}"}},
    { "group": "recovered", "id": {connector id}, "params": { "message": "{{alert.id}} recovered on run flapping {{alert.flapping}}"}}
  ],
  "consumer": "alerts",
  "tags": [],
  "notify_when": "onActionGroupChange",
  "params": {
    "patterns": {
      "instA": " a - - a - a - a - a - - - - - - - - "
    }
  }
}'

```
- Verify that you see the following, we want to make sure that aren't
missing any notifications

![image](https://user-images.githubusercontent.com/109488926/221615405-48061d10-4b80-4b98-812a-6951da4178da.png)
2023-03-01 15:19:38 -05:00
Kibana Machine
647126aad4 skip failing test suite (#152476) 2023-03-01 14:17:18 -05:00
Kevin Qualters
a9313eefe0
[Security Solution] Analyzer with sysmon via filebeat (#152418)
## Summary

Related issue: https://github.com/elastic/kibana/issues/148043

With the switch from beats to elastic agent, analyzer broke for sysmon
data ingested via elastic agent, as some fields the code expects to
exist became slightly different, this pr updates the frontend and server
side api of analyzer to work with both old winlogbeat style sysmom
ingestion and new elastic agent + filebeat shipping sysmon generated
data.



https://user-images.githubusercontent.com/56408403/222063497-64b2853e-5d09-4178-b336-1007886c396b.mov

Video with 8.6 agent/fleet + latest main kibana/es + windows 10 w/sysmon
vm

### 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
2023-03-01 13:07:05 -05:00
Ashokaditya
242d7bcc0c
[Security Solution][Endpoint][Response Actions] Show execute action output on response actions history (#151344)
## Summary

Shows execute action output in actions log details tray
![Screenshot 2023-02-21 at 19 26
55](https://user-images.githubusercontent.com/1849116/220428875-9a7dafd0-a594-4320-8a42-0d20b6f73550.png)

**flyout log**

![execute-file-actions-log](https://user-images.githubusercontent.com/1849116/221645720-544a2487-2c6d-427f-a732-9ffe9d13b8a0.gif)

**history page**

![execute-file-actions-history](https://user-images.githubusercontent.com/1849116/221645890-329da851-5a40-4008-88ee-b40a07f00c21.gif)

### Checklist

Delete any items that are not applicable to this PR.

- [x] Any text added follows [EUI's writing
guidelines](https://elastic.github.io/eui/#/guidelines/writing), uses
sentence case text and includes [i18n
support](https://github.com/elastic/kibana/blob/main/packages/kbn-i18n/README.md)
- [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
- [x] Any UI touched in this PR does not create any new axe failures
(run axe in browser:
[FF](https://addons.mozilla.org/en-US/firefox/addon/axe-devtools/),
[Chrome](https://chrome.google.com/webstore/detail/axe-web-accessibility-tes/lhdoppojpmngadmnindnejefpokejbdd?hl=en-US))
- [x] This renders correctly on smaller devices using a responsive
layout. (You can test this [in your
browser](https://www.browserstack.com/guide/responsive-testing-on-local-server))
- [x] This was checked for [cross-browser
compatibility](https://www.elastic.co/support/matrix#matrix_browsers)

---------

Co-authored-by: kibanamachine <42973632+kibanamachine@users.noreply.github.com>
2023-03-01 10:52:02 -07:00
Kevin Qualters
4e424050bf
[Security Solution] Make timeline confirm prompt space aware (#152457)
## Summary

The timeline save prompt's use of application.navigateToUrl was not
taking space into account, this pr updates it so that it does.


![timeline-block-space-aware](https://user-images.githubusercontent.com/56408403/222162486-b936ccd8-af62-46da-a4b2-a6c0825a9344.gif)
2023-03-01 10:06:01 -07:00
Aleh Zasypkin
e45586c576
Upgrade undici dependency (5.14.05.20.0). (#152458) 2023-03-01 17:53:23 +01:00
Khristinin Nikita
b956d91b10
Threat match tests for term query (#152071)
Added several tests for terms query rules, which tests that match and
term query rules are the same.

---------

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2023-03-01 17:42:16 +01:00
Coen Warmer
06c70d96c6
[SLO] Alternative split to remote indices (#152463)
## Summary

This updates the utility to process a string of one or more indices. It
assumed when one part of the string passed contained `remote:`, all
remaining indices would also have to contain `remote`, but this isn't
necessary.
2023-03-01 08:56:23 -07:00
Jason Rhodes
5e397c4b60
Makes spaces optional in observability plugin (#151147)
## Summary

This PR makes spaces optional in the "observability" plugin as requested
in https://github.com/elastic/kibana/issues/149687

To test this, use the following setting in your kibana.yml config file:

```yaml
xpack.spaces.enabled: false
```

When you log in, there will be no spaces choice. 

<img width="2543" alt="Screenshot 2023-02-21 at 11 53 18 AM"
src="https://user-images.githubusercontent.com/159370/220409537-43a216d5-81c9-4b29-97d8-47705bdacd06.png">
2023-03-01 08:54:41 -07:00
Shahzad
d051183ade
[Synthetics] Error timeline date range (#151965) 2023-03-01 16:46:25 +01:00
Jean-Louis Leysens
570eb381c5
[Versioned APIs] Versioned interfaces dev docs guide (#150705)
## Summary

Adds a dev docs guide for the core-approved versioning strategy. This
strategy is subject to some iteration but is based on the work we did
for the Saved Objects Management plugin in
https://github.com/elastic/kibana/pull/149495.

Closes https://github.com/elastic/kibana/issues/149929

## How to test

1. Run `./scripts/dev_docs.sh`
2. Navigate to "Versioning interfaces" in the side nav menu

---------

Co-authored-by: Luke Elmers <lukeelmers@gmail.com>
2023-03-01 16:45:43 +01:00
Xavier Mouligneau
5612da95fe
[RAM] Fix flaky test on rule find api integration (#152455)
## Summary

Fix https://github.com/elastic/kibana/issues/148660


### 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
2023-03-01 10:29:17 -05:00
Nathan Reese
0c2e2c9b6f
[maps] fix layers are not displayed in offline environment and map.includeElasticMapsService not set to false (#152396)
Fixes https://github.com/elastic/kibana/issues/152389

PR adds check to ensure client has access to EMS before using EMS fonts.
If the client does not have access to EMS fonts then a warning is logged
and map falls back to open sans fonts served from Kibana server.
2023-03-01 08:00:59 -07:00
Justin Kambic
f23346e4a6
[Synthetics] Hide location and enabled toggle on MonitorDetailsPanel for test run details (#152373)
Co-authored-by: Shahzad <shahzad31comp@gmail.com>
2023-03-01 07:38:42 -07:00
Carlos Crespo
f6a0b886b1
[Infrastructure UI] Filter out null bucket items from average calculation (#152333)
## Summary

Closes [#152328](https://github.com/elastic/kibana/issues/152328)

This PR fixes the average calculation in the Snapshot API, filtering out
buckets with null values from it, which are more likely to appear with
queries that use small data ranges.

The results after this change are equal to what Elasticsearch would
calculate in the avg aggregation


### How to test 

- Make sure you have metrics data (either through enabling the system
module in metricbeat or connecting your local kibana to an oblt-cli
cluster)
- Navigate to `Infrastructure` > `Hosts`
- Filter the results to see a single host
- Change the data range filter and compare the KPIs against the table.
- Validate other pages that use the Snapshot API (Inventory UI and
Metrics UI to see if the results there are still correct

---------

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2023-03-01 15:31:35 +01:00
Jean-Louis Leysens
a5b2db4604
[Telemetry] Prepare for versioned HTTP APIs (#152111)
## Summary

In this PR we ensure that we are adhering to the goals of versioned HTTP
APIs to:

1. Not send SO attributes directly over the wire
2. Have a separate set of interfaces that can be referenced by public
and maintained by server
2023-03-01 06:46:35 -07:00
Kyle Pollich
a0392f8fc0
[Fleet] Add OpenAPI tags to help group Fleet API requests (#152386)
## Summary

Ref https://github.com/elastic/observability-docs/pull/2715

Adds relevant `tags` to all operations in order to help group them more
effectively in the generated docs.

---------

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2023-03-01 07:49:41 -05:00
Vitalii Dmyterko
88be889e1c
[Security Solution][Alerts] fixes merge fields with source in Detection Engine on Alerts creation (#151004)
## Summary

- fixes https://github.com/elastic/kibana/issues/147389
- `mergeMissingFieldsWithSource` and `mergeAllFieldsWithSource` method
will not be merging anymore multi field values into source.

### 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


### For maintainers

- [ ] This was checked for breaking API changes and was [labeled
appropriately](https://www.elastic.co/guide/en/kibana/master/contributing.html#kibana-release-notes-process)

---------

Co-authored-by: Marshall Main <55718608+marshallmain@users.noreply.github.com>
2023-03-01 11:29:53 +00:00
Felix Stürmer
ad0ddd3d3c
[Logs UI] Correctly round and update the log stream end timestamps (#152387)
Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2023-03-01 12:25:56 +01:00
Vitalii Dmyterko
c08cdc8db6
[Security Solution][Alerts] addresses IM performance PR feedback (#150677)
## Summary

- addresses feedback from https://github.com/elastic/kibana/pull/149208
- typings for `getSignalsQueryMapFromThreatIndex`
- fixes interface name for `getSignalsQueryMapFromThreatIndex`
- small code refactorings

More details in comments of the initial PR

---------

Co-authored-by: kibanamachine <42973632+kibanamachine@users.noreply.github.com>
2023-03-01 09:46:23 +00:00
Gerard Soldevila
5dd8742d17
Allow for additive mappings update without creating a new version index (#149326)
Fixes [#147237](https://github.com/elastic/kibana/issues/147237)

Based on the same principle as
[#147371](https://github.com/elastic/kibana/pull/147371), the goal of
this PR is to **avoid reindexing if possible**.
This time, the idea is to check whether the new mappings are still
compatible with the ones stored in ES.
To to so, we attempt to update the mappings in place in the existing
index, introducing a new `CHECK_COMPATIBLE_MAPPINGS` step:
* If the update operation fails, we assume the mappings are NOT
compatible, and we continue with the normal reindexing flow.
* If the update operation succeeds, we assume the mappings ARE
compatible, and we skip reindexing, just like
[#147371](https://github.com/elastic/kibana/pull/147371) does.


![image](https://user-images.githubusercontent.com/25349407/216979882-9fe9f034-b521-4171-b85d-50be6a13e179.png)

---------

Co-authored-by: kibanamachine <42973632+kibanamachine@users.noreply.github.com>
2023-03-01 10:26:04 +01:00
Maxim Palenov
5514f93fc8
[Security Solution] Re-enable a skipped url state e2e test (#152075)
**Relates to:** https://github.com/elastic/kibana/pull/151244

## Summary

Re-enable `Do not clears kql when navigating to a new page` url state e2e test.

## Details

Investigation has shown that https://github.com/elastic/kibana/pull/150787 lead to breaking this test. While it's not clear from the EUI upgrade PR itself the cause lays under the hood. It fixes retrieving the state (current KQL) from the url. As the test visits the page with the saved KQL which is properly restored the next `kqlSearch()` command types the same KQL in the query bar leading to invalid KQL and broken test eventually. For some reason the KQL wasn't able to restore on this page while it's not an issue anymore I removed `kqlSearch()` command and fixed the test this way.
2023-03-01 10:04:31 +01:00