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

BREAKING CHANGE: xWebConfigProperty: Added Location to allow access to locked sections of ApplicationHost.Config #400

Open
wants to merge 21 commits into
base: main
Choose a base branch
from

Conversation

geoffguynn
Copy link

@geoffguynn geoffguynn commented Sep 30, 2018

xWebConfigPropertyLocation: Added to allow access to locked sections of ApplicationHost.Config

Pull Request (PR) description

This new resource adds an additional parameter for the Location of the configuration property.

This Pull Request (PR) fixes the following issues

None

Task list

  • Added an entry under the Unreleased section of the change log in the README.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

@msftclas
Copy link

msftclas commented Sep 30, 2018

CLA assistant check
All CLA requirements met.

@codecov-io
Copy link

codecov-io commented Sep 30, 2018

Codecov Report

Merging #400 into dev will decrease coverage by 0.02%.
The diff coverage is 95%.

Impacted file tree graph

@@            Coverage Diff             @@
##              dev     #400      +/-   ##
==========================================
- Coverage   90.67%   90.64%   -0.03%     
==========================================
  Files          17       17              
  Lines        2412     2405       -7     
==========================================
- Hits         2187     2180       -7     
  Misses        225      225
Impacted Files Coverage Δ
...FT_xWebConfigProperty/MSFT_xWebConfigProperty.psm1 92% <95%> (-0.99%) ⬇️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 85ff094...6e1bf9c. Read the comment docs.

@regedit32
Copy link
Member

Hello @geoffguynn , thank you for submitting this PR. Can you please open an issue for this change? At first look, it appears that this is functionality that we can extend in the xWebConfigProperty resource instead of creating a new one. An open issue would be the best place for the community to discuss. Thank you!

@regedit32 regedit32 added waiting for author response The pull request is waiting for the author to respond to comments in the pull request. waiting for code fix A review left open comments, and the pull request is waiting for changes to be pushed by the author. labels Oct 1, 2018
@geoffguynn
Copy link
Author

As requested
#401

@regedit32 regedit32 removed the waiting for author response The pull request is waiting for the author to respond to comments in the pull request. label Oct 1, 2018
@regedit32
Copy link
Member

@geoffguynn There are still some failing tests in the AppVeyor build, so we'll wait to review until those are passing. Also, can you add unit and integration tests to validate the changes as well? We'll want to cover both scenarios of using the resource with and without a value for Location. Thanks!

@regedit32 regedit32 changed the title xWebConfigPropertyLocation: Added to allow access to locked sections of ApplicationHost.Config BREAKING CHANGE: xWebConfigPropertyLocation: Added to allow access to locked sections of ApplicationHost.Config Oct 11, 2018
@regedit32 regedit32 changed the title BREAKING CHANGE: xWebConfigPropertyLocation: Added to allow access to locked sections of ApplicationHost.Config BREAKING CHANGE: xWebConfigProperty: Added Location to allow access to locked sections of ApplicationHost.Config Oct 11, 2018
@stale
Copy link

stale bot commented Nov 6, 2018

Labeling this pull request (PR) as abandoned since it has gone 14 days or more since the last update. An abandoned PR can be continued by another contributor. The abandoned label will be removed if work on this PR is taken up again.

@stale stale bot added the abandoned The pull request has been abandoned. label Nov 6, 2018
@stale stale bot removed the abandoned The pull request has been abandoned. label Jan 24, 2019
@geoffguynn
Copy link
Author

@regedit32 Had a few spare cycles to get back to this, let me know if there are any other changes needed.

Copy link
Member

@regedit32 regedit32 left a comment

Choose a reason for hiding this comment

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

@geoffguynn Thanks for resolving the test failures. I only had time to do a quick review with a few comments, but I will try to come back later and fully review. There was another PR to merge, can you also rebase? Thank you!

Reviewable status: 0 of 8 files reviewed, 5 unresolved discussions (waiting on @geoffguynn)


README.md, line 321 at r6 (raw file):

<<<<<<< HEAD

Looks like changes weren't saved when resolving merge conflicts. This syntax was left over.


README.md, line 322 at r6 (raw file):

* Added new reosurce xWebConfigProperty extening functionality provided by xWebConfigProperty to allow writing of locked sections in ApplicationHost.Config

Based on your latest commits, this should have a different note about adding Location property to the xWebConfigProperty resource


README.md, line 330 at r6 (raw file):

>>>>>>> 0b60a44eea60673f883544ecbf5cd294ecc750a8

Same as the previous comment, this syntax was left over when resolving merge conflicts.


