{"action":"created","comment":{"url":"https://api.github.com/repos/A-Maze/pcbuilder-webapp/pulls/comments/46842909","id":46842909,"diff_hunk":"@@ -7,7 +7,7 @@ def get_components_structure\n     @components = JSON.parse(result)['categories']\n \n     @components.each_with_index do |component, index|\n-        @components[index]['product_schema'] = JSON.parse(component['product_schema'])\n+        @components[index]['product_schema'] = {\"type\": ['ssd', 'hdd'],\"size\": ['250gb', '500gb', '1tb']} # temporarily json object (mock)","path":"app/controllers/home_controller.rb","position":5,"original_position":5,"commit_id":"cc509279c868d4d1f6305079ab6893f17f757d62","original_commit_id":"cc509279c868d4d1f6305079ab6893f17f757d62","user":{"login":"Melloww","id":5303534,"avatar_url":"https://avatars.githubusercontent.com/u/5303534?v=3","gravatar_id":"","url":"https://api.github.com/users/Melloww","html_url":"https://github.com/Melloww","followers_url":"https://api.github.com/users/Melloww/followers","following_url":"https://api.github.com/users/Melloww/following{/other_user}","gists_url":"https://api.github.com/users/Melloww/gists{/gist_id}","starred_url":"https://api.github.com/users/Melloww/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Melloww/subscriptions","organizations_url":"https://api.github.com/users/Melloww/orgs","repos_url":"https://api.github.com/users/Melloww/repos","events_url":"https://api.github.com/users/Melloww/events{/privacy}","received_events_url":"https://api.github.com/users/Melloww/received_events","type":"User","site_admin":false},"body":"Can we rename `product_schema` to something else? `product_values` or something? Product schema is the json schema in the database that defines the product.","created_at":"2015-12-07T16:38:23Z","updated_at":"2015-12-07T16:38:23Z","html_url":"https://github.com/A-Maze/pcbuilder-webapp/pull/9#discussion_r46842909","pull_request_url":"https://api.github.com/repos/A-Maze/pcbuilder-webapp/pulls/9","_links":{"self":{"href":"https://api.github.com/repos/A-Maze/pcbuilder-webapp/pulls/comments/46842909"},"html":{"href":"https://github.com/A-Maze/pcbuilder-webapp/pull/9#discussion_r46842909"},"pull_request":{"href":"https://api.github.com/repos/A-Maze/pcbuilder-webapp/pulls/9"}}},"pull_request":{"url":"https://api.github.com/repos/A-Maze/pcbuilder-webapp/pulls/9","id":52866990,"html_url":"https://github.com/A-Maze/pcbuilder-webapp/pull/9","diff_url":"https://github.com/A-Maze/pcbuilder-webapp/pull/9.diff","patch_url":"https://github.com/A-Maze/pcbuilder-webapp/pull/9.patch","issue_url":"https://api.github.com/repos/A-Maze/pcbuilder-webapp/issues/9","number":9,"state":"open","locked":false,"title":"Filtered schema ready","user":{"login":"sanderdewinter","id":5989846,"avatar_url":"https://avatars.githubusercontent.com/u/5989846?v=3","gravatar_id":"","url":"https://api.github.com/users/sanderdewinter","html_url":"https://github.com/sanderdewinter","followers_url":"https://api.github.com/users/sanderdewinter/followers","following_url":"https://api.github.com/users/sanderdewinter/following{/other_user}","gists_url":"https://api.github.com/users/sanderdewinter/gists{/gist_id}","starred_url":"https://api.github.com/users/sanderdewinter/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sanderdewinter/subscriptions","organizations_url":"https://api.github.com/users/sanderdewinter/orgs","repos_url":"https://api.github.com/users/sanderdewinter/repos","events_url":"https://api.github.com/users/sanderdewinter/events{/privacy}","received_events_url":"https://api.github.com/users/sanderdewinter/received_events","type":"User","site_admin":false},"body":"","created_at":"2015-12-07T16:30:29Z","updated_at":"2015-12-07T16:38:23Z","closed_at":null,"merged_at":null,"merge_commit_sha":"61f5494956e2efd80e6aabcba3401d5965bd8ec5","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/A-Maze/pcbuilder-webapp/pulls/9/commits","review_comments_url":"https://api.github.com/repos/A-Maze/pcbuilder-webapp/pulls/9/comments","review_comment_url":"https://api.github.com/repos/A-Maze/pcbuilder-webapp/pulls/comments{/number}","comments_url":"https://api.github.com/repos/A-Maze/pcbuilder-webapp/issues/9/comments","statuses_url":"https://api.github.com/repos/A-Maze/pcbuilder-webapp/statuses/cc509279c868d4d1f6305079ab6893f17f757d62","head":{"label":"A-Maze:angular","ref":"angular","sha":"cc509279c868d4d1f6305079ab6893f17f757d62","user":{"login":"A-Maze","id":7499692,"avatar_url":"https://avatars.githubusercontent.com/u/7499692?v=3","gravatar_id":"","url":"https://api.github.com/users/A-Maze","html_url":"https://github.com/A-Maze","followers_url":"https://api.github.com/users/A-Maze/followers","following_url":"https://api.github.com/users/A-Maze/following{/other_user}","gists_url":"https://api.github.com/users/A-Maze/gists{/gist_id}","starred_url":"https://api.github.com/users/A-Maze/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/A-Maze/subscriptions","organizations_url":"https://api.github.com/users/A-Maze/orgs","repos_url":"https://api.github.com/users/A-Maze/repos","events_url":"https://api.github.com/users/A-Maze/events{/privacy}","received_events_url":"https://api.github.com/users/A-Maze/received_events","type":"Organization","site_admin":false},"repo":{"id":44341027,"name":"pcbuilder-webapp","full_name":"A-Maze/pcbuilder-webapp","owner":{"login":"A-Maze","id":7499692,"avatar_url":"https://avatars.githubusercontent.com/u/7499692?v=3","gravatar_id":"","url":"https://api.github.com/users/A-Maze","html_url":"https://github.com/A-Maze","followers_url":"https://api.github.com/users/A-Maze/followers","following_url":"https://api.github.com/users/A-Maze/following{/other_user}","gists_url":"https://api.github.com/users/A-Maze/gists{/gist_id}","starred_url":"https://api.github.com/users/A-Maze/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/A-Maze/subscriptions","organizations_url":"https://api.github.com/users/A-Maze/orgs","repos_url":"https://api.github.com/users/A-Maze/repos","events_url":"https://api.github.com/users/A-Maze/events{/privacy}","received_events_url":"https://api.github.com/users/A-Maze/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/A-Maze/pcbuilder-webapp","description":"Ruby web application compiling the optimal, compatible PC","fork":false,"url":"https://api.github.com/repos/A-Maze/pcbuilder-webapp","forks_url":"https://api.github.com/repos/A-Maze/pcbuilder-webapp/forks","keys_url":"https://api.github.com/repos/A-Maze/pcbuilder-webapp/keys{/key_id}","collaborators_url":"https://api.github.com/repos/A-Maze/pcbuilder-webapp/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/A-Maze/pcbuilder-webapp/teams","hooks_url":"https://api.github.com/repos/A-Maze/pcbuilder-webapp/hooks","issue_events_url":"https://api.github.com/repos/A-Maze/pcbuilder-webapp/issues/events{/number}","events_url":"https://api.github.com/repos/A-Maze/pcbuilder-webapp/events","assignees_url":"https://api.github.com/repos/A-Maze/pcbuilder-webapp/assignees{/user}","branches_url":"https://api.github.com/repos/A-Maze/pcbuilder-webapp/branches{/branch}","tags_url":"https://api.github.com/repos/A-Maze/pcbuilder-webapp/tags","blobs_url":"https://api.github.com/repos/A-Maze/pcbuilder-webapp/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/A-Maze/pcbuilder-webapp/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/A-Maze/pcbuilder-webapp/git/refs{/sha}","trees_url":"https://api.github.com/repos/A-Maze/pcbuilder-webapp/git/trees{/sha}","statuses_url":"https://api.github.com/repos/A-Maze/pcbuilder-webapp/statuses/{sha}","languages_url":"https://api.github.com/repos/A-Maze/pcbuilder-webapp/languages","stargazers_url":"https://api.github.com/repos/A-Maze/pcbuilder-webapp/stargazers","contributors_url":"https://api.github.com/repos/A-Maze/pcbuilder-webapp/contributors","subscribers_url":"https://api.github.com/repos/A-Maze/pcbuilder-webapp/subscribers","subscription_url":"https://api.github.com/repos/A-Maze/pcbuilder-webapp/subscription","commits_url":"https://api.github.com/repos/A-Maze/pcbuilder-webapp/commits{/sha}","git_commits_url":"https://api.github.com/repos/A-Maze/pcbuilder-webapp/git/commits{/sha}","comments_url":"https://api.github.com/repos/A-Maze/pcbuilder-webapp/comments{/number}","issue_comment_url":"https://api.github.com/repos/A-Maze/pcbuilder-webapp/issues/comments{/number}","contents_url":"https://api.github.com/repos/A-Maze/pcbuilder-webapp/contents/{+path}","compare_url":"https://api.github.com/repos/A-Maze/pcbuilder-webapp/compare/{base}...{head}","merges_url":"https://api.github.com/repos/A-Maze/pcbuilder-webapp/merges","archive_url":"https://api.github.com/repos/A-Maze/pcbuilder-webapp/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/A-Maze/pcbuilder-webapp/downloads","issues_url":"https://api.github.com/repos/A-Maze/pcbuilder-webapp/issues{/number}","pulls_url":"https://api.github.com/repos/A-Maze/pcbuilder-webapp/pulls{/number}","milestones_url":"https://api.github.com/repos/A-Maze/pcbuilder-webapp/milestones{/number}","notifications_url":"https://api.github.com/repos/A-Maze/pcbuilder-webapp/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/A-Maze/pcbuilder-webapp/labels{/name}","releases_url":"https://api.github.com/repos/A-Maze/pcbuilder-webapp/releases{/id}","created_at":"2015-10-15T19:42:28Z","updated_at":"2015-11-24T09:12:31Z","pushed_at":"2015-12-07T16:30:29Z","git_url":"git://github.com/A-Maze/pcbuilder-webapp.git","ssh_url":"git@github.com:A-Maze/pcbuilder-webapp.git","clone_url":"https://github.com/A-Maze/pcbuilder-webapp.git","svn_url":"https://github.com/A-Maze/pcbuilder-webapp","homepage":null,"size":0,"stargazers_count":1,"watchers_count":1,"language":"Ruby","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":1,"forks":0,"open_issues":1,"watchers":1,"default_branch":"develop"}},"base":{"label":"A-Maze:develop","ref":"develop","sha":"778e368bbdf7c56abbee8d68a708cd78fe9bdbf2","user":{"login":"A-Maze","id":7499692,"avatar_url":"https://avatars.githubusercontent.com/u/7499692?v=3","gravatar_id":"","url":"https://api.github.com/users/A-Maze","html_url":"https://github.com/A-Maze","followers_url":"https://api.github.com/users/A-Maze/followers","following_url":"https://api.github.com/users/A-Maze/following{/other_user}","gists_url":"https://api.github.com/users/A-Maze/gists{/gist_id}","starred_url":"https://api.github.com/users/A-Maze/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/A-Maze/subscriptions","organizations_url":"https://api.github.com/users/A-Maze/orgs","repos_url":"https://api.github.com/users/A-Maze/repos","events_url":"https://api.github.com/users/A-Maze/events{/privacy}","received_events_url":"https://api.github.com/users/A-Maze/received_events","type":"Organization","site_admin":false},"repo":{"id":44341027,"name":"pcbuilder-webapp","full_name":"A-Maze/pcbuilder-webapp","owner":{"login":"A-Maze","id":7499692,"avatar_url":"https://avatars.githubusercontent.com/u/7499692?v=3","gravatar_id":"","url":"https://api.github.com/users/A-Maze","html_url":"https://github.com/A-Maze","followers_url":"https://api.github.com/users/A-Maze/followers","following_url":"https://api.github.com/users/A-Maze/following{/other_user}","gists_url":"https://api.github.com/users/A-Maze/gists{/gist_id}","starred_url":"https://api.github.com/users/A-Maze/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/A-Maze/subscriptions","organizations_url":"https://api.github.com/users/A-Maze/orgs","repos_url":"https://api.github.com/users/A-Maze/repos","events_url":"https://api.github.com/users/A-Maze/events{/privacy}","received_events_url":"https://api.github.com/users/A-Maze/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/A-Maze/pcbuilder-webapp","description":"Ruby web application compiling the optimal, compatible PC","fork":false,"url":"https://api.github.com/repos/A-Maze/pcbuilder-webapp","forks_url":"https://api.github.com/repos/A-Maze/pcbuilder-webapp/forks","keys_url":"https://api.github.com/repos/A-Maze/pcbuilder-webapp/keys{/key_id}","collaborators_url":"https://api.github.com/repos/A-Maze/pcbuilder-webapp/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/A-Maze/pcbuilder-webapp/teams","hooks_url":"https://api.github.com/repos/A-Maze/pcbuilder-webapp/hooks","issue_events_url":"https://api.github.com/repos/A-Maze/pcbuilder-webapp/issues/events{/number}","events_url":"https://api.github.com/repos/A-Maze/pcbuilder-webapp/events","assignees_url":"https://api.github.com/repos/A-Maze/pcbuilder-webapp/assignees{/user}","branches_url":"https://api.github.com/repos/A-Maze/pcbuilder-webapp/branches{/branch}","tags_url":"https://api.github.com/repos/A-Maze/pcbuilder-webapp/tags","blobs_url":"https://api.github.com/repos/A-Maze/pcbuilder-webapp/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/A-Maze/pcbuilder-webapp/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/A-Maze/pcbuilder-webapp/git/refs{/sha}","trees_url":"https://api.github.com/repos/A-Maze/pcbuilder-webapp/git/trees{/sha}","statuses_url":"https://api.github.com/repos/A-Maze/pcbuilder-webapp/statuses/{sha}","languages_url":"https://api.github.com/repos/A-Maze/pcbuilder-webapp/languages","stargazers_url":"https://api.github.com/repos/A-Maze/pcbuilder-webapp/stargazers","contributors_url":"https://api.github.com/repos/A-Maze/pcbuilder-webapp/contributors","subscribers_url":"https://api.github.com/repos/A-Maze/pcbuilder-webapp/subscribers","subscription_url":"https://api.github.com/repos/A-Maze/pcbuilder-webapp/subscription","commits_url":"https://api.github.com/repos/A-Maze/pcbuilder-webapp/commits{/sha}","git_commits_url":"https://api.github.com/repos/A-Maze/pcbuilder-webapp/git/commits{/sha}","comments_url":"https://api.github.com/repos/A-Maze/pcbuilder-webapp/comments{/number}","issue_comment_url":"https://api.github.com/repos/A-Maze/pcbuilder-webapp/issues/comments{/number}","contents_url":"https://api.github.com/repos/A-Maze/pcbuilder-webapp/contents/{+path}","compare_url":"https://api.github.com/repos/A-Maze/pcbuilder-webapp/compare/{base}...{head}","merges_url":"https://api.github.com/repos/A-Maze/pcbuilder-webapp/merges","archive_url":"https://api.github.com/repos/A-Maze/pcbuilder-webapp/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/A-Maze/pcbuilder-webapp/downloads","issues_url":"https://api.github.com/repos/A-Maze/pcbuilder-webapp/issues{/number}","pulls_url":"https://api.github.com/repos/A-Maze/pcbuilder-webapp/pulls{/number}","milestones_url":"https://api.github.com/repos/A-Maze/pcbuilder-webapp/milestones{/number}","notifications_url":"https://api.github.com/repos/A-Maze/pcbuilder-webapp/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/A-Maze/pcbuilder-webapp/labels{/name}","releases_url":"https://api.github.com/repos/A-Maze/pcbuilder-webapp/releases{/id}","created_at":"2015-10-15T19:42:28Z","updated_at":"2015-11-24T09:12:31Z","pushed_at":"2015-12-07T16:30:29Z","git_url":"git://github.com/A-Maze/pcbuilder-webapp.git","ssh_url":"git@github.com:A-Maze/pcbuilder-webapp.git","clone_url":"https://github.com/A-Maze/pcbuilder-webapp.git","svn_url":"https://github.com/A-Maze/pcbuilder-webapp","homepage":null,"size":0,"stargazers_count":1,"watchers_count":1,"language":"Ruby","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":1,"forks":0,"open_issues":1,"watchers":1,"default_branch":"develop"}},"_links":{"self":{"href":"https://api.github.com/repos/A-Maze/pcbuilder-webapp/pulls/9"},"html":{"href":"https://github.com/A-Maze/pcbuilder-webapp/pull/9"},"issue":{"href":"https://api.github.com/repos/A-Maze/pcbuilder-webapp/issues/9"},"comments":{"href":"https://api.github.com/repos/A-Maze/pcbuilder-webapp/issues/9/comments"},"review_comments":{"href":"https://api.github.com/repos/A-Maze/pcbuilder-webapp/pulls/9/comments"},"review_comment":{"href":"https://api.github.com/repos/A-Maze/pcbuilder-webapp/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/A-Maze/pcbuilder-webapp/pulls/9/commits"},"statuses":{"href":"https://api.github.com/repos/A-Maze/pcbuilder-webapp/statuses/cc509279c868d4d1f6305079ab6893f17f757d62"}}}}