-
Notifications
You must be signed in to change notification settings - Fork 8.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Update dependency @elastic/elasticsearch to ^8.15.0 (main) #190378
Merged
Merged
Changes from 19 commits
Commits
Show all changes
20 commits
Select commit
Hold shift + click to select a range
0010158
Update dependency @elastic/elasticsearch to ^8.15.0
elastic-renovate-prod[bot] 07cc1ff
[CI] Auto-commit changed files from 'node scripts/yarn_deduplicate'
kibanamachine 65adea8
Merge branch 'main' into renovate/main-@elasticelasticsearch
afharo 9173fc3
Fix types
afharo 99f1d31
Fix more types
afharo 19cdd48
Merge branch 'main' of github.com:elastic/kibana into renovate/main-@…
afharo ebffcdd
More type fixes
afharo b81e653
Update snapshot after `body` removal
afharo bfe8800
fix inference API types
walterra aedb166
fix DeepPartial in ml plugin
walterra d765c2a
Merge branch 'main' into renovate/main-@elasticelasticsearch
walterra c14a218
fix inference API types
walterra 3fdb0ac
Merge branch 'main' of github.com:elastic/kibana into renovate/main-@…
afharo b636803
fix transform plugin types
walterra d5fc06c
Merge branch 'renovate/main-@elasticelasticsearch' of github.com:elas…
afharo 7d33213
fix data visualiser plugin ES calls
walterra 57da14b
Merge branch 'renovate/main-@elasticelasticsearch' of github.com:elas…
afharo fbda1fc
Fix more types
afharo e8655ea
Fix test
afharo 4c1222b
Merge branch 'main' into renovate/main-@elasticelasticsearch
afharo File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -37,7 +37,7 @@ export type ScriptedPhraseFilter = Filter & { | |
meta: PhraseFilterMeta; | ||
query: { | ||
script: { | ||
script: estypes.InlineScript; | ||
script: estypes.Script; | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. renamed 🤷 |
||
}; | ||
}; | ||
}; | ||
|
@@ -134,7 +134,7 @@ export const getPhraseScript = (field: DataViewFieldBase, value: PhraseFilterVal | |
params: { | ||
value: convertedValue, | ||
}, | ||
} as estypes.InlineScript, | ||
} as estypes.Script, | ||
}; | ||
}; | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -30,7 +30,6 @@ import { | |
AggregateName, | ||
AggregationsAggregate, | ||
AggregationsMultiBucketAggregateBase, | ||
InlineScript, | ||
MappingRuntimeFields, | ||
QueryDslQueryContainer, | ||
SortCombinations, | ||
|
@@ -826,18 +825,16 @@ export class AlertsClient { | |
const result = await this.esClient.updateByQuery({ | ||
index, | ||
conflicts: 'proceed', | ||
body: { | ||
script: { | ||
Comment on lines
-829
to
-830
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Just taking advantage of this PR to remove the deprecated use of |
||
source: `if (ctx._source['${ALERT_WORKFLOW_STATUS}'] != null) { | ||
script: { | ||
source: `if (ctx._source['${ALERT_WORKFLOW_STATUS}'] != null) { | ||
ctx._source['${ALERT_WORKFLOW_STATUS}'] = '${status}' | ||
} | ||
if (ctx._source.signal != null && ctx._source.signal.status != null) { | ||
ctx._source.signal.status = '${status}' | ||
}`, | ||
lang: 'painless', | ||
} as InlineScript, | ||
query: fetchAndAuditResponse.authorizedQuery as Omit<QueryDslQueryContainer, 'script'>, | ||
lang: 'painless', | ||
}, | ||
query: fetchAndAuditResponse.authorizedQuery as Omit<QueryDslQueryContainer, 'script'>, | ||
ignore_unavailable: true, | ||
}); | ||
return result; | ||
|
@@ -965,14 +962,12 @@ export class AlertsClient { | |
await this.esClient.updateByQuery({ | ||
index, | ||
conflicts: 'proceed', | ||
body: { | ||
script: { | ||
source: painlessScript, | ||
lang: 'painless', | ||
params: { caseIds }, | ||
} as InlineScript, | ||
query: esQuery, | ||
script: { | ||
source: painlessScript, | ||
lang: 'painless', | ||
params: { caseIds }, | ||
}, | ||
query: esQuery, | ||
ignore_unavailable: true, | ||
}); | ||
} catch (err) { | ||
|
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The new
MappingSemanticTextProperty
doesn't extend base, so it is missing the optionalfields
field