{"action":"created","comment":{"url":"https://api.github.com/repos/Fiware/tutorials.TourGuide-App/pulls/comments/62191905","id":62191905,"diff_hunk":"@@ -765,10 +765,18 @@ function generateId(name, date) {\n }\n \n function addConditionToQuery(listOfConditions, key, operator, value) {\n+  var condition;\n+\n   if (!listOfConditions) {\n     listOfConditions = [];\n   }\n-  var condition = key + operator + value;\n+  if (typeof value === 'string' && key !== 'startTime') {\n+    var quotedValue = '\\'' + value + '\\'';\n+    condition = key + operator + quotedValue;\n+  } else {\n+    condition = key + operator + value;\n+  }\n+","path":"server/utils.js","position":16,"original_position":16,"commit_id":"608fa269c801c7edec968c8aafe93de3c51f8ae7","original_commit_id":"608fa269c801c7edec968c8aafe93de3c51f8ae7","user":{"login":"albertinisg","id":8257425,"avatar_url":"https://avatars.githubusercontent.com/u/8257425?v=3","gravatar_id":"","url":"https://api.github.com/users/albertinisg","html_url":"https://github.com/albertinisg","followers_url":"https://api.github.com/users/albertinisg/followers","following_url":"https://api.github.com/users/albertinisg/following{/other_user}","gists_url":"https://api.github.com/users/albertinisg/gists{/gist_id}","starred_url":"https://api.github.com/users/albertinisg/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/albertinisg/subscriptions","organizations_url":"https://api.github.com/users/albertinisg/orgs","repos_url":"https://api.github.com/users/albertinisg/repos","events_url":"https://api.github.com/users/albertinisg/events{/privacy}","received_events_url":"https://api.github.com/users/albertinisg/received_events","type":"User","site_admin":false},"body":"True!","created_at":"2016-05-05T14:11:58Z","updated_at":"2016-05-05T14:11:58Z","html_url":"https://github.com/Fiware/tutorials.TourGuide-App/pull/91#discussion_r62191905","pull_request_url":"https://api.github.com/repos/Fiware/tutorials.TourGuide-App/pulls/91","_links":{"self":{"href":"https://api.github.com/repos/Fiware/tutorials.TourGuide-App/pulls/comments/62191905"},"html":{"href":"https://github.com/Fiware/tutorials.TourGuide-App/pull/91#discussion_r62191905"},"pull_request":{"href":"https://api.github.com/repos/Fiware/tutorials.TourGuide-App/pulls/91"}}},"pull_request":{"url":"https://api.github.com/repos/Fiware/tutorials.TourGuide-App/pulls/91","id":68881027,"html_url":"https://github.com/Fiware/tutorials.TourGuide-App/pull/91","diff_url":"https://github.com/Fiware/tutorials.TourGuide-App/pull/91.diff","patch_url":"https://github.com/Fiware/tutorials.TourGuide-App/pull/91.patch","issue_url":"https://api.github.com/repos/Fiware/tutorials.TourGuide-App/issues/91","number":91,"state":"open","locked":false,"title":"Fix/patch aggregate rating","user":{"login":"albertinisg","id":8257425,"avatar_url":"https://avatars.githubusercontent.com/u/8257425?v=3","gravatar_id":"","url":"https://api.github.com/users/albertinisg","html_url":"https://github.com/albertinisg","followers_url":"https://api.github.com/users/albertinisg/followers","following_url":"https://api.github.com/users/albertinisg/following{/other_user}","gists_url":"https://api.github.com/users/albertinisg/gists{/gist_id}","starred_url":"https://api.github.com/users/albertinisg/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/albertinisg/subscriptions","organizations_url":"https://api.github.com/users/albertinisg/orgs","repos_url":"https://api.github.com/users/albertinisg/repos","events_url":"https://api.github.com/users/albertinisg/events{/privacy}","received_events_url":"https://api.github.com/users/albertinisg/received_events","type":"User","site_admin":false},"body":"This PR fixes #90 and updates the data image with the error fixed","created_at":"2016-05-04T15:23:29Z","updated_at":"2016-05-05T14:11:58Z","closed_at":null,"merged_at":null,"merge_commit_sha":"ad60ba329a06b2a622fcd785078604851e359f65","assignee":null,"milestone":{"url":"https://api.github.com/repos/Fiware/tutorials.TourGuide-App/milestones/3","html_url":"https://github.com/Fiware/tutorials.TourGuide-App/milestones/Sprint%205.3.2","labels_url":"https://api.github.com/repos/Fiware/tutorials.TourGuide-App/milestones/3/labels","id":1728674,"number":3,"title":"Sprint 5.3.2","description":"","creator":{"login":"albertinisg","id":8257425,"avatar_url":"https://avatars.githubusercontent.com/u/8257425?v=3","gravatar_id":"","url":"https://api.github.com/users/albertinisg","html_url":"https://github.com/albertinisg","followers_url":"https://api.github.com/users/albertinisg/followers","following_url":"https://api.github.com/users/albertinisg/following{/other_user}","gists_url":"https://api.github.com/users/albertinisg/gists{/gist_id}","starred_url":"https://api.github.com/users/albertinisg/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/albertinisg/subscriptions","organizations_url":"https://api.github.com/users/albertinisg/orgs","repos_url":"https://api.github.com/users/albertinisg/repos","events_url":"https://api.github.com/users/albertinisg/events{/privacy}","received_events_url":"https://api.github.com/users/albertinisg/received_events","type":"User","site_admin":false},"open_issues":13,"closed_issues":2,"state":"open","created_at":"2016-04-25T10:57:15Z","updated_at":"2016-05-04T15:59:16Z","due_on":"2016-05-30T22:00:00Z","closed_at":null},"commits_url":"https://api.github.com/repos/Fiware/tutorials.TourGuide-App/pulls/91/commits","review_comments_url":"https://api.github.com/repos/Fiware/tutorials.TourGuide-App/pulls/91/comments","review_comment_url":"https://api.github.com/repos/Fiware/tutorials.TourGuide-App/pulls/comments{/number}","comments_url":"https://api.github.com/repos/Fiware/tutorials.TourGuide-App/issues/91/comments","statuses_url":"https://api.github.com/repos/Fiware/tutorials.TourGuide-App/statuses/608fa269c801c7edec968c8aafe93de3c51f8ae7","head":{"label":"albertinisg:fix/patch-aggregate-rating","ref":"fix/patch-aggregate-rating","sha":"608fa269c801c7edec968c8aafe93de3c51f8ae7","user":{"login":"albertinisg","id":8257425,"avatar_url":"https://avatars.githubusercontent.com/u/8257425?v=3","gravatar_id":"","url":"https://api.github.com/users/albertinisg","html_url":"https://github.com/albertinisg","followers_url":"https://api.github.com/users/albertinisg/followers","following_url":"https://api.github.com/users/albertinisg/following{/other_user}","gists_url":"https://api.github.com/users/albertinisg/gists{/gist_id}","starred_url":"https://api.github.com/users/albertinisg/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/albertinisg/subscriptions","organizations_url":"https://api.github.com/users/albertinisg/orgs","repos_url":"https://api.github.com/users/albertinisg/repos","events_url":"https://api.github.com/users/albertinisg/events{/privacy}","received_events_url":"https://api.github.com/users/albertinisg/received_events","type":"User","site_admin":false},"repo":{"id":52603115,"name":"tutorials.TourGuide-App","full_name":"albertinisg/tutorials.TourGuide-App","owner":{"login":"albertinisg","id":8257425,"avatar_url":"https://avatars.githubusercontent.com/u/8257425?v=3","gravatar_id":"","url":"https://api.github.com/users/albertinisg","html_url":"https://github.com/albertinisg","followers_url":"https://api.github.com/users/albertinisg/followers","following_url":"https://api.github.com/users/albertinisg/following{/other_user}","gists_url":"https://api.github.com/users/albertinisg/gists{/gist_id}","starred_url":"https://api.github.com/users/albertinisg/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/albertinisg/subscriptions","organizations_url":"https://api.github.com/users/albertinisg/orgs","repos_url":"https://api.github.com/users/albertinisg/repos","events_url":"https://api.github.com/users/albertinisg/events{/privacy}","received_events_url":"https://api.github.com/users/albertinisg/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/albertinisg/tutorials.TourGuide-App","description":"FIWARE Tour Guide Application. See http://bit.ly/1pby3WP","fork":true,"url":"https://api.github.com/repos/albertinisg/tutorials.TourGuide-App","forks_url":"https://api.github.com/repos/albertinisg/tutorials.TourGuide-App/forks","keys_url":"https://api.github.com/repos/albertinisg/tutorials.TourGuide-App/keys{/key_id}","collaborators_url":"https://api.github.com/repos/albertinisg/tutorials.TourGuide-App/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/albertinisg/tutorials.TourGuide-App/teams","hooks_url":"https://api.github.com/repos/albertinisg/tutorials.TourGuide-App/hooks","issue_events_url":"https://api.github.com/repos/albertinisg/tutorials.TourGuide-App/issues/events{/number}","events_url":"https://api.github.com/repos/albertinisg/tutorials.TourGuide-App/events","assignees_url":"https://api.github.com/repos/albertinisg/tutorials.TourGuide-App/assignees{/user}","branches_url":"https://api.github.com/repos/albertinisg/tutorials.TourGuide-App/branches{/branch}","tags_url":"https://api.github.com/repos/albertinisg/tutorials.TourGuide-App/tags","blobs_url":"https://api.github.com/repos/albertinisg/tutorials.TourGuide-App/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/albertinisg/tutorials.TourGuide-App/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/albertinisg/tutorials.TourGuide-App/git/refs{/sha}","trees_url":"https://api.github.com/repos/albertinisg/tutorials.TourGuide-App/git/trees{/sha}","statuses_url":"https://api.github.com/repos/albertinisg/tutorials.TourGuide-App/statuses/{sha}","languages_url":"https://api.github.com/repos/albertinisg/tutorials.TourGuide-App/languages","stargazers_url":"https://api.github.com/repos/albertinisg/tutorials.TourGuide-App/stargazers","contributors_url":"https://api.github.com/repos/albertinisg/tutorials.TourGuide-App/contributors","subscribers_url":"https://api.github.com/repos/albertinisg/tutorials.TourGuide-App/subscribers","subscription_url":"https://api.github.com/repos/albertinisg/tutorials.TourGuide-App/subscription","commits_url":"https://api.github.com/repos/albertinisg/tutorials.TourGuide-App/commits{/sha}","git_commits_url":"https://api.github.com/repos/albertinisg/tutorials.TourGuide-App/git/commits{/sha}","comments_url":"https://api.github.com/repos/albertinisg/tutorials.TourGuide-App/comments{/number}","issue_comment_url":"https://api.github.com/repos/albertinisg/tutorials.TourGuide-App/issues/comments{/number}","contents_url":"https://api.github.com/repos/albertinisg/tutorials.TourGuide-App/contents/{+path}","compare_url":"https://api.github.com/repos/albertinisg/tutorials.TourGuide-App/compare/{base}...{head}","merges_url":"https://api.github.com/repos/albertinisg/tutorials.TourGuide-App/merges","archive_url":"https://api.github.com/repos/albertinisg/tutorials.TourGuide-App/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/albertinisg/tutorials.TourGuide-App/downloads","issues_url":"https://api.github.com/repos/albertinisg/tutorials.TourGuide-App/issues{/number}","pulls_url":"https://api.github.com/repos/albertinisg/tutorials.TourGuide-App/pulls{/number}","milestones_url":"https://api.github.com/repos/albertinisg/tutorials.TourGuide-App/milestones{/number}","notifications_url":"https://api.github.com/repos/albertinisg/tutorials.TourGuide-App/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/albertinisg/tutorials.TourGuide-App/labels{/name}","releases_url":"https://api.github.com/repos/albertinisg/tutorials.TourGuide-App/releases{/id}","deployments_url":"https://api.github.com/repos/albertinisg/tutorials.TourGuide-App/deployments","created_at":"2016-02-26T12:31:11Z","updated_at":"2016-02-26T12:31:12Z","pushed_at":"2016-05-05T14:02:34Z","git_url":"git://github.com/albertinisg/tutorials.TourGuide-App.git","ssh_url":"git@github.com:albertinisg/tutorials.TourGuide-App.git","clone_url":"https://github.com/albertinisg/tutorials.TourGuide-App.git","svn_url":"https://github.com/albertinisg/tutorials.TourGuide-App","homepage":"","size":9844,"stargazers_count":0,"watchers_count":0,"language":"JavaScript","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":"Fiware:develop","ref":"develop","sha":"1da3571d130cdba3c63e7e83718780e4af73d340","user":{"login":"Fiware","id":5936803,"avatar_url":"https://avatars.githubusercontent.com/u/5936803?v=3","gravatar_id":"","url":"https://api.github.com/users/Fiware","html_url":"https://github.com/Fiware","followers_url":"https://api.github.com/users/Fiware/followers","following_url":"https://api.github.com/users/Fiware/following{/other_user}","gists_url":"https://api.github.com/users/Fiware/gists{/gist_id}","starred_url":"https://api.github.com/users/Fiware/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Fiware/subscriptions","organizations_url":"https://api.github.com/users/Fiware/orgs","repos_url":"https://api.github.com/users/Fiware/repos","events_url":"https://api.github.com/users/Fiware/events{/privacy}","received_events_url":"https://api.github.com/users/Fiware/received_events","type":"Organization","site_admin":false},"repo":{"id":38439707,"name":"tutorials.TourGuide-App","full_name":"Fiware/tutorials.TourGuide-App","owner":{"login":"Fiware","id":5936803,"avatar_url":"https://avatars.githubusercontent.com/u/5936803?v=3","gravatar_id":"","url":"https://api.github.com/users/Fiware","html_url":"https://github.com/Fiware","followers_url":"https://api.github.com/users/Fiware/followers","following_url":"https://api.github.com/users/Fiware/following{/other_user}","gists_url":"https://api.github.com/users/Fiware/gists{/gist_id}","starred_url":"https://api.github.com/users/Fiware/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Fiware/subscriptions","organizations_url":"https://api.github.com/users/Fiware/orgs","repos_url":"https://api.github.com/users/Fiware/repos","events_url":"https://api.github.com/users/Fiware/events{/privacy}","received_events_url":"https://api.github.com/users/Fiware/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/Fiware/tutorials.TourGuide-App","description":"FIWARE Tour Guide Application. See http://bit.ly/1pby3WP","fork":false,"url":"https://api.github.com/repos/Fiware/tutorials.TourGuide-App","forks_url":"https://api.github.com/repos/Fiware/tutorials.TourGuide-App/forks","keys_url":"https://api.github.com/repos/Fiware/tutorials.TourGuide-App/keys{/key_id}","collaborators_url":"https://api.github.com/repos/Fiware/tutorials.TourGuide-App/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/Fiware/tutorials.TourGuide-App/teams","hooks_url":"https://api.github.com/repos/Fiware/tutorials.TourGuide-App/hooks","issue_events_url":"https://api.github.com/repos/Fiware/tutorials.TourGuide-App/issues/events{/number}","events_url":"https://api.github.com/repos/Fiware/tutorials.TourGuide-App/events","assignees_url":"https://api.github.com/repos/Fiware/tutorials.TourGuide-App/assignees{/user}","branches_url":"https://api.github.com/repos/Fiware/tutorials.TourGuide-App/branches{/branch}","tags_url":"https://api.github.com/repos/Fiware/tutorials.TourGuide-App/tags","blobs_url":"https://api.github.com/repos/Fiware/tutorials.TourGuide-App/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/Fiware/tutorials.TourGuide-App/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/Fiware/tutorials.TourGuide-App/git/refs{/sha}","trees_url":"https://api.github.com/repos/Fiware/tutorials.TourGuide-App/git/trees{/sha}","statuses_url":"https://api.github.com/repos/Fiware/tutorials.TourGuide-App/statuses/{sha}","languages_url":"https://api.github.com/repos/Fiware/tutorials.TourGuide-App/languages","stargazers_url":"https://api.github.com/repos/Fiware/tutorials.TourGuide-App/stargazers","contributors_url":"https://api.github.com/repos/Fiware/tutorials.TourGuide-App/contributors","subscribers_url":"https://api.github.com/repos/Fiware/tutorials.TourGuide-App/subscribers","subscription_url":"https://api.github.com/repos/Fiware/tutorials.TourGuide-App/subscription","commits_url":"https://api.github.com/repos/Fiware/tutorials.TourGuide-App/commits{/sha}","git_commits_url":"https://api.github.com/repos/Fiware/tutorials.TourGuide-App/git/commits{/sha}","comments_url":"https://api.github.com/repos/Fiware/tutorials.TourGuide-App/comments{/number}","issue_comment_url":"https://api.github.com/repos/Fiware/tutorials.TourGuide-App/issues/comments{/number}","contents_url":"https://api.github.com/repos/Fiware/tutorials.TourGuide-App/contents/{+path}","compare_url":"https://api.github.com/repos/Fiware/tutorials.TourGuide-App/compare/{base}...{head}","merges_url":"https://api.github.com/repos/Fiware/tutorials.TourGuide-App/merges","archive_url":"https://api.github.com/repos/Fiware/tutorials.TourGuide-App/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/Fiware/tutorials.TourGuide-App/downloads","issues_url":"https://api.github.com/repos/Fiware/tutorials.TourGuide-App/issues{/number}","pulls_url":"https://api.github.com/repos/Fiware/tutorials.TourGuide-App/pulls{/number}","milestones_url":"https://api.github.com/repos/Fiware/tutorials.TourGuide-App/milestones{/number}","notifications_url":"https://api.github.com/repos/Fiware/tutorials.TourGuide-App/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/Fiware/tutorials.TourGuide-App/labels{/name}","releases_url":"https://api.github.com/repos/Fiware/tutorials.TourGuide-App/releases{/id}","deployments_url":"https://api.github.com/repos/Fiware/tutorials.TourGuide-App/deployments","created_at":"2015-07-02T15:08:43Z","updated_at":"2016-04-02T03:50:22Z","pushed_at":"2016-05-05T14:02:35Z","git_url":"git://github.com/Fiware/tutorials.TourGuide-App.git","ssh_url":"git@github.com:Fiware/tutorials.TourGuide-App.git","clone_url":"https://github.com/Fiware/tutorials.TourGuide-App.git","svn_url":"https://github.com/Fiware/tutorials.TourGuide-App","homepage":"","size":10039,"stargazers_count":6,"watchers_count":6,"language":"JavaScript","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":7,"mirror_url":null,"open_issues_count":21,"forks":7,"open_issues":21,"watchers":6,"default_branch":"develop"}},"_links":{"self":{"href":"https://api.github.com/repos/Fiware/tutorials.TourGuide-App/pulls/91"},"html":{"href":"https://github.com/Fiware/tutorials.TourGuide-App/pull/91"},"issue":{"href":"https://api.github.com/repos/Fiware/tutorials.TourGuide-App/issues/91"},"comments":{"href":"https://api.github.com/repos/Fiware/tutorials.TourGuide-App/issues/91/comments"},"review_comments":{"href":"https://api.github.com/repos/Fiware/tutorials.TourGuide-App/pulls/91/comments"},"review_comment":{"href":"https://api.github.com/repos/Fiware/tutorials.TourGuide-App/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/Fiware/tutorials.TourGuide-App/pulls/91/commits"},"statuses":{"href":"https://api.github.com/repos/Fiware/tutorials.TourGuide-App/statuses/608fa269c801c7edec968c8aafe93de3c51f8ae7"}}}}