{"action":"created","comment":{"url":"https://api.github.com/repos/ozwillo/ozwillo-dc-exporter/pulls/comments/207219149","pull_request_review_id":142784549,"id":207219149,"node_id":"MDI0OlB1bGxSZXF1ZXN0UmV2aWV3Q29tbWVudDIwNzIxOTE0OQ==","diff_hunk":"@@ -227,7 +228,10 @@ class Dataset extends React.Component {\n                 {renderIf(this.state.message)(\n                     <Alert message={ t(this.state.message) } success={this.state.success} closeMethod={this.closeNotif}/>\n                 )}\n-                <Form id=\"dataset-form\" onSubmit={(e) => this.registerDataset(e, this.state.fields)}>\n+                <Form id=\"dataset-form\" onSubmit={(e) => { \n+                                                    if (this.state.mode == 'create') this.registerDataset(e, this.state.fields); \n+                                                    else this.updateDataset(e, this.state.fields);\n+                                                 }}>","path":"src/main/resources/public/jsx/Dataset.jsx","position":18,"original_position":18,"commit_id":"17e398d2744539ee5000cc2ec7127c13154df3c0","original_commit_id":"17e398d2744539ee5000cc2ec7127c13154df3c0","user":{"login":"geraldgole","id":16190653,"node_id":"MDQ6VXNlcjE2MTkwNjUz","avatar_url":"https://avatars0.githubusercontent.com/u/16190653?v=4","gravatar_id":"","url":"https://api.github.com/users/geraldgole","html_url":"https://github.com/geraldgole","followers_url":"https://api.github.com/users/geraldgole/followers","following_url":"https://api.github.com/users/geraldgole/following{/other_user}","gists_url":"https://api.github.com/users/geraldgole/gists{/gist_id}","starred_url":"https://api.github.com/users/geraldgole/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/geraldgole/subscriptions","organizations_url":"https://api.github.com/users/geraldgole/orgs","repos_url":"https://api.github.com/users/geraldgole/repos","events_url":"https://api.github.com/users/geraldgole/events{/privacy}","received_events_url":"https://api.github.com/users/geraldgole/received_events","type":"User","site_admin":false},"body":"`updateDataset` method was never called => the bug","created_at":"2018-08-02T13:10:43Z","updated_at":"2018-08-02T13:10:43Z","html_url":"https://github.com/ozwillo/ozwillo-dc-exporter/pull/138#discussion_r207219149","pull_request_url":"https://api.github.com/repos/ozwillo/ozwillo-dc-exporter/pulls/138","author_association":"COLLABORATOR","_links":{"self":{"href":"https://api.github.com/repos/ozwillo/ozwillo-dc-exporter/pulls/comments/207219149"},"html":{"href":"https://github.com/ozwillo/ozwillo-dc-exporter/pull/138#discussion_r207219149"},"pull_request":{"href":"https://api.github.com/repos/ozwillo/ozwillo-dc-exporter/pulls/138"}}},"pull_request":{"url":"https://api.github.com/repos/ozwillo/ozwillo-dc-exporter/pulls/138","id":205725482,"node_id":"MDExOlB1bGxSZXF1ZXN0MjA1NzI1NDgy","html_url":"https://github.com/ozwillo/ozwillo-dc-exporter/pull/138","diff_url":"https://github.com/ozwillo/ozwillo-dc-exporter/pull/138.diff","patch_url":"https://github.com/ozwillo/ozwillo-dc-exporter/pull/138.patch","issue_url":"https://api.github.com/repos/ozwillo/ozwillo-dc-exporter/issues/138","number":138,"state":"open","locked":false,"title":"Avoid creating a new dataset when during resource update","user":{"login":"geraldgole","id":16190653,"node_id":"MDQ6VXNlcjE2MTkwNjUz","avatar_url":"https://avatars0.githubusercontent.com/u/16190653?v=4","gravatar_id":"","url":"https://api.github.com/users/geraldgole","html_url":"https://github.com/geraldgole","followers_url":"https://api.github.com/users/geraldgole/followers","following_url":"https://api.github.com/users/geraldgole/following{/other_user}","gists_url":"https://api.github.com/users/geraldgole/gists{/gist_id}","starred_url":"https://api.github.com/users/geraldgole/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/geraldgole/subscriptions","organizations_url":"https://api.github.com/users/geraldgole/orgs","repos_url":"https://api.github.com/users/geraldgole/repos","events_url":"https://api.github.com/users/geraldgole/events{/privacy}","received_events_url":"https://api.github.com/users/geraldgole/received_events","type":"User","site_admin":false},"body":"","created_at":"2018-08-02T12:57:45Z","updated_at":"2018-08-02T13:10:43Z","closed_at":null,"merged_at":null,"merge_commit_sha":"e411a2fb8da95a9411d9aae5285e99a5c8ec34e0","assignee":{"login":"bobeal","id":175382,"node_id":"MDQ6VXNlcjE3NTM4Mg==","avatar_url":"https://avatars0.githubusercontent.com/u/175382?v=4","gravatar_id":"","url":"https://api.github.com/users/bobeal","html_url":"https://github.com/bobeal","followers_url":"https://api.github.com/users/bobeal/followers","following_url":"https://api.github.com/users/bobeal/following{/other_user}","gists_url":"https://api.github.com/users/bobeal/gists{/gist_id}","starred_url":"https://api.github.com/users/bobeal/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bobeal/subscriptions","organizations_url":"https://api.github.com/users/bobeal/orgs","repos_url":"https://api.github.com/users/bobeal/repos","events_url":"https://api.github.com/users/bobeal/events{/privacy}","received_events_url":"https://api.github.com/users/bobeal/received_events","type":"User","site_admin":false},"assignees":[{"login":"bobeal","id":175382,"node_id":"MDQ6VXNlcjE3NTM4Mg==","avatar_url":"https://avatars0.githubusercontent.com/u/175382?v=4","gravatar_id":"","url":"https://api.github.com/users/bobeal","html_url":"https://github.com/bobeal","followers_url":"https://api.github.com/users/bobeal/followers","following_url":"https://api.github.com/users/bobeal/following{/other_user}","gists_url":"https://api.github.com/users/bobeal/gists{/gist_id}","starred_url":"https://api.github.com/users/bobeal/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bobeal/subscriptions","organizations_url":"https://api.github.com/users/bobeal/orgs","repos_url":"https://api.github.com/users/bobeal/repos","events_url":"https://api.github.com/users/bobeal/events{/privacy}","received_events_url":"https://api.github.com/users/bobeal/received_events","type":"User","site_admin":false}],"requested_reviewers":[],"requested_teams":[],"labels":[],"milestone":null,"commits_url":"https://api.github.com/repos/ozwillo/ozwillo-dc-exporter/pulls/138/commits","review_comments_url":"https://api.github.com/repos/ozwillo/ozwillo-dc-exporter/pulls/138/comments","review_comment_url":"https://api.github.com/repos/ozwillo/ozwillo-dc-exporter/pulls/comments{/number}","comments_url":"https://api.github.com/repos/ozwillo/ozwillo-dc-exporter/issues/138/comments","statuses_url":"https://api.github.com/repos/ozwillo/ozwillo-dc-exporter/statuses/17e398d2744539ee5000cc2ec7127c13154df3c0","head":{"label":"SICTIAM:feature/132-Update-of-an-existing-dataset-creates-a-new-one","ref":"feature/132-Update-of-an-existing-dataset-creates-a-new-one","sha":"17e398d2744539ee5000cc2ec7127c13154df3c0","user":{"login":"SICTIAM","id":25665047,"node_id":"MDEyOk9yZ2FuaXphdGlvbjI1NjY1MDQ3","avatar_url":"https://avatars2.githubusercontent.com/u/25665047?v=4","gravatar_id":"","url":"https://api.github.com/users/SICTIAM","html_url":"https://github.com/SICTIAM","followers_url":"https://api.github.com/users/SICTIAM/followers","following_url":"https://api.github.com/users/SICTIAM/following{/other_user}","gists_url":"https://api.github.com/users/SICTIAM/gists{/gist_id}","starred_url":"https://api.github.com/users/SICTIAM/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/SICTIAM/subscriptions","organizations_url":"https://api.github.com/users/SICTIAM/orgs","repos_url":"https://api.github.com/users/SICTIAM/repos","events_url":"https://api.github.com/users/SICTIAM/events{/privacy}","received_events_url":"https://api.github.com/users/SICTIAM/received_events","type":"Organization","site_admin":false},"repo":{"id":82529173,"node_id":"MDEwOlJlcG9zaXRvcnk4MjUyOTE3Mw==","name":"ozwillo-dc-exporter","full_name":"SICTIAM/ozwillo-dc-exporter","owner":{"login":"SICTIAM","id":25665047,"node_id":"MDEyOk9yZ2FuaXphdGlvbjI1NjY1MDQ3","avatar_url":"https://avatars2.githubusercontent.com/u/25665047?v=4","gravatar_id":"","url":"https://api.github.com/users/SICTIAM","html_url":"https://github.com/SICTIAM","followers_url":"https://api.github.com/users/SICTIAM/followers","following_url":"https://api.github.com/users/SICTIAM/following{/other_user}","gists_url":"https://api.github.com/users/SICTIAM/gists{/gist_id}","starred_url":"https://api.github.com/users/SICTIAM/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/SICTIAM/subscriptions","organizations_url":"https://api.github.com/users/SICTIAM/orgs","repos_url":"https://api.github.com/users/SICTIAM/repos","events_url":"https://api.github.com/users/SICTIAM/events{/privacy}","received_events_url":"https://api.github.com/users/SICTIAM/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/SICTIAM/ozwillo-dc-exporter","description":"Publish DC resources to a CKAN instance","fork":true,"url":"https://api.github.com/repos/SICTIAM/ozwillo-dc-exporter","forks_url":"https://api.github.com/repos/SICTIAM/ozwillo-dc-exporter/forks","keys_url":"https://api.github.com/repos/SICTIAM/ozwillo-dc-exporter/keys{/key_id}","collaborators_url":"https://api.github.com/repos/SICTIAM/ozwillo-dc-exporter/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/SICTIAM/ozwillo-dc-exporter/teams","hooks_url":"https://api.github.com/repos/SICTIAM/ozwillo-dc-exporter/hooks","issue_events_url":"https://api.github.com/repos/SICTIAM/ozwillo-dc-exporter/issues/events{/number}","events_url":"https://api.github.com/repos/SICTIAM/ozwillo-dc-exporter/events","assignees_url":"https://api.github.com/repos/SICTIAM/ozwillo-dc-exporter/assignees{/user}","branches_url":"https://api.github.com/repos/SICTIAM/ozwillo-dc-exporter/branches{/branch}","tags_url":"https://api.github.com/repos/SICTIAM/ozwillo-dc-exporter/tags","blobs_url":"https://api.github.com/repos/SICTIAM/ozwillo-dc-exporter/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/SICTIAM/ozwillo-dc-exporter/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/SICTIAM/ozwillo-dc-exporter/git/refs{/sha}","trees_url":"https://api.github.com/repos/SICTIAM/ozwillo-dc-exporter/git/trees{/sha}","statuses_url":"https://api.github.com/repos/SICTIAM/ozwillo-dc-exporter/statuses/{sha}","languages_url":"https://api.github.com/repos/SICTIAM/ozwillo-dc-exporter/languages","stargazers_url":"https://api.github.com/repos/SICTIAM/ozwillo-dc-exporter/stargazers","contributors_url":"https://api.github.com/repos/SICTIAM/ozwillo-dc-exporter/contributors","subscribers_url":"https://api.github.com/repos/SICTIAM/ozwillo-dc-exporter/subscribers","subscription_url":"https://api.github.com/repos/SICTIAM/ozwillo-dc-exporter/subscription","commits_url":"https://api.github.com/repos/SICTIAM/ozwillo-dc-exporter/commits{/sha}","git_commits_url":"https://api.github.com/repos/SICTIAM/ozwillo-dc-exporter/git/commits{/sha}","comments_url":"https://api.github.com/repos/SICTIAM/ozwillo-dc-exporter/comments{/number}","issue_comment_url":"https://api.github.com/repos/SICTIAM/ozwillo-dc-exporter/issues/comments{/number}","contents_url":"https://api.github.com/repos/SICTIAM/ozwillo-dc-exporter/contents/{+path}","compare_url":"https://api.github.com/repos/SICTIAM/ozwillo-dc-exporter/compare/{base}...{head}","merges_url":"https://api.github.com/repos/SICTIAM/ozwillo-dc-exporter/merges","archive_url":"https://api.github.com/repos/SICTIAM/ozwillo-dc-exporter/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/SICTIAM/ozwillo-dc-exporter/downloads","issues_url":"https://api.github.com/repos/SICTIAM/ozwillo-dc-exporter/issues{/number}","pulls_url":"https://api.github.com/repos/SICTIAM/ozwillo-dc-exporter/pulls{/number}","milestones_url":"https://api.github.com/repos/SICTIAM/ozwillo-dc-exporter/milestones{/number}","notifications_url":"https://api.github.com/repos/SICTIAM/ozwillo-dc-exporter/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/SICTIAM/ozwillo-dc-exporter/labels{/name}","releases_url":"https://api.github.com/repos/SICTIAM/ozwillo-dc-exporter/releases{/id}","deployments_url":"https://api.github.com/repos/SICTIAM/ozwillo-dc-exporter/deployments","created_at":"2017-02-20T07:28:02Z","updated_at":"2018-08-01T12:15:29Z","pushed_at":"2018-08-02T12:49:04Z","git_url":"git://github.com/SICTIAM/ozwillo-dc-exporter.git","ssh_url":"git@github.com:SICTIAM/ozwillo-dc-exporter.git","clone_url":"https://github.com/SICTIAM/ozwillo-dc-exporter.git","svn_url":"https://github.com/SICTIAM/ozwillo-dc-exporter","homepage":"","size":508,"stargazers_count":0,"watchers_count":0,"language":"CSS","has_issues":false,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"archived":false,"open_issues_count":0,"license":null,"forks":0,"open_issues":0,"watchers":0,"default_branch":"develop"}},"base":{"label":"ozwillo:develop","ref":"develop","sha":"b325b3e6718774ca01a74e7618c53e98eae1113e","user":{"login":"ozwillo","id":9085702,"node_id":"MDEyOk9yZ2FuaXphdGlvbjkwODU3MDI=","avatar_url":"https://avatars0.githubusercontent.com/u/9085702?v=4","gravatar_id":"","url":"https://api.github.com/users/ozwillo","html_url":"https://github.com/ozwillo","followers_url":"https://api.github.com/users/ozwillo/followers","following_url":"https://api.github.com/users/ozwillo/following{/other_user}","gists_url":"https://api.github.com/users/ozwillo/gists{/gist_id}","starred_url":"https://api.github.com/users/ozwillo/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ozwillo/subscriptions","organizations_url":"https://api.github.com/users/ozwillo/orgs","repos_url":"https://api.github.com/users/ozwillo/repos","events_url":"https://api.github.com/users/ozwillo/events{/privacy}","received_events_url":"https://api.github.com/users/ozwillo/received_events","type":"Organization","site_admin":false},"repo":{"id":56616541,"node_id":"MDEwOlJlcG9zaXRvcnk1NjYxNjU0MQ==","name":"ozwillo-dc-exporter","full_name":"ozwillo/ozwillo-dc-exporter","owner":{"login":"ozwillo","id":9085702,"node_id":"MDEyOk9yZ2FuaXphdGlvbjkwODU3MDI=","avatar_url":"https://avatars0.githubusercontent.com/u/9085702?v=4","gravatar_id":"","url":"https://api.github.com/users/ozwillo","html_url":"https://github.com/ozwillo","followers_url":"https://api.github.com/users/ozwillo/followers","following_url":"https://api.github.com/users/ozwillo/following{/other_user}","gists_url":"https://api.github.com/users/ozwillo/gists{/gist_id}","starred_url":"https://api.github.com/users/ozwillo/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ozwillo/subscriptions","organizations_url":"https://api.github.com/users/ozwillo/orgs","repos_url":"https://api.github.com/users/ozwillo/repos","events_url":"https://api.github.com/users/ozwillo/events{/privacy}","received_events_url":"https://api.github.com/users/ozwillo/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/ozwillo/ozwillo-dc-exporter","description":"Publish DC resources to a CKAN instance","fork":false,"url":"https://api.github.com/repos/ozwillo/ozwillo-dc-exporter","forks_url":"https://api.github.com/repos/ozwillo/ozwillo-dc-exporter/forks","keys_url":"https://api.github.com/repos/ozwillo/ozwillo-dc-exporter/keys{/key_id}","collaborators_url":"https://api.github.com/repos/ozwillo/ozwillo-dc-exporter/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/ozwillo/ozwillo-dc-exporter/teams","hooks_url":"https://api.github.com/repos/ozwillo/ozwillo-dc-exporter/hooks","issue_events_url":"https://api.github.com/repos/ozwillo/ozwillo-dc-exporter/issues/events{/number}","events_url":"https://api.github.com/repos/ozwillo/ozwillo-dc-exporter/events","assignees_url":"https://api.github.com/repos/ozwillo/ozwillo-dc-exporter/assignees{/user}","branches_url":"https://api.github.com/repos/ozwillo/ozwillo-dc-exporter/branches{/branch}","tags_url":"https://api.github.com/repos/ozwillo/ozwillo-dc-exporter/tags","blobs_url":"https://api.github.com/repos/ozwillo/ozwillo-dc-exporter/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/ozwillo/ozwillo-dc-exporter/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/ozwillo/ozwillo-dc-exporter/git/refs{/sha}","trees_url":"https://api.github.com/repos/ozwillo/ozwillo-dc-exporter/git/trees{/sha}","statuses_url":"https://api.github.com/repos/ozwillo/ozwillo-dc-exporter/statuses/{sha}","languages_url":"https://api.github.com/repos/ozwillo/ozwillo-dc-exporter/languages","stargazers_url":"https://api.github.com/repos/ozwillo/ozwillo-dc-exporter/stargazers","contributors_url":"https://api.github.com/repos/ozwillo/ozwillo-dc-exporter/contributors","subscribers_url":"https://api.github.com/repos/ozwillo/ozwillo-dc-exporter/subscribers","subscription_url":"https://api.github.com/repos/ozwillo/ozwillo-dc-exporter/subscription","commits_url":"https://api.github.com/repos/ozwillo/ozwillo-dc-exporter/commits{/sha}","git_commits_url":"https://api.github.com/repos/ozwillo/ozwillo-dc-exporter/git/commits{/sha}","comments_url":"https://api.github.com/repos/ozwillo/ozwillo-dc-exporter/comments{/number}","issue_comment_url":"https://api.github.com/repos/ozwillo/ozwillo-dc-exporter/issues/comments{/number}","contents_url":"https://api.github.com/repos/ozwillo/ozwillo-dc-exporter/contents/{+path}","compare_url":"https://api.github.com/repos/ozwillo/ozwillo-dc-exporter/compare/{base}...{head}","merges_url":"https://api.github.com/repos/ozwillo/ozwillo-dc-exporter/merges","archive_url":"https://api.github.com/repos/ozwillo/ozwillo-dc-exporter/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/ozwillo/ozwillo-dc-exporter/downloads","issues_url":"https://api.github.com/repos/ozwillo/ozwillo-dc-exporter/issues{/number}","pulls_url":"https://api.github.com/repos/ozwillo/ozwillo-dc-exporter/pulls{/number}","milestones_url":"https://api.github.com/repos/ozwillo/ozwillo-dc-exporter/milestones{/number}","notifications_url":"https://api.github.com/repos/ozwillo/ozwillo-dc-exporter/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/ozwillo/ozwillo-dc-exporter/labels{/name}","releases_url":"https://api.github.com/repos/ozwillo/ozwillo-dc-exporter/releases{/id}","deployments_url":"https://api.github.com/repos/ozwillo/ozwillo-dc-exporter/deployments","created_at":"2016-04-19T17:14:31Z","updated_at":"2017-07-03T09:15:01Z","pushed_at":"2018-08-02T12:57:47Z","git_url":"git://github.com/ozwillo/ozwillo-dc-exporter.git","ssh_url":"git@github.com:ozwillo/ozwillo-dc-exporter.git","clone_url":"https://github.com/ozwillo/ozwillo-dc-exporter.git","svn_url":"https://github.com/ozwillo/ozwillo-dc-exporter","homepage":"","size":505,"stargazers_count":2,"watchers_count":2,"language":"Java","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":2,"mirror_url":null,"archived":false,"open_issues_count":27,"license":null,"forks":2,"open_issues":27,"watchers":2,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/ozwillo/ozwillo-dc-exporter/pulls/138"},"html":{"href":"https://github.com/ozwillo/ozwillo-dc-exporter/pull/138"},"issue":{"href":"https://api.github.com/repos/ozwillo/ozwillo-dc-exporter/issues/138"},"comments":{"href":"https://api.github.com/repos/ozwillo/ozwillo-dc-exporter/issues/138/comments"},"review_comments":{"href":"https://api.github.com/repos/ozwillo/ozwillo-dc-exporter/pulls/138/comments"},"review_comment":{"href":"https://api.github.com/repos/ozwillo/ozwillo-dc-exporter/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/ozwillo/ozwillo-dc-exporter/pulls/138/commits"},"statuses":{"href":"https://api.github.com/repos/ozwillo/ozwillo-dc-exporter/statuses/17e398d2744539ee5000cc2ec7127c13154df3c0"}},"author_association":"COLLABORATOR"}}
{"actor":{"display_login":"geraldgole"}}