-
Notifications
You must be signed in to change notification settings - Fork 225
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
BREAKING CHANGE: SqlPermission: Refactored resource (class-based resource) #1778
Conversation
Codecov Report
@@ Coverage Diff @@
## main #1778 +/- ##
====================================
- Coverage 86% 86% -1%
====================================
Files 37 36 -1
Lines 6261 6185 -76
====================================
- Hits 5422 5349 -73
+ Misses 839 836 -3
|
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.
Reviewed 33 of 38 files at r1, 7 of 7 files at r2, 1 of 1 files at r3, all commit messages.
Reviewable status: complete! all files reviewed, all discussions resolved (waiting on @johlju)
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.
Reviewed 3 of 3 files at r4, all commit messages.
Reviewable status: complete! all files reviewed, all discussions resolved (waiting on @johlju)
Pull Request (PR) description
ServerPermission
- complex type for the DSC resource SqlPermission.help for more information):
Test-SqlDscIsLogin
ConvertFrom-SqlDscServerPermission
ConvertTo-SqlDscServerPermission
Get-SqlDscServerPermission
Set-SqlDscServerPermission
ServerPermissionInfo
when used with the type
ServerPermissionSet
. The stubs suggested thatthe property
PermissionType
(of typeServerPermissionSet
)in
ServerPermissionInfo
should have been a arrayServerPermissionSet[]
.This conflicted with real SMO as it does not pass an array, but instead
a single
ServerPermissionSet
. The stubs was modified to mimic thereal SMO. At the same time some old mock code in the SMO stubs was removed
as it was no longer in use.
Permissions
has been replaced by parametersPermission
,PermissionToInclude
, andPermissionToExclude
. These permissionsparameters are now an instance of the type
ServerPermission
.The type
ServerPermission
contains two properties;State
andPermission
. This closes the issue issue #1761,it also fixes the issues issue #1773,
issue #1704,
and issue #752.
and correct localized string ID for each string.
Set-SqlDscDatabasePermission
This Pull Request (PR) fixes the following issues
Permission
,PermissionToInclude
, andPermissionToExclude
#1773Task list
file CHANGELOG.md. Entry should say what was changed and how that
affects users (if applicable), and reference the issue being resolved
(if applicable).
This change is