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: informative errors on failure to download or create shared record #472

Conversation

deborahgu
Copy link
Member

Adds user-facing errors if errors appear on download or creation of shared program record.

FIXES: APER-3170

Adds user-facing errors if errors appear on download or creation of
shared program record.

FIXES: APER-3170
Copy link

codecov bot commented Jan 9, 2025

Codecov Report

Attention: Patch coverage is 60.00000% with 2 lines in your changes missing coverage. Please review.

Project coverage is 73.25%. Comparing base (59a8349) to head (6edfe76).
Report is 5 commits behind head on master.

Files with missing lines Patch % Lines
.../components/ProgramRecord/ProgramRecordActions.jsx 60.00% 2 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##           master     #472      +/-   ##
==========================================
+ Coverage   70.87%   73.25%   +2.37%     
==========================================
  Files          28       28              
  Lines         412      415       +3     
  Branches       89       89              
==========================================
+ Hits          292      304      +12     
+ Misses        119      110       -9     
  Partials        1        1              

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@deborahgu deborahgu requested a review from MaxFrank13 January 13, 2025 16:25
@deborahgu deborahgu added the waiting for eng review PR is ready for review. Review and merge it, or suggest changes. label Jan 13, 2025
@@ -268,7 +286,7 @@ ProgramRecordActions.propTypes = {
renderBackButton: PropTypes.func.isRequired,
username: PropTypes.string.isRequired,
programUUID: PropTypes.string.isRequired,
sharedRecordUUID: PropTypes.string.isRequired,
sharedRecordUUID: PropTypes.string,
Copy link
Member

Choose a reason for hiding this comment

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

If we make this not required, it is probably good to have it default to an empty string. We can do that with defaultProps. Here is an example in the ProgramRecordAlert component.

Apologies for not catching this last week!

missing semicolon
@deborahgu deborahgu merged commit 1c30beb into master Jan 13, 2025
6 of 7 checks passed
@deborahgu deborahgu deleted the dkaplan1/APER-3170_silent-failure-attempting-to-click-“create-program-record-link” branch January 13, 2025 20:50
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
waiting for eng review PR is ready for review. Review and merge it, or suggest changes.
Projects
Status: Done
Development

Successfully merging this pull request may close these issues.

2 participants