lowlydba.sqlserver icon indicating copy to clipboard operation
lowlydba.sqlserver copied to clipboard

changing ip_address param to expect list

Open daarrn opened this issue 1 year ago • 6 comments
trafficstars

Description

changing spec options, ip_address parameter is being changed from a 'str' type to a 'list' type

fixes issue #245

How Has This Been Tested?

validated the change using a local collection of lowlydba and was able to successfully create a multi subnet ag listener when the ip_address parameter was expecting a list

Types of changes

  • [x ] Bug fix (non-breaking change which fixes an issue) - Fixes #
  • [ ] New feature (non-breaking change which adds functionality)

Checklist:

daarrn avatar May 08 '24 18:05 daarrn

Hello, very first time attempting to contribute, please don't be shy to let me know if I missed performing something correctly in the contribution process. Thanks for your work!

daarrn avatar May 08 '24 18:05 daarrn

I think you will need to update the type of the subnet_mask too.

DorBreger avatar May 14 '24 16:05 DorBreger

I think you will need to update the type of the subnet_mask too.

I think you are right that the change will be needed there as well. I do not have a use case to test that change and left it out of my request due to that

daarrn avatar May 17 '24 19:05 daarrn

Hi @daarrn ! Thank you for the pull request. I'll try to take a look at it this weekend and provide feedback.

lowlydba avatar May 17 '24 21:05 lowlydba

Codecov Report

All modified and coverable lines are covered by tests :white_check_mark:

Project coverage is 93.69%. Comparing base (de0aac7) to head (ead4087). Report is 1 commits behind head on main.

Additional details and impacted files
@@             Coverage Diff             @@
##              main     #246      +/-   ##
===========================================
- Coverage   100.00%   93.69%   -6.31%     
===========================================
  Files           33       64      +31     
  Lines          106     2205    +2099     
===========================================
+ Hits           106     2066    +1960     
- Misses           0      139     +139     
Flag Coverage Δ
sanity ?

Flags with carried forward coverage won't be shown. Click here to find out more.

:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Have feedback on the report? Share it here.

codecov-commenter avatar May 17 '24 22:05 codecov-commenter

@daarrn I tested this on a couple of VMs on my laptop on two different subnets with different subnet masks, and I can confirm you would have to change the subnet mask parameter to a list too.

DorBreger avatar May 18 '24 09:05 DorBreger

The sanity checks are still failing due to the list changes not being updated in the ag_listener.py documentation file.

whoops, yup. Updated document file, thank you!

daarrn avatar May 28 '24 15:05 daarrn

Docs Build 📝

Thank you for contribution!✨

This PR has been merged and the docs are now incorporated into main: https://lowlydba.github.io/lowlydba.sqlserver/branch/main

github-actions[bot] avatar May 28 '24 15:05 github-actions[bot]

Looks great! Thanks again for the enhancement, this is a very nice upgrade.

lowlydba avatar Jun 06 '24 22:06 lowlydba