Skip to content

Conversation

Copy link
Contributor

Copilot AI commented Aug 3, 2025

  • Re-add ReportServerEdition enum to SqlRSSetup class
  • Update SqlRSSetup class to use enum instead of ValidateSet
  • Enhance Get-DscProperty call with -IgnoreZeroEnumValue parameter
  • Update unit tests to expect enum value 0
  • Fix file formatting - add trailing blank line to ReportServerEdition.ps1 per style guidelines
  • Update CHANGELOG.md with changes according to style guidelines

💬 Share your feedback on Copilot coding agent for the chance to win a $200 gift card! Click here to start the survey.


This change is Reviewable

Copilot AI changed the title [WIP] Resolve the issue @dsccommunity/SqlServerDsc/issues/2101 Re-add ReportServerEdition enum to SqlRSSetup class Aug 3, 2025
Copilot AI requested a review from johlju August 3, 2025 10:24
@codecov
Copy link

codecov bot commented Aug 3, 2025

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 94%. Comparing base (b990bb0) to head (489303d).
⚠️ Report is 1 commits behind head on main.

Additional details and impacted files

Impacted file tree graph

@@         Coverage Diff          @@
##           main   #2126   +/-   ##
====================================
  Coverage    94%     94%           
====================================
  Files       127     127           
  Lines      8530    8531    +1     
====================================
+ Hits       8077    8078    +1     
  Misses      453     453           
Flag Coverage Δ
unit 94% <100%> (+<1%) ⬆️
Files with missing lines Coverage Δ
source/Classes/020.SqlRSSetup.ps1 91% <100%> (+<1%) ⬆️
🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@github-actions
Copy link

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.

@github-actions github-actions bot added the abandoned The pull request has been abandoned. label Aug 18, 2025
@coderabbitai
Copy link

coderabbitai bot commented Aug 30, 2025

Note

Other AI code review bot(s) detected

CodeRabbit has detected other AI code review bot(s) in this pull request and will avoid duplicating their findings in the review comments. This may lead to a less comprehensive review.

Walkthrough

Introduces a new enum ReportServerEdition and updates SqlRSSetup to use it for the Edition property instead of a ValidateSet string. Adjusts Modify parameter construction to include IgnoreZeroEnumValue = $true. Updates unit tests to expect Edition = 0 (unset enum) in specific Get() scenarios. Adds changelog entries.

Changes

Cohort / File(s) Summary
SqlRSSetup class update
source/Classes/020.SqlRSSetup.ps1
Edition property type changed from [ValidateSet(...)] [string] to [ReportServerEdition]. In Modify(), adds IgnoreZeroEnumValue = $true to getDscPropertyParameters. Minor formatting tweaks.
New enum definition
source/Enum/001.ReportServerEdition.ps1
Adds enum ReportServerEdition { Developer = 1; Evaluation; ExpressAdvanced } with comments indicating usage for SSRS/PBIRS Edition parameter.
Unit tests adjustments
tests/Unit/Classes/SqlRSSetup.Tests.ps1
Updates Get() tests to assert Edition -Be 0 (unset enum) instead of null/empty when Edition not provided, with explanatory comments.
Changelog updates
CHANGELOG.md
Notes fix for SqlAgentAlert entry and SqlRSSetup change to use ReportServerEdition enum; mentions re-adding the enum and updating Edition property.

Estimated code review effort

🎯 2 (Simple) | ⏱️ ~10 minutes

✨ Finishing Touches
🧪 Generate unit tests
  • Create PR with unit tests
  • Post copyable unit tests in a comment
  • Commit unit tests in branch copilot/fix-1e06bee2-0688-48e7-86aa-dc4676c4a95c

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share
🪧 Tips

Chat

There are 3 ways to chat with CodeRabbit:

  • Review comments: Directly reply to a review comment made by CodeRabbit. Example:
    • I pushed a fix in commit <commit_id>, please review it.
    • Open a follow-up GitHub issue for this discussion.
  • Files and specific lines of code (under the "Files changed" tab): Tag @coderabbitai in a new review comment at the desired location with your query.
  • PR comments: Tag @coderabbitai in a new PR comment to ask questions about the PR branch. For the best results, please provide a very specific query, as very limited context is provided in this mode. Examples:
    • @coderabbitai gather interesting stats about this repository and render them as a table. Additionally, render a pie chart showing the language distribution in the codebase.
    • @coderabbitai read the files in the src/scheduler package and generate a class diagram using mermaid and a README in the markdown format.

