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: entity id should compare based on name and key #520

Merged
merged 1 commit into from
Sep 23, 2024

Conversation

LeonardHd
Copy link
Contributor

@LeonardHd LeonardHd commented Aug 21, 2024

This pull request addresses a issue #521 where unit tests involving the [EntityId] class were failing due to the lack of an equality check based on key and name To resolve this, we have implemented the __eq__ operator in the EntityId class. This enhancement ensures that instances of EntityId are compared correctly, improving the reliability and accuracy of unit tests.

Changes:

  • Implemented the __eq__ operator in the EntityIdclass to compare instances based onkeyandname`.

This change will make unit tests involving EntityId pass as expected, providing a better user experience for developers.

@davidmrdavid
Copy link
Collaborator

Thanks for your contribution @LeonardHd. This looks great but in order to merge, we need you to update your branch with the latest. Can you please do that? Thanks!

@LeonardHd LeonardHd force-pushed the leonardhd/entity-id-equality branch from 6c2cd76 to c422feb Compare September 11, 2024 21:35
@LeonardHd
Copy link
Contributor Author

@davidmrdavid rebased to latest dev! Would be great getting this in!

@davidmrdavid davidmrdavid merged commit 663084b into Azure:dev Sep 23, 2024
2 checks passed
@davidmrdavid
Copy link
Collaborator

This is great, merged. Thank you @LeonardHd for your contribution!

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.

2 participants