Commit graph

81161 commits

Author SHA1 Message Date
Hannah Mudge
549532240c
[Dashboard] [Collapsable Panels] Switch to using props (#200793)
Closes https://github.com/elastic/kibana/issues/200090

## Summary

This PR migrates the `GridLayout` component a more traditional React
design using **props** rather than providing an API. This change serves
two purposes:
1. It makes the eventual Dashboard migration easier, since it is more
similar to `react-grid-layout`'s implementation
3. It makes the `GridLayout` component less opinionated by moving the
logic for panel management (i.e. panel placement, etc) to the parent
component.

I tried to keep efficiency in mind for this comparison, and ensured that
we are still keeping the number of rerenders **o a minimum**. This PR
should not introduce **any** extra renders in comparison to the API
version.

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

### Identify risks

There are no risks to this PR, since all work is contained in the
`examples` plugin.

---------

Co-authored-by: kibanamachine <42973632+kibanamachine@users.noreply.github.com>
2024-11-21 10:27:56 -07:00
Tiago Costa
cba99de545
skip flaky suite (#191804) 2024-11-21 17:23:29 +00:00
Tiago Costa
d8d7b7a327
skip flaky suite (#192672) 2024-11-21 17:19:50 +00:00
Kibana Machine
03c3d77518 skip failing test suite (#200758) 2024-11-22 04:17:37 +11:00
jennypavlova
74cf5d4578
[Inventory] Fix the link to discover test (#201197)
Closes #201189

## Summary

After this fix was added in
https://github.com/elastic/kibana/pull/200984 the test started failing
as it was verifying the previous kuery value - it was missing the `" "`
so after this bug was fixed the test should be updated as well
(basically changing `container.id:foo` with `container.id:"foo"`) and
this PR updates the test.

I checked locally and the test is passing now.
2024-11-21 11:14:43 -06:00
Jatin Kathuria
414d2a4948
[Security Solution] Fix : skip failing MKI test (#201120)
## Summary

Skips Failing MKI tests
2024-11-21 18:06:07 +01:00
Saikat Sarkar
e378c884cd
Remove the callout for upgrading to get enterprise-level features (#200283)
This PR resolves this
[issue](https://github.com/elastic/search-team/issues/8523).

### Before
<img width="1152" alt="Screenshot 2024-11-14 at 4 52 14 PM"
src="https://github.com/user-attachments/assets/77e74017-1708-40c3-b4a1-4fcbaf77ef48">


### After
<img width="1153" alt="Screenshot 2024-11-14 at 4 52 55 PM"
src="https://github.com/user-attachments/assets/5e8f8ba4-2269-4a06-885b-ec43aa9c7f40">
2024-11-21 09:52:36 -07:00
Cauê Marcondes
b202b6ba2d
[Infra] Error for entities API, shown when navigating to infrastructure entity details (#201136)
closes https://github.com/elastic/kibana/issues/201124

<img width="1444" alt="Screenshot 2024-11-21 at 12 05 18"
src="https://github.com/user-attachments/assets/16fec2a6-6a59-45e5-8e98-5a961a2b6306">

---------

Co-authored-by: Carlos Crespo <crespocarlos@users.noreply.github.com>
2024-11-21 10:52:20 -06:00
Alexey Antonov
76e9359d1b
fix: [Search:BehavioralAnalytics:Integration page]When generating API key, button behind dialog modal is announced (#200560)
Closes: #200305

## Description
Elements which are behind dialogs shouldn't be announced as not to
confuse users, especially the ones using assistive technology.

## Preconditions
Stateful Behavioral Analytics -> Integration page is opened.
Collection is added.

## What was changed: 

This PR apply the similar with
[#197212](https://github.com/elastic/kibana/pull/197212) changes

1. Modal dialog was slightly updated to be more accessibility (a11y)
friendly:
- To differentiate the two UI states, we now use two colors for the
panel: primary for the initial state and success when the API key is
generated.
- An `EuiCallOut` with `role="alert"` was added to announce status
updates for screen reader users.
2. After creating an API key, the focus now moves to the Download API
key button.

## Screen


https://github.com/user-attachments/assets/3e72aeb5-34a2-43a6-b477-52a2f71b750a
2024-11-21 18:42:09 +02:00
Alexey Antonov
0abcf06a1a
fix: [Search:Search Applications:Content page]Missing error text for Select searchable indices field (#200736)
Closes: #200141 
Closes: #199815

### Description
Fields which are in error should have error text that for user it should
be instantly clear what is the error and how to fix it.

### What was changed: 
1. Error handling was added for`
applications/components/indices_select_combobox.tsx` component

### Screen
<img width="806" alt="image"
src="https://github.com/user-attachments/assets/54a51822-d66a-4f50-be3f-2d8b203b0cd1">
2024-11-21 18:41:47 +02:00
Jedr Blaszyk
71667b0fb0
[A11y][Crawler] Define radiogroups correctly in extraction rules flyout (#201191)
## Summary

The issue: keyboard nav with tab doesn't jump between radiogroups
correctly, instead skips some.

Fix the issue with radiogroups selection with `TAB`, following the EUI
docs:
https://eui.elastic.co/#/forms/selection-controls#radio-group

We need to
> Pass a single `name` property to define the group.

Tested locally that this is the culprit of issues when rendering
multiple radio groups in the same flyout.


### 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]
[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] 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)
- [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.
- [x] [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)
2024-11-21 17:38:43 +01:00
Milosz Marcinkowski
fb35ae45df
Document the reason for skipped APM tests (#201214)
Closes #199843

### Summary

This PR documents the reason for skipped Indices diagnostics API tests
to avoid confusion in the future. APM diagnostics is an experimental
internal tool. Indices diagnostics determine whether ingest pipelines
were installed correctly by verifying the presence of the
`observer.version` field in grok processor, this approach isn't reliable
anymore. We should consider implementing improvement or sunsetting the
feature if there is no maintainer.
2024-11-21 10:37:05 -06:00
Eyo O. Eyo
8b1c0f70cb
[React18] Migrate test suites to account for testing library upgrades appex-sharedux (#201153)
This PR migrates test suites that use `renderHook` from the library
`@testing-library/react-hooks` to adopt the equivalent and replacement
of `renderHook` from the export that is now available from
`@testing-library/react`. This work is required for the planned
migration to react18.

##  Context

In this PR, usages of `waitForNextUpdate` that previously could have
been destructured from `renderHook` are now been replaced with `waitFor`
exported from `@testing-library/react`, furthermore `waitFor`
that would also have been destructured from the same renderHook result
is now been replaced with `waitFor` from the export of
`@testing-library/react`.

***Why is `waitFor` a sufficient enough replacement for
`waitForNextUpdate`, and better for testing values subject to async
computations?***

WaitFor will retry the provided callback if an error is returned, till
the configured timeout elapses. By default the retry interval is `50ms`
with a timeout value of `1000ms` that
effectively translates to at least 20 retries for assertions placed
within waitFor. See
https://testing-library.com/docs/dom-testing-library/api-async/#waitfor
for more information.
This however means that for person's writing tests, said person has to
be explicit about expectations that describe the internal state of the
hook being tested.
This implies checking for instance when a react query hook is being
rendered, there's an assertion that said hook isn't loading anymore.

In this PR you'd notice that this pattern has been adopted, with most
existing assertions following an invocation of `waitForNextUpdate` being
placed within a `waitFor`
invocation. In some cases the replacement is simply a `waitFor(() => new
Promise((resolve) => resolve(null)))` (many thanks to @kapral18, for
point out exactly why this works),
where this suffices the assertions that follow aren't placed within a
waitFor so this PR doesn't get larger than it needs to be.

It's also worth pointing out this PR might also contain changes to test
and application code to improve said existing test.

### What to do next?
1. Review the changes in this PR.
2. If you think the changes are correct, approve the PR.

## Any questions?
If you have any questions or need help with this PR, please leave
comments in this PR.
2024-11-21 17:32:49 +01:00
Ignacio Rivas
0b34bbf47f
[Console] Automate console definitions (#200935) 2024-11-21 10:18:00 -06:00
Kevin Delemme
324ecc2c37
fix(slo): Add missing new context providers around burn rate editor (#201199) 2024-11-21 10:12:10 -06:00
Alejandro Fernández Haro
f9287a9545
[Feature Flags] Set RUM transaction.outcome (#200576) 2024-11-21 09:40:52 -06:00
Ilya Nikokoshev
30e075a1b6
[Automatic Import] Correctly output icons in the manifest (#201139)
## Release Note

Fixes a bug in Automatic Import where icons were not shown after the
integration was installed.

## Summary

Closes #201008.

When implementing safe manifest output #192316 a bug crept in:
the icons array was incorrectly output as a dictionary

    icons:
      src: /img/logoElastic.svg
      title: syslog_test3 Logo
      size: 32x32
      type: image/svg+xml

and the test was not smart enough to pick it up:

    expect(manifest.icons).toBeTruthy();

We fix the field and add better tests for it.
2024-11-21 17:34:07 +02:00
Kfir Peled
117b2ad993 Added timeline investigation, fixed coloring of events. Added node limit, removed unknown targets 2024-11-21 14:28:22 +00:00
Sid
889ce000eb
[API keys] Improve functional tests for API keys management page (#200110)
Closes https://github.com/elastic/kibana/issues/200756

## Summary

Enhance existing functional tests for API Keys querying to test filters
and toggles while querying API keys.

### Notes

The following tests were added:

- Toggling the following filters displays the correct keys
    - Personal, Managed, Cross cluster types
    - Active or expired keys
- Filtering by username by clicking the dropdown list
- Added test for querying using the search bar **but it is skipped** for
now as we'd like to fix the behavior. Tracked by
https://github.com/elastic/kibana/issues/195795

### 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=
- [ ] The PR description includes the appropriate Release Notes section,
and the correct `release_node:*` 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-11-21 15:15:13 +01:00
Sid
8f12714219
[Session management] update cleanup to allow partial search results for PIT query (#200912)
Closes https://github.com/elastic/kibana/issues/200008

## Summary
This PR updates the session cleanup task to allow partial results in the
point in time query used to delete any invalid sessions.


### Notes
Using a [recently introduced option by
ES](https://github.com/elastic/elasticsearch/pull/111516), the session
cleanup now allows the PIT to run over partial results. This should
reduce the noise we see around session_cleanup errors in our logs.


### Release notes
Fixes error with opening point in time query for session deletion by now
accounting for partial results.

### 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
- [x] The PR description includes the appropriate Release Notes section,
and the correct `release_node:*` label is applied per the
[guidelines](https://www.elastic.co/guide/en/kibana/master/contributing.html#kibana-release-notes-process)
2024-11-21 15:14:54 +01:00
Alexey Antonov
c145ba1bbc
fix: [Search:AppSearch:Engines page]Incorrect total number of options announced for Join our user research... combo box (#200567)
Closes: #200542

## Description
Visible total number of options should the same as announced for the
user as not to confuse them. Especially for the users using assistive
technologies.

## What was changed: 
1. `EuiSelect`.`hasNoInitialSelection` attribute should be set to true
only in case of no default value.
2024-11-21 16:12:42 +02:00
Robert Jaszczurek
90a9565ede
[ML] Single metric viewer: Explorer chart label prop types fix (#201137)
## Summary

Currently, on the dashboards page, if an explorer charts embeddable is
attached, an error appears in the console:
![Screenshot 2024-11-21 at 13 06
37](https://github.com/user-attachments/assets/978d254c-d971-46c6-b79d-b912d2fa35ae)

This issue occurs due to a PropTypes typo: `boolean` instead of `bool`.
2024-11-21 08:01:05 -06:00
Larry Gregory
8c00f5f1af
Dependency ownership for Fleet team, part 1 (#200990)
## Summary
This updates our renovate.json configuration to mark the Fleet team as
owners of their set of dependencies.
2024-11-21 07:57:30 -06:00
Kfir Peled
c7fb622c2a post merge fixes 2024-11-21 13:17:54 +00:00
Robert Jaszczurek
716375b622
[ML] Transforms: Improve percentiles agg validation (#197816)
## Summary

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

The Transforms percentiles aggregation now uses a ComboBox to define
percentiles.


https://github.com/user-attachments/assets/f30de65e-3555-4643-963b-821877e7b166

a few more validation cases:


https://github.com/user-attachments/assets/79339c4e-36d2-465c-bc93-c47e1f442a87



### 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/packages/kbn-i18n/README.md)
2024-11-21 14:17:00 +01:00
Antonio
d3b9a9a050
[ResponseOps][Cases] Removed custom render from flaky tests (#200887)
Closes #189739
Closes #188488
Closes #193482
Closes #192944
Closes #195672

## Summary

Same solution for all of them, I removed `createAppMockRenderer`. In
some cases, I also added missing occurrences of `screen` and updated
`getBy`s to `await screen.findBy*`s.
2024-11-21 14:13:28 +01:00
Julia Rechkunova
b9439e658d
[Discover] Address chart performance issues for non-transformational and non-time-based ES|QL queries (#200583)
- Closes https://github.com/elastic/kibana/issues/199608

## Summary

This PR changes the logic around when suggestions from lens API are
used. Previously for non-transformational query and non-time-based data
it would try to render one of lens suggestions supplying chart data via
`table` prop. Now, it would not render any chart.

Before:
- Data view mode => Static histogram configuration
- ES|QL mode and non-transformational query => _**Gets lens
suggestions.**_ If histogram chart is not possible, **_takes the first
lens suggestion for rendering the chart_**
- ES|QL mode and transformational query => Gets lens suggestions. Takes
the first lens suggestion for rendering the chart.

After:
- Data view mode => Static histogram configuration (same)
- ES|QL mode and non-transformational query => ~~_**Gets lens
suggestions.**_~~ If histogram chart is not possible, **_renders
nothing_** (updated)
- ES|QL mode and transformational query => Gets lens suggestions. Takes
the first lens suggestion for rendering the chart. (same)

### Testing

As per originally reported case:
1. `node scripts/es_archiver
--kibana-url=http://elastic:changeme@localhost:5601
--es-url=http://elastic:changeme@localhost:9200 load
test/functional/fixtures/es_archiver/many_fields`

2. Navigate to Discover, switch to ES|QL mode and enter `FROM
indices-stats | LIMIT 10`
3. No chart is expected.

Also there should be no regression for
https://github.com/elastic/kibana/pull/195863

### 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 <davis.mcphee@elastic.co>
Co-authored-by: Stratoula Kalafateli <efstratia.kalafateli@elastic.co>
2024-11-21 14:10:21 +01:00
Julia Rechkunova
6f0bda8843
[Discover] Unskip additional cell actions test (#201009)
- Closes https://github.com/elastic/kibana/issues/193367

### 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
- [x] [Flaky Test
Runner](https://ci-stats.kibana.dev/trigger_flaky_test_runner/1) was
used on any tests changed
2024-11-21 14:09:57 +01:00
Robert Jaszczurek
51a84ebd1d
[ML] AiOps: Change point detection - Remove unnecessary theme provider (#201094)
## Summary


Recently, an error started appearing on the Change Point Detection page:

![image](https://github.com/user-attachments/assets/d802fe26-0222-4286-b32e-c967cadcd466)
This occurred because we had a duplicate Theme provider in the component
tree.
After removing the duplicate:



https://github.com/user-attachments/assets/81568e67-93dc-4c01-9db6-26c57a4c2b52

---------

Co-authored-by: kibanamachine <42973632+kibanamachine@users.noreply.github.com>
2024-11-21 13:18:07 +01:00
Kfir Peled
b0f73b9477
Merge branch 'main' into cspm/cdr-graph-viz-expanded 2024-11-21 12:14:27 +00:00
Carlos Crespo
209c66724d
[Infra][ECO] Fix RBAC issue in hosts view (#199841)
closes [#200151](https://github.com/elastic/kibana/issues/200151)

## Summary

This PR change the `getApmIndices` function from `apm_data_access` to
fetch the information using Kibana's internal user. This was done for 2
reasons:

1 - Plugins using `savedObjects.client` might face a situation where the
logged in user doesn't have permission to read saved objects, causing
the retrieval of apm indices to fail, which could lead to unexpected
exceptions
2 - Elasticsearch is able to determine whether the user has permission
to view docs in the index patterns, therefore, it's ok to retrieve the
index pattern with Kibana's internal user because ultimately
elasticsearch will only return the data the user has access to.

### Infra app permission

**Role config:**

<img width="500" alt="image"
src="https://github.com/user-attachments/assets/ae98a98f-570a-4139-b804-91a8de0c9d1d">

<img width="500" alt="image"
src="https://github.com/user-attachments/assets/afe29e7f-ab02-40f4-a86c-aeb016655708">


**Without access to APM indices**
<img width="500" alt="image"
src="https://github.com/user-attachments/assets/8aa7d4e5-3484-4723-838c-54920e442c08">

<img width="500" alt="image"
src="https://github.com/user-attachments/assets/af3ce400-7a45-4313-84c7-5b8170c39bf5">

**With access to APM indices**

<img width="500" alt="image"
src="https://github.com/user-attachments/assets/1effc137-72a2-4e5b-b2ac-62e685370a21">

<img width="500" alt="image"
src="https://github.com/user-attachments/assets/e161f6d9-85a7-4f80-a7d3-7ec0bdc338a3">


### Admin

<img width="500" alt="image"
src="https://github.com/user-attachments/assets/d280f0d6-de6c-408f-a080-fa150d237afc">


### How to test

- Follow the steps above
- Other areas affected: assistant and profiling

---------

Co-authored-by: kibanamachine <42973632+kibanamachine@users.noreply.github.com>
Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>
2024-11-21 13:06:09 +01:00
Carlos Crespo
8f8a671567
[Inventory][ECO] Fix asKqlFilter (#200984)
fixes [#200981](https://github.com/elastic/kibana/issues/200981)

## Summary

This PR fixes a problem with the asKqlFilter throwing an error when
building filters with string containing special characters.
2024-11-21 13:04:53 +01:00
Alejandro Fernández Haro
f0262080c8
[Feature Flags Example Plugin] Change ctx provider (#201097) 2024-11-21 06:01:02 -06:00
Julia Rechkunova
65cb53c28b
[Discover] Unskip ES|QL switch modal tests and fix other flaky tests in the same suite (#200923)
- Closes https://github.com/elastic/kibana/issues/189636
- Closes https://github.com/elastic/kibana/issues/200805
- Closes https://github.com/elastic/kibana/issues/195479

### 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
- [x] [Flaky Test
Runner](https://ci-stats.kibana.dev/trigger_flaky_test_runner/1) was
used on any tests changed
2024-11-21 11:51:12 +01:00
Tre
55a5b9f865
[Ownership] Assign test files to cloud-security-posture team (#201003)
## Summary

Assign test files to cloud-security-posture team

Contributes to: #192979
2024-11-21 04:40:28 -06:00
Tre
bb5acea689
[Ownership] Assign test files to qa team (#200948)
## Summary

Assign test files to qa team

Contributes to: #192979

Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>
2024-11-21 04:30:27 -06:00
Antonio
d91d82c2b9
[ResponseOps][Cases] Fix SyncAlertsToggle flaky test (#200870)
Fixes #190270

## Summary

We already wrap `SyncAlertsToggle` in `<FormTestComponent>` so I removed
`createAppMockRenderer` which wasn't necessary.
2024-11-21 10:26:10 +01:00
Marco Antonio Ghiani
7b4f59d978
[Logs Shared] Update deprecated Kibana usages (#200973)
## 📓 Summary

The `logs_shared` plugin was still relying on internal [deprecated
kibana
APIs](https://docs.elastic.dev/kibana-dev-docs/api-meta/deprecated-api-list-by-plugin#logsshared).
These changes update the usage with the related recommendation.

Co-authored-by: Marco Antonio Ghiani <marcoantonio.ghiani@elastic.co>
2024-11-21 10:20:09 +01:00
Cauê Marcondes
dde84ef67c
[Inventory][ECO] APM url generated with invalid environment (#200987)
closes https://github.com/elastic/kibana/issues/200913

The service environment can be `null`, when that's the case we should
not pass it to the service locator, we must instead pass `undefined`.

<img width="1238" alt="Screenshot 2024-11-20 at 16 26 18"
src="https://github.com/user-attachments/assets/ced1f3c2-b7e2-4acf-8d87-4e4caa01095c">
2024-11-21 09:15:04 +00:00
wajihaparvez
7f880cce09
[Docs] 8.15.5 release notes (#201050)
## Summary

Adding a section for 8.15.5 release notes.

Closes: [#567](https://github.com/elastic/platform-docs-team/issues/567)
2024-11-21 10:06:29 +01:00
Lisa Cawley
3938acc83d
[DOCS] Remove technical preview from serverless APIs (#201054) 2024-11-21 09:45:10 +01:00
Tre
a459b0d8c3
[Ownership] Assign test files to response ops team (#200952)
## Summary

Assign test files to response ops team

Contributes to: #192979
2024-11-21 08:39:33 +00:00
Saarika Bhasi
d88ce9e549
[Search][a11y] fix radio buttons to focus (#200573)
## Summary

Added name attribute in `EuiCheckableCard` components so that focus
stays on selected radio component when navigated using keyboard.






### 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/packages/kbn-i18n/README.md)
2024-11-21 14:07:13 +05:30
Kibana Machine
f47376297b
[api-docs] 2024-11-21 Daily api_docs build (#201074)
Generated by
https://buildkite.com/elastic/kibana-api-docs-daily/builds/898
2024-11-21 01:31:00 -06:00
Shahzad
944e6fa037
[Synthetics] Fix overview page vizs for large number of monitors !! (#199512)
## Summary

Fixes https://github.com/elastic/kibana/issues/187264 !!

Apply filters directly instead of passing each monitor id !!

### Testing

No special testing is needed, other than make sure, alerts/errors vizs
continue to work as expected !!

<img width="1726" alt="image"
src="https://github.com/user-attachments/assets/9c1889a5-4822-442b-97af-c2a4084c4503">

---------

Co-authored-by: kibanamachine <42973632+kibanamachine@users.noreply.github.com>
2024-11-21 08:27:41 +01:00
Tiago Costa
764abe6599
chore(NA): update pipeline resource definitions after bump 8.18.0 (#201067)
This PR updates the pipeline resource definitions to support the new
8.17 added branch.
2024-11-21 06:05:50 +00:00
Tiago Costa
9bc45f3a53
chore(NA): update versions after v8.18.0 bump (#201066)
This PR is a simple update of our versions file after the recent bumps.
2024-11-21 06:05:39 +00:00
Tiago Costa
f64a7135fa
chore(NA): adds 8.17 into backportrc (#201065)
It adds 8.17 into the .backportrc config file
2024-11-21 06:05:29 +00:00
Tiago Costa
7b66da40f1
skip flaky suite (#198628) 2024-11-21 00:50:29 +00:00
Samiul Monir
052f527ee7
Preconfigured Endpoints in Semantic_text field (#200659)
## Summary

1. Removed default endpoints from the `Select inference id` dropdown
2. Linked preconfigured endpoints properly with fields.
3. Added support to remove `index` errors regarding models.

### ESS:

https://github.com/user-attachments/assets/4c13f5b3-a00a-4aac-a1c2-ca94e5b2c293

### ES3


https://github.com/user-attachments/assets/83f1bd74-0973-4225-907b-89e7c372fa5f

### ingest and data with the preconfigured endpoint:
```
POST /search-jmo0/_doc
{
    "content": "park_rocky-mountain"
}
```
```
GET /search-jmo0/_search
```

will return something like this:

```
{
  "took": 3,
  "timed_out": false,
  "_shards": {
    "total": 3,
    "successful": 3,
    "skipped": 0,
    "failed": 0
  },
  "hits": {
    "total": {
      "value": 1,
      "relation": "eq"
    },
    "max_score": 1,
    "hits": [
      {
        "_index": "search-jmo0",
        "_id": "712LRpMBqdKCj6yG9iFJ",
        "_score": 1,
        "_source": {
          "openai_semantic_text": {
            "inference": {
              "inference_id": "my-test-1-openai-endpoint",
              "model_settings": {
                "task_type": "text_embedding",
                "dimensions": 1536,
                "similarity": "dot_product",
                "element_type": "float"
              },
              "chunks": [
                {
                  "text": "park_rocky-mountain",
                  "embeddings": [...]
                }
              ]
            }
          },
          "elser_semantic_text": {
            "inference": {
              "inference_id": ".elser-2-elasticsearch",
              "model_settings": {
                "task_type": "sparse_embedding"
              },
              "chunks": [
                {
                  "text": "park_rocky-mountain",
                  "embeddings": {...}
                }
              ]
            }
          },
          "e5_semantic_text": {
            "inference": {
              "inference_id": ".multilingual-e5-small-elasticsearch",
              "model_settings": {
                "task_type": "text_embedding",
                "dimensions": 384,
                "similarity": "cosine",
                "element_type": "float"
              },
              "chunks": [
                {
                  "text": "park_rocky-mountain",
                  "embeddings": [...]
                }
              ]
            }
          },
          "content": "park_rocky-mountain"
        }
      }
    ]
  }
}
```

### 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
2024-11-20 19:48:56 -05:00