-
Notifications
You must be signed in to change notification settings - Fork 36
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
MMT-3923: Catch intermittent error from EDL #1329
Conversation
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## main #1329 +/- ##
=======================================
Coverage 97.68% 97.68%
=======================================
Files 366 366
Lines 5757 5757
Branches 1199 1211 +12
=======================================
Hits 5624 5624
Misses 132 132
Partials 1 1 ☔ View full report in Codecov by Sentry. |
Is there no way to reproduce this locally? For testing, all I see is 'see test session' |
It is about intermittent failing of EDL in production. Couldn't verify this issue on SIT or UAT and also in local mmt instance. |
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.
Unable to truly test this. But the code checks out.
@@ -17,9 +17,18 @@ class ErrorBoundary extends React.Component { | |||
} | |||
|
|||
static getDerivedStateFromError(error) { | |||
let errorMessage = error.message |
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.
You should add a test that mocks this response
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.
Added in ErrorBoundary.test.js
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 a test is need that mocks a error response from EDL.
Overview
What is the feature?
cmr-graphql returns intermittent error getting acl and groups from EDL.
What is the Solution?
Catch that error and create banner message to refresh browser.
What areas of the application does this impact?
View of single Permission
Testing
See test session.
Attachments
N/A
Checklist