{"action":"created","issue":{"url":"https://api.github.com/repos/yahoo/elide/issues/517","repository_url":"https://api.github.com/repos/yahoo/elide","labels_url":"https://api.github.com/repos/yahoo/elide/issues/517/labels{/name}","comments_url":"https://api.github.com/repos/yahoo/elide/issues/517/comments","events_url":"https://api.github.com/repos/yahoo/elide/issues/517/events","html_url":"https://github.com/yahoo/elide/pull/517","id":252322407,"number":517,"title":"Fix id with upsert","user":{"login":"javeria2","id":16950123,"avatar_url":"https://avatars2.githubusercontent.com/u/16950123?v=4","gravatar_id":"","url":"https://api.github.com/users/javeria2","html_url":"https://github.com/javeria2","followers_url":"https://api.github.com/users/javeria2/followers","following_url":"https://api.github.com/users/javeria2/following{/other_user}","gists_url":"https://api.github.com/users/javeria2/gists{/gist_id}","starred_url":"https://api.github.com/users/javeria2/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/javeria2/subscriptions","organizations_url":"https://api.github.com/users/javeria2/orgs","repos_url":"https://api.github.com/users/javeria2/repos","events_url":"https://api.github.com/users/javeria2/events{/privacy}","received_events_url":"https://api.github.com/users/javeria2/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2017-08-23T15:23:24Z","updated_at":"2017-08-23T15:39:52Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/yahoo/elide/pulls/517","html_url":"https://github.com/yahoo/elide/pull/517","diff_url":"https://github.com/yahoo/elide/pull/517.diff","patch_url":"https://github.com/yahoo/elide/pull/517.patch"},"body":"Change flow from this - \r\n```\r\nif(id not present) {\r\n  attachId();\r\n}\r\nif(fetchObject() == null) {\r\n  createObject();\r\n} else {\r\n  updateObject();\r\n}\r\n```\r\nto this - \r\n```\r\nif(id not present) {\r\n  createObject();\r\n} else {\r\n  if(fetchObject() == null) {\r\n    createObject();\r\n  } \r\n}\r\nupdateObject();\r\n```"},"comment":{"url":"https://api.github.com/repos/yahoo/elide/issues/comments/324375851","html_url":"https://github.com/yahoo/elide/pull/517#issuecomment-324375851","issue_url":"https://api.github.com/repos/yahoo/elide/issues/517","id":324375851,"user":{"login":"codacy-bot","id":19940114,"avatar_url":"https://avatars1.githubusercontent.com/u/19940114?v=4","gravatar_id":"","url":"https://api.github.com/users/codacy-bot","html_url":"https://github.com/codacy-bot","followers_url":"https://api.github.com/users/codacy-bot/followers","following_url":"https://api.github.com/users/codacy-bot/following{/other_user}","gists_url":"https://api.github.com/users/codacy-bot/gists{/gist_id}","starred_url":"https://api.github.com/users/codacy-bot/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/codacy-bot/subscriptions","organizations_url":"https://api.github.com/users/codacy-bot/orgs","repos_url":"https://api.github.com/users/codacy-bot/repos","events_url":"https://api.github.com/users/codacy-bot/events{/privacy}","received_events_url":"https://api.github.com/users/codacy-bot/received_events","type":"User","site_admin":false},"created_at":"2017-08-23T15:39:52Z","updated_at":"2017-08-23T15:39:52Z","body":"\n![Codacy](https://www.codacy.com/assets/images/favicon.png) Here is an overview of what got changed by this pull request:\n\n\n```diff\n\nIssues\n======\n+ Solved 1\n           \n```\n\n\nSee the complete overview on [Codacy](https://www.codacy.com/app/Elide/elide/pullRequest?prid=861937&bid=5167911)\n        "}}
{"actor":{"display_login":"codacy-bot"}}