Index Patterns API - Remove legacy es client usage for field caps#80116
Index Patterns API - Remove legacy es client usage for field caps#80116mattkime merged 22 commits intoelastic:masterfrom
Conversation
…ve_legacy_es_client_usage
…:mattkime/kibana into field_caps_remove_legacy_es_client_usage
…legacy_es_client_usage
|
Pinging @elastic/kibana-app-arch (Team:AppArch) |
cjcenizal
left a comment
There was a problem hiding this comment.
I'm rubberstamping this to dismiss the ES-UI codeowner review request triggered by the change to the rollup plugin, butI haven't actually reviewed anything.
|
Pinging @elastic/apm-ui (Team:apm) |
|
Pinging @elastic/uptime (Team:uptime) |
lukasolson
left a comment
There was a problem hiding this comment.
LGTM! Tested creating index patterns/refreshing mappings, timelion suggestions. Things seem to be working fine. Looks like some docs need to be updated to pass CI.
justinkambic
left a comment
There was a problem hiding this comment.
Uptime changes LGTM! Tested locally with an alert and all seemed to work.
kertal
left a comment
There was a problem hiding this comment.
From KibanaApp team side, there was just the TSVB code fetching fields affected, LGTM, tested locally, works. Also tested to refresh the fields of an index pattern, works. LGTM 👍
| rest[1].allowNoIndices = true; | ||
| return requestContext.core.elasticsearch.legacy.client.callAsCurrentUser(...rest); | ||
| }); | ||
| return new IndexPatternsFetcher(requestContext.core.elasticsearch.client.asCurrentUser, true); |
There was a problem hiding this comment.
What is true signifying in this signature? (I assume it's the allowNoIndices flag based on what was there before but just checking?)
There was a problem hiding this comment.
Thanks! I think my least favorite thing about TS is that it let us all go back to these dangling signatures :P When does GitHub get full TS support??? ;)
mikecote
left a comment
There was a problem hiding this comment.
LGTM from my previous comments
|
@elasticmachine merge upstream |
💚 Build SucceededMetrics [docs]
History
To update your PR or re-run it, just comment with: |
|
Friendly reminder: Looks like this PR hasn’t been backported yet. |
…astic#80116) * remove legacy es client usage
Summary
Changing Index Pattern's
IndexPatternFetcherfield fetcher class to use the new es client instead of the legacy client.