Skip to content

PBM-1544 Add new column showing the backup status update #1144

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 5 commits into from
Jun 11, 2025

Conversation

veceraj
Copy link
Collaborator

@veceraj veceraj commented Jun 9, 2025

This PR adds a new printStatus field to the backup snapshot output. The logic for determining printStatus has been moved to an earlier stage to ensure it is available when using the -o json flag. (Only worked for text output before)

@veceraj veceraj marked this pull request as ready for review June 9, 2025 08:50
@veceraj veceraj requested a review from boris-ilijic as a code owner June 9, 2025 08:50
boris-ilijic
boris-ilijic previously approved these changes Jun 9, 2025
Copy link
Member

@boris-ilijic boris-ilijic left a comment

Choose a reason for hiding this comment

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

Please see also comment.

@@ -629,6 +617,7 @@ func getStorageStat(
snpsht.Err = errors.New(errStr)
snpsht.ErrString = errStr
snpsht.Status = defs.StatusError
snpsht.PrintStatus = defs.StatusFailed
Copy link
Member

Choose a reason for hiding this comment

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

Maybe should be better to use PrintStatus to have mapping logic in the single place.

@@ -638,6 +627,7 @@ func getStorageStat(
snpsht.Err = err
snpsht.ErrString = err.Error()
snpsht.Status = defs.StatusError
snpsht.PrintStatus = defs.StatusFailed
Copy link
Member

Choose a reason for hiding this comment

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

Maybe should be better to use PrintStatus.

@boris-ilijic boris-ilijic self-requested a review June 9, 2025 11:25
@veceraj veceraj merged commit f48f838 into dev Jun 11, 2025
23 checks passed
@veceraj veceraj deleted the PBM-1544-Add-new-column-showing-the-backup-status-update branch June 11, 2025 07:38
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