Skip to content
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

feat(snapshots): GetBackup details endpoint should support new dr #5058

Conversation

emosbaugh
Copy link
Member

@emosbaugh emosbaugh commented Dec 16, 2024

What this PR does / why we need it:

Adds support to backup details endpoint for new DR.

Which issue(s) this PR fixes:

Does this PR require a test?

Does this PR require a release note?


Does this PR require documentation?

@emosbaugh emosbaugh added the type::feature New feature or request label Dec 16, 2024
@emosbaugh emosbaugh marked this pull request as ready for review December 17, 2024 17:33
@emosbaugh emosbaugh requested a review from JGAntunes December 17, 2024 17:34
JGAntunes
JGAntunes previously approved these changes Dec 17, 2024
Copy link
Member

@JGAntunes JGAntunes left a comment

Choose a reason for hiding this comment

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

LGTM, left a suggestion/question

Success bool `json:"success"`
Error string `json:"error,omitempty"`
BackupDetails []snapshottypes.BackupDetail `json:"backupDetails"`
Deprecated_BackupDetail *snapshottypes.BackupDetail `json:"backupDetail"`
Copy link
Member

Choose a reason for hiding this comment

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

I wonder if this is better VS changing where we use this in the UI?

Else, should we have a store to clean this up once the UI is updated?

Copy link
Member Author

Choose a reason for hiding this comment

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

Is something like this correct?

result.backupDetails && result.backupDetails.length > 0 ? result.backupDetails[0] : null

Copy link
Member Author

Choose a reason for hiding this comment

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

Or this?

result.backupDetails?.[0]

Copy link
Member Author

Choose a reason for hiding this comment

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

updated

@emosbaugh emosbaugh merged commit eda1bc0 into main Dec 17, 2024
123 checks passed
@emosbaugh emosbaugh deleted the emosbaugh/sc-117471/change-the-getbackupdetail-endpoint-to-return branch December 17, 2024 22:17
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
type::feature New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants