Get-DbaBackupInformation - Fix inconsistencies with Get-DbaDbBackupHistory#10308
Get-DbaBackupInformation - Fix inconsistencies with Get-DbaDbBackupHistory#10308andreasjordan wants to merge 4 commits intodevelopmentfrom
Conversation
…story - Normalize Type values: 'Database' -> 'Full', 'Database Differential' -> 'Differential', 'Transaction Log' -> 'Log' - Rename FileList property 'Type' to 'FileType' to match Get-DbaDbBackupHistory - Add LastRecoveryForkGuid assignment (was always 00000000-0000-...) - Fix InstanceName: extract from ServerName when ServiceName is empty Fixes #8205 (do Get-DbaBackupInformation) Co-authored-by: Andreas Jordan <andreasjordan@users.noreply.github.com>
|
@claude now the tests for Restore-DbaDatabase fail. |
|
Claude finished @andreasjordan's task in 2m 56s —— View job Fix: Restore-DbaDatabase test failure
Root cause: The new line assigning Fix: Added a null-check before assigning the value, so when if ($null -ne $group.Group[0].LastRecoveryForkGUID) {
$historyObject.LastRecoveryForkGuid = $group.Group[0].LastRecoveryForkGUID
}Commit: |
Prevents "Cannot convert null to type System.Guid" error when LastRecoveryForkGUID is null in backup headers (e.g. Azure blob storage). (do Get-DbaBackupInformation) Co-authored-by: Andreas Jordan <andreasjordan@users.noreply.github.com>
|
@claude the tests for Restore-DbaDatabase now pass, but these tests for Get-DbaBackupInformation fail: |
|
Claude finished @andreasjordan's task in 1m 21s —— View job Fix: Get-DbaBackupInformation test failures
Root cause: The tests were filtering by the old Fix: Updated 5 test assertions in
Commit: |
Update test assertions to use the new normalized Type values
('Full', 'Log') instead of the old values ('Database', 'Transaction Log')
to match the changes made in the implementation.
(do Get-DbaBackupInformation)
Co-authored-by: Andreas Jordan <andreasjordan@users.noreply.github.com>
Fixes inconsistencies between
Get-DbaBackupInformationandGet-DbaDbBackupHistoryas reported in #8205.Changes:
Typevalues to match Get-DbaDbBackupHistory ("Database" → "Full", etc.)FileListpropertyTypetoFileTypeLastRecoveryForkGuid(was always "00000000-0000-...")InstanceName(extract from ServerName when ServiceName is empty)Closes #8205
Generated with Claude Code
IMPORTANT: This is a breaking change so maybe merge later together with other breaking changes and release a new version 2.8.0