-
Notifications
You must be signed in to change notification settings - Fork 8.2k
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
[ML] Fixing reporting of http request errors #61811
[ML] Fixing reporting of http request errors #61811
Conversation
Pinging @elastic/ml-ui (:ml) |
@@ -7420,7 +7420,6 @@ | |||
"xpack.ml.calendarsEdit.newEventModal.startDateAriaLabel": "開始日", | |||
"xpack.ml.calendarsEdit.newEventModal.toLabel": "終了:", | |||
"xpack.ml.calendarsList.deleteCalendars.calendarsLabel": "{calendarsToDeleteCount} 件のカレンダー", | |||
"xpack.ml.calendarsList.deleteCalendars.deletingCalendarErrorMessage": "カレンダー {calendarId} の削除中にエラーが発生しました: {errorMessage}", |
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.
Isn't this translation still being used?
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.
yes, but the text has changed. so i think it's marked it as removed so the translated text can be remade.
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.
Just a small translation question but other than that LGTM ⚡️
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.
Code LGTM
@elasticmachine merge upstream |
💚 Build SucceededHistory
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.
Tested and LGTM
* [ML] Fixing reporting of http request errors * fixing types * updating translations Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>
* [ML] Fixing reporting of http request errors * fixing types * updating translations Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>
* [ML] Fixing reporting of http request errors * fixing types * updating translations Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com> Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>
* [ML] Fixing reporting of http request errors * fixing types * updating translations Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com> Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>
Follows on from the changes made in #60249
Job wizard request errors also need to be wrapped in
getErrorMessage
Further work is needed to add consistency to all http errors. Possibly removing the very old
mlMessageBarService
and calling toasts directly in all places.Also observable based
http$
requests return a different error tohttp
, these should be made consistent.