-
-
Notifications
You must be signed in to change notification settings - Fork 504
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
3986: Disallow duplicate items in audit #4025
Conversation
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.
It did stop me from saving a duplicate, but... I'm just getting a "Something didn't work quite right -- try again?" when entering a duplicate, and clicking either "Save Progress" or "Confirm Audit". We need to deliver the actual error to the user.
Saw an issue on update (not create) - fixed that. |
@dorner Can we get rid of the "Base" easily? That's not something that's going to mean anything to our users. |
It seems to be gone now. Not sure what caused it to show up. |
Ok... that's weird, it is still happening on my local. (sigh) |
@dorner It turns out that it's behaving differently on create and update. So it's showing the "Base" if you initially try to save with a duplicate, but not if you have saved an audit and then add a duplicate. One of them is calling "handle_audit_errors" and the other one is not. |
@cielf should be fixed! |
@dorner It works - thank you! But rubocop is unhappy. |
Not any more! |
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.
LGTM!
@dorner: Your PR |
Resolves #3986.
Description
This change disallows audits from having multiple of the same item entered. This is almost certainly a mistake.
Type of change
How Has This Been Tested?
Unit tests.