-
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 ES client to 7.16-canary.7 #117305
Changes from all commits
521814b
16d76be
cadb83a
a02812e
59d45ba
cba9281
7534ecd
63bab0f
129529a
8af76c6
0992cdd
49c0506
c27ec73
3e56d49
d8f7797
59d73c5
79f6133
dd4c886
41ff668
aac441c
236c4b9
e115f08
ab2b58c
c901ceb
463c510
aec2c5b
e441fe2
12ee555
b583938
3445114
70e1ffc
5cd4aaf
9ad601d
293ea77
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -315,11 +315,11 @@ export async function bulkUpdateAgents( | |
}); | ||
|
||
return { | ||
items: res.body.items.map((item: estypes.BulkResponseItemContainer) => ({ | ||
// @ts-expect-error ErrorCause is not assignable to Error | ||
items: res.body.items.map((item) => ({ | ||
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. I'm not sure these typings are correct. @joshdover 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. @nchaulet I believe you're more familiar with this code. Should we be wrapping the 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. Looking at the code looks like we never consume these errors, I am going to investigate a little more what error handling we are missing, but it should not block that PR. |
||
id: item.update!._id as string, | ||
success: !item.update!.error, | ||
// @ts-expect-error ErrorCause is not assignable to Error | ||
error: item.update!.error as Error, | ||
error: item.update!.error, | ||
})), | ||
}; | ||
} | ||
|
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.
tsc
complainssample
doesn't exist onRecord<string, AggregationsAggregate>
. We need to refactor the wayelasticsearch-js
declares `aggregations type. A first proposal is here elastic/elasticsearch-js#1596There 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.
Very likely this new aggregations work will land only in v8.
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.
it can create some merge conflicts during a bug fix backporting, but let's see