waterbutler
waterbutler copied to clipboard
[SVCS-132] Factor out move/copy code
Purpose
If WB core provider the move and copy code repeats itself unnecessarily this factors it out and cleans up the functions substantially.
Changes
Moves the metrics, name handling and intra_move/copy code into a decorator which wraps the move and copy functions, also adds/updates some docstrings. Changes some keyword arguments to positional arguments.
Side Effects
None that I know of.
Ticket
https://openscience.atlassian.net/browse/SVCS-132
Coverage decreased (-0.03%) to 75.204% when pulling 188b4a313b6267370f48f53cf025818f0664654a on Johnetordoff:DRY-move-or-copy into 753bdd2434b757d889aae6d9b6e9c9c3a650e9dc on CenterForOpenScience:develop.
Coverage decreased (-0.002%) to 89.879% when pulling 465685935c1782743d37b3a69f57551d28a4bdb9 on Johnetordoff:DRY-move-or-copy into e2e626680cba93dbd4e99cc789c26d3fd248704a on CenterForOpenScience:develop.
Need to make it not a decorator