-
Notifications
You must be signed in to change notification settings - Fork 54
Port Style Upgrades in DscResources Folder from xPSDesiredStateConfiguration #162
Conversation
Codecov Report
@@ Coverage Diff @@
## dev #162 +/- ##
===================================
Coverage 83% 83%
===================================
Files 19 19
Lines 2760 2760
Branches 4 4
===================================
Hits 2303 2303
Misses 453 453
Partials 4 4 |
d2d6213
to
3fc4b2b
Compare
Reaching out to the community for help reviewing this one. Would someone be able to help with this?Tagging frequent helpers for awareness: @PlagueHO , @johlju , @tmeckel, and @X-Guardian |
3fc4b2b
to
587bfe5
Compare
I'm on it! Haven't had much time lately. |
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.
Wow! Epic @mhendric - just one minor thing.
Reviewed 23 of 23 files at r1.
Reviewable status: all files reviewed, 2 unresolved discussions (waiting on @mhendric)
DscResources/ServiceSet/ServiceSet.schema.psm1, line 54 at r1 (raw file):
param ( [Parameter(Mandatory = $true, HelpMessage="An array of the names of the services to configure.")]
Are these HelpMessage parameters required? And throughout all composite resources.
DscResources/ServiceSet/ServiceSet.schema.psm1, line 79 at r1 (raw file):
$State, [Parameter(HelpMessage="he credential of the user account each service in the set should start under. Cannot be specified at the same time as BuiltInAccount. The user specified by this credential will automatically be granted the Log on as a Service right. The user account specified by this property must have access to the service executable paths in order to start the services.")]
Message is incorrect. Needs a T
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.
Reviewable status: all files reviewed, 2 unresolved discussions (waiting on @mhendric and @PlagueHO)
DscResources/ServiceSet/ServiceSet.schema.psm1, line 54 at r1 (raw file):
Previously, PlagueHO (Daniel Scott-Raynsford) wrote…
Are these HelpMessage parameters required? And throughout all composite resources.
So, these HelpMessage attributes don't actually exist in xPSDesiredStateConfiguration; they are only in PSDscResources. IMO, these don't add much value, and could be removed. Sounds like you agree. That would help in getting these modules closer to being aligned too. I'll get these all cleaned up.
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 for the review @PlagueHO . Changes have been made. Can you review again?
Reviewable status: 18 of 23 files reviewed, 2 unresolved discussions (waiting on @PlagueHO)
DscResources/ServiceSet/ServiceSet.schema.psm1, line 54 at r1 (raw file):
Previously, mhendric (Mike Hendrickson) wrote…
So, these HelpMessage attributes don't actually exist in xPSDesiredStateConfiguration; they are only in PSDscResources. IMO, these don't add much value, and could be removed. Sounds like you agree. That would help in getting these modules closer to being aligned too. I'll get these all cleaned up.
Done.
DscResources/ServiceSet/ServiceSet.schema.psm1, line 79 at r1 (raw file):
Previously, PlagueHO (Daniel Scott-Raynsford) wrote…
Message is incorrect. Needs a T
Fixed by removing HelpMessage altogether.
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.
Reviewable status: 18 of 23 files reviewed, 2 unresolved discussions (waiting on @johlju and @PlagueHO)
DscResources/ServiceSet/ServiceSet.schema.psm1, line 54 at r1 (raw file):
Previously, mhendric (Mike Hendrickson) wrote…
Done.
Just going to check if @johlju can think of any reason why these HelpMessage attributes have been included on these composite resources? I've not ever used them like this but perhaps there was some reason Katie and/or Mariah added this? Do you know @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.
Reviewable status: 18 of 23 files reviewed, 2 unresolved discussions (waiting on @PlagueHO)
DscResources/ServiceSet/ServiceSet.schema.psm1, line 54 at r1 (raw file):
Previously, PlagueHO (Daniel Scott-Raynsford) wrote…
Just going to check if @johlju can think of any reason why these HelpMessage attributes have been included on these composite resources? I've not ever used them like this but perhaps there was some reason Katie and/or Mariah added this? Do you know @johlju?
If the user runs these manually, not calling the composite with that parameter, they can use !?
when prompted for a mandatory parameter. But in reality I'm not sure this will be used.
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.
Reviewable status: 18 of 23 files reviewed, 2 unresolved discussions (waiting on @johlju and @PlagueHO)
DscResources/ServiceSet/ServiceSet.schema.psm1, line 54 at r1 (raw file):
Previously, johlju (Johan Ljunggren) wrote…
If the user runs these manually, not calling the composite with that parameter, they can use
!?
when prompted for a mandatory parameter. But in reality I'm not sure this will be used.
Thanks @johlju - I can't see why anyone would use DSC in that way either. But there must have been some reason that it was added. I'd prefer to remove these as it just seems to be duplicate information that can only get out of sync.
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.
Reviewable status: 18 of 23 files reviewed, 2 unresolved discussions (waiting on @PlagueHO)
DscResources/ServiceSet/ServiceSet.schema.psm1, line 54 at r1 (raw file):
Previously, PlagueHO (Daniel Scott-Raynsford) wrote…
Thanks @johlju - I can't see why anyone would use DSC in that way either. But there must have been some reason that it was added. I'd prefer to remove these as it just seems to be duplicate information that can only get out of sync.
I agree to remove these.
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 1 of 5 files at r2.
Reviewable status: 19 of 23 files reviewed, all discussions resolved (waiting on @PlagueHO)
Hey @PlagueHO and @johlju , it's a little late, but I just realized that the above decision pretty much kills #140 that @mgreenegit had submitted. I wonder if we should just move his suggested examples to the comment based help. Thoughts? |
Pull Request (PR) description
Ports most of the style upgrades from xPSDesiredStateConfiguration that have been made in files in the DscResources folder. Among other things, this will help to ensure that the two modules are as in sync as possible, which will in turn help with porting changes and features between modules.
This Pull Request (PR) fixes the following issues
None
Task list
Entry should say what was changed, and how that affects users (if applicable).
and comment-based help.
This change is