-
Notifications
You must be signed in to change notification settings - Fork 89
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
mysql_role: add argument "members_must_exist" #369
mysql_role: add argument "members_must_exist" #369
Conversation
Codecov Report
@@ Coverage Diff @@
## main #369 +/- ##
==========================================
- Coverage 78.12% 78.10% -0.03%
==========================================
Files 27 27
Lines 2272 2279 +7
Branches 549 552 +3
==========================================
+ Hits 1775 1780 +5
- Misses 339 340 +1
- Partials 158 159 +1
Continue to review full report at Codecov.
|
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.
@betanummeric thanks very much for fixing and improving the module! I like the idea.
Speaking about the default value, we can't merge it now if the it's yes
as it would be a breaking change (we are following SemVer and such changes must be announced in advance with warnings, etc., and released in a major release).
I suggest making it no
for now. We could discuss and change it later in a separate issue. If the community will be OK, we'll create a PR which we'll merge before the next major release (which i don't think will happen earlier than in half a year).
So to proceed now, I suggest making it no
by default (for now).
@Andersson007 The current default |
Ah, got it now, busy days... sorry:) |
The assertion that the users supplied in the "members" argument exist is only executed when the new argument "members_must_exist" is true, to allow opt-out.
Co-authored-by: Andrew Klychkov <[email protected]>
Co-authored-by: Andrew Klychkov <[email protected]>
82e1553
to
eea57da
Compare
@betanummeric there's an integration test error in case you've missed it |
@Andersson007 Thanks for the hint, but it looks like the error is unrelated to my changes:
All other integration tests ran successfully. Can you maybe reschedule the failed test? |
@betanummeric ah, OK, thanks. Unfortunately there's no way to re-launch only one task in GHA, so i closed reopened the PR to trigger another run |
ah, GitHub has issues now https://www.githubstatus.com/. I'll relauch the tests later |
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
@betanummeric thanks for the improvement! |
@betanummeric ah, should we maybe add an example of the new param use to the EXAMPLES block? Would you like to submit a PR? (no changelog fragment needed) |
ISSUE TYPE
COMPONENT NAME
mysql_role
SUMMARY
Add a new argument "members_must_exist" (boolean, default true).
The assertion that the users supplied in the "members" argument exist is only executed when the new argument "members_must_exist" is true, to allow opt-out.
fixes #366 (the "raising too much errors" part)