ckanext-doi
ckanext-doi copied to clipboard
Refactor DOIPlugin to only flash success messages in blueprint views
The reason behind this change is to handle when CKAN background jobs update datasets (e.g. embargo releases) which trigger the after_dataset_update
interface.
Flash messages will fail in background jobs and only work from web requests.
The solution is to check if the request has come from a blueprint view.