-
Notifications
You must be signed in to change notification settings - Fork 159
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
DXCDT-376: Preserve keywords function #745
Conversation
… into DXCDT-376-preserve-keywords-function
export const getPreservableFieldsFromAssets = ( | ||
asset: any, | ||
address: string, | ||
keywordMappings: KeywordMappings | ||
asset: object, | ||
keywordMappings: KeywordMappings, | ||
address = '' |
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.
Re-ordering the arguments, particularly making keywordMappings
second to be more consistent with the other functions of that file.
Codecov ReportBase: 83.86% // Head: 83.93% // Increases project coverage by
Additional details and impacted files@@ Coverage Diff @@
## DXCDT-374-keyword-preservation-update-field-by-address #745 +/- ##
==========================================================================================
+ Coverage 83.86% 83.93% +0.07%
==========================================================================================
Files 115 115
Lines 3445 3462 +17
Branches 647 650 +3
==========================================================================================
+ Hits 2889 2906 +17
Misses 324 324
Partials 232 232
Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here. ☔ View full report at Codecov. |
🔧 Changes
Building off of the previous PRs for keyword preservation (#736, #738, #740, #741, #744), this PR introduces the
preserveKeywords
function. This is the highest-order function of this feature and the one that will ultimately be integrated into the export process. As the name suggests, it preserves keywords when provided local assets, remote assets and keyword mappings. The result is an altered copy of the remote assets with the keywords appropriately replaced.📚 References
Related Issues:
🔬 Testing
Added relevant unit tests.
📝 Checklist