-
Notifications
You must be signed in to change notification settings - Fork 2.4k
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
Ensure that Parameters compare equal when they have the same hash #11652
Conversation
One or more of the the following people are requested to review this:
|
It looks like there are some existing uses of different names comparing equal so this one may take some more careful work. |
This will wait for a resolution in #11654 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks Will - pending resolution of #11654 this looks good to go, except for maybe there was a slightly dodgy merge somewhere?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Bad merge?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Not sure what happened here, but I will clean it up. I must have done something funny splitting this change out from the uuid
property which I had together originally.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It doesn't matter at all, but for the future: you can put more than one bullet (and even more than one section) in a release note.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Bad merge?
Previously, only the `Parameter.uuid` was compared, so `Paramemter` instances with different names could compare equal if they had been constructed using a common value for the `uuid` parameter (which is usually not passed explicitly).
b1acbc2
to
2ad5fda
Compare
#11692 modifies the tests that are currently failing here so that they are not affected by this change. |
In the interests of time, and because this PR has an extended critical path to merge, I'm going to defer it to 1.0.1. It's a bugfix - the current definition of equality is broken and not what's documented or compatible with the hash. |
One or more of the the following people are requested to review this:
|
Pull Request Test Coverage Report for Build 8022059400Details
💛 - Coveralls |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks Will, this looks good to me, and it's great to fix a data-model problem like this.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks @wshanks
…1652) (#11875) Previously, only the `Parameter.uuid` was compared, so `Paramemter` instances with different names could compare equal if they had been constructed using a common value for the `uuid` parameter (which is usually not passed explicitly). (cherry picked from commit 3e6b646) Co-authored-by: Will Shanks <[email protected]>
Previously, only the
Parameter.uuid
was compared, soParamemter
instances with different names could compare equal if they had been
constructed using a common value for the
uuid
parameter (which isusually not passed explicitly).
Fix #11654