DSCResources/MSFT_xWebConfigProperty/MSFT_xWebConfigProperty.psm1, line 74 at r6 (raw file):

    if ( -not($existingValue) ) {

Looks like throughout the file the opening brace has been moved (perhaps automatically by local .vscode settings?). Per DSC resource style guidelines, opening braces should be preceded by a newline. I won't comment on each, but if you can take a first attempt at correcting those, I can comment on any that were missed.


DSCResources/MSFT_xWebConfigProperty/MSFT_xWebConfigProperty.psm1, line 156 at r6 (raw file):

            { $setValue = $Value }

Same as the opening brace comment, closing braces should be preceded by a newline

@regedit32 regedit32 added the needs review The pull request needs a code review. label Jan 28, 2019
geoffguynn and others added 7 commits January 28, 2019 10:05
…f the ApplicationHost.Config

Added documentation to README.MD and samples

Updated xWebConfigProperty with location key param

Cleaned up tabs

Updated unit/integration tests

Changed to ASCII

MetaFixers update

formatting error

UnitTestingUpdate1

CodeCov modifications

Update REAMME.md

Code review modifications
author GeoffGuynn <geoffguynn@users.noreply.github.com> 1538337711 -0600
committer GeoffGuynn <GeoffGuynn@users.noreply.github.com> 1548698785 -0700

Updated xWebConfigProperty with location key param
Added documentation to README.MD and samples
Updated unit/integration tests
CodeCov modifications
Update README.md
Code review modifications
Copy link
Author

@geoffguynn geoffguynn left a comment

Choose a reason for hiding this comment

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

Reviewable status: 0 of 8 files reviewed, 5 unresolved discussions (waiting on @regedit32)


README.md, line 321 at r6 (raw file):

Previously, regedit32 (Reggie Gibson) wrote…
<<<<<<< HEAD

Looks like changes weren't saved when resolving merge conflicts. This syntax was left over.

Removed


README.md, line 322 at r6 (raw file):

Previously, regedit32 (Reggie Gibson) wrote…
* Added new reosurce xWebConfigProperty extening functionality provided by xWebConfigProperty to allow writing of locked sections in ApplicationHost.Config

Based on your latest commits, this should have a different note about adding Location property to the xWebConfigProperty resource

Modified - * Added new parameter 'Location' to xWebConfigProperty extending functionality to allow writing of locked sections in ApplicationHost.Config


README.md, line 330 at r6 (raw file):

Previously, regedit32 (Reggie Gibson) wrote…
>>>>>>> 0b60a44eea60673f883544ecbf5cd294ecc750a8

Same as the previous comment, this syntax was left over when resolving merge conflicts.

Removed


DSCResources/MSFT_xWebConfigProperty/MSFT_xWebConfigProperty.psm1, line 74 at r6 (raw file):

Previously, regedit32 (Reggie Gibson) wrote…
    if ( -not($existingValue) ) {

Looks like throughout the file the opening brace has been moved (perhaps automatically by local .vscode settings?). Per DSC resource style guidelines, opening braces should be preceded by a newline. I won't comment on each, but if you can take a first attempt at correcting those, I can comment on any that were missed.

Updated all opening and closing braces


DSCResources/MSFT_xWebConfigProperty/MSFT_xWebConfigProperty.psm1, line 156 at r6 (raw file):

Previously, regedit32 (Reggie Gibson) wrote…
            { $setValue = $Value }

Same as the opening brace comment, closing braces should be preceded by a newline

Updated all opening and closing braces

Copy link
Member

@regedit32 regedit32 left a comment

Choose a reason for hiding this comment

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

Reviewable status: 0 of 8 files reviewed, 4 unresolved discussions (waiting on @geoffguynn)


README.md, line 330 at r8 (raw file):

* Added new reosurce xWebConfigProperty extening functionality provided by xWebConfigProperty to allow writing of locked sections in ApplicationHost.Config
* Added new reosurce xWebConfigProperty extening functionality provided by xWebConfigProperty to allow writing of locked sections in ApplicationHost.Config

I don't think you meant to add these two lines here


DSCResources/MSFT_xWebConfigProperty/MSFT_xWebConfigProperty.psm1, line 365 at r8 (raw file):

[Parameter(Mandatory = $false)]

Per style guidelines, format for non-mandatory parameters should be [Parameter()]. There are a few older spots in the resource that are incorrect, but we can fix in a seperate PR at some point to bring the module up to HQRM standard.


Examples/Sample_xWebConfigProperty_Add.ps1, line 28 at r8 (raw file):

            Location = ''

Let's also add another example for an actual value for Location.


Tests/Integration/MSFT_xWebConfigProperty.Integration.Tests.ps1, line 50 at r8 (raw file):

                    Location             = ''

Since this is significant breaking change we're adding, I think it would be better to test both an empty Location plus an actual location to always validate both scenarios are working. Preferably a locked section that would have previously failed before this change.

@regedit32 regedit32 added the breaking change When used on an issue, the issue has been determined to be a breaking change. label Feb 13, 2019
@SteveL-MSFT SteveL-MSFT added this to Needs Review in powershell/dscresources May 14, 2019
@psychonic
Copy link

@geoffguynn Do you plan to continue working on this?

I would like to see this land and have time to work on the requested changes if needed.

@geoffguynn
Copy link
Author

@psychonic I do, but I've been slammed with other work for awhile now. If you have some cycles, by all means :)

@johlju johlju removed the needs review The pull request needs a code review. label Oct 23, 2019
@SteveL-MSFT SteveL-MSFT removed this from Needs Review in powershell/dscresources Nov 27, 2019
@johlju johlju changed the base branch from dev to master December 30, 2019 12:17
@varnav
Copy link

varnav commented Apr 20, 2020

I vote for this

@danielmiu
Copy link

+1

@johlju johlju changed the base branch from master to main January 7, 2021 19:15
@randomnote1
Copy link

Curious if any work has been done on this in the last two years? If not, I'd be willing to pick up on finishing this.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
breaking change When used on an issue, the issue has been determined to be a breaking change. waiting for code fix A review left open comments, and the pull request is waiting for changes to be pushed by the author.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

9 participants