[8.6] Ent search 3392 fix canceling syncs (#145885) (#145998)

# Backport

This will backport the following commits from `main` to `8.6`:
 - Ent search 3392 fix canceling syncs (#145885) (62a90f80)

<!--- Backport version: 8.9.7 -->

### Questions ?
Please refer to the [Backport tool
documentation](https://github.com/sqren/backport)

<!--BACKPORT [{"author":{"name":"Sander
Philipse","email":"94373878+sphilipse@users.noreply.github.com"},"sourceCommit":{"committedDate":"2022-11-22T14:24:24Z","message":"Ent
search 3392 fix canceling syncs (#145885)\n\nThis fixes broken
functionality where syncs weren't being canceled,\r\ncaused by a missed
index mapping
refactor.","sha":"62a90f8046b2e9b289ca1c2c8459886e9a2508b1"},"sourceBranch":"main","suggestedTargetBranches":[],"targetPullRequestStates":[]}]
BACKPORT-->

Co-authored-by: Sander Philipse <94373878+sphilipse@users.noreply.github.com>
This commit is contained in:
Kibana Machine 2022-11-22 10:28:22 -05:00 committed by GitHub
parent 6f0a5b37bb
commit 5d65f4e40b
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 4 additions and 4 deletions

View file

@ -39,7 +39,7 @@ describe('addConnector lib function', () => {
must: [
{
term: {
connector_id: 'connectorId',
'connector.id': 'connectorId',
},
},
{
@ -63,7 +63,7 @@ describe('addConnector lib function', () => {
must: [
{
term: {
connector_id: 'connectorId',
'connector.id': 'connectorId',
},
},
{

View file

@ -21,7 +21,7 @@ export const cancelSyncs = async (
must: [
{
term: {
connector_id: connectorId,
'connector.id': connectorId,
},
},
{
@ -45,7 +45,7 @@ export const cancelSyncs = async (
must: [
{
term: {
connector_id: connectorId,
'connector.id': connectorId,
},
},
{