-
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
remove elasticsearch package imports from reporting #107126
remove elasticsearch package imports from reporting #107126
Conversation
@@ -77,24 +74,6 @@ export function registerJobGenerationRoutes(reporting: ReportingCore, logger: Lo | |||
}); | |||
} | |||
|
|||
if (err instanceof esErrors['401']) { |
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.
Reporting doesn't have access to the legacy client errors, so this code is dead and I removed it. If you considered this logic is necessary, please update it in a follow-up.
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 looks like this code was not doing anything special but adding a custom message on top of an error code. These error codes seem appropriate: I'm not seeing unexpected transformation of these codes to a custom message. I don't think this logic was necessary.
💚 Build SucceededMetrics [docs]
To update your PR or re-run it, just comment with: |
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.
LGTM
* remove elasticsearch package imports from reporting * remove dead code
💚 Backport successful
This backport PR will be merged automatically after passing CI. |
* remove elasticsearch package imports from reporting * remove dead code Co-authored-by: Mikhail Shustov <[email protected]>
* remove elasticsearch package imports from reporting * remove dead code
Summary
Use typings imported from
@elastic/elasticsearch
package