Skip to content

Fix property discovery on class-based resources WinPS adapter #879

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

Merged
merged 13 commits into from
Jul 6, 2025

Conversation

Gijsreyn
Copy link
Contributor

PR Summary

This PR addresses issue #878. Note: there are no tests and might conflict with PR #877. Depending on these, I have to resolve the conflicts and add relevant tests.

PR Context

@Gijsreyn
Copy link
Contributor Author

@SteveL-MSFT, could you please let me know which of the other PRs goes first? Then I can fix the merge conflict and rewrite some of the logic :)

Copy link
Member

@SteveL-MSFT SteveL-MSFT left a comment

Choose a reason for hiding this comment

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

Can you add a test?

DscResourceInfo = $DscResourceInfo
LastWriteTimes = $lastWriteTimes
})
Type = "$moduleName/$($dscResource.Name)"
Copy link
Member

Choose a reason for hiding this comment

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

This indentation doesn't look right?

Copy link
Member

Choose a reason for hiding this comment

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

Isn't this double indented?

Copy link
Member

Choose a reason for hiding this comment

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

still there

@SteveL-MSFT SteveL-MSFT modified the milestone: 3.1-Consider Jun 10, 2025
@Gijsreyn Gijsreyn requested a review from SteveL-MSFT June 11, 2025 02:09
@Gijsreyn
Copy link
Contributor Author

Can you add a test?

Ready to go :)

@Gijsreyn Gijsreyn force-pushed the fix-class-property-discovery branch from 6fc6ecc to e557557 Compare June 13, 2025 07:46
@Gijsreyn Gijsreyn force-pushed the fix-class-property-discovery branch from e557557 to f0c30dd Compare June 29, 2025 10:36
@Gijsreyn Gijsreyn force-pushed the fix-class-property-discovery branch from f0c30dd to cdbb4b1 Compare July 1, 2025 02:30
DscResourceInfo = $DscResourceInfo
LastWriteTimes = $lastWriteTimes
})
Type = "$moduleName/$($dscResource.Name)"
Copy link
Member

Choose a reason for hiding this comment

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

Isn't this double indented?

@Gijsreyn Gijsreyn force-pushed the fix-class-property-discovery branch from 1af0044 to b602c8f Compare July 4, 2025 05:37
@Gijsreyn Gijsreyn requested a review from SteveL-MSFT July 4, 2025 05:59
DscResourceInfo = $DscResourceInfo
LastWriteTimes = $lastWriteTimes
})
Type = "$moduleName/$($dscResource.Name)"
Copy link
Member

Choose a reason for hiding this comment

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

still there

@Gijsreyn
Copy link
Contributor Author

Gijsreyn commented Jul 5, 2025

Somehow, the OTBS and auto-save do that double indentation. It should be good now.

@Gijsreyn Gijsreyn requested a review from SteveL-MSFT July 5, 2025 04:57
[System.Management.Automation.Language.ParseError[]] $errors = $null
$ast = [System.Management.Automation.Language.Parser]::ParseFile($module, [ref]$tokens, [ref]$errors)
foreach ($e in $errors) {
$e | Out-String | Write-DscTrace -Operation Error
Copy link
Member

Choose a reason for hiding this comment

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

If there are any errors, should we just exit with an exit code?

@SteveL-MSFT SteveL-MSFT added this pull request to the merge queue Jul 6, 2025
Merged via the queue into PowerShell:main with commit 82b9135 Jul 6, 2025
4 checks passed
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