Skip to content

Commit

Permalink
[RAM] need to return the async id to avoid new request (#145731)
Browse files Browse the repository at this point in the history
## Summary

Fix: #129219 &
#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>
  • Loading branch information
XavierM and kibanamachine authored Nov 21, 2022
1 parent bf7c3bc commit 58a3747
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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();
Expand Down

0 comments on commit 58a3747

Please sign in to comment.