Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
The hook_node_update call in dkan_dataset.triggers.inc to the Dataset class breaks the ability to change resources.
On a clean install editing one of the default datasets and changing the resource or adding a new one doesn't result in a change in the resource.
I think part of the issue is that when a resource on a dataset changes that actually fires a node save on the linked resource, which is also loaded in the Dataset class when loading a dataset.
I think removing the full loading of resources from the preload() function would be good for scalability but doesn't completely solve this issue.
Comments
Comment #1
drkloc CreditAttribution: drkloc commentedComment #2
drkloc CreditAttribution: drkloc commentedComment #3
drkloc CreditAttribution: drkloc commentedFixed and push to 7.x-1.x
Comment #4
drkloc CreditAttribution: drkloc commentedComment #5
acouch CreditAttribution: acouch commented