Skip to content
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

SqlServerDsc: Replace Import-SQLPSModule #1862

Merged
merged 3 commits into from
Mar 4, 2023

Conversation

johlju
Copy link
Member

@johlju johlju commented Mar 3, 2023

Pull Request (PR) description

This Pull Request (PR) fixes the following issues

Task list

  • Added an entry to the change log under the Unreleased section of the
    file CHANGELOG.md. Entry should say what was changed and how that
    affects users (if applicable), and reference the issue being resolved
    (if applicable).
  • Resource documentation updated in the resource's README.md.
  • Resource parameter descriptions updated in schema.mof.
  • Comment-based help updated, including parameter descriptions.
  • Localization strings updated.
  • Examples updated.
  • Unit tests updated. See DSC Community Testing Guidelines.
  • Integration tests updated (where possible). See DSC Community Testing Guidelines.
  • Code changes adheres to DSC Community Style Guidelines.

This change is Reviewable

@johlju johlju added the needs review The pull request needs a code review. label Mar 3, 2023
@codecov
Copy link

codecov bot commented Mar 3, 2023

Codecov Report

Merging #1862 (9111bef) into main (b24df85) will decrease coverage by 1%.
The diff coverage is 93%.

Impacted file tree graph

@@         Coverage Diff          @@
##           main   #1862   +/-   ##
====================================
- Coverage    92%     92%   -1%     
====================================
  Files        85      85           
  Lines      7608    7607    -1     
====================================
- Hits       7006    7005    -1     
  Misses      602     602           
Flag Coverage Δ
unit 92% <93%> (-1%) ⬇️
Impacted Files Coverage Δ
...Resources/DSC_SqlAGDatabase/DSC_SqlAGDatabase.psm1 0% <0%> (ø)
...urce/DSCResources/DSC_SqlScript/DSC_SqlScript.psm1 100% <ø> (ø)
...sources/DSC_SqlScriptQuery/DSC_SqlScriptQuery.psm1 100% <ø> (ø)
...SCResources/DSC_SqlAGReplica/DSC_SqlAGReplica.psm1 100% <100%> (ø)
...DSC_SqlAlwaysOnService/DSC_SqlAlwaysOnService.psm1 100% <100%> (ø)
.../DSCResources/DSC_SqlProtocol/DSC_SqlProtocol.psm1 100% <100%> (ø)
...ces/DSC_SqlProtocolTcpIp/DSC_SqlProtocolTcpIp.psm1 100% <100%> (ø)
source/DSCResources/DSC_SqlRS/DSC_SqlRS.psm1 99% <100%> (ø)
...sources/DSC_SqlReplication/DSC_SqlReplication.psm1 65% <100%> (ø)
...s/DSC_SqlServiceAccount/DSC_SqlServiceAccount.psm1 98% <100%> (ø)
... and 3 more

Copy link
Member Author

@johlju johlju left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Reviewed 28 of 28 files at r1, all commit messages.
Reviewable status: all files reviewed, 1 unresolved discussion


source/Modules/SqlServerDsc.Common/SqlServerDsc.Common.psd1 line 35 at r1 (raw file):

        'Connect-SQLAnalysis'
        'Get-SqlInstanceMajorVersion'
        'Import-SqlDscPreferredModule'

This should not be exported.

Code quote:

'Import-SqlDscPreferredModule'

@johlju johlju added waiting for code fix A review left open comments, and the pull request is waiting for changes to be pushed by the author. and removed needs review The pull request needs a code review. labels Mar 3, 2023
Copy link
Member Author

@johlju johlju left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Reviewed all commit messages.
Reviewable status: 27 of 28 files reviewed, all discussions resolved (waiting on @johlju)


source/Modules/SqlServerDsc.Common/SqlServerDsc.Common.psd1 line 35 at r1 (raw file):

Previously, johlju (Johan Ljunggren) wrote…

This should not be exported.

Done

Copy link
Member Author

@johlju johlju left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

:lgtm:

Reviewed 1 of 1 files at r2.
Reviewable status: :shipit: complete! all files reviewed, all discussions resolved (waiting on @johlju)

@johlju johlju merged commit 58b765c into dsccommunity:main Mar 4, 2023
@johlju johlju deleted the fix/issue#1848 branch March 4, 2023 07:45
@johlju johlju removed the waiting for code fix A review left open comments, and the pull request is waiting for changes to be pushed by the author. label Mar 4, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

SqlServerDsc.Common: Replace Import-SQLPSModule with Import-SqlDscPreferredModule
1 participant