[RAM] need to return the async id to avoid new request (#145731)

## Summary

Fix: https://github.com/elastic/kibana/issues/129219 &
https://github.com/elastic/kibana/issues/144619


### Checklist

- [x] [Unit or functional
tests](https://www.elastic.co/guide/en/kibana/master/development-tests.html)
were updated or added to match the most common scenarios

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
This commit is contained in:
Xavier Mouligneau 2022-11-21 15:02:06 -05:00 committed by GitHub
parent bf7c3bc502
commit 58a374799b
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 6 additions and 4 deletions

View file

@ -137,7 +137,11 @@ export const ruleRegistrySearchStrategyProvider = (
query,
},
};
return (siemRequest ? requestUserEs : internalUserEs).search({ params }, options, deps);
return (siemRequest ? requestUserEs : internalUserEs).search(
{ id: request.id, params },
options,
deps
);
}),
map((response) => {
// Do we have to loop over each hit? Yes.

View file

@ -43,9 +43,7 @@ export default ({ getService }: FtrProviderContext) => {
const SPACE1 = 'space1';
// Failing: See https://github.com/elastic/kibana/issues/129219
// Failing: See https://github.com/elastic/kibana/issues/129219
describe.skip('ruleRegistryAlertsSearchStrategy', () => {
describe('ruleRegistryAlertsSearchStrategy', () => {
let kibanaVersion: string;
before(async () => {
kibanaVersion = await kbnClient.version.get();