-
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
[Rollup] Migrate to new ES client #95926
[Rollup] Migrate to new ES client #95926
Conversation
@elasticmachine merge upstream |
@elasticmachine merge upstream |
Pinging @elastic/es-ui (Team:Elasticsearch UI) |
@elasticmachine merge upstream |
@elasticmachine merge upstream |
💚 Build SucceededMetrics [docs]
History
To update your PR or re-run it, just comment with: |
indexPattern: '_all', | ||
} | ||
); | ||
const { client: clusterClient } = context.core.elasticsearch; |
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.
nit: not sure why we need to rename client
here.
@@ -71,16 +67,12 @@ export const registerValidateIndexPatternRoute = ({ | |||
}, | |||
}, | |||
license.guardApiRoute(async (context, request, response) => { | |||
const { client: clusterClient } = context.core.elasticsearch; |
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.
same nit here :)
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.
Hi @jloleysens, thanks a lot for migrating rollup jobs to the new client!
I tested locally and everything worked for me. Code changes LGTM too, just left one nit in the comments about renaming when object destructuring.
* initial pass at es client migration * fixed potential for not passing in an error message and triggering an unhandled exception * reworked ad hoc fixing of error response * delete legacy client file and remove use of legacyEs service * remove unused import Co-authored-by: Kibana Machine <[email protected]> # Conflicts: # x-pack/plugins/rollup/server/routes/api/jobs/register_start_route.ts Co-authored-by: Kibana Machine <[email protected]>
Summary
See #73973
How to test