-
Notifications
You must be signed in to change notification settings - Fork 34
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
Convert nested modules to buildable modules #96
base: main
Are you sure you want to change the base?
Convert nested modules to buildable modules #96
Conversation
@johlju, trying to keep the PR's small. |
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 26 of 26 files at r1, all commit messages.
Reviewable status: all files reviewed, 5 unresolved discussions (waiting on @dan-hughes)
source/Modules/DhcpServerDsc.Common/Public/Get-ValidTimeSpan.ps1
line 1 at r1 (raw file):
# Internal function to translate a string to valid TimeSpan format
Can we add comment-based help to this?
Code quote:
# Internal function to translate a string to valid TimeSpan format
tests/Unit/DhcpServerDsc.Common/Public/Assert-ScopeParameter.Tests.ps1
line 43 at r1 (raw file):
Import-Module -Name $script:subModulePath -Force -ErrorAction 'Stop' $PSDefaultParameterValues['InModuleScope:ModuleName'] = $script:subModuleName
Same question as in NetworkingDsc...
Code quote:
$PSDefaultParameterValues['InModuleScope:ModuleName'] = $script:subModuleName
source/Modules/DhcpServerDsc.Common/Public/Write-PropertyMessage.ps1
line 1 at r1 (raw file):
# Internal function to write verbose messages for collection of properties
Can we add comment-based help to this?
Code quote:
# Internal function to write verbose messages for collection of properties
source/Modules/DhcpServerDsc.Common/Public/New-TerminatingError.ps1
line 2 at r1 (raw file):
# Internal function to throw terminating error with specified ErrorCategory, ErrorId and ErrorMessage function New-TerminatingError
Can we skip this and use the similar one frpm DscResource.Common? It can be in another PR, can you create an issue in that case?
Code quote:
New-TerminatingError
source/Modules/DhcpServerDsc.Common/Public/Get-ValidIPAddress.ps1
line 1 at r1 (raw file):
# Internal function to translate a string to valid IPAddress format
Can we add comment-based help to this?
Code quote:
# Internal function to translate a string to valid IPAddress format
@dan-hughes the HQRM tests (DscResource.Test), for example localization tests, are they run on these private modules? Just curious if I need to be more wary about errors that I could ignored because HQRM would have caught them. 🙂 |
Looks to be working looking at the logs. |
Pull Request (PR) description
Let ModuleBuilder build
DhcpServerDsc.Common
andDhcpServerDsc.OptionValueHelper
.This Pull Request (PR) fixes the following issues
Task list
Entry should say what was changed and how that affects users (if applicable), and
reference the issue being resolved (if applicable).
help.
This change is