-
Notifications
You must be signed in to change notification settings - Fork 88
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 mysql_user on_new_username IndexError #642
Fix mysql_user on_new_username IndexError #642
Conversation
Previously we were returning only the first row found. We need to be able to see if there is a difference in the existing passwords.
This make it possible to use the same method from mysql_user to help update_password retrieve existing password for all account with the same username independently of their hostname. And from mysql_info to get the password of a specif user using WHERE user = '' AND host = ''
@betanummeric, would you be able to test this PR on your infrastructure? Maybe in a test environment or in check mode to prevent damage. There might be cases not covered by the test suite, although I doubt it given how well thought out your tests are! |
I will try to review this week |
Thanks @betanummeric!
|
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## main #642 +/- ##
===========================================
+ Coverage 23.87% 67.52% +43.65%
===========================================
Files 29 15 -14
Lines 2739 2473 -266
Branches 687 643 -44
===========================================
+ Hits 654 1670 +1016
+ Misses 2025 589 -1436
- Partials 60 214 +154
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Sentry. |
I've merged #631, then merged it in this branch and tests are still green. @betanummeric I just need your benediction before we can merge this :) |
@betanummeric this is ready for a last review please. |
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.
looks good now :)
@laurent-indermuehle @betanummeric thanks for the contribution! |
SUMMARY
update_password
functionality ofmysql_user
. Weirdly, they were never included in themain.yml
fail.Fixes #641
ISSUE TYPE
COMPONENT NAME
ADDITIONAL INFORMATION