Skip to content
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

Conversation

jgowdyelastic
Copy link
Member

@jgowdyelastic jgowdyelastic commented Mar 30, 2020

Follows on from the changes made in #60249
Job wizard request errors also need to be wrapped in getErrorMessage

image

image

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 to http, these should be made consistent.

@jgowdyelastic jgowdyelastic added bug Fixes for quality problems that affect the customer experience review release_note:fix :ml v8.0.0 v7.7.0 v7.8.0 labels Mar 30, 2020
@jgowdyelastic jgowdyelastic requested a review from a team as a code owner March 30, 2020 13:57
@jgowdyelastic jgowdyelastic self-assigned this Mar 30, 2020
@elasticmachine
Copy link
Contributor

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}",
Copy link
Contributor

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?

Copy link
Member Author

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.

Copy link
Contributor

@alvarezmelissa87 alvarezmelissa87 left a 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 ⚡️

Copy link
Contributor

@walterra walterra left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Code LGTM

@jgowdyelastic
Copy link
Member Author

@elasticmachine merge upstream

@kibanamachine
Copy link
Contributor

💚 Build Succeeded

History

To update your PR or re-run it, just comment with:
@elasticmachine merge upstream

Copy link
Contributor

@peteharverson peteharverson left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Tested and LGTM

@jgowdyelastic jgowdyelastic merged commit 0236376 into elastic:master Mar 31, 2020
@jgowdyelastic jgowdyelastic deleted the fixing-reporting-of-http-request-errors branch March 31, 2020 10:44
jgowdyelastic added a commit to jgowdyelastic/kibana that referenced this pull request Mar 31, 2020
* [ML] Fixing reporting of http request errors

* fixing types

* updating translations

Co-authored-by: Elastic Machine <[email protected]>
jgowdyelastic added a commit to jgowdyelastic/kibana that referenced this pull request Mar 31, 2020
* [ML] Fixing reporting of http request errors

* fixing types

* updating translations

Co-authored-by: Elastic Machine <[email protected]>
jgowdyelastic added a commit that referenced this pull request Mar 31, 2020
* [ML] Fixing reporting of http request errors

* fixing types

* updating translations

Co-authored-by: Elastic Machine <[email protected]>

Co-authored-by: Elastic Machine <[email protected]>
jgowdyelastic added a commit that referenced this pull request Mar 31, 2020
* [ML] Fixing reporting of http request errors

* fixing types

* updating translations

Co-authored-by: Elastic Machine <[email protected]>

Co-authored-by: Elastic Machine <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Fixes for quality problems that affect the customer experience :ml release_note:fix review v7.7.0 v7.8.0 v8.0.0
Projects
None yet
Development

Successfully merging this pull request may close these issues.

6 participants