-
Notifications
You must be signed in to change notification settings - Fork 0
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
feat: [AXIMST-538] Add errors handling 4xx, 5xx #196
feat: [AXIMST-538] Add errors handling 4xx, 5xx #196
Conversation
a9c5255
to
0b2fd90
Compare
0b2fd90
to
d2e8321
Compare
f0efff1
to
1d1c07d
Compare
7f7ef08
to
d902e05
Compare
src/generic/saving-error-notification/SavingErrorNotification.jsx
Outdated
Show resolved
Hide resolved
src/generic/saving-error-notification/SavingErrorNotification.jsx
Outdated
Show resolved
Hide resolved
d902e05
to
639f9bc
Compare
639f9bc
to
b8c1854
Compare
@@ -2,6 +2,7 @@ import PropTypes from 'prop-types'; | |||
import { Container, Layout } from '@openedx/paragon'; | |||
import { useIntl } from '@edx/frontend-platform/i18n'; | |||
|
|||
import { SavingErrorNotification } from '../../generic/saving-error-notification'; |
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.
I think the name is appropriate for other developers to look up when they will search for such component on other pages. I would regard SavingErrorAlert
since "alert" is rather more appropriate for an "error" than a "notification". But I would leave this choice for you wether to do refactor or not.
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.
renamed
import AlertMessage from '../alert-message'; | ||
import messages from './messages'; | ||
|
||
const SavingErrorNotification = ({ |
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.
[question] So now this component handles both 4xx, 5xx errors and internet connection too?
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.
Yeap, it used only for new scope
<SavingErrorNotification | ||
savingStatus={savingStatus} | ||
errorMessage={errorMessage} | ||
/> | ||
<InternetConnectionAlert |
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.
Do we need to remove InternetConnectionAlert
as it is removed on the other pages?
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.
good catch, thanks
Codecov ReportAttention: Patch coverage is
❗ Your organization needs to install the Codecov GitHub app to enable full functionality. Additional details and impacted files@@ Coverage Diff @@
## ts-develop #196 +/- ##
=============================================
Coverage ? 89.52%
=============================================
Files ? 651
Lines ? 10878
Branches ? 2252
=============================================
Hits ? 9739
Misses ? 1100
Partials ? 39 ☔ View full report in Codecov by Sentry. |
* feat: [AXIMST-538] Add errors handling 4xx, 5xx * fix: resolve discussions * fix: second round of review discussions
* feat: [AXIMST-538] Add errors handling 4xx, 5xx * fix: resolve discussions * fix: second round of review discussions
* feat: [AXIMST-538] Add errors handling 4xx, 5xx * fix: resolve discussions * fix: second round of review discussions
* feat: [AXIMST-538] Add errors handling 4xx, 5xx * fix: resolve discussions * fix: second round of review discussions
* feat: [AXIMST-538] Add errors handling 4xx, 5xx * fix: resolve discussions * fix: second round of review discussions
* feat: [AXIMST-538] Add errors handling 4xx, 5xx * fix: resolve discussions * fix: second round of review discussions refactor: fixing tests for Textbooks page
Add-errors-handling-4xx-5xx