Issue 22: Updating scheduled task instead of Unregister/Register#138
Issue 22: Updating scheduled task instead of Unregister/Register#138PlagueHO merged 14 commits intodsccommunity:devfrom
Conversation
Merging release pull request
Release of version 1.10.0.0 of xComputerManagement
Release of version 2.0.0.0 of xComputerManagement
Release of version 2.1.0.0 of xComputerManagement
Release of version 3.0.0.0 of xComputerManagement
Release of version 3.1.0.0 of xComputerManagement
Release of version 3.2.0.0 of xComputerManagement
Codecov Report
@@ Coverage Diff @@
## dev #138 +/- ##
===================================
+ Coverage 89% 89% +<1%
===================================
Files 5 5
Lines 638 647 +9
===================================
+ Hits 570 579 +9
Misses 68 68 |
|
This has been tested on
The repetition trick is unfortunately leading to an overlapped code. |
|
Looking really aweseome @GitBadSanta - this is an excellent change and thank you for submitting it! Just some really minor style tweaks to meet the Style Guidelines (https://github.com/PowerShell/DscResources/blob/master/StyleGuidelines.md). So if you make those changes I'll get this merged ASAP! Reviewed 3 of 3 files at r1. Modules/xComputerManagement/DSCResources/MSFT_xScheduledTask/MSFT_xScheduledTask.psm1, line 1181 at r1 (raw file):
Can you move { to next line? Modules/xComputerManagement/DSCResources/MSFT_xScheduledTask/MSFT_xScheduledTask.psm1, line 1185 at r1 (raw file):
Non-blocking issue: Can you split parameters onto each line using ` backticks? It makes it easier to review (long lines wrap). $scheduledTask = Get-ScheduledTask `
-TaskName $currentValues.TaskName `
-TaskPath $currentValues.TaskPath `
-ErrorAction StopModules/xComputerManagement/DSCResources/MSFT_xScheduledTask/MSFT_xScheduledTask.psm1, line 1190 at r1 (raw file):
Can you remove blank line? Modules/xComputerManagement/DSCResources/MSFT_xScheduledTask/MSFT_xScheduledTask.psm1, line 1191 at r1 (raw file):
Can you move } { to own lines? See https://github.com/PowerShell/DscResources/blob/master/StyleGuidelines.md#one-newline-before-braces for more info. Modules/xComputerManagement/DSCResources/MSFT_xScheduledTask/MSFT_xScheduledTask.psm1, line 1194 at r1 (raw file):
Can you remove trailing whitespace from lines? Suggest using an editor like VS Code and enabling the "files.trimTrailingWhitespace": true setting - it will then automatically correct this. Modules/xComputerManagement/DSCResources/MSFT_xScheduledTask/MSFT_xScheduledTask.psm1, line 1215 at r1 (raw file):
Can you remove blank line? Modules/xComputerManagement/DSCResources/MSFT_xScheduledTask/MSFT_xScheduledTask.psm1, line 1216 at r1 (raw file):
Can you move } { to own lines? See https://github.com/PowerShell/DscResources/blob/master/StyleGuidelines.md#one-newline-before-braces for more info. Modules/xComputerManagement/DSCResources/MSFT_xScheduledTask/MSFT_xScheduledTask.psm1, line 1226 at r1 (raw file):
This verbose line seems unnecessary - can it be removed? Modules/xComputerManagement/DSCResources/MSFT_xScheduledTask/MSFT_xScheduledTask.psm1, line 1229 at r1 (raw file):
Got some white space here to remove 😁 Tests/Unit/MSFT_xScheduledTask.Tests.ps1, line 324 at r1 (raw file):
Can blank line be removed? Comments from Reviewable |
Release of version 4.0.0.0 of xComputerManagement
|
Hi @GitBadSanta - I'm going to begin renaming this repo over to ComputerManagementDsc, but I'd like to get your change in before that happens (otherwise it'll break your PR a lot). See #119. So let me know if you're able to get the final tweaks on this one through so I can begin the rename process. Thank you 😁 |
d017837 to
1e2c6d3
Compare
|
Hi @PlagueHO. Sorry for the delay, and thanks for the detailled review. Hopefully all should be ok now. |
|
@GitBadSanta - Doh! I forgot to get you to add an entry to the CHANGELOG.MD detailing the change. Are you able to add something to that? Other than that it all looks good. Sorry about taking so long too BTW! Reviewed 2 of 2 files at r2. Comments from Reviewable |
|
Reviewed 4 of 4 files at r3. CHANGELOG.md, line 6 at r3 (raw file):
Thanks @GitBadSanta - one problem though: This violates the 80 char markdown line length rule: https://ci.appveyor.com/project/PowerShell/xcomputermanagement/build/1.9.390.0#L2937 Could you just make this line less than 80 chars. e.g. Comments from Reviewable |
|
@GitBadSanta - if we can get this one merged then I can start the renaming process on this module. I haven't completed it yet because I didn't want to mess with your PR. |
|
@PlagueHO : hope it's ok now. |
|
@GitBadSanta - no worries at all @GitBadSanta - I'm just happy for the assistance and work you're putting in! |
|
Reviewed 1 of 1 files at r4. Comments from Reviewable |
Pull Request (PR) description
This Pull Request (PR) fixes the following issues:
Task list:
This change is