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

SqlServerNetwork: Refactored to not load assembly from GAC #1172

Merged
merged 4 commits into from
Jul 6, 2018

Conversation

johlju
Copy link
Member

@johlju johlju commented Jul 4, 2018

Pull Request (PR) description

This Pull Request (PR) fixes the following issues

Helps with issue #1151
Fixes #1051 (closing this since the issue is around code that has been removed).
Fixes #751
Fixes #581 (closing this since the issue is around code that has been removed).

Task list

  • Added an entry under the Unreleased section in the CHANGELOG.md? Entry
    should say what was changed, and how that affects users (if applicable).
  • Resource documentation added/updated in README.md?
  • Resource parameter descriptions added/updated in README.md, schema.mof
    and comment-based help?
  • Comment-based help added/updated?
  • Localization strings added/updated in all localization files as appropriate?
  • Examples appropriately added/updated?
  • Unit tests added/updated?
    See DSC Resource Testing Guidelines.
  • Integration tests added/updated (where possible)?
    See DSC Resource Testing Guidelines.
  • New/changed code adheres to
    DSC Resource Style Guidelines
    and Best Practices?

This change is Reviewable

@johlju johlju added the needs review The pull request needs a code review. label Jul 4, 2018
@johlju johlju changed the title Refactor SqlServerNetwork to not load assembly from GAC (issue #1151) Refactor SqlServerNetwork to not load assembly from GAC Jul 4, 2018
@johlju johlju changed the title Refactor SqlServerNetwork to not load assembly from GAC SqlServerNetwork: Refactored to not load assembly from GAC Jul 4, 2018
@codecov-io
Copy link

codecov-io commented Jul 4, 2018

Codecov Report

Merging #1172 into dev will increase coverage by <1%.
The diff coverage is 100%.

Impacted file tree graph

@@          Coverage Diff          @@
##            dev   #1172    +/-   ##
=====================================
+ Coverage    97%     97%   +<1%     
=====================================
  Files        33      33            
  Lines      4005    3994    -11     
=====================================
- Hits       3916    3907     -9     
+ Misses       89      87     -2

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 9 of 9 files at r1.
Reviewable status: all files reviewed, 3 unresolved discussions


CHANGELOG.md, line 7 at r1 (raw file):

aspectes

Typo


DSCResources/MSFT_SqlServerNetwork/MSFT_SqlServerNetwork.psm1, line 28 at r1 (raw file):

        [ValidateNotNullOrEmpty()]
        [System.String]
        $ServerName = $env:COMPUTERNAME,

This parameter can be removed.


DSCResources/MSFT_SqlServerNetwork/MSFT_SqlServerNetwork.psm1, line 225 at r1 (raw file):

SkipClusterCheck = $true

This should only be used if the previous state was disabled ($getTargetResourceResult.IsEnabled -eq $false), otherwise we never restart the cluster instance.

There is no way in the current implementation to restart a instance where the protocol was enabled from previously been disabled. An issue should be started to track this.

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 3 of 3 files at r2.
Reviewable status: :shipit: complete! all files reviewed, all discussions resolved


CHANGELOG.md, line 7 at r1 (raw file):

Previously, johlju (Johan Ljunggren) wrote…
aspectes

Typo

Done


DSCResources/MSFT_SqlServerNetwork/MSFT_SqlServerNetwork.psm1, line 28 at r1 (raw file):

Previously, johlju (Johan Ljunggren) wrote…

This parameter can be removed.

Done


DSCResources/MSFT_SqlServerNetwork/MSFT_SqlServerNetwork.psm1, line 225 at r1 (raw file):

Previously, johlju (Johan Ljunggren) wrote…
SkipClusterCheck = $true

This should only be used if the previous state was disabled ($getTargetResourceResult.IsEnabled -eq $false), otherwise we never restart the cluster instance.

There is no way in the current implementation to restart a instance where the protocol was enabled from previously been disabled. An issue should be started to track this.

Done. Opened issue #1174

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:

Mergeíng this when tests passes.

Reviewable status: :shipit: complete! all files reviewed, all discussions resolved

@johlju johlju merged commit 4997ae4 into dsccommunity:dev Jul 6, 2018
@johlju johlju removed the needs review The pull request needs a code review. label Jul 6, 2018
@johlju johlju deleted the fix-issue#1151 branch July 6, 2018 08:03
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
2 participants