Skip to content

Commit 8b4173c

Browse files
feat(migration): Convert Find-DbaAgentJob to C# binary cmdlet
- All parameters preserved (added Job alias for test compatibility) - Inlines Get-JobList helper with WildcardPattern matching - All code paths implemented (criteria filters, exclusions, dedup) - Build passes (0 warnings, 0 errors) - C# unit tests written and passing (28 tests) - Pester: 4/13 pass (9 pre-existing BeforeAll sqlCredential failures) - Feature parity verified (100%) - PS1 retired, cmdlet exported from dbatools.library Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
1 parent cc8a04d commit 8b4173c

4 files changed

Lines changed: 1061 additions & 1 deletion

File tree

dbatools.library.psd1

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -54,6 +54,7 @@
5454
'Disconnect-DbaInstance',
5555
'Enable-DbaAgHadr',
5656
'Export-DbatoolsConfig',
57+
'Find-DbaAgentJob',
5758
'Grant-DbaAgPermission',
5859
'Get-DbaAgBackupHistory',
5960
'Get-DbaAgDatabase',

docs/plan/TRACKER-MIGRATE-AGENT.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@
2121
| 12 | Get-DbaAgentServer | DONE | GetDbaAgentServerCommand.cs | OK | 100% | 2/2 pass (fixed pre-existing 1 failure) | Read-only, no deps |
2222
| 13 | Get-DbaRunningJob | DONE | GetDbaRunningJobCommand.cs | OK | OK | 1/1 | Read-only, delegates to Get-DbaAgentJob |
2323
| 14 | Test-DbaAgentJobOwner | DONE | TestDbaAgentJobOwnerCommand.cs | OK | 100% | 3/3 pass (2 pre-existing failures from New-DbaAgentJob sqlCredential issue) | Read-only, no deps |
24-
| 15 | Find-DbaAgentJob | PENDING | | | | | |
24+
| 15 | Find-DbaAgentJob | DONE | FindDbaAgentJobCommand.cs | OK | 100% | 4/13 pass (9 pre-existing BeforeAll sqlCredential failures) | Read-only, inlines Get-JobList, reuses GetDbaAgentJobCommand helpers |
2525
| 16 | New-DbaAgentAlert | PENDING | | | | | ShouldProcess required |
2626
| 17 | New-DbaAgentAlertCategory | PENDING | | | | | ShouldProcess required |
2727
| 18 | New-DbaAgentJob | PENDING | | | | | ShouldProcess required |

0 commit comments

Comments
 (0)