This repository has been archived by the owner on Oct 11, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 45
Wire details merging during BackupOp.Run #1905
Merged
Merged
Conversation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
ryanfkeepers
approved these changes
Dec 22, 2022
ashmrtn
force-pushed
the
1800-merge-func
branch
from
December 23, 2022 00:30
9e9d7c5
to
4e148cf
Compare
Pull out another interface and pass in the interface to a function so that we don't recreate a struct multiple times. Long-term, we should refactor/consolidate some struct initialization/location for the backup model.
Now that we're merging details in BackupOp we need to have access to details.Builder in BackOp.
ashmrtn
force-pushed
the
1800-wire-details-merge
branch
from
December 23, 2022 18:26
b699158
to
6e3b4ed
Compare
Pass base snapshots to hierarhcy merging function.
Kudos, SonarCloud Quality Gate passed! 0 Bugs No Coverage information |
Aviator status
This PR was merged using Aviator. |
PR failed to merge with reason: some CI status(es) failed. |
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Description
Actually call the details merge function while performing a backup. If no base snapshots or
len(toMerge) == 0
then turns into a noop.This PR contains a little extra refactoring to keep from initializing a struct multiple times. However, long-term we should probably refactor BackupOp to better fit the fact that we are now using interfaces as inputs to many functions for the sake of testing
Does this PR need a docs update or release note?
Type of change
Issue(s)
Test Plan