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

1837 better user error handling #1838

Merged
merged 1 commit into from
Aug 17, 2022
Merged

1837 better user error handling #1838

merged 1 commit into from
Aug 17, 2022

Conversation

alishaevn
Copy link
Collaborator

@alishaevn alishaevn commented Aug 17, 2022

expected behavior

  • stop checking for @user.errors.details[key].first[:value] because it does not exist

related

@samvera/hyku-code-reviewers

@alishaevn alishaevn linked an issue Aug 17, 2022 that may be closed by this pull request
@alishaevn alishaevn added the bug label Aug 17, 2022
<li><%= key %> &quot;<%= @user.errors.details[key].first[:value] %>&quot; <%= messages.join(' and ') %></li>
<% end %>
<% next unless messages.present? %>
<li><%= key %> <%= messages.join(' and ') %></li>
Copy link
Collaborator Author

Choose a reason for hiding this comment

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

removed @user.errors.details[key].first[:value] because it doesn't exist per the screenshots below. unsure if it is supposed to or not.

if [:value] is supposed to exist, we should instead fix why it isn't showing up in the details array.

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

user "new" view page

Screen Shot 2022-08-17 at 10 36 20 AM

user controller

Screen Shot 2022-08-17 at 10 47 32 AM

@alishaevn alishaevn merged commit 7d1631c into main Aug 17, 2022
@orangewolf orangewolf deleted the better-user-error-handling branch August 17, 2022 21:46
@bkiahstroud bkiahstroud added the patch-ver for release notes label Feb 1, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug patch-ver for release notes
Projects
None yet
Development

Successfully merging this pull request may close these issues.

new user errors are mishandled
3 participants