Commit graph

825 commits

Author SHA1 Message Date
Sander Philipse
c6f7416efc
[ES3] Fix onboarding tiles to new design (#208069)
## Summary

This adapts the onboarding guide for Elasticsearch to:
- use in-page tiles
- remember its guide selection in local storage
- actually switch the code correctly on the start page



https://github.com/user-attachments/assets/9a23b7a6-828a-4d37-a460-975dd526eafe

UPDATED SCREEN RECORDING:



https://github.com/user-attachments/assets/7526f1d5-b85c-4096-85c5-9cf35b1bd757

---------

Co-authored-by: kibanamachine <42973632+kibanamachine@users.noreply.github.com>
2025-01-24 16:29:53 +01:00
Tre
d6967b8bce
[SKIP ON MKI] x-pack/test_serverless/../search_source_alert.ts (#207869)
## Summary

See details: https://github.com/elastic/kibana/issues/207865
2025-01-23 09:12:25 +00:00
Yngrid Coello
511f77c231
[Dataset quality] Failure store support (#206758)
Closes https://github.com/elastic/logs-dev/issues/183,
https://github.com/elastic/logs-dev/issues/184 and
https://github.com/elastic/logs-dev/issues/185.

## Summary
This PR aims to support failure store in dataset quality page. The
following acceptance criteria items were resolved

### Dataset quality page
- [x] A column for Failed docs is included in the table
- [x] A tooltip is placed in the title of the column
- [x] A % of documents inside Failure store is calculated for every
dataStream
- [x] If % is lesser than 0.0001 but greater than 0 we should show ⚠
symbol next to the ~0 value (as we do with degraded docs)
- [x] Failed docs percentages greater than 0 should link to discover

 🎥 Demo 


https://github.com/user-attachments/assets/6d9e3f4c-02d9-43ab-88cb-ae70716b05d9

### Dataset details page
- [x] A metric, Failed docs, is included in the Overview panel under
Data set quality. This metric includes the number of documents inside
the failure store for the specific dataStream.
- [x] A tooltip is placed in the title of the Failed docs metric with
message: `The percentage of docs sent to failure store due to an issue
during ingestion.`
- [x] Degraded docs graph section is transformed to Document trends
allowing the users to switch between Degraded docs and Failed docs
trends over time.
- [x] A new chart for failed documents is created with links to
discover/Logs explorer using the right dataView

 🎥 Demo 


https://github.com/user-attachments/assets/6a3a1f09-2668-4e83-938e-ecdda798c199

### Failed docs ingestion issue flyout

- [x] Whenever documents are found in failure store we should list
Document indexing failed in Quality issues table
- [x] User should be able to expand Document indexing failed and see
more information in the flyout
- [x] The flyout will show Docs count, an aggregation of the number of
documents inside failure store for the selected timeframe
- [x] The flyout will show Last ocurrence, the datetime registered for
the most recent document in the failure store.
- [x] The flyout will contain a section called Error messages where a
list of unique error messages should be shown, exposing Content (error
message) and Type (Error Type).
- [x] Type should contain a tooltip where message (`Error message
category`) explain users how we are categorising the errors.
- [x] Other issues inside Quality issues table will be appended by field
ignored and the field will be shown in bold.


https://github.com/user-attachments/assets/94dc81f0-9720-4596-b256-c9d289cefd94

Note: This PR was reconstructed from
https://github.com/elastic/kibana/pull/199806 which it supersedes.

## How to test

1. Execute `failed_logs` synthtrace scenario
2. Open dataset quality page

## Follow ups
- Enable in serverless
- Deployment agnostic tests cannot be added until we enable this in
serverless
- FTR tests will be added as part of
https://github.com/elastic/logs-dev/issues/182

---------

Co-authored-by: kibanamachine <42973632+kibanamachine@users.noreply.github.com>
2025-01-23 09:13:28 +01:00
Cristina Amico
59e81ee2be
[Fleet] Disallow some egress-specific inputs for agentless integrations (#206074)
Closes https://github.com/elastic/kibana/issues/202091

## Summary

Disallow some egress-specific inputs for agentless integrations. 
- In the policy editor, when Setup technology dropdown is set to
Agentless, hide the rendering of configuration for inputs that have type
matching the blocklist and ensure that these inputs are set to `enabled:
false`
- `tcp, udp, winlog, http_endpoint, filestream` should be disabled when
`supports_agentless: true`
- At the API level, throw an error if attempting to enable a disallowed
input type


### Testing
Simulate agentless env with following setup in `kibana.dev.yml`:
```
xpack.cloud.id: 'anything-to-pass-cloud-validation-checks'
xpack.fleet.agentless.enabled: true
xpack.fleet.agentless.api.url: 'https://localhost:8443'
xpack.fleet.agentless.api.tls.certificate: './config/certs/ess-client.crt'
xpack.fleet.agentless.api.tls.key: './config/certs/ess-client.key'
xpack.fleet.agentless.api.tls.ca: './config/certs/ca.crt'
```
-Apply [this
patch](https://gist.github.com/jen-huang/dfc3e02ceb63976ad54bd1f50c524cb4)
to prevent attempt to create agentless pod (the agentless policy
creation fails without the patch)
- Install the following test integration, that has a bunch of different
inputs to simulate this specific case and is enabled for agentless (it
shows the setup technology as well)

[agentless_package_links-0.0.2.zip](https://github.com/user-attachments/files/18425895/agentless_package_links-0.0.2.zip)

```
curl -XPOST -H 'content-type: application/zip' -H 'kbn-xsrf: true' http://localhost:5601/YOUR_PATH/api/fleet/epm/packages -u elastic:changeme --data-binary @agentless_package_links-0.0.2.zip
```
- Navigate to the integrations page, find the above integration and test
that switching between agent-based/agentless the enabled inputs change
as follows:

<img width="1288" alt="Screenshot 2025-01-15 at 15 30 28"
src="https://github.com/user-attachments/assets/6abd45d7-1bd8-465a-af29-4c34940b32e3"
/>
<img width="1072" alt="Screenshot 2025-01-15 at 15 31 18"
src="https://github.com/user-attachments/assets/6957562f-08a6-403a-8725-1a654e443537"
/>


- Verify that the preview flyout has the correct inputs based on the
selected deployment mode

<img width="863" alt="Screenshot 2025-01-15 at 15 32 19"
src="https://github.com/user-attachments/assets/ceca1f5d-249c-4ee1-9295-6f01ae21fdb4"
/>
<img width="862" alt="Screenshot 2025-01-15 at 15 33 33"
src="https://github.com/user-attachments/assets/f43562d7-633e-4f0a-bfc1-19e89aef7659"
/>


- Verify that the api throws an error when attempting to enable any of
the disallowed types
<img width="1774" alt="Screenshot 2025-01-15 at 15 36 03"
src="https://github.com/user-attachments/assets/2b4d24a3-5adc-4ab2-bbad-83b44d348763"
/>



### 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
- [ ] The PR description includes the appropriate Release Notes section,
and the correct `release_note:*` label is applied per the
[guidelines](https://www.elastic.co/guide/en/kibana/master/contributing.html#kibana-release-notes-process)

---------

Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>
2025-01-22 17:21:54 +01:00
Sander Philipse
63fc1eae9f
[Search] Add a search guide selector to index onboarding (#206810)
## Summary

This adds a guide selector to the Kibana index management onboarding
experience.

It also fixes a bug where useQuery was causing us to re-render the page
unnecessarily.

<img width="1284" alt="Screenshot 2025-01-15 at 16 11 48"
src="https://github.com/user-attachments/assets/19abe86f-3148-442a-8e1e-8b6b8eeb2ba1"
/>

### Checklist
Check the PR satisfies following conditions. 

Reviewers should verify this PR satisfies this list as well.

- [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/src/platform/packages/shared/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] The PR description includes the appropriate Release Notes section,
and the correct `release_note:*` label is applied per the
[guidelines](https://www.elastic.co/guide/en/kibana/master/contributing.html#kibana-release-notes-process)

---------

Co-authored-by: Rodney Norris <rodney@tattdcodemonkey.com>
2025-01-17 18:30:50 +00:00
Robert Jaszczurek
9bc2438eed
[ML] Memory Usage and Notifications pages serverless functional tests (#205898)
Part of: https://github.com/elastic/kibana/issues/201813

- [x] Memory Usage. Check ML entities are filtered according to the
project type.

- [x] Notifications page. Check ML entities are filtered according to
the project type.
2025-01-17 12:22:34 +01:00
Matthias Wilhelm
a04274723e
[Discover] Remove redundant data fetching when hiding/showing the histogram/chart (#206389)
Since the timerange in Discover of the main request is stable we don't need to trigger a main fetch for all data when the histogram/chart is being hidden/displayed, unless it's necessary to get the data (e.g. when the histogram/chart was hiden when a discover session was being loaded)
2025-01-17 10:49:37 +00:00
Thom Heymann
75e631bd1f
Unskip test (#206003)
Resolves https://github.com/elastic/kibana/issues/205545

## Summary

Fix flaky test on dataset quality page

---------

Co-authored-by: kibanamachine <42973632+kibanamachine@users.noreply.github.com>
2025-01-17 09:59:21 +00:00
Georgiana-Andreea Onoleață
4f59641f3a
[ResponseOps][Cases] Skipped tests no floating promises fixes (#206718)
Closes https://github.com/elastic/kibana/issues/191185

## Summary

- un-skipped tests in the following modules:

- ` x-pack/test/functional_with_es_ssl/apps/cases/group1/view_case.ts`
-
`x-pack/test_serverless/functional/test_suites/security/ftr/cases/view_case.ts`
-
`x-pack/test_serverless/functional/test_suites/observability/cases/view_case.ts`
2025-01-17 09:25:23 +02:00
Sonia Sanz Vivas
75e1866915
[Index Management] Test LogsDb Index Template Modifications (#206548)
Part of https://github.com/elastic/kibana/issues/203716

## Summary
This PR introduces a new test case for LogsDB in both Stateful and
Serverless:

> Verify that users can override LogsDB index settings including:
ignore_above, ignore_malformed, ignore_dynamic_beyond_limit, subobjects
and timestamp format.

For modify `subobjects` and `timestamp` format it must be done from the
mappings tab. For `ignore_above`, `ignore_malformed`,
`ignore_dynamic_beyond_limit` the configuration is done in the Settings
tab.

It also introduces a test case only for Stateful
(enableMappingsSourceFieldSection [is
disabled](9c6de6aabc/config/serverless.yml (L112))
for serverless)

> Verify that users cannot disable synthetic source for a LogsDB index.
2025-01-17 07:15:23 +01:00
Jeramy Soucy
31cbf2980f
Skips serverless role management tests (#206824)
## Summary

Recently enabled ES flag in QA (see
https://github.com/elastic/serverless-gitops/pull/6185), caused Kibana
to begin rendering predefined roles on the roles management page. This
caused QA test failures. Skipping these tests will eliminate the noise
in the QA test alert channel while we resolve the issue.

Solution will be to make all predefined roles reserved so we can ensure
they are not rendered in Kibana.

cc @wayneseymour
2025-01-15 18:40:01 +00:00
Tre
ac76690449
[SKIP ON MKI] x-pack/test_serverless/functional/test_suites/observability/dataset_quality/dataset_quality_details.ts (#206735)
## Summary

see details: https://github.com/elastic/kibana/issues/206734
2025-01-15 14:00:39 +00:00
Alejandro Fernández Haro
d0abdbdb7e
[ES body removal] @elastic/search-kibana (#204876) 2025-01-10 14:54:23 +00:00
Sonia Sanz Vivas
bcdf942b94
Add waitUntilLoadingHasFinished in failing tests (#205485)
Fixes: https://github.com/elastic/kibana/issues/205535
Fixes: https://github.com/elastic/kibana/issues/205514
Fixes: https://github.com/elastic/kibana/issues/205498
Fixes: https://github.com/elastic/kibana/issues/205464
Fixes: https://github.com/elastic/kibana/issues/205456
Fixes: https://github.com/elastic/kibana/issues/205453
Fixes: https://github.com/elastic/kibana/issues/205450
Fixes: https://github.com/elastic/kibana/issues/205412
Fixes: https://github.com/elastic/kibana/issues/205410
Fixes: https://github.com/elastic/kibana/issues/205401
Fixes: https://github.com/elastic/kibana/issues/205400
Fixes: https://github.com/elastic/kibana/issues/205399
Fixes: https://github.com/elastic/kibana/issues/205350
Fixes: https://github.com/elastic/kibana/issues/205349
Fixes: https://github.com/elastic/kibana/issues/205316
Fixes: https://github.com/elastic/kibana/issues/205288
Fixes: https://github.com/elastic/kibana/issues/205287

## Summary
It seems that the step tabs are not loading fast enough for the tests to
find the expected element in a [bunch of
test](https://github.com/elastic/kibana/issues?q=is%3Aopen%20label%3A%22Team%3AKibana%20Management%22%20label%3A%22failed-test%22%20created%3A%3E%40today-1w%20).
This PR attempt to fix it. It also adds the
`data-test-subj="indexModeValue"` tag in `TabSummary` that was missing.
2025-01-08 11:51:34 +01:00
Tre
fbc033c226
[MKI] Fix flaky search source alert test (#205481)
## Summary

Use settings
[method](c8d46ee949/test/functional/page_objects/settings_page.ts (L648))
instead of naive typing.
Naive only because the asterisk at the end of the text box is better
handled in the settings method.
2025-01-07 12:02:39 +00:00
Kibana Machine
2fc2019c83 skip failing test suite (#205545) 2025-01-07 06:28:28 +11:00
Efe Gürkan YALAMAN
e542fd2370
[Synonyms UI] Synonyms UI base plugin (#203284)
## Summary

Creates a plugin for Synonyms UI implementation. It is hidden under the
UI flag and config option which is off by default.
```
POST kbn:/internal/kibana/settings/searchSynonyms:synonymsEnabled
{"value": true}
```

Serverless Search:
<img width="379" alt="Screenshot 2024-12-17 at 13 18 02"
src="https://github.com/user-attachments/assets/8c2cb6f0-ce2a-4be6-8605-4f994adeefd7"
/>

Stack Search
<img width="293" alt="Screenshot 2024-12-17 at 13 21 43"
src="https://github.com/user-attachments/assets/0d61de0e-2cd3-46a6-990f-1f1a70843324"
/>



### Checklist

Check the PR satisfies following conditions. 

Reviewers should verify this PR satisfies this list as well.

- [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
- [ ] [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 was checked for breaking HTTP API changes, and any breaking
changes have been approved by the breaking-change committee. The
`release_note:breaking` label should be applied in these situations.
- [ ] [Flaky Test
Runner](https://ci-stats.kibana.dev/trigger_flaky_test_runner/1) was
used on any tests changed
- [x] The PR description includes the appropriate Release Notes section,
and the correct `release_note:*` label is applied per the
[guidelines](https://www.elastic.co/guide/en/kibana/master/contributing.html#kibana-release-notes-process)

---------

Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>
Co-authored-by: kibanamachine <42973632+kibanamachine@users.noreply.github.com>
2025-01-06 19:15:19 +00:00
Kibana Machine
326ca3e2da skip failing test suite (#205316) 2025-01-04 08:41:42 +11:00
Thom Heymann
8902f7026c
Remove links to Logs Explorer (#203685)
Resolves https://github.com/elastic/kibana/issues/182229

## Release Note

Remove Logs Explorer

## Summary

- Removes the Discover/Logs Explorer tabs in the top nav
- Changes all links to Logs Explorer in other applications to Discover
- Removes all APIs exposed by Logs Explorer

Note: This does not remove Logs Explorer from the codebase. There will
be a follow up for that work.

---------

Co-authored-by: kibanamachine <42973632+kibanamachine@users.noreply.github.com>
2025-01-03 17:25:13 +00:00
Mykola Harmash
db083d17fc
[Onboarding][Firehose] Switch to the latest CloudFormation template (#204185)
Closes https://github.com/elastic/kibana/issues/203563

Updates the CF template to the latest available version and adjust the
code to use a single Firehose stream created by the new template.

You can use `Elastic Observability` AWS account (available through Okta)
and the latest Kibana deployment from this PR to test the flow.

![CleanShot 2024-12-17 at 11 42
33@2x](https://github.com/user-attachments/assets/ac9ba9eb-1c9f-48fb-9fca-ed518970ac9b)
2025-01-02 05:39:58 -06:00
Sonia Sanz Vivas
34341e5864
Functional test for create a logdb index (#204788)
Part of https://github.com/elastic/kibana/issues/203716
## Summary

* Functional test for verifying that users can create indices using the
“logsdb” index mode via the Kibana interface (Stateful and serverless).
* Functional test for verifying that users can upgrade a logs data
stream that is using a “standard” index mode to a data stream using
“logsdb” index mode. (Stateful and serverless).
* Functional test for verifying that users can downgrade a data stream
that is using a “logsdb” index mode to a data stream using “standard”
index mode. (Stateful and serverless).
* Functional test for verifying that users can upgrade a data stream
that is using a “time series” index mode to a data stream using “logsdb”
index mode. (Stateful and serverless).
* Functional test for verifying that users can downgrade a data stream
that is using a “logsdb” index mode to a data stream using “time series”
index mode. (Stateful and serverless).

The rollover operation has not been tested since is not expected to
happen automatically. See [this
comment](https://github.com/elastic/kibana/issues/203716#issuecomment-2554491054).
2024-12-30 11:39:49 -06:00
Abdul Wahab Zahid
bd9254fe1e
[Dataset Quality] Fix failing es-promotion test on 8.x (#205188)
Newer builds of ES ingest `event.ingested` and `tags` fields into APM
indices making the Dataset Quality tests fail which rely on ingested
field counts against set number of field limits. The PR addresses this
by explicitly ingesting the fields beforehand.

After the merge to main, the PR will be backported to `8.x` to unblock
es-promotion.
2024-12-30 12:46:49 +01:00
Samiul Monir
bc466ea738
[Search] Add Inference endpoint Flyout in Inference Management UI (#203204)
## Summary

This PR includes
- Create a UI component package to share AI connector form between
multiple plugins
- Integrate the packaged components into the `Search Inference Endpoint`
plugin.



https://github.com/user-attachments/assets/2b447b44-3d1d-4422-b76d-8d8fd160b2bc


### Checklist

Check the PR satisfies following conditions. 

Reviewers should verify this PR satisfies this list as well.

- [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] [Flaky Test
Runner](https://ci-stats.kibana.dev/trigger_flaky_test_runner/1) was
used on any tests changed

---------

Co-authored-by: kibanamachine <42973632+kibanamachine@users.noreply.github.com>
Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>
2024-12-24 22:23:25 -05:00
Tiago Costa
34bc507dc3
skip flaky suite (#204507) 2024-12-23 16:49:51 +00:00
Robert Jaszczurek
0cc887be92
[ML][UX]: Consistent Layout and UI Enhancements for ML Pages (#203813)
## Summary

* Updated alignment for `Add to` action buttons across various ML pages
- see: #184109
* Fixed the overflowing date picker on `Anomaly Detection` pages - see:
[#204394](https://github.com/elastic/kibana/issues/204394)
* Standardized gaps around items on pages to maintain consistent values
of `8px` (`gutterSize = 's'`)
* Fixed the header on the Data Visualizer page - see:
[#204393](https://github.com/elastic/kibana/issues/204393)
* Adjusted the layout for Change Point Detection
* Updated toast messages & toast action button - see: #184109
* Added icons for attachments actions

Exploration around new `Add to` actions buttons - the right column is
the most recent one, see: #184109 :

| Before  | After (add_to button) | After (icon button) - current |
| ------------- | ------------- | ------------- |
| ![Screenshot 2024-12-12 at 11 45
14](https://github.com/user-attachments/assets/08dc0be5-0b98-481d-9906-d3434f03f634)
| ![Screenshot 2024-12-12 at 11 37
38](https://github.com/user-attachments/assets/0b2cbdcd-cad0-49aa-842f-123eebec1716)
| ![Screenshot 2024-12-12 at 12 42
58](https://github.com/user-attachments/assets/c0a0c732-bbc0-4007-998e-df413fae612b)
|
| ![Screenshot 2024-12-12 at 11 45
49](https://github.com/user-attachments/assets/9ff45cf8-1c24-4ef4-ab59-2b54f1569c6e)
| ![Screenshot 2024-12-12 at 11 39
34](https://github.com/user-attachments/assets/293255eb-eba5-4d90-a10b-0f41de0cc195)
| ![Screenshot 2024-12-12 at 12 44
58](https://github.com/user-attachments/assets/740da2fb-ceed-4e6a-add6-9a8d695776a6)
|
| ![Screenshot 2024-12-12 at 11 46
30](https://github.com/user-attachments/assets/71cea9f4-7658-4776-865d-0f7c5682e67a)
| ![Screenshot 2024-12-12 at 11 40
18](https://github.com/user-attachments/assets/b03e8a75-68d3-4c26-942c-1d41072a62ee)
|
![image](https://github.com/user-attachments/assets/6a259924-7081-426c-8bd2-346e4f0ae152)
|
| ![Screenshot 2024-12-12 at 11 48
07](https://github.com/user-attachments/assets/2b340d38-26a5-45bc-851e-8b1956503500)
| ![Screenshot 2024-12-12 at 11 42
03](https://github.com/user-attachments/assets/ecef0b37-a43c-42a3-911f-31d4acf9ac7b)
| ![Screenshot 2024-12-12 at 12 46
14](https://github.com/user-attachments/assets/f9dddfe0-7296-4394-bb2f-94d702361f49)
|
| ![Screenshot 2024-12-12 at 11 49
05](https://github.com/user-attachments/assets/d670ad40-58d4-40fb-a88d-7ac5e6c1fbbd)
| ![Screenshot 2024-12-12 at 11 43
40](https://github.com/user-attachments/assets/856f9476-c6ff-4405-8865-fb8784f3d818)
|
![image](https://github.com/user-attachments/assets/b18f624b-e648-403f-9595-442b2723bdde)
|

Toasts:
| Before | After |
| ------ | ------ | 
| <img width="376" alt="image"
src="https://github.com/user-attachments/assets/c58000c2-30d4-4312-be53-0e3e9a6e3ae6"
/> |
![image](https://github.com/user-attachments/assets/36955456-026a-4abe-b872-c72c115a2dbe)
|



Other changes:

| Before | After |
| ------ | ------ | 
| ![Screenshot 2024-12-13 at 17 57
36](https://github.com/user-attachments/assets/263940ea-9396-4f82-b14e-c9086c6d36e8)
| ![Screenshot 2024-12-13 at 18 00
26](https://github.com/user-attachments/assets/49430be4-356b-4902-b855-7fc1b252fbdb)
|
| ![Screenshot 2024-12-13 at 18 06
59](https://github.com/user-attachments/assets/67ad0faf-42f7-44e1-9290-857e28a9d5e4)
| ![Screenshot 2024-12-13 at 18 02
04](https://github.com/user-attachments/assets/357d7296-7b5f-4df5-b664-8bd99c93205b)
|
| ![Screenshot 2024-12-13 at 18 08
20](https://github.com/user-attachments/assets/819a7c33-9c7a-4423-be1b-cbec30dd8a97)
| ![Screenshot 2024-12-13 at 18 09
30](https://github.com/user-attachments/assets/c4b3cb40-f572-4828-888b-4cfff6b565b9)
|
| ![Screenshot 2024-12-13 at 18 11
52](https://github.com/user-attachments/assets/c63ccdf3-aeaa-4047-a3b5-f67c11690020)
| ![Screenshot 2024-12-13 at 18 10
34](https://github.com/user-attachments/assets/6a6343d5-a7f7-45da-bf40-46b14b257e41)
|
| ![Screenshot 2024-12-13 at 18 30
32](https://github.com/user-attachments/assets/7aa13ad8-ba6f-4801-b0fe-ff90dd9038c1)
| ![Screenshot 2024-12-13 at 18 32
59](https://github.com/user-attachments/assets/17774c78-003d-46fd-b7bb-d21cdee7df47)
|
| ![Screenshot 2024-12-13 at 18 35
56](https://github.com/user-attachments/assets/b7b003c6-11a6-4a1d-97c2-c1b920c0fd1a)
| ![Screenshot 2024-12-13 at 18 34
25](https://github.com/user-attachments/assets/5af49323-cb9c-433d-aa6f-91af21dfa5bf)
|
| <img width="342" alt="image"
src="https://github.com/user-attachments/assets/6529eebe-510e-4688-81e6-4cf3e880c610"
/> | <img width="323" alt="image"
src="https://github.com/user-attachments/assets/6dada83e-252f-45d5-95d2-a03fa856d70a"
/> |

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

---------

Co-authored-by: kibanamachine <42973632+kibanamachine@users.noreply.github.com>
2024-12-23 11:56:12 +01:00
Sébastien Loix
6f28942e1e
[Serverless] Remove "userAndRoles" from es and security nav tree (#204740) 2024-12-19 12:52:35 +00:00
Matthew Kime
17569187b6
[index management] Better privilege checking for component index templates (#202251)
## Summary

Builds on https://github.com/elastic/kibana/pull/201717

Part of https://github.com/elastic/kibana/issues/178654

`manage_index_templates` cluster privilege determines access to
component index templates tab within index management.
2024-12-18 09:05:22 -06:00
Tre
e012c49905
[SKIP ON MKI] x-pack/test_serverless/functional/test_suites/search/inference_management.ts (#204540)
## Summary

see details: https://github.com/elastic/kibana/issues/204539
2024-12-17 12:40:05 +00:00
James Gowdy
49a5b2ff7e
Fixing inference service test deprecation warning in search tests (#204386)
Adds a `model_id` property to the model config and renames the service
to `elasticsearch`, as `elser` has been deprecated.
This should avoid triggering API deprecation warning.
2024-12-16 20:03:47 +00:00
Matthias Wilhelm
50713ca6d8
[Discover] Unskip and improve serverless csv functional test (#202396) 2024-12-16 02:49:16 -06:00
Julia Rechkunova
f2f2a0a689
[Discover] Add EBT events for next resolved contextual profiles (#203124)
- Closes https://github.com/elastic/kibana/issues/200257

## Summary

This PR adds `discover_profile_resolved` EBT events when a new
contextual profile is resolved at any level (root, data source, or
document level).

Events will be triggered from Discover pages and dashboards.

Please note that duplicate events will not be sent in the current
implementation. Only when profile ID is changing.

<img width="1710" alt="Screenshot 2024-12-06 at 17 39 23"
src="https://github.com/user-attachments/assets/54eef630-8bcc-4185-917f-d251c003df65">

<img width="1699" alt="Screenshot 2024-12-06 at 17 38 36"
src="https://github.com/user-attachments/assets/541522eb-9cc5-47b6-a51a-81186232b7e5">


## Testing

Add logging to `trackContextualProfileResolvedEvent` or do the
following:

Enable "Usage collection" global setting.

Navigate to Discover and observe `kibana-browser` requests in Network
tab.


### 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: Davis McPhee <davismcphee@hotmail.com>
2024-12-13 06:31:42 -06:00
Ash
b4331195d6
[Serverless][DataUsage] Data usage UX/API updates (#203465) 2024-12-12 22:24:42 +01:00
Krzysztof Kowalczyk
780316832b
[User Profile] Update edit profile header layout (#202902)
## Summary

This PR updates layout of `User Profile` header according to [this
design](https://github.com/elastic/kibana/issues/200059#issuecomment-2512452474).
Since those changes break the layout pattern suggested by EUI, I had to
move the content to be `children` of the header [as the EUI docs
suggest.](https://eui.elastic.co/#/layout/page-header#customizing-the-page-header)

Closes: #200059

---------

Co-authored-by: Ryan Keairns <contactryank@gmail.com>
2024-12-12 22:02:27 +01:00
José Luis González
5e69fd1498
[Search] Fixing connectors flaky FTR (#203520)
## Summary

Fixing flaky test when choosing a connector with the new EuiComboBox
component.

https://github.com/elastic/kibana/issues/203462

---------

Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>
2024-12-12 18:57:01 +01:00
Marco Antonio Ghiani
c47b50925a
[One Discover] Update log.level indicators color (#202985)
## 📓 Summary

Closes #202258 

This change updates the colors scale for Discover's `log.level`
indicators to differentiate errors from other levels better.

**N.B. As this relies on some hard-coded values defined
[here](https://github.com/elastic/kibana/issues/186273#issuecomment-2505817075),
it is not a definitive version, but a middle step to enhance the scale
in v8.x versions.**
With the introduction of the Borealis theme in v9, a new scale
token-based will replace this.

<img width="934" alt="Screenshot 2024-12-04 at 17 40 32"
src="https://github.com/user-attachments/assets/b3da1300-b39a-4ad0-92c9-fde5dabe91ec">

---------

Co-authored-by: Marco Antonio Ghiani <marcoantonio.ghiani@elastic.co>
2024-12-12 16:09:47 +01:00
Sandra G
ba945c9851
[Data Usage] functional tests (#203166)
## Summary

Functional tests for data usage UI.

- `data_streams` route is intercepted, due to filtering out zero size
data streams which will happen because metering api needs time to
aggregate data
- `autoops_api` is using the mock server as there will be no data for it
to return
- tests will only run in local serverless and not MKI due to using the
autoops mock server that won't return data for created data streams
- adds `interceptRequest` functionality to FTR `browser` service

## Tests
- data stream filter dropdown renders with created data streams of
`data_streams` response and are checked
- data stream filter dropdown renders badge with correct number of
selected data streams
- charts render from `data_streams` route response
- chart legends render with correct items
- popover renders for legend items
- links in popovers correctly navigate and update navigation between
different data stream items
2024-12-12 08:08:08 -05:00
Felix Stürmer
62e059f0ca
[Dataset Quality] Work around a geoip limitation in CI (#203165)
The geoip database is not available in CI, so a `tags` field is added to
all ingested APM app log documents. This covers up the difference in
field counts between serverless CI and MKI by always having a `tags`
field in the documents. It also unskips the test that failed in MKI
because of this.

Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>
2024-12-11 12:46:40 +01:00
Samiul Monir
a5c9ed7bb8
Support incoming Preconfigured Endpoints (#203473)
## Summary

Currently, the FTR tests are written to expect only two preconfigured
endpoints. However, there might be more incoming, and this PR
generalizes these tests so they do not depend on the number of
preconfigured endpoints in the future.



### Checklist

Check the PR satisfies following conditions. 

Reviewers should verify this PR satisfies this list as well.

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

---------

Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>
2024-12-10 16:09:31 -05:00
Lukas Olson
5acba9678a
Add error handling/retry logic for search source alert tests (#196443)
## Summary

Resolves https://github.com/elastic/kibana/issues/193842.

Adds error handling & retry logic for search source alerts that are
causing failures on MKI.

### Checklist

- [x] [Flaky Test
Runner](https://ci-stats.kibana.dev/trigger_flaky_test_runner/1) was
used on any tests changed
2024-12-10 13:27:36 -07:00
Georgiana-Andreea Onoleață
5a67a033a3
[ResponseOps][Serverless]Maintenance window page displays dead breadcrumb for management (#201147)
Closes https://github.com/elastic/kibana/issues/189318

## Summary

- the issue was resolved by using
useKibana.services.serverless.setBreadcrumbs instead of
chrome.setBreadcrumbs, this ensures that breadcrumb functionality is
correctly handled within serverless observability.



https://github.com/user-attachments/assets/d805b54f-74b4-424f-8304-dced09718ebb
2024-12-10 18:13:43 +02:00
Mykola Harmash
6cb14302a1
[Observability Onboarding] Show existing data callout in Firehose flow (#203072)
Closes https://github.com/elastic/kibana/issues/190795

Adds the logic to display a message to the user in case there is already
an existing Firehose data in their cluster and to show the identified
AWS services in the "Visualize Data" step right away without waiting for
the window to loose focus first.

![CleanShot 2024-12-05 at 11 50
59@2x](https://github.com/user-attachments/assets/00653bf0-f711-4029-9011-a34a160b4b9b)


## How to test

1. Open the Firehose flow
2. Make sure there is no callout and the third step is not active
3. Go to Kibana dev console and ingest some dummy data (see examples
bellow)
4. Refresh the page with the Firehose flow
5. make sure there is a callout and the third steps shows the identified
AWS service

```
POST logs-aws.apigateway_logs-default/_doc
{
  "@timestamp": "2024-11-25T13:32:01.000Z",
  "some": 111,
  "aws.kinesis.name": "Elastic-CloudwatchLogs"
}

POST metrics-aws.apigateway_metrics-default/_doc
{
    "@timestamp": "2024-11-25T13:31:01.000Z",
    "agent": {
      "type": "firehose"
    },
    "aws": {
      "cloudwatch": {
        "namespace": "AWS/ApiGateway"
      },
      "exporter": {
        "arn": "arn:aws:cloudwatch:us-west-2:975050175126:metric-stream/Elastic-CloudwatchLogsAndMetricsToFirehose-CloudWatchMetricStream-Nhb4NhzPdL4J"
      }
    },
    "cloud": {
      "account": {
        "id": "975050175126"
      },
      "provider": "aws",
      "region": "us-west-2"
    }
}
```
2024-12-10 14:07:11 +01:00
Sonia Sanz Vivas
8f53424ddb
Fix console deep link (#202726)
Closes [#194439](https://github.com/elastic/kibana/issues/194439) 

## Summary
The Console deeplink is missing from the deeplinks definition, causing
the side nav item to be removed. Also searching Console in Kibana
doesn't return results. This error started to happen with this
[PR](https://github.com/elastic/kibana/pull/190698), where the
[enableRouting](url) value for the `ConsoleUIPlugin` was set to true.
The problem is that we were filtering out the plugins with this value
set to true when building the deeplink list. This PR removes this
condition in the filter and also reverts the change done by the
searchteam as a workaround
[here](https://github.com/elastic/kibana/pull/194060).


<img width="581" alt="Screenshot 2024-12-03 at 14 38 30"
src="https://github.com/user-attachments/assets/43b82222-a195-4a36-a438-0ae1c3cb52a7">

<img width="1500" alt="Screenshot 2024-12-03 at 14 33 50"
src="https://github.com/user-attachments/assets/424dd4cf-1931-494e-92be-a14b01f96b34">





### Checklist

Check the PR satisfies following conditions. 

Reviewers should verify this PR satisfies this list as well.

- [ ] 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
- [ ] [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
- [ ] 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 was checked for breaking HTTP API changes, and any breaking
changes have been approved by the breaking-change committee. The
`release_note:breaking` label should be applied in these situations.
- [ ] [Flaky Test
Runner](https://ci-stats.kibana.dev/trigger_flaky_test_runner/1) was
used on any tests changed
- [ ] The PR description includes the appropriate Release Notes section,
and the correct `release_note:*` label is applied per the
[guidelines](https://www.elastic.co/guide/en/kibana/master/contributing.html#kibana-release-notes-process)

---------

Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>
2024-12-10 11:18:48 +01:00
Jatin Kathuria
9619d610d1
[ Security Solution ] One discover security context functional tests (#199818)
## Summary

Fixes https://github.com/elastic/security-team/issues/11112

Follow up to 
- https://github.com/elastic/kibana/pull/199279

Adds functional test for Security Profiles in One Discover.


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

---------

Co-authored-by: kibanamachine <42973632+kibanamachine@users.noreply.github.com>
2024-12-10 03:38:43 -06:00
Kibana Machine
371fd70769 skip failing test suite (#203477) 2024-12-10 09:56:45 +11:00
Tiago Costa
d2e6f20ab9
skip flaky suite (#203462) 2024-12-09 16:25:56 +00:00
José Luis González
6bf02e4c13
[ES3][Connectors]Using EuiComboBox with searchable capability as we do in ESS (#199464)
## Summary

This PR swaps the `EuiSelectable` by the `EuiComboBox` component as we
have in ESS.
### Context:
This PR belongs to this initiative
https://github.com/elastic/search-team/issues/8000 where we agreed on
bring low hanging fruit artefacts from ESS to ES3 before being replace
completly with the full new experience which will be later. Therefor we
are not investing effort on make the code scalable and reusable at this
point.

![CleanShot 2024-11-08 at 12 59
47](https://github.com/user-attachments/assets/a73884c2-7ea4-412c-a5de-386003733d0a)

---------

Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>
Co-authored-by: Navarone Feekery <13634519+navarone-feekery@users.noreply.github.com>
Co-authored-by: kibanamachine <42973632+kibanamachine@users.noreply.github.com>
Co-authored-by: Rodney Norris <rodney@tattdcodemonkey.com>
2024-12-09 15:51:10 +01:00
Joe McElroy
d51601d346
[OE] [Connectors] Enabling connectors FTRs (#203192)
## Summary

- Fixes issue where deletes all connectors before starting
- fixes issue where the first page is index_management 
- fixes devconsole tests
- fixes where the creating the connector and searching for it may not
appear (as hasn't propagated) made this test retry


### Checklist

Check the PR satisfies following conditions. 

Reviewers should verify this PR satisfies this list as well.

- [ ] 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
- [ ] [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
- [ ] 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 was checked for breaking HTTP API changes, and any breaking
changes have been approved by the breaking-change committee. The
`release_note:breaking` label should be applied in these situations.
- [x] [Flaky Test
Runner](https://ci-stats.kibana.dev/trigger_flaky_test_runner/1) was
used on any tests changed
- [ ] The PR description includes the appropriate Release Notes section,
and the correct `release_note:*` label is applied per the
[guidelines](https://www.elastic.co/guide/en/kibana/master/contributing.html#kibana-release-notes-process)

### Identify risks

Does this PR introduce any risks? For example, consider risks like hard
to test bugs, performance regression, potential of data loss.

Describe the risk, its severity, and mitigation for each identified
risk. Invite stakeholders and evaluate how to proceed before merging.

- [ ] [See some risk
examples](https://github.com/elastic/kibana/blob/main/RISK_MATRIX.mdx)
- [ ] ...

---------

Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>
2024-12-09 13:25:09 +00:00
Arturo Lidueña
df0dfa5216
[Observability AI Assistant] migrate to inference client #197630 (#199286)
## Summary

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

Closes #197630 
[Observability AI Assistant] Partially migrate to inference client 

replacing `inferenceClient.chatComplete` to
`observabilityAIAssistantClient.chat` -
`observabilityAIAssistantClient.complete` does a bunch of stuff on top
of `chat`. keepping `observabilityAIAssistantClient.chat` as a wrapper
for now because it also adds instrumentation and logging.
2024-12-09 12:46:31 +01:00
Julia Rechkunova
2f95dee8f4
[Discover] Remove discover:searchFieldsFromSource setting (#202679)
- Closes https://github.com/elastic/kibana/issues/196501

## Summary

The PR removes `discover:searchFieldsFromSource` Advanced Setting and
the associated code.
This breaking change is planned for v9.

The setting was marked as deprecated in v8.15
https://github.com/elastic/kibana/pull/185871

### Checklist

- [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
- [x] The PR description includes the appropriate Release Notes section,
and the correct `release_note:*` label is applied per the
[guidelines](https://www.elastic.co/guide/en/kibana/master/contributing.html#kibana-release-notes-process)
2024-12-06 17:58:47 +01:00
Sandra G
42348d41f4
[Data Usage] add error handling and tests for privilege related errors (#203006)
- handling of 2 error cases to error handler
- `security_exception` due to lack of privileges. Metering api will
respond when one of the following isn't available as a user privilege
`monitor,view_index_metadata,manage,all`.
- `index_not_found_exception`. Metering api will respond with this when
no indices exist for the privileges it has access to or when no indices
are found.
- api integration tests for data_streams route for the following cases
- returns no data streams when there are none it has access to and
responds with appropriate message
- returns no data streams without necessary privileges and responds with
appropriate message
- returns data streams when user only has access to a subset of indices
with necessary privileges
- functional tests for same as above. these remain skipped due to not
being able to create data streams picked up by metering api since we
implemented filtering out zero storage size data streams, but useful for
local testing with some code changes.


### `security_exception` view
<img width="1555" alt="Screenshot 2024-12-04 at 1 14 10 PM"
src="https://github.com/user-attachments/assets/241a2eb8-1c77-4592-ba18-b971512e712e">

### `index_not_found_exception` view
<img width="1589" alt="Screenshot 2024-12-04 at 1 13 13 PM"
src="https://github.com/user-attachments/assets/12b68d66-9178-4957-b014-5765be348694">

---------

Co-authored-by: Ashokaditya <ashokaditya@elastic.co>
Co-authored-by: kibanamachine <42973632+kibanamachine@users.noreply.github.com>
2024-12-06 10:58:20 -05:00