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: make equality comparison of VCs based on ID #387

Conversation

paullatzelsperger
Copy link
Member

What this PR changes/adds

this pr changes the check in the CredentialQueryResolverImpl so that VerifiableCredentialResources aren't compared by reference anymore, but by their ID.

Why it does that

VerifiableCredentialResource objects that are loaded from a database have a different object ID.

Further notes

List other areas of code that have changed but are not necessarily linked to the main feature. This could be method
signature changes, package declarations, bugs that were encountered and were fixed inline, etc.

Linked Issue(s)

Closes # <-- insert Issue number if one exists

Please be sure to take a look at the contributing guidelines and our etiquette for pull requests.

@paullatzelsperger paullatzelsperger added the bug Something isn't working label Jul 2, 2024
@paullatzelsperger paullatzelsperger force-pushed the fix/equality_comparison_based_on_id branch from 0eb6bd2 to b1de341 Compare July 2, 2024 13:15
@paullatzelsperger paullatzelsperger merged commit ff1a77d into eclipse-edc:main Jul 2, 2024
13 checks passed
@paullatzelsperger paullatzelsperger deleted the fix/equality_comparison_based_on_id branch July 2, 2024 13:42
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.

2 participants