Commit graph

63252 commits

Author SHA1 Message Date
Katerina Patticha
1f99a04134
[Observability] Add side navigation for serverless observability (#157360)
## Summary

The PR introduces the first iteration of the side navigation bar for
serverless observability. Part of
https://github.com/elastic/kibana/issues/153777

### Run locally

```
yarn serverless-oblt
```

#### Screenshots 


![image](b4a8a4d8-f18e-41e8-bf0e-798a75848885)



39ded143-0d4b-4ea6-9534-0ca87b80662d




### Fixes
- Fix rendering the icon for the nested navigation items  
-
24ee4dc616

### Notes

- There is an issue where the selected navigation item is not properly
highlighted and loses focus when the user clicks anywhere else on the
page. (atm out of the scope of the PR)
- The navigation tree is subject to change as there is an ongoing
discussion about the naming and order

---------

Co-authored-by: Søren Louv-Jansen <soren.louv@elastic.co>
Co-authored-by: kibanamachine <42973632+kibanamachine@users.noreply.github.com>
2023-05-12 20:14:48 +02:00
Shahzad
e6c91c9ae9
[Synthetics] Indicate synthetics as new app in nav (#157427) 2023-05-12 19:39:19 +02:00
Shahzad
210f921bf0
[Synthetics] Update recorder download link (#157519) 2023-05-12 19:38:02 +02:00
Tiago Costa
f0d3b1f51e
chore(NA): update obsolete jest snapshots after skipping (#157510) 2023-05-12 18:12:38 +01:00
Xavier Mouligneau
982cb49cb5
Revert "[RAM] [PERF] Remove endpoint browserFields" (#157441)
Reverts elastic/kibana#156869

We need to revert because after talking to @kobelb, we are introducing a
new bug where user always need to be a super user to access the fields
from the alert index since only only super user can access the kibana
index.

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2023-05-12 12:24:14 -04:00
Tiago Costa
41667399cf
skip flaky suite (#157510) 2023-05-12 17:00:39 +01:00
Tiago Costa
003e698984
skip failing es promotion suite (#157512) 2023-05-12 16:47:50 +01:00
Coen Warmer
e75325653c
Add SloGlobalDiagnosis check to SLO List and SLO Create pages (#157488)
Co-authored-by: Kevin Delemme <kdelemme@gmail.com>
Co-authored-by: kibanamachine <42973632+kibanamachine@users.noreply.github.com>
2023-05-12 08:45:16 -07:00
Tiago Costa
30a37301d8
skip failing es promotion suite (#157511) 2023-05-12 16:43:29 +01:00
Paul Tavares
2cc04e92d5
[Security Solution][Endpoint] Show upload response action results in Actions Log (#157390)
## Summary

- Adds the results of the `upload` action to the details tray in the
Actions Log
- Refactors the `parameters` sent to the Endpoint for `upload` to meet
the newly agreed structure
2023-05-12 11:39:32 -04:00
Efe Gürkan YALAMAN
bba20a21c7
[Enterprise Search] Text context improvements for the new index pages (#157290)
## Summary

Change text to increase the context exposure on new index pages and also
reflect beta/native connector changes.


Adds a callout to Beta connectors, both on index configuration and index
overview.
Changed PostgreSQL label to match their branding.
Adds a native badge which is visible only when native connectors
available.



b806bb66-578f-41b2-88cf-85337e9c9ee4


90f84499-ca8f-4469-b196-122cf67c3db6

![Screenshot 2023-05-10 at 18 40
34](3798e099-d8e0-4b66-9e3f-5ce0d91dc1e3)
![Screenshot 2023-05-10 at 19 16
49](f6f768ae-2647-4483-95ab-4ac65ff4dc9d)

![Screenshot 2023-05-10 at 18 40
58](7dedf8df-7da6-4488-bf3c-c5346dde6cd2)
![Screenshot 2023-05-10 at 18 41
05](8e714033-e6ad-4c7c-b409-386c15d6e39b)
![Screenshot 2023-05-10 at 18 41
16](076aaab9-2ef1-462e-a2e0-82799c157713)



### 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 is usable by keyboard only (learn more
about [keyboard accessibility](https://webaim.org/techniques/keyboard/))
- [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))

---------

Co-authored-by: Liam Thompson <32779855+leemthompo@users.noreply.github.com>
2023-05-12 08:33:54 -07:00
Christos Nasikas
0bbef2324a
[Cases] Convert remaining hooks to React Query (#157254)
## Summary

This PR converts the remaining cases' hooks to React Query. It also adds
the `QueryProvider` to the `CasesProvider` to be able to use the hooks
when attaching data to a case from outside cases like ML.

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

## Testing

- Verify you can add a comment successfully and the new comment markdown
editor is empty after submission
- Verify you can add attachments to a new case and an existing case
- Add a file to a case. Verify that the entry in the user activity is
being shown
- Verify that you can push a case to an external service
- Verify that you can push a case to an external service when creating a
case
- Verify that the loading spinner is being shown when you edit a comment
in the actions of the comment
- Verify that the loading spinner is being shown when you edit a title
next to the title
- Verify that the loading spinner is being shown when you edit a tag
next to the tags section
- Verify that the loading spinner is being shown when you edit severity
next to the severity selectable
- Verify that the status and "Sync alerts" is disabled when changing the
status
- Verify that the status and "Sync alerts" is disabled when changing the
"Sync alerts"
- Verify that the "edit pencil" is changed to a loading spinner when
changing assignees
- Verify you can update a comment
- Verify you can update the fields of the case


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

---------

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2023-05-12 08:29:41 -07:00
Kevin Delemme
65a6f7435b
fix(slo): remove good status codes from apm availability (#157497) 2023-05-12 11:11:39 -04:00
Efe Gürkan YALAMAN
08db7383cc
Remove kibana-design from the ultimate rule for scss files. (#157493)
## Summary

This was most likely a mistake during the migrating packages to jsonc,
`kibana-design` should be before the overrides so in PR's we would have
specific team members as reviewers. If none specified than
`kibana-design` would take over.

This is communicated with @elastic/kibana-design members.
2023-05-12 10:01:47 -05:00
Gerard Soldevila
612064aa8b
Add multi-instance tests for the .kibana split (#156756)
Improve _dot kibana split_ integration tests, take into account
https://github.com/elastic/kibana/pull/157356 fix.
2023-05-12 16:47:21 +02:00
Kevin Delemme
ab5338f5da
fix(slo): keep service name list (#157487) 2023-05-12 09:28:38 -04:00
Efe Gürkan YALAMAN
feae80554e
Fix codeowners file to revert unwanted override (#157475)
## Summary

Fix CODEOWNERS overriding scss files. Deleted duplicates of the
overriding rule, it is still at the bottom.

### Checklist

---------

Co-authored-by: kibanamachine <42973632+kibanamachine@users.noreply.github.com>
2023-05-12 14:31:31 +02:00
Achyut Jhunjhunwala
13bfd933d3
Fix prop drilling issue and expose onRefreshChange (#157468)
## Summary

The PR fixes the below
1. `props.onRefresh` prop was missed during prop drilling. Due to this
the Auto Refresh feature is broken.
2. `props.onRefreshChange` event is currently not exposing a callback
function directly on the SearchBar. This is required on APM side as when
a user changes the Refresh Interval, we need to know the set duration
and paused toggle to update the application URL.
2023-05-12 14:04:32 +02:00
Giuseppe Santoro
8df9c0489c
[Fleet] [Serverless] Disable Agent ID verification for Observability projects (#157400)
## Summary

We want to disable agentIdVerification to get rid of the final pipeline
for the o11y project type in the serverless solution
2023-05-12 12:40:33 +01:00
Gergő Ábrahám
3c4276e38b
[Fleet][UI] New flyout with signed uninstall command (#152886)
## Summary

Adds new flyout which contains uninstall commands for Agents.

🗒️  Todo for this PR:
- [x] update copies
- [x] add tests

Todo for follow up PRs:
- update API call with real API
- make general for Defend integration uninstall commands

### Screenshots

#### From Agents:
<img
src="https://user-images.githubusercontent.com/39014407/223678946-de135d46-ee81-4b91-8102-bf3eae93a450.png"
width="350px" /> <img
src="https://user-images.githubusercontent.com/39014407/223678983-c94aac80-5645-4906-a4b8-998b80099de5.png"
width="350px" />


#### From Agent Policies:
<img
src="https://user-images.githubusercontent.com/39014407/223679046-f2208cd6-bb17-42b4-bd9e-dc05adefe971.png"
width="350px" /> <img
src="https://user-images.githubusercontent.com/39014407/223679089-efb6d74b-8d37-449b-8d72-08f044dc1084.png"
width="350px" />


#### Also, it is accessible from Policy Details, too
<img
src="https://user-images.githubusercontent.com/39014407/230444814-1329ba7e-6b2e-46e2-875c-8be8a84e05dc.png"
width="350px" /> <img
src="https://user-images.githubusercontent.com/39014407/230444849-8b1a93e9-b38d-4c01-bb44-75bbb99554c8.png"
width="350px" />


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

---------

Co-authored-by: kibanamachine <42973632+kibanamachine@users.noreply.github.com>
2023-05-12 03:35:25 -07:00
Shahzad
dec3227d3d
[Synthetics] Added missing docs links (#157249) 2023-05-12 12:29:25 +02:00
Pierre Gayvallet
8911bfabb0
SavedObjectsRepository code cleanup (bis) (#157363)
## Summary

Follow-up of https://github.com/elastic/kibana/pull/157154

Continue the cleanup started in the previous PR, by moving more things
around.

- Move everything search-related (dsl, aggregations, kql utils) to a
dedicated `search` folder
- Move a few more things to `/apis/internals`
- Remove the 'v5' field compatibility in the field list generation (see
comment)
- Cleanup some files a bit.

---------

Co-authored-by: kibanamachine <42973632+kibanamachine@users.noreply.github.com>
2023-05-12 12:04:52 +02:00
Maja Grubic
069550d72a
[KibanaReact] Use settings service in useUiSetting hook (#154710)
## Summary

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

This PR replaces deprecated `uiSettings` client with `settings.client`
in `useUiSetting` hook. As a result, all consumers of the hook need to
provide `settings` service to Kibana context. The majority of this PR is
providing the `settings` as a dependency to affected plugins. It would
be great if sometime in the future we could get rid of `uiSettings`
entirely.

`CodeEditor` is one of the components relying on this hook, which caused
a lot of the changes in this PR.

If you have been tagged for review it means your code is using
`useUiSetting` hook directly, or is consuming `CodeEditor` component. I
have been focused on updating plugins that had failing functional tests,
but would appreciate a manual pass on this as well.

xoxo


### 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>
Co-authored-by: Maja Grubic <maja.grubic@elastic.co>
Co-authored-by: Patryk Kopyciński <contact@patrykkopycinski.com>
2023-05-12 10:47:56 +03:00
Rickyanto Ang
521811e0a1
[Cloud Security] Fix for status returning incorrect state + Empty Dashboard (#155927)
## Summary

This PR is to address issue where Findings and Dashboard page is not
loading correctly due cloudbeat is running in the background without
cloud_security_package being installed. This is because on how we
determine status state on status API.

To fix this we will return not-installed in this case, no matter if
there are findings or not
2023-05-12 00:20:12 -07:00
Elastic Machine
28261af7dc
[main] Sync bundled packages with Package Storage (#157450)
Automated by
https://internal-ci.elastic.co/job/package_storage/job/sync-bundled-packages-job/job/main/3771/

Co-authored-by: apmmachine <infra-root+apmmachine@elastic.co>
2023-05-12 08:52:31 +02:00
Coen Warmer
62437bb51a
Move useTrackMetric hook usage to Observability Shared (#157272) 2023-05-12 07:54:50 +02:00
Kibana Machine
05cad1381d
[api-docs] 2023-05-12 Daily api_docs build (#157451)
Generated by
https://buildkite.com/elastic/kibana-api-docs-daily/builds/335
2023-05-12 00:50:41 -04:00
Steph Milovic
4371c157b0
[Security solution] Fix grouping query, be ready for arrays! (#157330) 2023-05-11 17:03:16 -06:00
Adam Demjen
951fca587b
[Enterprise Search] Show single vs multi-threaded ELSER panel (#157339)
## Summary

After the ELSER model has been downloaded, the user has two options for
starting it: with a single-click using a minimal default configuration,
or fine-tuning it. Since the former is not meant for production use, we
encourage the user to make the model more resilient by configuring more
threads or allocations. This is mentioned on the ELSER status panel; it
shows "running single-threaded" if
- ~there is a single deployment of the model, AND~
- the model deployment is allocated to a single node, AND
- the deployment uses a single thread.

If any of these numbers is greater than 1, the panel just says the model
is running.


![ELSER_single_multi_thread_start](7dec34c7-115c-4584-a936-bfd6e17329e0)

### Checklist
- [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 is usable by keyboard only (learn more
about [keyboard accessibility](https://webaim.org/techniques/keyboard/))

---------

Co-authored-by: kibanamachine <42973632+kibanamachine@users.noreply.github.com>
2023-05-11 14:38:19 -07:00
Karl Godard
f884e243e0
[D4C] updated cloud_defend to use new fleet extension (#157342)
## Summary

Fixes an onboarding issue related to using the old "create" and "edit"
fleet extensions. Agent flyout would not automatically open after adding
the integration.

Using the 'package-policy-replace-define-step' hook fixes the problem.

New hook does not implement integration **name** and **description**
fields, so those were added in as well.


![image](f046ebfc-71df-4293-ac87-6589e3f13ef7)

### 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
2023-05-11 12:14:34 -07:00
Sloane Perrault
a520001f40
[Enterprise Search] Search Application schema conflict warnings (#157282)
## Summary

Adds warnings through the search applications UI when a search
application has schema conflicts

<details>
<summary>🖼️ screenshots</summary>

![Screen Shot 2023-05-10 at 09 37
55](452c7950-248a-4e3a-bfe3-631718d4d981)
![Screen Shot 2023-05-10 at 09 38
05](be3b51e6-3830-45bc-877e-635ca3c8c938)
![Screen Shot 2023-05-10 at 09 38
09](bfcf56d3-c2d5-49b0-b7e0-3081c2ad773e)
![Screen Shot 2023-05-10 at 09 38
12](8515ba20-d888-4678-a1d0-b0e897c70602)
![Screen Shot 2023-05-10 at 09 38
18](1695be43-5780-46bb-8a4e-114e09bc308b)

</details>

### 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] 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: Julian Rosado <julian.rosado@elastic.co>
2023-05-11 12:05:08 -07:00
Xavier Mouligneau
f2c38dd04b
[ResponseOps][Security Solution] - 8.8 Alert table SHOW 7.x alerts (#157405)
## Summary

FIX https://github.com/elastic/kibana/issues/157398


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

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2023-05-11 11:13:37 -07:00
Abdul Wahab Zahid
d4df0d8d2b
[Synthetics] Fix - Monitor Add/Edit form saves monitor with duplicate name (#157053)
Fixes #154855

Prevents the monitor Add/Edit form to from saving a monitor with duplicate name.
2023-05-11 20:05:25 +02:00
Karl Godard
f87971425e
[D4C] Increased Jest unit test coverage to cover test plan (#157230)
## Summary

Unit tests added to reflect a WIP test plan. Minimal code functionality
changes, mostly new unit tests.

### 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
2023-05-11 10:57:56 -07:00
Kaarina Tungseth
75cdef05d9
[DOCS] Adds 8.8.0 release notes (#155951)
## Summary

Adds the release notes for the 8.8.0 release.

---------

Co-authored-by: Lisa Cawley <lcawley@elastic.co>
Co-authored-by: Jen Huang <its.jenetic@gmail.com>
Co-authored-by: Larry Gregory <lgregorydev@gmail.com>
Co-authored-by: Alison Goryachev <alisonmllr20@gmail.com>
Co-authored-by: István Zoltán Szabó <istvan.szabo@elastic.co>
Co-authored-by: Devon Thomson <devon.thomson@elastic.co>
2023-05-11 12:13:01 -05:00
Carlos Crespo
8baff25966
[Infrastructure UI] Hosts view handle invalid KQL error (#156989)
closes [#987](https://github.com/elastic/obs-infraobs-team/issues/987)

## Summary

This PR changes the hosts view to graciously handle exceptions caused by
invalid KQL submissions

<img width="1451" alt="image"
src="5bafc987-9a14-4b03-9038-53179f7b6735">


Besides, it changes the way it was handling a fatal error that can
happen if something wrong happens while creating an ad-hoc data-view -
this is highly unlike to happen, but we're standardizing how we display
errors on the hosts view

_Previously:_
<img width="1439" alt="image"
src="https://user-images.githubusercontent.com/2767137/236833673-c994512f-cb73-441b-9783-506bab67ff4b.png">

_Now:_
<img width="1439" alt="image"
src="https://user-images.githubusercontent.com/2767137/236862216-fada9f50-5d27-45b9-a6f3-8ac497a3e048.png">

### How to test
- Go to hosts view
- Type invalid KQL expressions on the search bar

### For reviewer

If the page is loaded with a querystring containing an invalid `query`
(e.g:
`_a=(dateRange:(from:now-15m,to:now),filters:!(),limit:20,panelFilters:!(),query:(language:kuery,query:%27%7D%27)`),
the Control components will show an error. However, they can't recover
from fatal errors. So even after the user corrects the mistake in the
query, the controls will remain in the error state.

A ticket has been opened to address this problem:
https://github.com/elastic/kibana/issues/156430

---------

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2023-05-11 13:59:23 -03:00
jennypavlova
89f310c537
[Infrastructure UI] Processes tab: add N/A if the process summary is missing (#157374)
Closes [#153942](https://github.com/elastic/kibana/issues/153942)

## Summary

This PR shows 'N/A' when the values inside the process summary are not
available (and the actual value when available)


## Testing
- Open Hosts view and find a host ( where the process summary is not
available )
- Open the flyout and select the "Processes" tab
- The values inside the process summary should be 'N/A'
(Same should be shown in inventory)

<img width="2259" alt="Screenshot 2023-05-11 at 13 34 58"
src="7f8a6e3d-cd87-452a-9f73-13dbc567501d">


<img width="2258" alt="Screenshot 2023-05-11 at 13 36 05"
src="2708ef2f-b119-46a4-80e8-048e25a22c21">

- Open Hosts view and find a host ( where the process summary is
available )
- Open the flyout and select the "Processes" tab
- The values inside the process summary should be available (and total
processes > 0)
(Same should be shown in inventory)

<img width="2262" alt="Screenshot 2023-05-11 at 13 35 33"
src="89aeb53f-c7c2-483f-b21f-9a0b67ca22c4">
 
<img width="2265" alt="Screenshot 2023-05-11 at 13 36 29"
src="06b44138-21bb-4c47-a31b-b43749df58a0">
2023-05-11 09:50:26 -07:00
Julia Bardi
a0ee7b6fc8
[Fleet] fix for upgrade package with tsds removed (#157395)
## Summary

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

To test:

Install `nginx-1.12.0-beta` which has `index.mode:time_series`.

```
POST http://elastic:changeme@localhost:5601/api/fleet/epm/packages/nginx-1.12.0-beta
kbn-xsrf: kibana

{
   "force": true
 }
```

Upgrade to `nginx-1.12.1-beta` which has `index.mode:time_series`
removed.

Upload this package built manually:

[nginx-1.12.1-beta.zip](11452945/nginx-1.12.1-beta.zip)

```
curl -XPOST -H 'content-type: application/zip' -H 'kbn-xsrf: true' http://localhost:5601/api/fleet/epm/packages -u elastic:changeme --data-binary @nginx-1.12.1-beta.zip
```

The package should install successfully and time_series should be
removed from the index template `metrics-nginx.stubstatus`

WIP: update tests


### 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-05-11 09:39:03 -07:00
Joey F. Poon
0c33f8da6a
[Fleet] update uninstall token index to ingest (#157403) 2023-05-11 09:26:40 -07:00
Chris Cowan
78671f113c
Fix the charts and group by section on the Log Threshold alert detail page (#155327)
## Summary

This PR fixes #155083 with the following changes:

- Create a new field to store the action context for an alert under
`ALERT_CONTEXT` (`kibana.alert.context`) for Log Threshold Rule.
- Change the alert detail page to reference the `groupByKeys` under
`ALERT_CONTEXT` for the group by section
- Change the history chart to only display `12h` buckets

I plan to do a follow up PR to add the ALERT_CONTEXT to the other
Observability Rules which we will also need for our alert details pages.

### How to test

1. Index data using:
https://github.com/elastic/high-cardinality-cluster/tree/main/high_cardinality_indexer
by running the following command:
```
DATASET="fake_stack" EVENTS_PER_CYCLE=1 INDEX_INTERVAL=60000 ELASTICSEARCH_HOSTS=http://localhost:9200 node src/run.js
```
2. Create a DataView for named "Admin Console" with the index pattern of
`high-cardinality-data-fake_stack.admin-console-*` and the timestamp
field set to `@timestamp`
3. Go to the Log Stream in Observability and change the index pattern to
"Admin Console"
4. Create a rule that looks like:

<img width="600" alt="image"
src="https://user-images.githubusercontent.com/41702/232578891-e65a3f1a-457c-459a-8d7f-cadc85e7067c.png">

5. Create a rule WITHOUT a group by that will trigger and check the
alert detail page
6. Create a rule with a ratio WITHOUT a group by that will trigger and
check the alert detail page
7. Create a rule with a ratio WITH a group by that will trigger and
check the alert detail page

---------

Co-authored-by: Kevin Delemme <kdelemme@gmail.com>
Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2023-05-11 08:54:35 -07:00
Carlos Crespo
937912b056
[Infrastructure UI] Host limit telemetry (#155726)
closes: https://github.com/elastic/kibana/issues/155567

## Summary

This PR adds a new custom event to track the total number of hosts, as
well as adjusts a few `data-test-subj` attribute values to meet the
naming convention defined in the observability-dev
[docs](https://github.com/elastic/observability-dev/blob/main/docs/how-we-work/telemetry/telemetry-convention.md#naming-convention)


### For Reviewers

An option for not allowing yet a new custom event in FS could be
triggering the new custom events only for self-managed customers, and in
FS watch the element that holds the total number of hosts. But for now,
I decided to allow the new custom event in FS for consistency

---------

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2023-05-11 12:44:38 -03:00
Tiago Costa
a4a9ad9f2c
skip flaky suite (#156998) 2023-05-11 16:31:47 +01:00
Antonio
2e0ba63e31
[Cases] Limit searchFields in the Find Case API query params (#156495)
Fixes #155978

## Summary

- Remove the `fields` parameter from the find cases API 
- Limit the `searchFields` parameter in the find cases API

One of the FTR tests was actually successfully calling the find_cases
API while passing the fields parameter but only certain combinations of
fields would actually work.

Passing single fields would not work.

I just removed the test as we won't support the `fields` param anymore.

---------

Co-authored-by: lcawl <lcawley@elastic.co>
2023-05-11 11:04:10 -04:00
Coen Warmer
44a62f84a2
[SLO] Correctly wait for licensing promise to resolve on server (#157384) 2023-05-11 16:39:11 +02:00
Francesco Gualazzi
cec3ee91ac
Profiling: fix links in Add Data page (#157333)
## Summary

Adjust download links for Universal Profiling host-agent in the Add Data
page.
The links need to be updated because of a breaking change in the
protocol.

Signed-off-by: inge4pres <francesco.gualazzi@elastic.co>
2023-05-11 16:29:29 +02:00
Rodney Norris
efac422e19
[Enterprise Search] fix(index inference pipelines): fetch models on elser deploy (#157318)
## Summary

Updated the inference pipeline flyout logic to refetch ml models when
the user deploys the ELSER text expansion model. This will allow them to
select the model if they deploy it from the flyout.


25916c61-cdad-4213-8034-265aaac1f945

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2023-05-11 08:53:26 -05:00
Coen Warmer
dcf1c235dc
Return error from RQ useFetchList hook, have better error handling (#157382) 2023-05-11 06:36:11 -07:00
Paul Tavares
f9f4c1a800
[Security Solution][Endpoint] add upload console response action (#157208)
## Summary

- Add the `upload` response action to the endpoint console
2023-05-11 09:10:35 -04:00
Coen Warmer
497b374b6c
Only set timeslice properties when budgeting method is set to timeslices (#157372) 2023-05-11 15:01:57 +02:00
Yan Savitski
1e5239bbc7
[Enterprise Search][Behavioral Analytics] Add cors link to behavioral analytics (#157267)
Updated the link to point to the following page:

https://www.elastic.co/guide/en/enterprise-search/master/analytics-cors-proxy.html

<img width="1637" alt="image"
src="e734763d-4f65-4a43-b457-2344820c8e4b">
2023-05-11 13:02:11 +01:00