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 Document.add_all_annotations_from_other() #429

Merged
merged 1 commit into from
Oct 8, 2024

Conversation

ArneBinder
Copy link
Owner

@ArneBinder ArneBinder commented Oct 8, 2024

With this PR, Document.add_all_annotations_from_other() returns a dict with annotation ids instead of annotations as keys. The state before, returning a dict with annotations as keys, was problematic because, there may be multiple annotations with the same hash (e.g. when only non-comparison files such as the score are different) which results in dropped / overwritten entries.

@ArneBinder ArneBinder added the bug Something isn't working label Oct 8, 2024
@ArneBinder ArneBinder force-pushed the fix_add_all_annotations_from_other branch from 7e98593 to 38c77a1 Compare October 8, 2024 03:17
@ArneBinder ArneBinder merged commit e3fb6bc into main Oct 8, 2024
6 checks passed
@ArneBinder ArneBinder deleted the fix_add_all_annotations_from_other branch October 8, 2024 03:33
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant