{"action":"created","comment":{"url":"https://api.github.com/repos/framgia/Feastival/pulls/comments/129518243","pull_request_review_id":52297200,"id":129518243,"diff_hunk":"@@ -0,0 +1,146 @@\n+let translate = require('counterpart');\n+\n+import * as constant from  '../constant';\n+\n+import update from 'react-addons-update';\n+import axios from 'axios';\n+\n+export default class RestaurantInfo extends React.Component {\n+  constructor(props) {\n+    super(props);\n+    this.state = {\n+      'id': '',\n+      'title': '',\n+      'address': '',\n+      'phonenumber': '',\n+      'website': ''\n+    }\n+  }\n+\n+  getRestaurantInfoById(id) {\n+    axios.get(constant.API_RESTAURANTS_URL + id, constant.headers)\n+      .then(response => {\n+        this.checkNullInfo(response.data.restaurant_info.restaurant)\n+        this.setState({\n+          id: this.props.id,\n+          title: response.data.restaurant_info.restaurant.title,\n+          address: response.data.restaurant_info.restaurant.address,\n+          phonenumber: response.data.restaurant_info.restaurant.phonenumber,\n+          website: response.data.restaurant_info.restaurant.website\n+        })","path":"app/jsx/components/restaurant_info.jsx","position":30,"original_position":30,"commit_id":"27d562604611893cfa53f2f1b04702e4016e73e4","original_commit_id":"27d562604611893cfa53f2f1b04702e4016e73e4","user":{"login":"sangnuce","id":12852873,"avatar_url":"https://avatars3.githubusercontent.com/u/12852873?v=4","gravatar_id":"","url":"https://api.github.com/users/sangnuce","html_url":"https://github.com/sangnuce","followers_url":"https://api.github.com/users/sangnuce/followers","following_url":"https://api.github.com/users/sangnuce/following{/other_user}","gists_url":"https://api.github.com/users/sangnuce/gists{/gist_id}","starred_url":"https://api.github.com/users/sangnuce/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sangnuce/subscriptions","organizations_url":"https://api.github.com/users/sangnuce/orgs","repos_url":"https://api.github.com/users/sangnuce/repos","events_url":"https://api.github.com/users/sangnuce/events{/privacy}","received_events_url":"https://api.github.com/users/sangnuce/received_events","type":"User","site_admin":false},"body":"thêm `;` nha ông","created_at":"2017-07-26T09:04:42Z","updated_at":"2017-07-26T09:10:03Z","html_url":"https://github.com/framgia/Feastival/pull/55#discussion_r129518243","pull_request_url":"https://api.github.com/repos/framgia/Feastival/pulls/55","_links":{"self":{"href":"https://api.github.com/repos/framgia/Feastival/pulls/comments/129518243"},"html":{"href":"https://github.com/framgia/Feastival/pull/55#discussion_r129518243"},"pull_request":{"href":"https://api.github.com/repos/framgia/Feastival/pulls/55"}}},"pull_request":{"url":"https://api.github.com/repos/framgia/Feastival/pulls/55","id":132459194,"html_url":"https://github.com/framgia/Feastival/pull/55","diff_url":"https://github.com/framgia/Feastival/pull/55.diff","patch_url":"https://github.com/framgia/Feastival/pull/55.patch","issue_url":"https://api.github.com/repos/framgia/Feastival/issues/55","number":55,"state":"open","locked":false,"title":"restaurant info update view","user":{"login":"tuananhhedspibk","id":15076665,"avatar_url":"https://avatars0.githubusercontent.com/u/15076665?v=4","gravatar_id":"","url":"https://api.github.com/users/tuananhhedspibk","html_url":"https://github.com/tuananhhedspibk","followers_url":"https://api.github.com/users/tuananhhedspibk/followers","following_url":"https://api.github.com/users/tuananhhedspibk/following{/other_user}","gists_url":"https://api.github.com/users/tuananhhedspibk/gists{/gist_id}","starred_url":"https://api.github.com/users/tuananhhedspibk/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tuananhhedspibk/subscriptions","organizations_url":"https://api.github.com/users/tuananhhedspibk/orgs","repos_url":"https://api.github.com/users/tuananhhedspibk/repos","events_url":"https://api.github.com/users/tuananhhedspibk/events{/privacy}","received_events_url":"https://api.github.com/users/tuananhhedspibk/received_events","type":"User","site_admin":false},"body":"","created_at":"2017-07-26T08:36:50Z","updated_at":"2017-07-26T09:10:03Z","closed_at":null,"merged_at":null,"merge_commit_sha":"1c9bb345972ba6f961c7808251c5e28085d6ca6e","assignee":null,"assignees":[],"requested_reviewers":[],"milestone":null,"commits_url":"https://api.github.com/repos/framgia/Feastival/pulls/55/commits","review_comments_url":"https://api.github.com/repos/framgia/Feastival/pulls/55/comments","review_comment_url":"https://api.github.com/repos/framgia/Feastival/pulls/comments{/number}","comments_url":"https://api.github.com/repos/framgia/Feastival/issues/55/comments","statuses_url":"https://api.github.com/repos/framgia/Feastival/statuses/27d562604611893cfa53f2f1b04702e4016e73e4","head":{"label":"tuananhhedspibk:working1","ref":"working1","sha":"27d562604611893cfa53f2f1b04702e4016e73e4","user":{"login":"tuananhhedspibk","id":15076665,"avatar_url":"https://avatars0.githubusercontent.com/u/15076665?v=4","gravatar_id":"","url":"https://api.github.com/users/tuananhhedspibk","html_url":"https://github.com/tuananhhedspibk","followers_url":"https://api.github.com/users/tuananhhedspibk/followers","following_url":"https://api.github.com/users/tuananhhedspibk/following{/other_user}","gists_url":"https://api.github.com/users/tuananhhedspibk/gists{/gist_id}","starred_url":"https://api.github.com/users/tuananhhedspibk/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tuananhhedspibk/subscriptions","organizations_url":"https://api.github.com/users/tuananhhedspibk/orgs","repos_url":"https://api.github.com/users/tuananhhedspibk/repos","events_url":"https://api.github.com/users/tuananhhedspibk/events{/privacy}","received_events_url":"https://api.github.com/users/tuananhhedspibk/received_events","type":"User","site_admin":false},"repo":{"id":96851192,"name":"Feastival","full_name":"tuananhhedspibk/Feastival","owner":{"login":"tuananhhedspibk","id":15076665,"avatar_url":"https://avatars0.githubusercontent.com/u/15076665?v=4","gravatar_id":"","url":"https://api.github.com/users/tuananhhedspibk","html_url":"https://github.com/tuananhhedspibk","followers_url":"https://api.github.com/users/tuananhhedspibk/followers","following_url":"https://api.github.com/users/tuananhhedspibk/following{/other_user}","gists_url":"https://api.github.com/users/tuananhhedspibk/gists{/gist_id}","starred_url":"https://api.github.com/users/tuananhhedspibk/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tuananhhedspibk/subscriptions","organizations_url":"https://api.github.com/users/tuananhhedspibk/orgs","repos_url":"https://api.github.com/users/tuananhhedspibk/repos","events_url":"https://api.github.com/users/tuananhhedspibk/events{/privacy}","received_events_url":"https://api.github.com/users/tuananhhedspibk/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/tuananhhedspibk/Feastival","description":"Feastival (Training Project)","fork":true,"url":"https://api.github.com/repos/tuananhhedspibk/Feastival","forks_url":"https://api.github.com/repos/tuananhhedspibk/Feastival/forks","keys_url":"https://api.github.com/repos/tuananhhedspibk/Feastival/keys{/key_id}","collaborators_url":"https://api.github.com/repos/tuananhhedspibk/Feastival/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/tuananhhedspibk/Feastival/teams","hooks_url":"https://api.github.com/repos/tuananhhedspibk/Feastival/hooks","issue_events_url":"https://api.github.com/repos/tuananhhedspibk/Feastival/issues/events{/number}","events_url":"https://api.github.com/repos/tuananhhedspibk/Feastival/events","assignees_url":"https://api.github.com/repos/tuananhhedspibk/Feastival/assignees{/user}","branches_url":"https://api.github.com/repos/tuananhhedspibk/Feastival/branches{/branch}","tags_url":"https://api.github.com/repos/tuananhhedspibk/Feastival/tags","blobs_url":"https://api.github.com/repos/tuananhhedspibk/Feastival/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/tuananhhedspibk/Feastival/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/tuananhhedspibk/Feastival/git/refs{/sha}","trees_url":"https://api.github.com/repos/tuananhhedspibk/Feastival/git/trees{/sha}","statuses_url":"https://api.github.com/repos/tuananhhedspibk/Feastival/statuses/{sha}","languages_url":"https://api.github.com/repos/tuananhhedspibk/Feastival/languages","stargazers_url":"https://api.github.com/repos/tuananhhedspibk/Feastival/stargazers","contributors_url":"https://api.github.com/repos/tuananhhedspibk/Feastival/contributors","subscribers_url":"https://api.github.com/repos/tuananhhedspibk/Feastival/subscribers","subscription_url":"https://api.github.com/repos/tuananhhedspibk/Feastival/subscription","commits_url":"https://api.github.com/repos/tuananhhedspibk/Feastival/commits{/sha}","git_commits_url":"https://api.github.com/repos/tuananhhedspibk/Feastival/git/commits{/sha}","comments_url":"https://api.github.com/repos/tuananhhedspibk/Feastival/comments{/number}","issue_comment_url":"https://api.github.com/repos/tuananhhedspibk/Feastival/issues/comments{/number}","contents_url":"https://api.github.com/repos/tuananhhedspibk/Feastival/contents/{+path}","compare_url":"https://api.github.com/repos/tuananhhedspibk/Feastival/compare/{base}...{head}","merges_url":"https://api.github.com/repos/tuananhhedspibk/Feastival/merges","archive_url":"https://api.github.com/repos/tuananhhedspibk/Feastival/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/tuananhhedspibk/Feastival/downloads","issues_url":"https://api.github.com/repos/tuananhhedspibk/Feastival/issues{/number}","pulls_url":"https://api.github.com/repos/tuananhhedspibk/Feastival/pulls{/number}","milestones_url":"https://api.github.com/repos/tuananhhedspibk/Feastival/milestones{/number}","notifications_url":"https://api.github.com/repos/tuananhhedspibk/Feastival/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/tuananhhedspibk/Feastival/labels{/name}","releases_url":"https://api.github.com/repos/tuananhhedspibk/Feastival/releases{/id}","deployments_url":"https://api.github.com/repos/tuananhhedspibk/Feastival/deployments","created_at":"2017-07-11T04:38:18Z","updated_at":"2017-06-12T03:18:22Z","pushed_at":"2017-07-26T08:36:20Z","git_url":"git://github.com/tuananhhedspibk/Feastival.git","ssh_url":"git@github.com:tuananhhedspibk/Feastival.git","clone_url":"https://github.com/tuananhhedspibk/Feastival.git","svn_url":"https://github.com/tuananhhedspibk/Feastival","homepage":null,"size":3148,"stargazers_count":0,"watchers_count":0,"language":null,"has_issues":false,"has_projects":true,"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":"framgia:rebuild","ref":"rebuild","sha":"dbc9118505b3343dc4b2f01dae7a7184b1191940","user":{"login":"framgia","id":2322183,"avatar_url":"https://avatars3.githubusercontent.com/u/2322183?v=4","gravatar_id":"","url":"https://api.github.com/users/framgia","html_url":"https://github.com/framgia","followers_url":"https://api.github.com/users/framgia/followers","following_url":"https://api.github.com/users/framgia/following{/other_user}","gists_url":"https://api.github.com/users/framgia/gists{/gist_id}","starred_url":"https://api.github.com/users/framgia/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/framgia/subscriptions","organizations_url":"https://api.github.com/users/framgia/orgs","repos_url":"https://api.github.com/users/framgia/repos","events_url":"https://api.github.com/users/framgia/events{/privacy}","received_events_url":"https://api.github.com/users/framgia/received_events","type":"Organization","site_admin":false},"repo":{"id":90611630,"name":"Feastival","full_name":"framgia/Feastival","owner":{"login":"framgia","id":2322183,"avatar_url":"https://avatars3.githubusercontent.com/u/2322183?v=4","gravatar_id":"","url":"https://api.github.com/users/framgia","html_url":"https://github.com/framgia","followers_url":"https://api.github.com/users/framgia/followers","following_url":"https://api.github.com/users/framgia/following{/other_user}","gists_url":"https://api.github.com/users/framgia/gists{/gist_id}","starred_url":"https://api.github.com/users/framgia/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/framgia/subscriptions","organizations_url":"https://api.github.com/users/framgia/orgs","repos_url":"https://api.github.com/users/framgia/repos","events_url":"https://api.github.com/users/framgia/events{/privacy}","received_events_url":"https://api.github.com/users/framgia/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/framgia/Feastival","description":"Feastival (Training Project)","fork":false,"url":"https://api.github.com/repos/framgia/Feastival","forks_url":"https://api.github.com/repos/framgia/Feastival/forks","keys_url":"https://api.github.com/repos/framgia/Feastival/keys{/key_id}","collaborators_url":"https://api.github.com/repos/framgia/Feastival/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/framgia/Feastival/teams","hooks_url":"https://api.github.com/repos/framgia/Feastival/hooks","issue_events_url":"https://api.github.com/repos/framgia/Feastival/issues/events{/number}","events_url":"https://api.github.com/repos/framgia/Feastival/events","assignees_url":"https://api.github.com/repos/framgia/Feastival/assignees{/user}","branches_url":"https://api.github.com/repos/framgia/Feastival/branches{/branch}","tags_url":"https://api.github.com/repos/framgia/Feastival/tags","blobs_url":"https://api.github.com/repos/framgia/Feastival/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/framgia/Feastival/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/framgia/Feastival/git/refs{/sha}","trees_url":"https://api.github.com/repos/framgia/Feastival/git/trees{/sha}","statuses_url":"https://api.github.com/repos/framgia/Feastival/statuses/{sha}","languages_url":"https://api.github.com/repos/framgia/Feastival/languages","stargazers_url":"https://api.github.com/repos/framgia/Feastival/stargazers","contributors_url":"https://api.github.com/repos/framgia/Feastival/contributors","subscribers_url":"https://api.github.com/repos/framgia/Feastival/subscribers","subscription_url":"https://api.github.com/repos/framgia/Feastival/subscription","commits_url":"https://api.github.com/repos/framgia/Feastival/commits{/sha}","git_commits_url":"https://api.github.com/repos/framgia/Feastival/git/commits{/sha}","comments_url":"https://api.github.com/repos/framgia/Feastival/comments{/number}","issue_comment_url":"https://api.github.com/repos/framgia/Feastival/issues/comments{/number}","contents_url":"https://api.github.com/repos/framgia/Feastival/contents/{+path}","compare_url":"https://api.github.com/repos/framgia/Feastival/compare/{base}...{head}","merges_url":"https://api.github.com/repos/framgia/Feastival/merges","archive_url":"https://api.github.com/repos/framgia/Feastival/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/framgia/Feastival/downloads","issues_url":"https://api.github.com/repos/framgia/Feastival/issues{/number}","pulls_url":"https://api.github.com/repos/framgia/Feastival/pulls{/number}","milestones_url":"https://api.github.com/repos/framgia/Feastival/milestones{/number}","notifications_url":"https://api.github.com/repos/framgia/Feastival/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/framgia/Feastival/labels{/name}","releases_url":"https://api.github.com/repos/framgia/Feastival/releases{/id}","deployments_url":"https://api.github.com/repos/framgia/Feastival/deployments","created_at":"2017-05-08T09:41:29Z","updated_at":"2017-06-12T03:18:22Z","pushed_at":"2017-07-26T08:36:51Z","git_url":"git://github.com/framgia/Feastival.git","ssh_url":"git@github.com:framgia/Feastival.git","clone_url":"https://github.com/framgia/Feastival.git","svn_url":"https://github.com/framgia/Feastival","homepage":null,"size":3147,"stargazers_count":0,"watchers_count":0,"language":null,"has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":6,"mirror_url":null,"open_issues_count":1,"forks":6,"open_issues":1,"watchers":0,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/framgia/Feastival/pulls/55"},"html":{"href":"https://github.com/framgia/Feastival/pull/55"},"issue":{"href":"https://api.github.com/repos/framgia/Feastival/issues/55"},"comments":{"href":"https://api.github.com/repos/framgia/Feastival/issues/55/comments"},"review_comments":{"href":"https://api.github.com/repos/framgia/Feastival/pulls/55/comments"},"review_comment":{"href":"https://api.github.com/repos/framgia/Feastival/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/framgia/Feastival/pulls/55/commits"},"statuses":{"href":"https://api.github.com/repos/framgia/Feastival/statuses/27d562604611893cfa53f2f1b04702e4016e73e4"}}}}
{"actor":{"display_login":"sangnuce"}}