[ckan-changes] [ckan/ckan] baa850: Deleting a dataset sends out IResourceController.b...

David Read noreply at github.com
Fri Jul 12 20:23:32 UTC 2019


  Branch: refs/heads/deleting-a-dataset-sends-IResourceController-before_delete
  Home:   https://github.com/ckan/ckan
  Commit: baa850a38eaf26c4edb2da0cdecbf9bf71a2ad4f
      https://github.com/ckan/ckan/commit/baa850a38eaf26c4edb2da0cdecbf9bf71a2ad4f
  Author: David Read <david.read at hackneyworkshop.com>
  Date:   2019-07-12 (Fri, 12 Jul 2019)

  Changed paths:
    M ckan/logic/action/delete.py
    M ckan/tests/logic/action/test_delete.py

  Log Message:
  -----------
  Deleting a dataset sends out IResourceController.before_delete events

Although it doesn't actually delete the resources, because when a
sysadmin views the deleted dataset it should show with those resource,
and they wouldn't show up if we set their state=deleted.

This fixes #4705 by sending the IResourceController.before_delete events
necessary for Datastore and FileStore to get rid of the associated data.




More information about the ckan-changes mailing list