Skip to content

Do not duplicate autoloaded candidates across multiple CVRs#987

Merged
artoonie merged 1 commit intodevelopfrom
feature/issue-986_autoload-duplicates
Mar 27, 2026
Merged

Do not duplicate autoloaded candidates across multiple CVRs#987
artoonie merged 1 commit intodevelopfrom
feature/issue-986_autoload-duplicates

Conversation

@artoonie
Copy link
Copy Markdown
Collaborator

@artoonie artoonie commented Mar 9, 2026

Resolves #986

We were creating a hashset to prevent duplicate candidates, but that hashset was hashing Candidate objects. Implement .hashCode and .equals to prevent duplicates across multiple CVRs.

@artoonie artoonie force-pushed the feature/issue-986_autoload-duplicates branch from dbf45b7 to ef342fb Compare March 9, 2026 19:32
@artoonie
Copy link
Copy Markdown
Collaborator Author

TODO: Add tests, preferably using multiple CVR types with the same data

@artoonie
Copy link
Copy Markdown
Collaborator Author

Multiple CVRs with same data created in #990
Tests added in #991

This is ready for review, and we should decide on a merge order. I recommend merging this first, then #990, then #991.

@artoonie artoonie requested a review from yezr March 25, 2026 18:45
Copy link
Copy Markdown
Collaborator

@yezr yezr left a comment

Choose a reason for hiding this comment

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

lgtm

@artoonie artoonie added this pull request to the merge queue Mar 27, 2026
Merged via the queue into develop with commit dce3f7e Mar 27, 2026
1 check passed
@artoonie artoonie deleted the feature/issue-986_autoload-duplicates branch March 27, 2026 14:48
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.

Candidate Auto-Load doesn't make distinct list when configured with multiple CVRs

2 participants