-
Notifications
You must be signed in to change notification settings - Fork 907
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
(GH-1889) Fixes Equals implementation of ConfigFileApiKeySettings #1890
Conversation
@@ -43,7 +43,7 @@ public override bool Equals(object obj) | |||
var item = (ConfigFileApiKeySetting) obj; | |||
|
|||
return (Source == item.Source) | |||
&& (Key == item.Source); | |||
&& (Key == item.Key); |
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.
Good catch! This came in as a PR and it appears this was missed on the review!
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.
LGTM!
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.
Okay, apologies on jumping the gun there - I do need the git commit to follow our CONTRIBUTING rules. Can you review that and provide a better commit message and body? Thanks in advance!
c6d8ded
to
5dccfd7
Compare
Updated the commit message |
I would see the git commit summary of this fix be |
5dccfd7
to
731296f
Compare
This is ready to be pulled into stable! |
Thanks for getting that updated. |
@ferventcoder why is this still not merged? everything seems to be in place? |
`remove_api_key` was previously not working properly. The API key string did not get removed from the config file due to incorrect implementation of Equals method in ConfigFileApiKeySettings class. Current commit fixes this issue.
731296f
to
e89ee92
Compare
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.
LGTM!
@skel35 thanks again for taking the time to address this issue! Once the CI builds are completed, I will get this merged in. |
Fixes
Equals
implementation ofConfigFileApiKeySettings
.This is the line which failed due to
Equals
not working correctly:choco/src/chocolatey/infrastructure.app/services/ChocolateyConfigSettingsService.cs
Line 338 in 98f8053
Closes #1889.