Preserve Collection assets on clone#834
Merged
duckontheweb merged 6 commits intoJun 29, 2022
Merged
Conversation
Codecov Report
@@ Coverage Diff @@
## main #834 +/- ##
==========================================
- Coverage 94.34% 94.33% -0.01%
==========================================
Files 83 83
Lines 11923 11939 +16
Branches 1390 1400 +10
==========================================
+ Hits 11249 11263 +14
Misses 495 495
- Partials 179 181 +2
Continue to review full report at Codecov.
|
|
Sorry to leave the PR to my issue hanging @duckontheweb and thanks for adding the fix. I think this looks good for fixing the |
gadomski
requested changes
Jun 29, 2022
gadomski
approved these changes
Jun 29, 2022
This file contains hidden or 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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
Related Issue(s):
Description:
Adds an
assetsargument toItem.__init__andCollection.__init__that accepts a dictionary mapping strings toAssetobjects, which allows us to attach Assets to these objects as part of instantiation.Also preserves Collection assets when using
Collection.cloneand adds regression test.cc: @cholden-ag
PR Checklist:
pre-commit run --all-files)scripts/test)