-
Notifications
You must be signed in to change notification settings - Fork 19
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
xFileSystemAccessRule: Make Cluster Aware #18
xFileSystemAccessRule: Make Cluster Aware #18
Conversation
57ddae3
to
3277796
Compare
@randomnote1 Can you work on this if I review? |
@johlju Yes, I am ready to go. Thanks for reviewing! |
@randomnote1 Great! I come back to this tomorrow. I have the e-mail notification as reminder. |
Reviewed 4 of 4 files at r1. README.md, line 37 at r1 (raw file):
Maybe README.md, line 38 at r1 (raw file):
Could we add these like this instead? { ListDirectory | ReadData | WriteData | ...etc... }` README.md, line 61 at r1 (raw file):
Can we add this? README.md, line 62 at r1 (raw file):
Should we add that to use this the user the configuration is run as must have permission in the cluster? README.md, line 63 at r1 (raw file):
Maybe add something like this (please proof read): "This will always return $true if ProcessOnlyOnActiveNode is left out or set to the value $false." README.md, line 69 at r1 (raw file):
Please add an entry or entries for the changes to the Unreleased section. DSCResources/MSFT_xFileSystemAccessRule/MSFT_xFileSystemAccessRule.psm1, line 38 at r1 (raw file):
If the resource is run with a user that does not have permission to evaluate the cluster, this would just continue without throwing an error. Can we catch that, or will the note in the README.md be sufficient? If we should catch that, then maybe we should only do the cluster parts if DSCResources/MSFT_xFileSystemAccessRule/MSFT_xFileSystemAccessRule.psm1, line 82 at r1 (raw file):
This will return an object array of type FileSystemRights. Not a string array?
DSCResources/MSFT_xFileSystemAccessRule/MSFT_xFileSystemAccessRule.psm1, line 91 at r1 (raw file):
Update the comment-based help with the added/changed descriptions in the README.md. DSCResources/MSFT_xFileSystemAccessRule/MSFT_xFileSystemAccessRule.psm1, line 151 at r1 (raw file):
The default value here, does that mean that when used with 'Present' that will replace all existing permissions with no permissions for that identity, or will it not do anything? DSCResources/MSFT_xFileSystemAccessRule/MSFT_xFileSystemAccessRule.psm1, line 200 at r1 (raw file):
We should not have DSCResources/MSFT_xFileSystemAccessRule/MSFT_xFileSystemAccessRule.psm1, line 319 at r1 (raw file):
Maybe write out what they should be too, the expected rights? DSCResources/MSFT_xFileSystemAccessRule/MSFT_xFileSystemAccessRule.schema.mof, line 7 at r1 (raw file):
Please match the changes in parameter descriptions to the descriptions here (those you have changed, or will change) 🙂 Tests/Unit/MSFT_xFileSystemAccessRule.tests.ps1, line 13 at r1 (raw file):
Let's remove the TODO comment. Comments from Reviewable |
Review status: all files reviewed at latest revision, 14 unresolved discussions. DSCResources/MSFT_xFileSystemAccessRule/MSFT_xFileSystemAccessRule.psm1, line 42 at r1 (raw file):
We should not need this here. DSCResources/MSFT_xFileSystemAccessRule/MSFT_xFileSystemAccessRule.psm1, line 68 at r1 (raw file):
We should not need this here. DSCResources/MSFT_xFileSystemAccessRule/MSFT_xFileSystemAccessRule.psm1, line 173 at r1 (raw file):
We should not need this here. DSCResources/MSFT_xFileSystemAccessRule/MSFT_xFileSystemAccessRule.psm1, line 294 at r1 (raw file):
We should not need this here. DSCResources/MSFT_xFileSystemAccessRule/MSFT_xFileSystemAccessRule.psm1, line 319 at r1 (raw file):
We should not need this here. Comments from Reviewable |
Adjusted logic
Added comment-based help for Get-AclAccess Updated the unit tests
c83a02a
to
64f8c28
Compare
Review status: 3 of 4 files reviewed at latest revision, 19 unresolved discussions. README.md, line 37 at r1 (raw file): Previously, johlju (Johan Ljunggren) wrote…
Done. README.md, line 38 at r1 (raw file): Previously, johlju (Johan Ljunggren) wrote…
Done. README.md, line 61 at r1 (raw file): Previously, johlju (Johan Ljunggren) wrote…
Done. README.md, line 62 at r1 (raw file): Previously, johlju (Johan Ljunggren) wrote…
Done. README.md, line 63 at r1 (raw file): Previously, johlju (Johan Ljunggren) wrote…
Done. README.md, line 69 at r1 (raw file): Previously, johlju (Johan Ljunggren) wrote…
Done. DSCResources/MSFT_xFileSystemAccessRule/MSFT_xFileSystemAccessRule.psm1, line 38 at r1 (raw file): Previously, johlju (Johan Ljunggren) wrote…
I can think of a couple options here:
I'm leaning toward the second option because I don't think adding the additional error handling adds much value. DSCResources/MSFT_xFileSystemAccessRule/MSFT_xFileSystemAccessRule.psm1, line 42 at r1 (raw file): Previously, johlju (Johan Ljunggren) wrote…
Done. DSCResources/MSFT_xFileSystemAccessRule/MSFT_xFileSystemAccessRule.psm1, line 68 at r1 (raw file): Previously, johlju (Johan Ljunggren) wrote…
Done. DSCResources/MSFT_xFileSystemAccessRule/MSFT_xFileSystemAccessRule.psm1, line 82 at r1 (raw file): Previously, johlju (Johan Ljunggren) wrote…
No, it returns a string array. I added a type to the variable to make readability easier. DSCResources/MSFT_xFileSystemAccessRule/MSFT_xFileSystemAccessRule.psm1, line 91 at r1 (raw file): Previously, johlju (Johan Ljunggren) wrote…
Done. DSCResources/MSFT_xFileSystemAccessRule/MSFT_xFileSystemAccessRule.psm1, line 151 at r1 (raw file): Previously, johlju (Johan Ljunggren) wrote…
Yes, good point. Since DSCResources/MSFT_xFileSystemAccessRule/MSFT_xFileSystemAccessRule.psm1, line 173 at r1 (raw file): Previously, johlju (Johan Ljunggren) wrote…
Done. DSCResources/MSFT_xFileSystemAccessRule/MSFT_xFileSystemAccessRule.psm1, line 200 at r1 (raw file): Previously, johlju (Johan Ljunggren) wrote…
Done. DSCResources/MSFT_xFileSystemAccessRule/MSFT_xFileSystemAccessRule.psm1, line 294 at r1 (raw file): Previously, johlju (Johan Ljunggren) wrote…
Done. DSCResources/MSFT_xFileSystemAccessRule/MSFT_xFileSystemAccessRule.psm1, line 319 at r1 (raw file): Previously, johlju (Johan Ljunggren) wrote…
Done. DSCResources/MSFT_xFileSystemAccessRule/MSFT_xFileSystemAccessRule.psm1, line 319 at r1 (raw file): Previously, johlju (Johan Ljunggren) wrote…
Done. DSCResources/MSFT_xFileSystemAccessRule/MSFT_xFileSystemAccessRule.schema.mof, line 7 at r1 (raw file): Previously, johlju (Johan Ljunggren) wrote…
Done. Tests/Unit/MSFT_xFileSystemAccessRule.tests.ps1, line 13 at r1 (raw file): Previously, johlju (Johan Ljunggren) wrote…
Done. Comments from Reviewable |
@johlju The first round of updates are complete. |
Awesome work again! Just a few tiny comments left! 🙂 Reviewed 4 of 4 files at r3. README.md, line 39 at r3 (raw file):
The (upper 'T') README.md, line 39 at r3 (raw file):
have README.md, line 49 at r3 (raw file):
In other resource modules we switched to have the contributor name at the end of the change log entry instead, to make reading of the change log easier. Can we do that here to?
DSCResources/MSFT_xFileSystemAccessRule/MSFT_xFileSystemAccessRule.psm1, line 38 at r1 (raw file): Previously, randomnote1 (Dan Reist) wrote…
Let's go with as-is, and if there is a problem in the future that can be fixed at that time. DSCResources/MSFT_xFileSystemAccessRule/MSFT_xFileSystemAccessRule.psm1, line 82 at r1 (raw file):
We should add a space between the type and @(); DSCResources/MSFT_xFileSystemAccessRule/MSFT_xFileSystemAccessRule.psm1, line 29 at r3 (raw file):
We should add a space between the type and @(); Comments from Reviewable |
Review status: 1 of 4 files reviewed at latest revision, 6 unresolved discussions. README.md, line 39 at r3 (raw file): Previously, johlju (Johan Ljunggren) wrote…
Done. README.md, line 39 at r3 (raw file): Previously, johlju (Johan Ljunggren) wrote…
Done. README.md, line 49 at r3 (raw file): Previously, johlju (Johan Ljunggren) wrote…
Done. DSCResources/MSFT_xFileSystemAccessRule/MSFT_xFileSystemAccessRule.psm1, line 82 at r1 (raw file): Previously, johlju (Johan Ljunggren) wrote…
Done. DSCResources/MSFT_xFileSystemAccessRule/MSFT_xFileSystemAccessRule.psm1, line 29 at r3 (raw file): Previously, johlju (Johan Ljunggren) wrote…
Done. Comments from Reviewable |
Reviewed 3 of 3 files at r4. Comments from Reviewable |
@randomnote1 Awesome work here! Thanks a lot for this! |
Pull Request (PR) description
Made the resource cluster aware. When ProcessOnlyOnActiveNode is specified, the resource will only determine if a change is needed if the target node is the active host of the file system object.
This Pull Request (PR) fixes the following issues:
Fixes #16
This change is