Support

Need help? Create a ticket on our support page for assistance with any issues or questions.

CodeRabbit Commands (Invoked using PR/Issue comments)

Type @coderabbitai help to get the list of available commands.

Other keywords and placeholders

  • Add @coderabbitai ignore or @coderabbit ignore anywhere in the PR description to prevent this PR from being reviewed.
  • Add @coderabbitai summary to generate the high-level summary at a specific location in the PR description.
  • Add @coderabbitai anywhere in the PR title to generate the title automatically.

CodeRabbit Configuration File (.coderabbit.yaml)

  • You can programmatically configure CodeRabbit by adding a .coderabbit.yaml file to the root of your repository.
  • Please see the configuration documentation for more information.
  • If your editor has YAML language server enabled, you can add the path at the top of this file to enable auto-completion and validation: # yaml-language-server: $schema=https://coderabbit.ai/integrations/schema.v2.json

Status, Documentation and Community

  • Visit our Status Page to check the current availability of CodeRabbit.
  • Visit our Documentation for detailed information on how to use CodeRabbit.
  • Join our Discord Community to get help, request features, and share feedback.
  • Follow us on X/Twitter for updates and announcements.

Copilot AI requested a review from johlju August 30, 2025 09:32
@johlju
Copy link
Member

johlju commented Aug 30, 2025

@copilot update changelog according to instructions

Copy link
Contributor Author

Copilot AI commented Aug 30, 2025

@copilot update changelog according to instructions

Updated CHANGELOG.md with SqlRSSetup ReportServerEdition enum changes in commit 6f8f653.

@johlju johlju marked this pull request as ready for review August 30, 2025 12:20
@johlju johlju requested a review from a team as a code owner August 30, 2025 12:20
@johlju
Copy link
Member

johlju commented Aug 30, 2025

@coderabbitai review

@coderabbitai
Copy link

coderabbitai bot commented Aug 30, 2025

✅ Actions performed

Review triggered.

Note: CodeRabbit is an incremental review system and does not re-review already reviewed commits. This command is applicable only when automatic reviews are paused.

Copy link

@coderabbitai coderabbitai bot left a comment

Choose a reason for hiding this comment

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

Actionable comments posted: 0

🧹 Nitpick comments (7)
CHANGELOG.md (1)

18-20: Reclassify the changelog entry to match Keep a Changelog types.

Re-adding an enum is "Added" and switching a property to an enum is "Changed". Consider moving:

  • Added: ReportServerEdition enum
  • Changed: SqlRSSetup uses ReportServerEdition for Edition

This keeps "Fixed" for bug fixes only.

source/Enum/001.ReportServerEdition.ps1 (2)

1-6: Tighten the synopsis wording.

"possible states" → "editions"; "handles" → "handle".

Apply:

-    .SYNOPSIS
-        The possible states for the commands and DSC resources that handles
-        SQL Server Reporting Services or Power BI Report Server and uses the
-        parameter Edition.
+    .SYNOPSIS
+        Defines the editions used by commands and DSC resources that handle
+        SQL Server Reporting Services or Power BI Report Server via the
+        Edition parameter.

7-12: Optional: add an explicit zero/sentinel member for readability.

Tests rely on 0 meaning “not set”. A named member (e.g., None = 0) documents that intent without changing behavior.

Example:

 enum ReportServerEdition
 {
+    None = 0
     Developer = 1
     Evaluation
     ExpressAdvanced
 }
tests/Unit/Classes/SqlRSSetup.Tests.ps1 (1)

651-686: Consider adding a unit test to assert Edition is not passed when unset.

To lock in IgnoreZeroEnumValue behavior, add a test around Modify() that verifies the constructed command parameters omit Edition when it’s 0.

I can draft a focused Pester It-block that inspects the hashtable from Get-DscProperty and asserts Edition is absent. Do you want that?

source/Classes/020.SqlRSSetup.ps1 (3)

190-191: LGTM: switch Edition to ReportServerEdition.

Strong typing here improves validation and downstream parameter building. Consider updating the .PARAMETER Edition help text to list allowed enum values.


295-306: Compare enum to enum to avoid implicit string coercion.

$currentEdition.Edition is likely a string; $this.Edition is an enum. Relying on implicit conversions is brittle. Cast the current edition to the enum before comparing.

Apply:

-                if ($currentEdition.Edition -ne $this.Edition)
+                if ([ReportServerEdition] $currentEdition.Edition -ne $this.Edition)
                 {
                     $inDesiredState = $false

624-626: Fix misleading comment.

Code normalizes the path; it doesn’t lowercase it.

Apply:

-            # Normalize the property to lower case.
+            # Normalize the path and ensure consistent formatting.
📜 Review details

Configuration used: CodeRabbit UI

Review profile: CHILL

Plan: Pro

💡 Knowledge Base configuration:

  • Jira integration is disabled
  • Linear integration is disabled by default for public repositories

You can enable these sources in your CodeRabbit configuration.

📥 Commits

Reviewing files that changed from the base of the PR and between b990bb0 and 489303d.

📒 Files selected for processing (4)
  • CHANGELOG.md (1 hunks)
  • source/Classes/020.SqlRSSetup.ps1 (2 hunks)
  • source/Enum/001.ReportServerEdition.ps1 (1 hunks)
  • tests/Unit/Classes/SqlRSSetup.Tests.ps1 (2 hunks)
🧰 Additional context used
📓 Path-based instructions (7)
**

⚙️ CodeRabbit configuration file

**: # DSC Community Guidelines

Terminology

  • Command: Public command
  • Function: Private function
  • Resource: DSC class-based resource

Build & Test Workflow

  • Run in PowerShell, from repository root
  • Build before running tests: .\build.ps1 -Tasks build
  • Always run tests in new PowerShell session: Invoke-Pester -Path @({test paths}) -Output Detailed

File Organization

  • Public commands: source/Public/{CommandName}.ps1
  • Private functions: source/Private/{FunctionName}.ps1
  • Unit tests: tests/Unit/{Classes|Public|Private}/{Name}.Tests.ps1
  • Integration tests: tests/Integration/Commands/{CommandName}.Integration.Tests.ps1

Requirements

  • Follow guidelines over existing code patterns
  • Always update CHANGELOG.md Unreleased section
  • Localize all strings using string keys; remove any orphaned string keys
  • Check DscResource.Common before creating private functions
  • Separate reusable logic into private functions
  • Add unit tests for all commands/functions/resources
  • Add integration tests for all public commands and resources

Files:

  • source/Enum/001.ReportServerEdition.ps1
  • tests/Unit/Classes/SqlRSSetup.Tests.ps1
  • source/Classes/020.SqlRSSetup.ps1
  • CHANGELOG.md
**/*.ps?(m|d)1

⚙️ CodeRabbit configuration file

**/*.ps?(m|d)1: # PowerShell Guidelines

Naming

  • Use descriptive names (3+ characters, no abbreviations)
  • Functions: PascalCase with Verb-Noun format using approved verbs
  • Parameters: PascalCase
  • Variables: camelCase
  • Keywords: lower-case
  • Classes: PascalCase
  • Include scope for script/global/environment variables: $script:, $global:, $env:

File naming

  • Class files: ###.ClassName.ps1 format (e.g. 001.SqlReason.ps1, 004.StartupParameters.ps1)

Formatting

Indentation & Spacing

  • Use 4 spaces (no tabs)
  • One space around operators: $a = 1 + 2
  • One space between type and variable: [String] $name
  • One space between keyword and parenthesis: if ($condition)
  • No spaces on empty lines
  • Try to limit lines to 120 characters

Braces

  • Newline before opening brace (except variable assignments)
  • One newline after opening brace
  • Two newlines after closing brace (one if followed by another brace or continuation)

Quotes

  • Use single quotes unless variable expansion is needed: 'text' vs "text $variable"

Arrays

  • Single line: @('one', 'two', 'three')
  • Multi-line: each element on separate line with proper indentation
  • Do not use the unary comma operator (,) in return statements to force
    an array

Hashtables

  • Empty: @{}
  • Each property on separate line with proper indentation
  • Properties: Use PascalCase

Comments

  • Single line: # Comment (capitalized, on own line)
  • Multi-line: <# Comment #> format (opening and closing brackets on own line), and indent text
  • No commented-out code

Comment-based help

  • Always add comment-based help to all functions and scripts
  • Comment-based help: SYNOPSIS, DESCRIPTION (40+ chars), PARAMETER, EXAMPLE sections before function/class
  • Comment-based help indentation: keywords 4 spaces, text 8 spaces
  • Include examples for all parameter sets and combinations
  • INPUTS: List each pipeline‑accepted type (one per line) with a 1‑line description.
  • OUTPUTS: Lis...

Files:

  • source/Enum/001.ReportServerEdition.ps1
  • tests/Unit/Classes/SqlRSSetup.Tests.ps1
  • source/Classes/020.SqlRSSetup.ps1
source/**/*.ps1

⚙️ CodeRabbit configuration file

source/**/*.ps1: # Localization Guidelines

Requirements

  • Localize all Write-Debug, Write-Verbose, Write-Error, Write-Warning and $PSCmdlet.ThrowTerminatingError() messages
  • Use localized string keys, not hardcoded strings
  • Assume $script:localizedData is available

String Files

  • Commands/functions: source/en-US/{MyModuleName}.strings.psd1
  • Class resources: source/en-US/{ResourceClassName}.strings.psd1

Key Naming Patterns

  • Format: Verb_FunctionName_Action (underscore separators), e.g. Get_Database_ConnectingToDatabase

String Format

ConvertFrom-StringData @'
    KeyName = Message with {0} placeholder. (PREFIX0001)
'@

String IDs

  • Format: (PREFIX####)
  • PREFIX: First letter of each word in class or function name (SqlSetup → SS, Get-SqlDscDatabase → GSDD)
  • Number: Sequential from 0001

Usage

Write-Verbose -Message ($script:localizedData.KeyName -f $value1)

Files:

  • source/Enum/001.ReportServerEdition.ps1
  • source/Classes/020.SqlRSSetup.ps1
**/*.[Tt]ests.ps1

⚙️ CodeRabbit configuration file

**/*.[Tt]ests.ps1: # Tests Guidelines

Core Requirements

  • All public commands, private functions and classes must have unit tests
  • All public commands and class-based resources must have integration tests
  • Use Pester v5 syntax only
  • Test code only inside Describe blocks
  • Assertions only in It blocks
  • Never test verbose messages, debug messages or parameter binding behavior
  • Pass all mandatory parameters to avoid prompts

Naming

  • One Describe block per file matching the tested entity name
  • Context descriptions start with 'When'
  • It descriptions start with 'Should', must not contain 'when'
  • Mock variables prefix: 'mock'

Structure & Scope

  • Public commands: Never use InModuleScope (unless retrieving localized strings)
  • Private functions/class resources: Always use InModuleScope
  • Each class method = separate Context block
  • Each scenario = separate Context block
  • Use nested Context blocks for complex scenarios
  • Mocking in BeforeAll (BeforeEach only when required)
  • Setup/teardown in BeforeAll,BeforeEach/AfterAll,AfterEach close to usage

Syntax Rules

  • PascalCase: Describe, Context, It, Should, BeforeAll, BeforeEach, AfterAll, AfterEach
  • Prefer -BeTrue/-BeFalse over -Be $true/-Be $false
  • Never use Assert-MockCalled, use Should -Invoke instead
  • No Should -Not -Throw - invoke commands directly
  • Never add an empty -MockWith block
  • Omit -MockWith when returning $null
  • Set $PSDefaultParameterValues for Mock:ModuleName, Should:ModuleName, InModuleScope:ModuleName
  • Omit -ModuleName parameter on Pester commands
  • Never use Mock inside InModuleScope-block

File Organization

  • Class resources: tests/Unit/Classes/{Name}.Tests.ps1
  • Public commands: tests/Unit/Public/{Name}.Tests.ps1
  • Private functions: tests/Unit/Private/{Name}.Tests.ps1

Data-Driven Tests

  • Define variables in separate BeforeDiscovery for -ForEach (close to usage)
  • -ForEach al...

Files:

  • tests/Unit/Classes/SqlRSSetup.Tests.ps1
source/[cC]lasses/**/*.ps1

⚙️ CodeRabbit configuration file

source/[cC]lasses/**/*.ps1: # DSC Class-Based Resource Guidelines

Applies to: Classes with [DscResource(...)] decoration only.

Requirements

  • File: source/Classes/020.{ResourceName}.ps1
  • Decoration: [DscResource(RunAsCredential = 'Optional')] (replace with 'Mandatory' if required)
  • Inheritance: Must inherit ResourceBase (part of module DscResource.Base)
  • $this.localizedData hashtable auto-populated by ResourceBase from localization file
  • value-type properties: Use [Nullable[{FullTypeName}]] (e.g., [Nullable[System.Int32]])

Required constructor

MyResourceName () : base ($PSScriptRoot)
{
    # Property names where state cannot be enforced, e.g. IsSingleInstance, Force
    $this.ExcludeDscProperties = @()
}

Required Method Pattern

[MyResourceName] Get()
{
    # Call base implementation to get current state
    $currentState = ([ResourceBase] $this).Get()

    # If needed, post-processing on current state that can not be handled by GetCurrentState()

    return $currentState
}

[System.Boolean] Test()
{
    # Call base implementation to test current state
    $inDesiredState = ([ResourceBase] $this).Test()

    # If needed, post-processing on test result that can not be handled by base Test()

    return $inDesiredState
}

[void] Set()
{
    # Call base implementation to set desired state
    ([ResourceBase] $this).Set()

    # If needed, additional state changes that can not be handled by Modify()
}

hidden [System.Collections.Hashtable] GetCurrentState([System.Collections.Hashtable] $properties)
{
    # Always return current state as hashtable, $properties contains key properties
}

hidden [void] Modify([System.Collections.Hashtable] $properties)
{
    # Always set desired state, $properties contain those that must change state
}

Optional Method Pattern

hidden [void] AssertProperties([System.Collections.Hashtable] $properties)
{
    # Validate user-provided properties, $p...

Files:

  • source/Classes/020.SqlRSSetup.ps1
**/*.md

⚙️ CodeRabbit configuration file

**/*.md: # Markdown Style Guidelines

  • Wrap lines at word boundaries when over 80 characters (except tables/code blocks)
  • Use 2 spaces for indentation
  • Use '1.' for all items in ordered lists (1/1/1 numbering style)
  • Disable MD013 rule by adding a comment for tables/code blocks exceeding 80 characters
  • Empty lines required before/after code blocks and headings (except before line 1)
  • Escape backslashes in file paths only (not in code blocks)
  • Code blocks must specify language identifiers

Text Formatting

  • Parameters: bold
  • Values/literals: inline code
  • Resource/module/product names: italic
  • Commands/files/paths: inline code

Files:

  • CHANGELOG.md
CHANGELOG.md

⚙️ CodeRabbit configuration file

CHANGELOG.md: # Changelog Guidelines

  • Always update the Unreleased section in CHANGELOG.md
  • Use Keep a Changelog format
  • Describe notable changes briefly, ≤2 items per change type
  • Reference issues using format issue #<issue_number>
  • No empty lines between list items in same section
  • Do not add item if there are already an existing item for the same change

Files:

  • CHANGELOG.md
🧠 Learnings (8)
📚 Learning: 2025-08-29T17:24:23.694Z
Learnt from: CR
PR: dsccommunity/SqlServerDsc#0
File: .github/instructions/dsc-community-style-guidelines-powershell.instructions.md:0-0
Timestamp: 2025-08-29T17:24:23.694Z
Learning: Applies to **/*.{ps1,psm1,psd1} : End files with only one blank line

Applied to files:

  • source/Enum/001.ReportServerEdition.ps1
📚 Learning: 2025-08-29T17:20:42.238Z
Learnt from: CR
PR: dsccommunity/SqlServerDsc#0
File: .github/instructions/SqlServerDsc-guidelines.instructions.md:0-0
Timestamp: 2025-08-29T17:20:42.238Z
Learning: Applies to tests/Integration/**/*.ps1 : Use DSCSQLTEST (Database Engine), SSRS (Reporting Services), and PBIRS (Power BI Report Server) instance names in CI integration tests

Applied to files:

  • tests/Unit/Classes/SqlRSSetup.Tests.ps1
📚 Learning: 2025-08-29T17:21:35.556Z
Learnt from: CR
PR: dsccommunity/SqlServerDsc#0
File: .github/instructions/dsc-community-style-guidelines-class-resource.instructions.md:0-0
Timestamp: 2025-08-29T17:21:35.556Z
Learning: Applies to source/[cC]lasses/**/*.ps1 : Provide hidden Modify([Hashtable] $properties) that applies desired state changes

Applied to files:

  • source/Classes/020.SqlRSSetup.ps1
📚 Learning: 2025-08-29T17:21:35.556Z
Learnt from: CR
PR: dsccommunity/SqlServerDsc#0
File: .github/instructions/dsc-community-style-guidelines-class-resource.instructions.md:0-0
Timestamp: 2025-08-29T17:21:35.556Z
Learning: Applies to source/[cC]lasses/**/*.ps1 : Optional: hidden NormalizeProperties([Hashtable] $properties) to normalize user-provided properties

Applied to files:

  • source/Classes/020.SqlRSSetup.ps1
📚 Learning: 2025-08-29T17:21:35.556Z
Learnt from: CR
PR: dsccommunity/SqlServerDsc#0
File: .github/instructions/dsc-community-style-guidelines-class-resource.instructions.md:0-0
Timestamp: 2025-08-29T17:21:35.556Z
Learning: Applies to source/[cC]lasses/**/*.ps1 : Optional: hidden AssertProperties([Hashtable] $properties) to validate user-provided properties

Applied to files:

  • source/Classes/020.SqlRSSetup.ps1
📚 Learning: 2025-08-29T17:21:35.556Z
Learnt from: CR
PR: dsccommunity/SqlServerDsc#0
File: .github/instructions/dsc-community-style-guidelines-class-resource.instructions.md:0-0
Timestamp: 2025-08-29T17:21:35.556Z
Learning: Applies to source/[cC]lasses/**/*.ps1 : Provide hidden GetCurrentState([Hashtable] $properties) returning a Hashtable of current state

Applied to files:

  • source/Classes/020.SqlRSSetup.ps1
📚 Learning: 2025-08-28T17:10:34.765Z
Learnt from: johlju
PR: dsccommunity/SqlServerDsc#2150
File: source/Classes/020.SqlAgentAlert.ps1:198-217
Timestamp: 2025-08-28T17:10:34.765Z
Learning: DSC properties with default values (e.g., `$Ensure = 'Present'`) are always present in the properties hashtable passed to validation methods, even when not explicitly specified by the user.

Applied to files:

  • source/Classes/020.SqlRSSetup.ps1
📚 Learning: 2025-08-29T17:24:23.694Z
Learnt from: CR
PR: dsccommunity/SqlServerDsc#0
File: .github/instructions/dsc-community-style-guidelines-powershell.instructions.md:0-0
Timestamp: 2025-08-29T17:24:23.694Z
Learning: Applies to **/*.{ps1,psm1,psd1} : Hashtable properties use PascalCase

Applied to files:

  • source/Classes/020.SqlRSSetup.ps1
⏰ Context from checks skipped due to timeout of 90000ms. You can increase the timeout in your CodeRabbit configuration to a maximum of 15 minutes (900000ms). (4)
  • GitHub Check: dsccommunity.SqlServerDsc (Quality Test and Unit Test Unit)
  • GitHub Check: dsccommunity.SqlServerDsc (Quality Test and Unit Test HQRM)
  • GitHub Check: dsccommunity.SqlServerDsc (Quality Test and Unit Test Determine DSC Resource Test Requirements)
  • GitHub Check: dsccommunity.SqlServerDsc (Build Package Module)
🔇 Additional comments (4)
source/Enum/001.ReportServerEdition.ps1 (1)

13-13: LGTM on file termination.

File ends with a single trailing blank line per style guideline.

tests/Unit/Classes/SqlRSSetup.Tests.ps1 (2)

132-133: LGTM: assertion updated for enum default (0).

The Get() expectation aligns with zero-as-unset enum semantics.


191-192: LGTM: second assertion updated for enum default (0).

Consistent with the new Edition handling.

source/Classes/020.SqlRSSetup.ps1 (1)

404-409: LGTM: Include IgnoreZeroEnumValue in Get-DscProperty.

This prevents emitting Edition when it’s the default 0 value.

If DscResource.Common is pinned, ensure the version used in the build supports -IgnoreZeroEnumValue on Get-DscProperty.

@johlju johlju merged commit e8aeef5 into main Aug 30, 2025
46 checks passed
@johlju johlju deleted the copilot/fix-1e06bee2-0688-48e7-86aa-dc4676c4a95c branch August 30, 2025 16:08
@johlju johlju removed the abandoned The pull request has been abandoned. label Aug 30, 2025
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.

2 participants