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

drkloc’s picture

Assigned: Unassigned » drkloc
Issue tags: +Release 1.0
drkloc’s picture

Status: Active » Needs review
drkloc’s picture

Fixed and push to 7.x-1.x

drkloc’s picture

Status: Needs review » Fixed
acouch’s picture

Issue tags: -Release 1.0

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.