-
Notifications
You must be signed in to change notification settings - Fork 149
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
Added LogCustomFields to xWebSite (Fixes #267) #342
Conversation
Awesoem work on this one! 😄 Just a few review comments. Reviewed 4 of 7 files at r1, 1 of 2 files at r2, 3 of 3 files at r3. README.md, line 170 at r3 (raw file):
information DSCResources/MSFT_xWebsite/MSFT_xWebsite.psm1, line 770 at r3 (raw file):
Instead of duplicating this code twice, can't we just run this once after the evaluation if the website should be created or already exists? DSCResources/MSFT_xWebsite/MSFT_xWebsite.psm1, line 1090 at r3 (raw file):
We should have two 'e' here :) Throughout. DSCResources/MSFT_xWebsite/MSFT_xWebsite.psm1, line 1634 at r3 (raw file):
Should return an array of CimInstance's not just one? DSCResources/MSFT_xWebsite/MSFT_xWebsite.psm1, line 1860 at r3 (raw file):
Could we instead loop twice over one of the DSCResources/MSFT_xWebsite/MSFT_xWebsite.psm1, line 1860 at r3 (raw file):
Could you please submit an issue for this in this repo so this can be tracked. I will label it as external though, since we can't do anything about it in this repo. But once fixed we can remove the workaround. DSCResources/MSFT_xWebsite/MSFT_xWebsite.psm1, line 2154 at r3 (raw file):
Should we have upper 'S' on this property name? Same for the row below. DSCResources/MSFT_xWebsite/MSFT_xWebsite.psm1, line 2156 at r3 (raw file):
Please add a space between if an the parenthesis . DSCResources/MSFT_xWebsite/MSFT_xWebsite.schema.mof, line 54 at r3 (raw file):
Could we extent this description a bit to something more like that first phrase in the README.md? Tests/Integration/MSFT_xWebsite.config.ps1, line 157 at r3 (raw file):
Maybe we could add another SourceType for this test? Tests/Unit/MSFT_xWebsite.Tests.ps1, line 84 at r3 (raw file):
Could we start the variable names with lower-case? Throughout (only have to do on your changes). I know the others aren't, but we need to start somewhere to follow the guideline 😄 Tests/Unit/MSFT_xWebsite.Tests.ps1, line 97 at r3 (raw file):
Since we can add an array maybe we should test with an array of two objects? Throughout. Tests/Unit/MSFT_xWebsite.Tests.ps1, line 3529 at r3 (raw file):
Maybe test this with an array? Tests/Unit/MSFT_xWebsite.Tests.ps1, line 3569 at r3 (raw file):
Maybe test this with an array? Tests/Unit/MSFT_xWebsite.Tests.ps1, line 3615 at r3 (raw file):
Maybe test this with an array? Comments from Reviewable |
Thanks for the feedback. I'll start working on these. |
Review status: 1 of 8 files reviewed at latest revision, 15 unresolved discussions, some commit checks failed. README.md, line 170 at r3 (raw file): Previously, johlju (Johan Ljunggren) wrote…
Done. DSCResources/MSFT_xWebsite/MSFT_xWebsite.psm1, line 770 at r3 (raw file): Previously, johlju (Johan Ljunggren) wrote…
I agree. I applied the same logic as the other settings in Set-TargetResource, but it is actually redundant like you pointed out. Most of the other settings in that function can probably be adjusted in the same way. DSCResources/MSFT_xWebsite/MSFT_xWebsite.psm1, line 1090 at r3 (raw file): Previously, johlju (Johan Ljunggren) wrote…
Done. DSCResources/MSFT_xWebsite/MSFT_xWebsite.psm1, line 1634 at r3 (raw file): Previously, johlju (Johan Ljunggren) wrote…
Done. DSCResources/MSFT_xWebsite/MSFT_xWebsite.psm1, line 1860 at r3 (raw file): Previously, johlju (Johan Ljunggren) wrote…
Done. DSCResources/MSFT_xWebsite/MSFT_xWebsite.psm1, line 1860 at r3 (raw file): Previously, johlju (Johan Ljunggren) wrote…
Yes, Opened Issue #348 for this DSCResources/MSFT_xWebsite/MSFT_xWebsite.psm1, line 2154 at r3 (raw file): Previously, johlju (Johan Ljunggren) wrote…
Done. DSCResources/MSFT_xWebsite/MSFT_xWebsite.psm1, line 2156 at r3 (raw file): Previously, johlju (Johan Ljunggren) wrote…
Done. DSCResources/MSFT_xWebsite/MSFT_xWebsite.schema.mof, line 54 at r3 (raw file): Previously, johlju (Johan Ljunggren) wrote…
Done. Tests/Integration/MSFT_xWebsite.config.ps1, line 157 at r3 (raw file): Previously, johlju (Johan Ljunggren) wrote…
Done. Tests/Unit/MSFT_xWebsite.Tests.ps1, line 84 at r3 (raw file): Previously, johlju (Johan Ljunggren) wrote…
Done. Tests/Unit/MSFT_xWebsite.Tests.ps1, line 97 at r3 (raw file): Previously, johlju (Johan Ljunggren) wrote…
Done. Tests/Unit/MSFT_xWebsite.Tests.ps1, line 3529 at r3 (raw file): Previously, johlju (Johan Ljunggren) wrote…
Done. Tests/Unit/MSFT_xWebsite.Tests.ps1, line 3569 at r3 (raw file): Previously, johlju (Johan Ljunggren) wrote…
Done. Tests/Unit/MSFT_xWebsite.Tests.ps1, line 3615 at r3 (raw file): Previously, johlju (Johan Ljunggren) wrote…
Done. Comments from Reviewable |
Reviewed 7 of 7 files at r4. Comments from Reviewable |
@regedit32 Can you rebase this one to resolve the merge conflicts? Also, when you push next time the tests should pass, we got fixes merged for the failing tests. |
Codecov Report
@@ Coverage Diff @@
## dev #342 +/- ##
====================================
+ Coverage 89% 89% +<1%
====================================
Files 14 14
Lines 2171 2210 +39
====================================
+ Hits 1944 1983 +39
Misses 227 227 |
@johlju done, thanks. Review status: 5 of 8 files reviewed at latest revision, all discussions resolved. Comments from Reviewable |
Just a tiny review comment left, I must have missed it before. Reviewed 3 of 3 files at r5. README.md, line 265 at r5 (raw file):
Can we remove this extra blank line? Comments from Reviewable |
* Fixed indenting in xWebsite.config.ps1 * Replaced Set-ItemProperty with Set-WebConfiguratinoProperty * cleaned up code * Added a second Set-WebConfiguration to handle edge case * typo
done. Did another rebase and it took care of that, thanks. Review status: 7 of 8 files reviewed at latest revision, 1 unresolved discussion. Comments from Reviewable |
Review status: 7 of 8 files reviewed at latest revision, 1 unresolved discussion. README.md, line 265 at r5 (raw file): Previously, johlju (Johan Ljunggren) wrote…
Done. Comments from Reviewable |
Reviewed 1 of 1 files at r6. Comments from Reviewable |
@regedit32 Awesome work on this one! Thanks! |
- Updated xWebSite to include ability to manage custom logging fields (issue dsccommunity#267).
- Updated xWebSite to include ability to manage custom logging fields (issue dsccommunity#267).
Modified xWebSite to include the ability to manage logging custom fields. (Fixes #267 )
Below is an example of how to add a logging custom field with the updated resource:
This change is