{"action":"created","issue":{"url":"https://api.github.com/repos/ckan/ckan/issues/2571","labels_url":"https://api.github.com/repos/ckan/ckan/issues/2571/labels{/name}","comments_url":"https://api.github.com/repos/ckan/ckan/issues/2571/comments","events_url":"https://api.github.com/repos/ckan/ckan/issues/2571/events","html_url":"https://github.com/ckan/ckan/pull/2571","id":99467523,"number":2571,"title":"Introduces IDataPusher plugin","user":{"login":"rossjones","id":118063,"avatar_url":"https://avatars.githubusercontent.com/u/118063?v=3","gravatar_id":"","url":"https://api.github.com/users/rossjones","html_url":"https://github.com/rossjones","followers_url":"https://api.github.com/users/rossjones/followers","following_url":"https://api.github.com/users/rossjones/following{/other_user}","gists_url":"https://api.github.com/users/rossjones/gists{/gist_id}","starred_url":"https://api.github.com/users/rossjones/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rossjones/subscriptions","organizations_url":"https://api.github.com/users/rossjones/orgs","repos_url":"https://api.github.com/users/rossjones/repos","events_url":"https://api.github.com/users/rossjones/events{/privacy}","received_events_url":"https://api.github.com/users/rossjones/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-08-06T15:54:36Z","updated_at":"2015-08-10T10:25:31Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/ckan/ckan/pulls/2571","html_url":"https://github.com/ckan/ckan/pull/2571","diff_url":"https://github.com/ckan/ckan/pull/2571.diff","patch_url":"https://github.com/ckan/ckan/pull/2571.patch"},"body":"This new plugin allows users to reject resources for submission,\r\nand also to be notified once a datapush is complete.\r\n\r\nThe two methods in the interface are:\r\n\r\ncan_upload: which will abort datapusher_submit calls if they return True.\r\nafter_upload: Called with the resource ID after the upload into the datastore is complete.\r\n\r\nThe check for can_upload is performed in the datapusher_submit action as doing it anywhere else (such as the plugin that catches resource changes) would mean that the plugins would be ignored when it is triggered via an API call.\r\n\r\nThis should provide enough functionality to close https://github.com/ckan/ideas-and-roadmap/issues/155 \r\n"},"comment":{"url":"https://api.github.com/repos/ckan/ckan/issues/comments/129398447","html_url":"https://github.com/ckan/ckan/pull/2571#issuecomment-129398447","issue_url":"https://api.github.com/repos/ckan/ckan/issues/2571","id":129398447,"user":{"login":"mattfullerton","id":4084428,"avatar_url":"https://avatars.githubusercontent.com/u/4084428?v=3","gravatar_id":"","url":"https://api.github.com/users/mattfullerton","html_url":"https://github.com/mattfullerton","followers_url":"https://api.github.com/users/mattfullerton/followers","following_url":"https://api.github.com/users/mattfullerton/following{/other_user}","gists_url":"https://api.github.com/users/mattfullerton/gists{/gist_id}","starred_url":"https://api.github.com/users/mattfullerton/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mattfullerton/subscriptions","organizations_url":"https://api.github.com/users/mattfullerton/orgs","repos_url":"https://api.github.com/users/mattfullerton/repos","events_url":"https://api.github.com/users/mattfullerton/events{/privacy}","received_events_url":"https://api.github.com/users/mattfullerton/received_events","type":"User","site_admin":false},"created_at":"2015-08-10T10:25:31Z","updated_at":"2015-08-10T10:25:31Z","body":"Are there plans to prevent previewing until the datapush is complete? A confusing issue for users is that garbled previews of data being directly previewed in javascript pop up after the upload and the proper preview out of the datastore, sanitized with messytables, comes some time later after a refresh."}}