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 46
Produce map of items that need backup details entries #1892
Merged
Merged
Changes from all commits
Commits
Show all changes
13 commits
Select commit
Hold shift + click to select a range
db63183
Track info about old and new dir paths
ashmrtn 3d70dbd
Add progress entries for base snapshot items
ashmrtn cb52a4b
Track base snapshot entries
ashmrtn 238da10
Update tests for proper struct creation
ashmrtn b3e4a31
Properly initialize progress during backup
ashmrtn 85d00d6
Return info about sourced items to BackupOp
ashmrtn 9978b45
Fixup code for extra return value
ashmrtn e16dcde
Add bool option to test helper for paths
ashmrtn 0839b3f
Add test case for producing toMerge in progress
ashmrtn 8919a19
Minor comment update
ashmrtn 61563d4
Minor error formatting update
ashmrtn dcbb905
Merge branch 'main' into 1800-collect-base-items
aviator-app[bot] a86639c
Fix build errors from merge
ashmrtn File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
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
Oops, something went wrong.
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.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Add an error log here?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
we don't have access to a context here so unless I stash a logger in the struct instance there's not a whole lot we can do :/
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The logger will fall back to a singleton instance if given the background context. You might miss out on some logging within tests, but for the CLI it'll still write out as expected.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
thinking about this more broadly, I think we should be storing errors in the struct and returning them at the end. Otherwise we could miss the fact that we failed to add some details. I'll make a follow up ticket for this
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
tracking with #1915