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

feat: [AXIMST-538] Add errors handling 4xx, 5xx #196

Merged
merged 3 commits into from
Mar 6, 2024

Conversation

ruzniaievdm
Copy link

@ruzniaievdm ruzniaievdm force-pushed the ruzniaievdm/feat/saving-error-notification branch 2 times, most recently from a9c5255 to 0b2fd90 Compare February 29, 2024 18:27
@ruzniaievdm ruzniaievdm self-assigned this Feb 29, 2024
@ruzniaievdm ruzniaievdm force-pushed the ruzniaievdm/feat/saving-error-notification branch from 0b2fd90 to d2e8321 Compare February 29, 2024 18:39
@ruzniaievdm ruzniaievdm force-pushed the ruzniaievdm/feat/saving-error-notification branch 2 times, most recently from 7f7ef08 to d902e05 Compare March 1, 2024 17:02
@ruzniaievdm ruzniaievdm marked this pull request as ready for review March 1, 2024 17:02
src/generic/saving-error-notification/utils.js Outdated Show resolved Hide resolved
src/group-configurations/index.jsx Outdated Show resolved Hide resolved
src/i18n/messages/ar.json Outdated Show resolved Hide resolved
@ruzniaievdm ruzniaievdm force-pushed the ruzniaievdm/feat/saving-error-notification branch from d902e05 to 639f9bc Compare March 5, 2024 16:00
@ruzniaievdm ruzniaievdm force-pushed the ruzniaievdm/feat/saving-error-notification branch from 639f9bc to b8c1854 Compare March 5, 2024 16:15
@@ -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';
Copy link
Collaborator

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.

Copy link
Author

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 = ({
Copy link
Collaborator

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?

Copy link
Author

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
Copy link
Collaborator

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?

Copy link
Author

Choose a reason for hiding this comment

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

good catch, thanks

@codecov-commenter
Copy link

Codecov Report

Attention: Patch coverage is 71.23288% with 21 lines in your changes are missing coverage. Please review.

❗ No coverage uploaded for pull request base (ts-develop@d35de95). Click here to learn what that means.

Files Patch % Lines
src/group-configurations/data/thunk.js 0.00% 9 Missing ⚠️
src/certificates/data/thunks.js 25.00% 3 Missing ⚠️
src/group-configurations/data/slice.js 0.00% 3 Missing ⚠️
src/course-unit/data/thunk.js 71.42% 2 Missing ⚠️
src/generic/saving-error-alert/utils.js 77.77% 1 Missing and 1 partial ⚠️
src/textbooks/data/thunk.js 33.33% 2 Missing ⚠️

❗ 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.
📢 Have feedback on the report? Share it here.

@monteri monteri merged commit fecc709 into ts-develop Mar 6, 2024
3 checks passed
khudym pushed a commit that referenced this pull request Mar 25, 2024
* feat: [AXIMST-538] Add errors handling 4xx, 5xx

* fix: resolve discussions

* fix: second round of review discussions
monteri pushed a commit that referenced this pull request Apr 1, 2024
* feat: [AXIMST-538] Add errors handling 4xx, 5xx

* fix: resolve discussions

* fix: second round of review discussions
monteri pushed a commit that referenced this pull request Apr 29, 2024
* feat: [AXIMST-538] Add errors handling 4xx, 5xx

* fix: resolve discussions

* fix: second round of review discussions
monteri pushed a commit that referenced this pull request May 3, 2024
* feat: [AXIMST-538] Add errors handling 4xx, 5xx

* fix: resolve discussions

* fix: second round of review discussions
PKulkoRaccoonGang pushed a commit that referenced this pull request May 9, 2024
* feat: [AXIMST-538] Add errors handling 4xx, 5xx

* fix: resolve discussions

* fix: second round of review discussions
PKulkoRaccoonGang pushed a commit that referenced this pull request May 9, 2024
* feat: [AXIMST-538] Add errors handling 4xx, 5xx

* fix: resolve discussions

* fix: second round of review discussions

refactor: fixing tests for Textbooks page
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants