You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This is not a bug, it's known behavior of Drupal, but it might take some people by surprise and undercuts all our work on versioning.
The post above says "The node type setting mentioned by the other answers only applies to the node form, it does not affect programatically saved nodes.", and I have confirmed that revisions are indeed not created when nodes are updated using other means such as migrations with the --update flag or via REST PATCH requests.
The thread cited above provides some simple hook_node_presave() code that enables revisions. Given that many people will be updating nodes from CSV via migrations, it might be worth considering implementing a node_presave() hook that will enable revisions on Islandora content types so they can create revisions if they want them.
Pinging @elizoller and other @Islandora/8-x-committers.
The text was updated successfully, but these errors were encountered:
This is not a bug, it's known behavior of Drupal, but it might take some people by surprise and undercuts all our work on versioning.
The post above says "The node type setting mentioned by the other answers only applies to the node form, it does not affect programatically saved nodes.", and I have confirmed that revisions are indeed not created when nodes are updated using other means such as migrations with the
--update
flag or via RESTPATCH
requests.The thread cited above provides some simple
hook_node_presave()
code that enables revisions. Given that many people will be updating nodes from CSV via migrations, it might be worth considering implementing anode_presave()
hook that will enable revisions on Islandora content types so they can create revisions if they want them.Pinging @elizoller and other @Islandora/8-x-committers.
The text was updated successfully, but these errors were encountered: