{"action":"created","comment":{"url":"https://api.github.com/repos/ckan/ckanext-harvest/pulls/comments/25241283","id":25241283,"diff_hunk":"@@ -317,6 +317,8 @@ def harvest_jobs_run(context,data_dict):\n                           .first()\n                     if last_object:\n                         job_obj.finished = last_object.import_finished\n+                    else:\n+                        job_obj.finished = job['gather_finished']","path":"ckanext/harvest/logic/action/update.py","position":5,"original_position":5,"commit_id":"1e0376cff63dc4803ba34e218de5e3c85e224b55","original_commit_id":"1e0376cff63dc4803ba34e218de5e3c85e224b55","user":{"login":"davidread","id":307612,"avatar_url":"https://avatars.githubusercontent.com/u/307612?v=3","gravatar_id":"","url":"https://api.github.com/users/davidread","html_url":"https://github.com/davidread","followers_url":"https://api.github.com/users/davidread/followers","following_url":"https://api.github.com/users/davidread/following{/other_user}","gists_url":"https://api.github.com/users/davidread/gists{/gist_id}","starred_url":"https://api.github.com/users/davidread/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/davidread/subscriptions","organizations_url":"https://api.github.com/users/davidread/orgs","repos_url":"https://api.github.com/users/davidread/repos","events_url":"https://api.github.com/users/davidread/events{/privacy}","received_events_url":"https://api.github.com/users/davidread/received_events","type":"User","site_admin":false},"body":"Whatever we do about the rest, this 2 lines are good.","created_at":"2015-02-24T10:14:21Z","updated_at":"2015-02-24T10:14:21Z","html_url":"https://github.com/ckan/ckanext-harvest/pull/107#discussion_r25241283","pull_request_url":"https://api.github.com/repos/ckan/ckanext-harvest/pulls/107","_links":{"self":{"href":"https://api.github.com/repos/ckan/ckanext-harvest/pulls/comments/25241283"},"html":{"href":"https://github.com/ckan/ckanext-harvest/pull/107#discussion_r25241283"},"pull_request":{"href":"https://api.github.com/repos/ckan/ckanext-harvest/pulls/107"}}},"pull_request":{"url":"https://api.github.com/repos/ckan/ckanext-harvest/pulls/107","id":21001555,"html_url":"https://github.com/ckan/ckanext-harvest/pull/107","diff_url":"https://github.com/ckan/ckanext-harvest/pull/107.diff","patch_url":"https://github.com/ckan/ckanext-harvest/pull/107.patch","issue_url":"https://api.github.com/repos/ckan/ckanext-harvest/issues/107","number":107,"state":"open","locked":false,"title":"Job reporting fixes","user":{"login":"Zharktas","id":830663,"avatar_url":"https://avatars.githubusercontent.com/u/830663?v=3","gravatar_id":"","url":"https://api.github.com/users/Zharktas","html_url":"https://github.com/Zharktas","followers_url":"https://api.github.com/users/Zharktas/followers","following_url":"https://api.github.com/users/Zharktas/following{/other_user}","gists_url":"https://api.github.com/users/Zharktas/gists{/gist_id}","starred_url":"https://api.github.com/users/Zharktas/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Zharktas/subscriptions","organizations_url":"https://api.github.com/users/Zharktas/orgs","repos_url":"https://api.github.com/users/Zharktas/repos","events_url":"https://api.github.com/users/Zharktas/events{/privacy}","received_events_url":"https://api.github.com/users/Zharktas/received_events","type":"User","site_admin":false},"body":"Job reporting has some inconsistencies which causes confusing behavior. \r\n\r\nIf harvest job is executed and there are zero new revision, the harvest job never receives job finished timestamp.\r\n\r\nIf harvest job is executed again, it refresher all harvested datasets, but since it creates new HarvestObjects, they don't have report_status saved and the job report shows that all datasets are deleted although nothing actually changed.","created_at":"2014-09-10T06:27:42Z","updated_at":"2015-02-24T10:14:21Z","closed_at":null,"merged_at":null,"merge_commit_sha":"66d0b05862626146900a65db511666c30b743582","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/ckan/ckanext-harvest/pulls/107/commits","review_comments_url":"https://api.github.com/repos/ckan/ckanext-harvest/pulls/107/comments","review_comment_url":"https://api.github.com/repos/ckan/ckanext-harvest/pulls/comments{/number}","comments_url":"https://api.github.com/repos/ckan/ckanext-harvest/issues/107/comments","statuses_url":"https://api.github.com/repos/ckan/ckanext-harvest/statuses/1e0376cff63dc4803ba34e218de5e3c85e224b55","head":{"label":"yhteentoimivuuspalvelut:job-reporting-fixes","ref":"job-reporting-fixes","sha":"1e0376cff63dc4803ba34e218de5e3c85e224b55","user":{"login":"yhteentoimivuuspalvelut","id":5754411,"avatar_url":"https://avatars.githubusercontent.com/u/5754411?v=3","gravatar_id":"","url":"https://api.github.com/users/yhteentoimivuuspalvelut","html_url":"https://github.com/yhteentoimivuuspalvelut","followers_url":"https://api.github.com/users/yhteentoimivuuspalvelut/followers","following_url":"https://api.github.com/users/yhteentoimivuuspalvelut/following{/other_user}","gists_url":"https://api.github.com/users/yhteentoimivuuspalvelut/gists{/gist_id}","starred_url":"https://api.github.com/users/yhteentoimivuuspalvelut/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/yhteentoimivuuspalvelut/subscriptions","organizations_url":"https://api.github.com/users/yhteentoimivuuspalvelut/orgs","repos_url":"https://api.github.com/users/yhteentoimivuuspalvelut/repos","events_url":"https://api.github.com/users/yhteentoimivuuspalvelut/events{/privacy}","received_events_url":"https://api.github.com/users/yhteentoimivuuspalvelut/received_events","type":"Organization","site_admin":false},"repo":{"id":16408109,"name":"ckanext-harvest","full_name":"yhteentoimivuuspalvelut/ckanext-harvest","owner":{"login":"yhteentoimivuuspalvelut","id":5754411,"avatar_url":"https://avatars.githubusercontent.com/u/5754411?v=3","gravatar_id":"","url":"https://api.github.com/users/yhteentoimivuuspalvelut","html_url":"https://github.com/yhteentoimivuuspalvelut","followers_url":"https://api.github.com/users/yhteentoimivuuspalvelut/followers","following_url":"https://api.github.com/users/yhteentoimivuuspalvelut/following{/other_user}","gists_url":"https://api.github.com/users/yhteentoimivuuspalvelut/gists{/gist_id}","starred_url":"https://api.github.com/users/yhteentoimivuuspalvelut/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/yhteentoimivuuspalvelut/subscriptions","organizations_url":"https://api.github.com/users/yhteentoimivuuspalvelut/orgs","repos_url":"https://api.github.com/users/yhteentoimivuuspalvelut/repos","events_url":"https://api.github.com/users/yhteentoimivuuspalvelut/events{/privacy}","received_events_url":"https://api.github.com/users/yhteentoimivuuspalvelut/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/yhteentoimivuuspalvelut/ckanext-harvest","description":"Remote harvesting extension for CKAN","fork":true,"url":"https://api.github.com/repos/yhteentoimivuuspalvelut/ckanext-harvest","forks_url":"https://api.github.com/repos/yhteentoimivuuspalvelut/ckanext-harvest/forks","keys_url":"https://api.github.com/repos/yhteentoimivuuspalvelut/ckanext-harvest/keys{/key_id}","collaborators_url":"https://api.github.com/repos/yhteentoimivuuspalvelut/ckanext-harvest/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/yhteentoimivuuspalvelut/ckanext-harvest/teams","hooks_url":"https://api.github.com/repos/yhteentoimivuuspalvelut/ckanext-harvest/hooks","issue_events_url":"https://api.github.com/repos/yhteentoimivuuspalvelut/ckanext-harvest/issues/events{/number}","events_url":"https://api.github.com/repos/yhteentoimivuuspalvelut/ckanext-harvest/events","assignees_url":"https://api.github.com/repos/yhteentoimivuuspalvelut/ckanext-harvest/assignees{/user}","branches_url":"https://api.github.com/repos/yhteentoimivuuspalvelut/ckanext-harvest/branches{/branch}","tags_url":"https://api.github.com/repos/yhteentoimivuuspalvelut/ckanext-harvest/tags","blobs_url":"https://api.github.com/repos/yhteentoimivuuspalvelut/ckanext-harvest/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/yhteentoimivuuspalvelut/ckanext-harvest/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/yhteentoimivuuspalvelut/ckanext-harvest/git/refs{/sha}","trees_url":"https://api.github.com/repos/yhteentoimivuuspalvelut/ckanext-harvest/git/trees{/sha}","statuses_url":"https://api.github.com/repos/yhteentoimivuuspalvelut/ckanext-harvest/statuses/{sha}","languages_url":"https://api.github.com/repos/yhteentoimivuuspalvelut/ckanext-harvest/languages","stargazers_url":"https://api.github.com/repos/yhteentoimivuuspalvelut/ckanext-harvest/stargazers","contributors_url":"https://api.github.com/repos/yhteentoimivuuspalvelut/ckanext-harvest/contributors","subscribers_url":"https://api.github.com/repos/yhteentoimivuuspalvelut/ckanext-harvest/subscribers","subscription_url":"https://api.github.com/repos/yhteentoimivuuspalvelut/ckanext-harvest/subscription","commits_url":"https://api.github.com/repos/yhteentoimivuuspalvelut/ckanext-harvest/commits{/sha}","git_commits_url":"https://api.github.com/repos/yhteentoimivuuspalvelut/ckanext-harvest/git/commits{/sha}","comments_url":"https://api.github.com/repos/yhteentoimivuuspalvelut/ckanext-harvest/comments{/number}","issue_comment_url":"https://api.github.com/repos/yhteentoimivuuspalvelut/ckanext-harvest/issues/comments{/number}","contents_url":"https://api.github.com/repos/yhteentoimivuuspalvelut/ckanext-harvest/contents/{+path}","compare_url":"https://api.github.com/repos/yhteentoimivuuspalvelut/ckanext-harvest/compare/{base}...{head}","merges_url":"https://api.github.com/repos/yhteentoimivuuspalvelut/ckanext-harvest/merges","archive_url":"https://api.github.com/repos/yhteentoimivuuspalvelut/ckanext-harvest/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/yhteentoimivuuspalvelut/ckanext-harvest/downloads","issues_url":"https://api.github.com/repos/yhteentoimivuuspalvelut/ckanext-harvest/issues{/number}","pulls_url":"https://api.github.com/repos/yhteentoimivuuspalvelut/ckanext-harvest/pulls{/number}","milestones_url":"https://api.github.com/repos/yhteentoimivuuspalvelut/ckanext-harvest/milestones{/number}","notifications_url":"https://api.github.com/repos/yhteentoimivuuspalvelut/ckanext-harvest/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/yhteentoimivuuspalvelut/ckanext-harvest/labels{/name}","releases_url":"https://api.github.com/repos/yhteentoimivuuspalvelut/ckanext-harvest/releases{/id}","created_at":"2014-01-31T13:03:57Z","updated_at":"2015-01-28T11:19:53Z","pushed_at":"2015-01-28T11:19:53Z","git_url":"git://github.com/yhteentoimivuuspalvelut/ckanext-harvest.git","ssh_url":"git@github.com:yhteentoimivuuspalvelut/ckanext-harvest.git","clone_url":"https://github.com/yhteentoimivuuspalvelut/ckanext-harvest.git","svn_url":"https://github.com/yhteentoimivuuspalvelut/ckanext-harvest","homepage":"","size":1405,"stargazers_count":0,"watchers_count":0,"language":"Python","has_issues":false,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":0,"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"ckan:master","ref":"master","sha":"f34c1e6d74247437902e6634cb836921a42c7917","user":{"login":"ckan","id":1630326,"avatar_url":"https://avatars.githubusercontent.com/u/1630326?v=3","gravatar_id":"","url":"https://api.github.com/users/ckan","html_url":"https://github.com/ckan","followers_url":"https://api.github.com/users/ckan/followers","following_url":"https://api.github.com/users/ckan/following{/other_user}","gists_url":"https://api.github.com/users/ckan/gists{/gist_id}","starred_url":"https://api.github.com/users/ckan/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ckan/subscriptions","organizations_url":"https://api.github.com/users/ckan/orgs","repos_url":"https://api.github.com/users/ckan/repos","events_url":"https://api.github.com/users/ckan/events{/privacy}","received_events_url":"https://api.github.com/users/ckan/received_events","type":"Organization","site_admin":false},"repo":{"id":2890627,"name":"ckanext-harvest","full_name":"ckan/ckanext-harvest","owner":{"login":"ckan","id":1630326,"avatar_url":"https://avatars.githubusercontent.com/u/1630326?v=3","gravatar_id":"","url":"https://api.github.com/users/ckan","html_url":"https://github.com/ckan","followers_url":"https://api.github.com/users/ckan/followers","following_url":"https://api.github.com/users/ckan/following{/other_user}","gists_url":"https://api.github.com/users/ckan/gists{/gist_id}","starred_url":"https://api.github.com/users/ckan/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ckan/subscriptions","organizations_url":"https://api.github.com/users/ckan/orgs","repos_url":"https://api.github.com/users/ckan/repos","events_url":"https://api.github.com/users/ckan/events{/privacy}","received_events_url":"https://api.github.com/users/ckan/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/ckan/ckanext-harvest","description":"Remote harvesting extension for CKAN","fork":false,"url":"https://api.github.com/repos/ckan/ckanext-harvest","forks_url":"https://api.github.com/repos/ckan/ckanext-harvest/forks","keys_url":"https://api.github.com/repos/ckan/ckanext-harvest/keys{/key_id}","collaborators_url":"https://api.github.com/repos/ckan/ckanext-harvest/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/ckan/ckanext-harvest/teams","hooks_url":"https://api.github.com/repos/ckan/ckanext-harvest/hooks","issue_events_url":"https://api.github.com/repos/ckan/ckanext-harvest/issues/events{/number}","events_url":"https://api.github.com/repos/ckan/ckanext-harvest/events","assignees_url":"https://api.github.com/repos/ckan/ckanext-harvest/assignees{/user}","branches_url":"https://api.github.com/repos/ckan/ckanext-harvest/branches{/branch}","tags_url":"https://api.github.com/repos/ckan/ckanext-harvest/tags","blobs_url":"https://api.github.com/repos/ckan/ckanext-harvest/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/ckan/ckanext-harvest/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/ckan/ckanext-harvest/git/refs{/sha}","trees_url":"https://api.github.com/repos/ckan/ckanext-harvest/git/trees{/sha}","statuses_url":"https://api.github.com/repos/ckan/ckanext-harvest/statuses/{sha}","languages_url":"https://api.github.com/repos/ckan/ckanext-harvest/languages","stargazers_url":"https://api.github.com/repos/ckan/ckanext-harvest/stargazers","contributors_url":"https://api.github.com/repos/ckan/ckanext-harvest/contributors","subscribers_url":"https://api.github.com/repos/ckan/ckanext-harvest/subscribers","subscription_url":"https://api.github.com/repos/ckan/ckanext-harvest/subscription","commits_url":"https://api.github.com/repos/ckan/ckanext-harvest/commits{/sha}","git_commits_url":"https://api.github.com/repos/ckan/ckanext-harvest/git/commits{/sha}","comments_url":"https://api.github.com/repos/ckan/ckanext-harvest/comments{/number}","issue_comment_url":"https://api.github.com/repos/ckan/ckanext-harvest/issues/comments{/number}","contents_url":"https://api.github.com/repos/ckan/ckanext-harvest/contents/{+path}","compare_url":"https://api.github.com/repos/ckan/ckanext-harvest/compare/{base}...{head}","merges_url":"https://api.github.com/repos/ckan/ckanext-harvest/merges","archive_url":"https://api.github.com/repos/ckan/ckanext-harvest/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/ckan/ckanext-harvest/downloads","issues_url":"https://api.github.com/repos/ckan/ckanext-harvest/issues{/number}","pulls_url":"https://api.github.com/repos/ckan/ckanext-harvest/pulls{/number}","milestones_url":"https://api.github.com/repos/ckan/ckanext-harvest/milestones{/number}","notifications_url":"https://api.github.com/repos/ckan/ckanext-harvest/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/ckan/ckanext-harvest/labels{/name}","releases_url":"https://api.github.com/repos/ckan/ckanext-harvest/releases{/id}","created_at":"2011-12-01T11:31:21Z","updated_at":"2015-02-24T09:56:46Z","pushed_at":"2015-02-24T09:56:44Z","git_url":"git://github.com/ckan/ckanext-harvest.git","ssh_url":"git@github.com:ckan/ckanext-harvest.git","clone_url":"https://github.com/ckan/ckanext-harvest.git","svn_url":"https://github.com/ckan/ckanext-harvest","homepage":"","size":2512,"stargazers_count":32,"watchers_count":32,"language":"Python","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":51,"mirror_url":null,"open_issues_count":33,"forks":51,"open_issues":33,"watchers":32,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/ckan/ckanext-harvest/pulls/107"},"html":{"href":"https://github.com/ckan/ckanext-harvest/pull/107"},"issue":{"href":"https://api.github.com/repos/ckan/ckanext-harvest/issues/107"},"comments":{"href":"https://api.github.com/repos/ckan/ckanext-harvest/issues/107/comments"},"review_comments":{"href":"https://api.github.com/repos/ckan/ckanext-harvest/pulls/107/comments"},"review_comment":{"href":"https://api.github.com/repos/ckan/ckanext-harvest/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/ckan/ckanext-harvest/pulls/107/commits"},"statuses":{"href":"https://api.github.com/repos/ckan/ckanext-harvest/statuses/1e0376cff63dc4803ba34e218de5e3c85e224b55"}}}}