Commit graph

86359 commits

Author SHA1 Message Date
Drew Tate
7e4f834a57
[ES|QL] add full text search to STATS ... WHERE (#220691)
## Summary

Close https://github.com/elastic/kibana/issues/220678


<img width="851" alt="Screenshot 2025-05-09 at 10 19 47 AM"
src="https://github.com/user-attachments/assets/0570c9d5-a1ee-4567-b0cd-47814440f206"
/>


### 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: Elastic Machine <elasticmachine@users.noreply.github.com>
2025-05-10 07:02:29 -06:00
Stratoula Kalafateli
0ee1a9d364
[ES|QL] TS command autocomplete (#219901)
## Summary

This enables the TS command indexes and METADATA autocomplete.

The TS command works exactly like FROM with the only difference that it
works only with time_series mode indices. For this reason make sure that
you have installed the `kibana_sample_data_logs_tsdb` indices.

One year earlier we had done some work for the METRICS command which was
working a bit differently. This PR is also making a cleanup.

The TS is not yet suggested it the source commands as is still under
snapshots.

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


![meow](https://github.com/user-attachments/assets/e1b67d21-ca7f-4611-a340-c8f56e85d680)


### Checklist

- [ ]
[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
2025-05-10 03:01:45 -04:00
Lisa Cawley
b0a841c421
Use new logstash, addData, logging, ingest URLs (#219286)
Co-authored-by: Jean-Louis Leysens <jloleysens@gmail.com>
2025-05-09 18:51:52 -07:00
Ying Mao
437a9fa4f3
[Response Ops][Alerting] Skip writing alerts when rule exceeds configured timeout (#220147)
Fixes https://github.com/elastic/kibana/issues/219152

## Summary

We added the ability to short circuit rule execution (skip scheduling
actions and writing event log docs) when an execution is cancelled due
to timeout but at the time we added this ability, we were not persisting
alert documents. When we added framework alerts-as-data, we did not add
a check to ensure rule execution had not timed out before writing the
alerts. This PR adds the missing check. This should also respect the
`cancelAlertsOnRuleTimeout` flag that can be set in the config or the
rule type that can force persisting alerts regardless of timeout.

## To verify

1. Set a short `ruleTaskTimeout` on a rule type and add a delay to the
rule executor that will force the rule to timeout.
2. Create a rule of that type that generates alerts. Verify that when
the rule execution times out, no alerts are written.
2025-05-09 18:38:30 -04:00
Robert Jaszczurek
c97f2c704d
[ML] Trained Models: Prevent Download of Models Already Present in Other Spaces with Warning (#220238)
Resolves https://github.com/elastic/kibana/issues/206834
Before: 
> If a trained model like ELSER has already been downloaded but is not
available in the current space, the download action is available but
results in the following error

![image](https://github.com/user-attachments/assets/e69516e5-749e-4500-b645-099975453f1e)

This PR prevents models from being downloaded if they already exist in a
different space
* If the model is downloaded in a different space and the user has write
permissions for the current space:
<img width="1228" alt="image"
src="https://github.com/user-attachments/assets/db146bbb-a295-471e-b0a1-f1a8c0949739"
/>

* If the model is downloaded in a different space but the user lacks
write permissions for the current space:
<img width="1479" alt="image"
src="https://github.com/user-attachments/assets/dcf195c1-7314-4b0b-af9d-1fbbaffcbb89"
/>

Note:
It adds an additional request to ES, but within a trace, it is just one
extra span, so the performance impact is not significant:

![image](https://github.com/user-attachments/assets/8be08344-eb91-4cdb-a5b1-a4838f5219b6)

I tried adding functional tests for this, but it only applies to hosted
models, which are too large to download durning the testing phase, thus
I don't see a convenient way to test it.
2025-05-09 23:53:16 +02:00
Steph Milovic
117600978e
[Security solution] Security AI prompts integration (#216106) 2025-05-09 13:39:18 -06:00
seanrathier
1ff8b8f063
[Cloud Security] Add Fleet Extensions for Cloud Asset Discovery to Enable Custom Onboarding UI (#219001) 2025-05-09 15:32:28 -04:00
seanrathier
473bab1189
[Cloud Security] Cloud Security Posture - remove GCP required error state (#220676) 2025-05-09 15:26:31 -04:00
Lola
2bae707dda
[Cloud Security] Add Cloud Connectors CSPM Support (#212200)
## Summary

Summarize your PR. If it involves visual changes include a screenshot or
gif.
This PR adds support to Cloud Connector for CSPM.

- Adds Cloud Connector Option for Credentials type

- Cloud Formation UI opens an external Link to run Cloud Formation
template which will generate the Role_ARN and External ID.
- User will copy and paste those fields to input fields
- Updates Agentless Policy to include cloud connector enabled support
and the target `cloud server provider`
- Locally, ` xpack.cloudSecurityPosture.enableExperimental:
['cloudConnectorsEnabled']` will be set `kibana.dev.yml`
- In prod, ` xpack.cloudSecurityPosture.enableExperimental:
['cloudConnectorsEnabled']` will be set in `kibana.yml` and - Cloud
Connector support is only available on AWS setup and AWS Deployed
environment

<img width="1723" alt="Screenshot 2025-05-05 at 9 47 17 AM"
src="https://github.com/user-attachments/assets/13d29190-abfb-4cd0-9f1b-9d0012d1f70c"
/>

<img width="971" alt="Screenshot 2025-05-05 at 9 47 32 AM"
src="https://github.com/user-attachments/assets/043cb3a0-0760-4dfd-9381-5fee37068848"
/>


### How to run Locally:

E2E workflow is not supported yet for Cloud Connectors but we can see
the updated UX with AgentPolicy being configured with cloud connector
properties {enabled: true, target_csp: 'aws'} and Package Policy being
configured
`role_arn` and `external id`  

1.  Search for `showCloudConnectors={showCloudConnectors}
2. Change property to true  `showCloudConnectors={true}`
3. Select Cloud Connectors options and you should see the feature
screenshot above
2025-05-09 15:23:20 -04:00
Zacqary Adam Xeper
7e5c77474a
[Response Ops] [Dashboard] Create a rule from a dashboard ES|QL visualization (#217719)
## Summary

Closes #208854 

This adds a tooltip action and a context menu action to the **ES|QL**
panel type allowing the user to create an Elasticsearch Query rule from
the visualization on the panel. Lens panels are currently not supported.

### Tooltip action
<img width="1081" alt="Screenshot 2025-04-09 at 11 06 25 AM"
src="https://github.com/user-attachments/assets/3315cd9f-6dda-44b0-8e7c-eb295c08b89f"
/>

Prefill the time field from the chart, and the alert window from the
dashboard's current displayed time range:
<img width="588" alt="Screenshot 2025-04-09 at 11 06 46 AM"
src="https://github.com/user-attachments/assets/c06a99ab-ce67-4c88-b4ff-dd6edd9e864a"
/>

Add an extra clause to the end of the visualization's ES|QL query to set
an alert threshold based on the data point that the user clicked on:
<img width="562" alt="Screenshot 2025-04-09 at 11 06 55 AM"
src="https://github.com/user-attachments/assets/27a6552b-b5be-4cb7-80aa-74c683b93ae4"
/>



### Context menu action
<img width="1107" alt="Screenshot 2025-04-09 at 11 07 41 AM"
src="https://github.com/user-attachments/assets/fe6d7f76-68e6-4345-b2a8-e47d1363d7d8"
/>

Creating a rule from the context menu instead of from a tooltip doesn't
give us a pre-filled threshold value, so we ask the user to specify it:
<img width="563" alt="Screenshot 2025-04-09 at 11 07 48 AM"
src="https://github.com/user-attachments/assets/83a7f51b-bb87-4637-b602-b169b3f0a375"
/>

### Supported cases
#### Breakdowns and split values:
<img width="1077" alt="Screenshot 2025-04-09 at 11 14 47 AM"
src="https://github.com/user-attachments/assets/d691d247-27af-45d1-82ac-b50aaa20e9f9"
/>
<img width="556" alt="Screenshot 2025-04-09 at 11 14 56 AM"
src="https://github.com/user-attachments/assets/3b97f08d-00b5-464d-8700-59d6d4a4d473"
/>

#### Escaping column names
<img width="668" alt="Screenshot 2025-04-09 at 11 18 08 AM"
src="https://github.com/user-attachments/assets/ad98cb2a-d167-4175-acd5-bc81822a2d1c"
/>
<img width="574" alt="Screenshot 2025-04-09 at 11 18 42 AM"
src="https://github.com/user-attachments/assets/d6805e93-2592-4a66-b59e-7ceffca579c7"
/>


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

## Release note
Adds the Create alert rule action to ES|QL dashboard panels, usable from
the panel context menu or by right-clicking a data point on the
visualization. This allows you to generate an alert when the data on the
chart crosses a certain threshold.

---------

Co-authored-by: mbondyra <marta.bondyra@elastic.co>
Co-authored-by: kibanamachine <42973632+kibanamachine@users.noreply.github.com>
Co-authored-by: Stratoula Kalafateli <efstratia.kalafateli@elastic.co>
Co-authored-by: Marco Vettorello <vettorello.marco@gmail.com>
Co-authored-by: Marco Liberati <dej611@users.noreply.github.com>
Co-authored-by: dej611 <dej611@gmail.com>
2025-05-09 15:04:00 -04:00
Anton Dosov
05584afbe4
fix Failing test: Jest Tests.x-pack/platform/plugins/shared/saved_objects_tagging/public/components/edition_modal (#220672) 2025-05-09 11:35:51 -07:00
Meghan Murphy
4b182d7935
[WorkChat] Remove extra Index Source Description field (#220431)
## Summary

This PR updates the Description field spefically used for LLM context to
say 'Tool Description' to minimize confusion.

<img width="1483" alt="Screenshot 2025-05-09 at 10 41 49 AM"
src="https://github.com/user-attachments/assets/bbf646c0-e3d8-4a89-b3f8-250c785a43b3"
/>


### 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/src/platform/packages/shared/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)

### 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: kibanamachine <42973632+kibanamachine@users.noreply.github.com>
2025-05-09 14:21:08 -04:00
Enrico Zimuel
55a2c98e04
Added the static telemetry for start-local (#220519)
This PR adds the [start-local](https://github.com/elastic/start-local)
telemetry keyword. This keyword has [already been merged in
start-local](https://github.com/elastic/start-local/pull/52) to inform
Kibana that the telemetry are coming from a start-local installation.

When this will be merged I can than release a new version of start-local
(i.e. 0.9.0).

---------

Co-authored-by: kibanamachine <42973632+kibanamachine@users.noreply.github.com>
Co-authored-by: Alejandro Fernández Haro <alejandro.haro@elastic.co>
2025-05-09 20:10:50 +02:00
Julian Gernun
8e36810f45
[Response Ops] Fix rule form design inconsistencies (#220692) 2025-05-09 14:00:47 -04:00
Tim Sullivan
0fcc9a39ba
[Solution Side Nav] Fix panel styles (#219478)
## Summary

Epic: https://github.com/elastic/kibana-team/issues/1439
Depends on https://github.com/elastic/kibana/pull/218513

### List of changes
1. Match header text style with the main panel
2. Match spacing between items with the main panel
3. Show horizontal line between groups in the panel
- This restores a custom error that was in the code prior to #218156,
but adds better handling and tests to the error
5. Fix position of accordion group arrows in the secondary panel
(viewable only from Storybook)
6. isOpen is not really needed and can be cleaned up
- (see
https://github.com/elastic/kibana/pull/217708/files#diff-9e95eb3e4be14fb61caca86b48be4f03ca63393eeeadcd0b36f7371958a7e5e1L55)
7. (not panel-related) remove the on-hover and on-focus underline from
nav items

### Checklist from Kate:
- [x] text font-weight of solution title in main panel
- [x] text font-weight of secondary panel link content
- [x] zero space between items
- [x] use ~~12px~~ nice-looking margin from the link to the edge of the
panel
- [x] ensure the divider reaches to the edge of the panel
- [x] increase space from panel header to the items
- [x] ensure the width of both panels is 248px
- [x] secondary panel header should vertically align with the below nav
items
- [x] (not panel-related) font color and icon color of selected items
should be "primary" blue

### Screenshots

**Security Solution Serverless**


https://github.com/user-attachments/assets/83ca1c25-f44a-4270-96a8-e28e7b6d7041

### 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
2025-05-09 13:34:12 -04:00
Ola Pawlus
e7e8d2f13b
Fix: success message and scroll after adding panel from library (#220122)
Initially there was no success message for any type in the library and
there was no scrolling to added panel.

This change sets displaySuccessMessage to true for each plugin
registered in the Add from Library flyout.

It ensures that:
- users see a success toast after adding a panel,
- the newly added panel is automatically scrolled into view.

Closes: #188775

---------

Co-authored-by: kibanamachine <42973632+kibanamachine@users.noreply.github.com>
2025-05-09 13:24:49 -04:00
Paulo Silva
e528a30fa8
[Asset Inventory] Split URL State Management for Page Filters and Grouping fixes (#220455)
## Summary

It closes #219580 and #219654

This PR adds separate URL state management to filters in the asset
inventory page, so it doesn't conflict with the filter used in the
Searchbar.

It also fixes an issue with the null grouping not filtering for the
missing group field.

### Screenshot


https://github.com/user-attachments/assets/0c022d41-f68f-46df-bbe9-2c5918e0af44

**Null group fix**

<img width="1481" alt="image"
src="https://github.com/user-attachments/assets/60010d40-f314-4823-bddc-17f828f175c0"
/>

**Asset Criticality Grouping**

<img width="1493" alt="image"
src="https://github.com/user-attachments/assets/7a47742f-0d14-4643-91ac-ce3dd847b576"
/>
2025-05-09 10:22:41 -07:00
Joe Reuter
4f2a06d358
🌊 Fix root stream check (#220667)
`isRootStreamDefinition` didn't check properly for a root stream. A root
stream is a wired stream that doesn't contain dots.

After this change:
* classic stream processing should be editable
* wired stream processing should be editable as long as not root stream
* root stream processing should be editable
2025-05-09 13:20:49 -04:00
Garrett Spong
e9a8909fad
[Security Assistant] Simplifies Security Gen AI Evaluation secret management (#219885)
## Summary

Simplifies secret management for running the Security Gen AI
Evaluations. See updated README.md for full details, but includes:

* Consolidation of multiple vault keys to a single
`KIBANA_SECURITY_GEN_AI_CONFIG` key, which contains all connectors,
langsmith creds and now a way to specify `evaluatorConnectorId`.
* Added `vault` params to both `retrieve_secrets.js` and
`upload_secrets.js` for specifying the vault. Defaults to `sieam-team`
secrets.elastic.co for ease of use by developers.
* Introduces `get_commands.js` script for fetching commands to hand off
to either Kibana Ops for updating, or specifying config overrides when
manually running BuildKite pipelines.
* Deleted `export_env_secrets.js` as it couldn't be used for setting env
vars locally for the dev testing experience.
* Updated `connectors` as per team discussion to include: GPT-4.1,
Claude 3.5/3.7, and Gemini 2.5 Pro. This was a config change made by
Kibana Ops, so no code change present. But you can confirm by running
`retrieve_secrets.js`.

And finally, a much more detailed `README.md` for testing locally, on
PR's and CI, and the process for updating secrets. See full
[README.md](https://github.com/spong/kibana/blob/ci-eval-tweaks/x-pack/test/security_solution_api_integration/test_suites/genai/evaluations/README.md)



Example LangSmith Runs:

* `ES|QL Generation Regression Suite`: [Run
298372](261dcc59-fbe7-4397-a662-ff94042f666c)
* `Alerts RAG Regression (Episodes 1-8)`: [Run
298372](bd5bba1d-97aa-4512-bce7-b09aa943c651)
* `Assistant Eval: Custom Knowledge`: [Run
298372](2d5f7c18-4bf4-4cdb-97a1-16e39a865cab)
* `Eval AD: All Scenarios`: [Run
300138](4690ee16-9df5-416c-8bf0-b62bc2f2aba9/compare?selectedSessions=6d44134b-6492-4f2d-9b28-6d4a82a0e9ae&baseline=undefined)

Note: there is currently a timing bug with Alerts/KB entries being
cleaned up before the server is complete, so you may see poor evals for
`Alerts RAG Regression (Episodes 1-8)` and `Assistant Eval: Custom
Knowledge` until that is fixed. I'll address this in a follow-up PR
since it is unrelated to this change-set.
2025-05-09 11:01:36 -06:00
Tim Sullivan
04f60148aa
[High Contrast Mode] Add "beta" badge to contrast setting (#220592)
## Summary

This PR adds a "beta" badge to the setting for high-contrast mode.

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


https://github.com/user-attachments/assets/059d3534-3345-4a3b-9e4b-c38c62ed3fa5

### 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/src/platform/packages/shared/kbn-i18n/README.md)
2025-05-09 12:49:25 -04:00
Davis Plumlee
0eeb5ffcff
[Security Solution] Fixes exceptions list and actions being overwritten when using legacy prebuilt rule upgrade (#218519)
## Summary

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

Fixes issues that caused the `exceptions_list` and `actions` fields to
get overwritten when the legacy prebuilt rule upgrade methods
(`api/detection_engine/rules/prepackaged`) were used.

### Testing

1. Install an outdated rules package  
1. Install all rules from the package  
1. Add actions and exceptions to the installed rules (actions can be
added using bulk edit)
1. Install the latest available prebuilt rules package  
1. Call the legacy API to upgrade installed rules to the latest
versions: `/api/detection_engine/rules/prepackaged`
1. Observe all exceptions lists and actions are maintained through
upgrade process

### Checklist

Check the PR satisfies following conditions. 

Reviewers should verify this PR satisfies this list as well.

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

---------

Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>
2025-05-09 12:20:27 -04:00
jennypavlova
266adab7e8
Add a11y alerts flyout labels (#220641)
Part of #212947 

## Summary

This PR improves the accessibility of the alerts flyout by adding
`aria-label`s and `id`s


## Testing ( Mac OS VoiceOver utility )


https://github.com/user-attachments/assets/0a3e7357-45fd-4ef6-94d0-a35693520626
2025-05-09 17:39:50 +02:00
Dmitrii Shevchenko
4babfc2cfe
[AI4SOC] Pin the prebuilt rules package version (#220653)
## Summary

Pin the prebuilt rules package version to the one containing promotion
rules needed for AI4SOC to work.

Note: this is only for test purposes, the package will be removed once
AI4SOC is ready to be released and the promotion rules are added to the
production rules package.
2025-05-09 17:28:58 +02:00
Elena Stoeva
094b5d59c4
[Console] Fix auto-indentation of requests with triple quotes (#218305)
Fixes https://github.com/elastic/kibana/issues/217966

## Summary

This PR fixes auto-indentation of requests that contain triple-quote
strings.

Sample request to test with:

```
POST /_query
{
  "query": """
    FROM sample_data
    | WHERE message LIKE "Connected*"
    | SORT @timestamp DESC
    """
}
```



https://github.com/user-attachments/assets/e62caba9-4c9f-4120-b2b1-0faaa9bc9beb
2025-05-09 16:11:25 +01:00
Davis McPhee
3cfdc18cfc
[Unified Histogram] Fix Unified Histogram test types (#220550)
## Summary

This PR fixes some type issues related to tests in the Unified Histogram
package, although I'm not sure why they didn't show up in CI:

![image](https://github.com/user-attachments/assets/9894df2a-c3a8-4d25-ae0e-9b015f01b723)

### Checklist

- [ ] 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)
- [ ]
[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)
2025-05-09 12:00:52 -03:00
Steph Milovic
214c5f099e
[Security Assistant] Added examples for necessary AI Assistant OpenAPI docs (#219883) 2025-05-09 08:47:44 -06:00
Achyut Jhunjhunwala
f36344ce4e
[One Discover] fix the dataset name and generate more data to populate the table wit… (#220649)
closes - https://github.com/elastic/kibana/issues/220399
closes - https://github.com/elastic/kibana/issues/220303
closes - https://github.com/elastic/kibana/issues/220304
closes - https://github.com/elastic/kibana/issues/220305

## Summary

It seems something is causing to clean the data. Due to this only 1 row
of data gets loaded. Which is not good. We need at least 2 rows of data.
Hence

- generating more data in attempting to fix this issue
- changed dataset and service name to avoid collision


Flaky Test Runner -
https://buildkite.com/elastic/kibana-flaky-test-suite-runner/builds/8258
2025-05-09 16:42:07 +02:00
Stratoula Kalafateli
8a4ea4dd3d
[ES|QL] Removes SHOW functions from docs (#220652)
## Summary

Removes `Show functions` from our docs as it is not supported anymore

<img width="487" alt="image"
src="https://github.com/user-attachments/assets/ca385cb4-d96f-4730-891f-b9b50bd34a35"
/>
2025-05-09 10:36:26 -04:00
Kibana Machine
0f9334af2b skip failing test suite (#220376) 2025-05-09 16:22:17 +02:00
Alexey Antonov
9a2dc53b82
fix: [Platform:StackManagement:SnapshotAndRestore:Add repository page]Missing error warning announcement (#220633)
Closes: #219355
Closes: #219345


## Summary

This PR improves accessibility for users relying on assistive
technologies for: `Analytics → Stack Management → Snapshot and Restore`
by addressing the following:

1. Screen Reader Announcements for Error Warnings
2. Duplication of announcement
2025-05-09 09:44:30 -04:00
Søren Louv-Jansen
ed1f558f30
[Obs AI Assistant] Improve flaky recall tests (#220638) 2025-05-09 15:21:07 +02:00
Elena Stoeva
7be65de507
[Console] Fix autoselecting last request (#218001)
Fixes https://github.com/elastic/kibana/issues/194257

## Summary


This PR fixes the bug in Console where, if there is a request on the
last line of the editor, it gets automatically selected when the editor
is open. This is because the cursor is initially placed at the last
position of the edition, and if this position turn out to be at the end
of the request, the request is selected because the editor is on focus.
We fix this by not focusing the editor initially (i.e. there is no
blinking cursor when you open the editor) - this ensures that there
won't be any initial request highlighting as per the logic on the
following line:
5c78ff1848/src/platform/plugins/shared/console/public/application/containers/editor/monaco_editor_actions_provider.ts (L73))




https://github.com/user-attachments/assets/6f10e59b-92c7-4501-bf01-54987bc2f289
2025-05-09 13:51:30 +01:00
Larry Gregory
5b96d793fb
Ignore Full Story assets in CodeQL (#220531) 2025-05-09 07:06:00 -04:00
Bryce Buchanan
2591fb9d3d
fix error_marker.tsx to support mobile-services (#220424)
## Summary

If a mobile span has an attached span.event exception, the associated
page will crash.

<img width="2108" alt="Screenshot 2025-05-07 at 12 20 26"
src="https://github.com/user-attachments/assets/83ad4755-6c06-4b0c-a2af-ad15a8dd8392"
/>

This PR add `mobile-services` to the list of valid paths for
error_marker.tsx

### Checklist

Check the PR satisfies following conditions. 

Reviewers should verify this PR satisfies this list as well.

- [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)
2025-05-09 06:02:27 -04:00
Lisa Cawley
5b005594cc
Use new beat URLs in doc link service (#219310) 2025-05-09 06:01:39 -04:00
Maryam Saeidi
f5fbabe11d
Automate labeling PRs with obs-ux-management team via GitHub Actions (#220533)
## Summary

We would like to add the `author:obs-ux-management` label to the PRs if
the author of a PR is one of our team members.

I tested this logic in another
[repo](https://github.com/maryam-saeidi/testing/pull/3).
2025-05-09 11:48:24 +02:00
Carlos Crespo
3eda45877d
[APM]Attempt to fix flaky APM alert tests (#220509)
## Summary

Attempt to fix
https://buildkite.com/elastic/appex-qa-stateful-kibana-ftr-tests/builds/240#0196a98c-4e48-4028-9bde-84b04530e63e
2025-05-09 11:41:06 +02:00
Marco Vettorello
1dd80c9c51
[deps] Upgrade @elastic/charts to 69.2.2 (#220470)
## Summary

This PR updates the `@elastic/charts` dependency to 69.2.2

For changes see
1e62c4a4cc/CHANGELOG.md
2025-05-09 09:53:23 +02:00
Tomasz Ciecierski
8f166d0969
[AI4DSOC] Disable Visualize, Lens and Maps for Search AI Lake Tier (#218089) 2025-05-09 09:19:56 +02:00
Eyo O. Eyo
59f741d1d9
reworks condition for matching chromium build trigger label (#220545)
## Summary

One more try, this time with single line expression 🤷🏾‍♂️ ... whilst
using only the contains function, [see here for more
information](https://docs.github.com/en/actions/writing-workflows/choosing-what-your-workflow-does/evaluate-expressions-in-workflows-and-actions#contains)

<!--
### 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/src/platform/packages/shared/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)

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


-->
2025-05-09 09:18:35 +02:00
Tiago Costa
6250b3c3ec
skip flaky suite (#216044) 2025-05-09 04:41:01 +01:00
Viduni Wickramarachchi
996aacbf96
[Obs AI Assistant] Only show ELSER in EIS if available (#220096) 2025-05-08 21:07:18 -04:00
Lisa Cawley
d91af7ad7d
[DOCS] Update URLs for apm, monitoring, and observability (#218030)
Co-authored-by: florent-leborgne <florent.leborgne@elastic.co>
2025-05-08 20:29:43 -04:00
Søren Louv-Jansen
96d1692ae2
[Obs AI Assistant] Use update-by-query for semantic_text migration (#220255)
Closes: https://github.com/elastic/kibana/issues/220339

**Background**
The `semantic_text` migration will migrate content from `text` field to
`semantic_text` field. It does so with a recursive function that
continuously retrieves knowledge base entries if they do not contain
`semantic_text` and updates them accordingly.

**Problem**
It is possible to save empty knowledge base entries
(https://github.com/elastic/kibana/issues/220342) where `text` and
`semantic_text` will be empty. Doing this will cause the migration
script to run indefinitely leading to OOM on the affected clusters.

## Workarounds for clusters that cannot / won't upgrade

Temporary workaround is to delete empty knowledge base entries:

```jsonc
POST .kibana-observability-ai-assistant-kb/_delete_by_query
{
  "query": {
    "bool": {
      "must": [{ "exists": { "field": "text" }}],
      "must_not": [ { "wildcard": { "text": "*" } }
      ]
    }
  }
}
```

If you want to perform a dry run (find offending documents without
deleting them) run this:
```jsonc
GET .kibana-observability-ai-assistant-kb/_search
{
  "query": {
    "bool": {
      "must": [{ "exists": { "field": "text" }}],
      "must_not": [ { "wildcard": { "text": "*" } }
      ]
    }
  }
}
```
2025-05-08 23:52:33 +02:00
Viduni Wickramarachchi
ff3822d0a3
[Obs AI Assistant] Fix re-deploy model timeout and status polling (#220445)
Closes https://github.com/elastic/obs-ai-assistant-team/issues/247
Closes https://github.com/elastic/kibana/issues/217912

## Summary

### Problems
- The `/warmup_model` endpoint doesn't return immediately and waits for
the KB to be ready. If there is no ML nodes or sufficient capacity in
the ML node, the API can timeout.
- Since the endpoint doesn't return immediately, we don't poll for
status continuously.
- Knowledge base tab doesn't show `Inspect` if no ML nodes are
available.

### Solutions

- Show `Inspect` information in the knowledge base
- Return `/warmup_model` immediately (we don't need to wait for the
model to be ready since we are polling), and start polling
- If the user refreshes the browser and if the `kbState` is in
`DEPLOYING_MODEL` keep polling for status

### Checklist

- [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)
2025-05-08 17:49:20 -04:00
Meghan Murphy
c046881807
[Workchat] Create required warnings to configure Description and Name after trying to save (#220433)
## Summary

This PR issues a warning that the fields 'Name' and 'Description' are
required

<img width="1710" alt="Screenshot 2025-05-07 at 4 28 23 PM"
src="https://github.com/user-attachments/assets/cdf496fe-7925-4843-9376-c24b22fce544"
/>

### 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/src/platform/packages/shared/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)

### 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: kibanamachine <42973632+kibanamachine@users.noreply.github.com>
2025-05-08 17:46:30 -04:00
Vadim Kibana
6b1f832dc9
[ES|QL] RERANK command parsing support (#219948)
## Summary

Partially addresses https://github.com/elastic/kibana/issues/217285

- Adds parsing support for `RERANK` command.
- Adds `ESQLAstRerankCommand` AST node.


### 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
2025-05-08 15:12:46 -06:00
Marta Bondyra
b018153876
[Presentation utils] migrate scss to emotion (#216409)
## Summary

Part of https://github.com/elastic/kibana/issues/207852
Migrates presentation utils.

---------

Co-authored-by: Hannah Mudge <Heenawter@users.noreply.github.com>
2025-05-08 21:46:12 +02:00
Lisa Cawley
f3115c6746
[DOCS] Update CrowdStrike and SentinelOne connectors (#219887) 2025-05-08 11:34:40 -07:00
Lisa Cawley
154ed1ef6f
[DOCS] Microsoft Defender for Endpoint connector (#219999) 2025-05-08 11:34:12 -07:00