-
Notifications
You must be signed in to change notification settings - Fork 2
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
Default behaviour of copy_field
/move_field
/add_field
should be destructive, the appending behaviour creates problems
#116
Comments
Catmandu is destructive: hbz/Catmandu@4d2f0e3. |
copy_field
/move_field
/add_field
through appending causes problems
Since this is standard behaviour of Catmandu fix I would like when this gets prioritized over other fix tickets. |
copy_field
/move_field
/add_field
through appending causes problemscopy_field
/move_field
/add_field
should be destructive, the appending behaviour creates problems
…du compatibility. (#116) NOTE: `add_field()` and `set_field()` are now equivalent, but according to Catmandu's documentation `set_field()` "will not create the intermediate structures if they are missing".
@blackwinter tested it. seems to work :) +1 |
…aviour for Catmandu compatibility. (#116) `move_field()` is implemented in terms of `copy_field()`, so changing the latter's behaviour also changes the former's.
+1 tested different variations. Thanks a lot! |
Thanks, but just to be sure: Have you also verified that your current transformations (lobid-resources, oersi, etc.) are going to work with these changes? If not, do you maybe want to do it before we merge? (The required changes in Limetrans were quite extensive: hbz/limetrans@f992bb4 & hbz/limetrans@c7b7dfa) |
I did not test this before but now i did. But I always assumed the destructiv behaviour to be valid and wrote my scripts accordingly. lobid resources seems to work well. oersi too. |
(I updated my comment, I did test it. :) ) |
+1 |
See here
(The error seems to be not virulent any more, but the underlying behaviour is still productive.)
Catmandu Fix default behaviour is destructive
Appending should only be done explicitly and copy/move/add_field should be destructive.
Could be that this is the root of #113
add_field
(Changeadd_field()
Fix function to destructive behaviour for Catmandu compatibility. #308)copy_field
(Changecopy_field()
/move_field()
Fix functions to destructive behaviour for Catmandu compatibility. #313)move_field
(Changecopy_field()
/move_field()
Fix functions to destructive behaviour for Catmandu compatibility. #313)The text was updated successfully, but these errors were encountered: