{"action":"created","issue":{"url":"https://api.github.com/repos/ckan/ckan/issues/2856","repository_url":"https://api.github.com/repos/ckan/ckan","labels_url":"https://api.github.com/repos/ckan/ckan/issues/2856/labels{/name}","comments_url":"https://api.github.com/repos/ckan/ckan/issues/2856/comments","events_url":"https://api.github.com/repos/ckan/ckan/issues/2856/events","html_url":"https://github.com/ckan/ckan/issues/2856","id":129430177,"number":2856,"title":"DataPusher called multiple times when creating a dataset","user":{"login":"amercader","id":200230,"avatar_url":"https://avatars.githubusercontent.com/u/200230?v=3","gravatar_id":"","url":"https://api.github.com/users/amercader","html_url":"https://github.com/amercader","followers_url":"https://api.github.com/users/amercader/followers","following_url":"https://api.github.com/users/amercader/following{/other_user}","gists_url":"https://api.github.com/users/amercader/gists{/gist_id}","starred_url":"https://api.github.com/users/amercader/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/amercader/subscriptions","organizations_url":"https://api.github.com/users/amercader/orgs","repos_url":"https://api.github.com/users/amercader/repos","events_url":"https://api.github.com/users/amercader/events{/privacy}","received_events_url":"https://api.github.com/users/amercader/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/ckan/ckan/labels/Backport%20pending","name":"Backport pending","color":"fad8c7"},{"url":"https://api.github.com/repos/ckan/ckan/labels/Bug","name":"Bug","color":"e102d8"},{"url":"https://api.github.com/repos/ckan/ckan/labels/DataPusher","name":"DataPusher","color":"bfd4f2"},{"url":"https://api.github.com/repos/ckan/ckan/labels/DataStore","name":"DataStore","color":"fbca04"},{"url":"https://api.github.com/repos/ckan/ckan/labels/zBackport%202.5.2","name":"zBackport 2.5.2","color":"c7def8"}],"state":"closed","locked":false,"assignee":{"login":"amercader","id":200230,"avatar_url":"https://avatars.githubusercontent.com/u/200230?v=3","gravatar_id":"","url":"https://api.github.com/users/amercader","html_url":"https://github.com/amercader","followers_url":"https://api.github.com/users/amercader/followers","following_url":"https://api.github.com/users/amercader/following{/other_user}","gists_url":"https://api.github.com/users/amercader/gists{/gist_id}","starred_url":"https://api.github.com/users/amercader/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/amercader/subscriptions","organizations_url":"https://api.github.com/users/amercader/orgs","repos_url":"https://api.github.com/users/amercader/repos","events_url":"https://api.github.com/users/amercader/events{/privacy}","received_events_url":"https://api.github.com/users/amercader/received_events","type":"User","site_admin":false},"milestone":null,"comments":23,"created_at":"2016-01-28T11:55:02Z","updated_at":"2016-05-24T13:25:03Z","closed_at":"2016-03-30T15:16:43Z","body":"When you upload a CSV the DataPusher [gets called](https://github.com/ckan/ckan/blob/master/ckanext/datapusher/plugin.py#L98) to do its thing.\r\nOn https://github.com/ckan/ckan/pull/2234 we added a couple of calls to `resource_patch` on `datastore_create` and `datastore_delete` to set the `datastore_active` extra on the resource.\r\n\r\nThis is all very well but this update on the resource triggers again the DataPusher, which pings `datastore_delete` and `datastore_create`, which trigger...\r\n\r\nNot sure how we can handle this on the `notify` extension point, as we only get the model object there."},"comment":{"url":"https://api.github.com/repos/ckan/ckan/issues/comments/221267253","html_url":"https://github.com/ckan/ckan/issues/2856#issuecomment-221267253","issue_url":"https://api.github.com/repos/ckan/ckan/issues/2856","id":221267253,"user":{"login":"inghamn","id":630282,"avatar_url":"https://avatars.githubusercontent.com/u/630282?v=3","gravatar_id":"","url":"https://api.github.com/users/inghamn","html_url":"https://github.com/inghamn","followers_url":"https://api.github.com/users/inghamn/followers","following_url":"https://api.github.com/users/inghamn/following{/other_user}","gists_url":"https://api.github.com/users/inghamn/gists{/gist_id}","starred_url":"https://api.github.com/users/inghamn/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/inghamn/subscriptions","organizations_url":"https://api.github.com/users/inghamn/orgs","repos_url":"https://api.github.com/users/inghamn/repos","events_url":"https://api.github.com/users/inghamn/events{/privacy}","received_events_url":"https://api.github.com/users/inghamn/received_events","type":"User","site_admin":false},"created_at":"2016-05-24T13:25:02Z","updated_at":"2016-05-24T13:25:02Z","body":"Success! After updating action.py with the patch, I am no longer having the infinite resubmission.\r\n\r\nI have tried with my previous ISO-8859 file and do receive the character set mismatch error, but there is no longer a resubmit attempt.  I've attached my CSV files, just in case you still want a copy.\r\n\r\n[ckan.zip](https://github.com/ckan/ckan/files/279607/ckan.zip)\r\n\r\n\r\n"}}
{"actor":{"display_login":"inghamn"}}