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

Fix bug where validation errors could overwrite previous validation errors #2448

Merged
merged 2 commits into from
Aug 12, 2024

Conversation

hannobraun
Copy link
Owner

Validation errors were stored in a map, by object ID, which means that only one validation error could be stored per object. This made no sense, and this pull request fixes it. It's also a simplification, so a win all around.

This seems to be a really old bug, but I don't think it had much impact. It could not lead to the presence of validation errors being missed. It could just prevent the user from having a complete picture of what is wrong, if there already are validation errors.

Validation errors were stored by object ID, which made no sense. It
wasn't necessary, but provided the possibility of a validation error
overwriting a previous one that applied to the same object.

On top of that, this change is a simplification, so a win all around.
@hannobraun hannobraun merged commit c157b66 into main Aug 12, 2024
3 checks passed
@hannobraun hannobraun deleted the validate branch August 12, 2024 19:23
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.

1 participant