{"action":"created","comment":{"url":"https://api.github.com/repos/arkka/in4331/pulls/comments/65569325","id":65569325,"diff_hunk":"@@ -124,15 +132,19 @@ exports.search = function(req, res) {\n  * SC4: Detailed movie information\n  */\n // TODO: Check check check with real data\n-// TODO: Implement year range filter\n exports.genre = function(req, res) {\n+\n+    var keyword = req.params.genre;\n+\n     Movie.find({ genres: req.params.genre })\n-        .sort({year: -1, title: 1})\n+        .sort({year: 1, title: 1})\n         .populate('casts.actor')\n         .exec(function(err, movies){\n         if(err || !movies) res.json({data: null, success: false});\n         else res.json({\n+            keyword: keyword,\n             data: {\n+                movie_total: movies.length,","path":"mongodb/controllers/movies.js","position":69,"original_position":69,"commit_id":"31c84c90ba2434a7fee36b0b0616f03826005e02","original_commit_id":"31c84c90ba2434a7fee36b0b0616f03826005e02","user":{"login":"arkka","id":888724,"avatar_url":"https://avatars.githubusercontent.com/u/888724?v=3","gravatar_id":"","url":"https://api.github.com/users/arkka","html_url":"https://github.com/arkka","followers_url":"https://api.github.com/users/arkka/followers","following_url":"https://api.github.com/users/arkka/following{/other_user}","gists_url":"https://api.github.com/users/arkka/gists{/gist_id}","starred_url":"https://api.github.com/users/arkka/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/arkka/subscriptions","organizations_url":"https://api.github.com/users/arkka/orgs","repos_url":"https://api.github.com/users/arkka/repos","events_url":"https://api.github.com/users/arkka/events{/privacy}","received_events_url":"https://api.github.com/users/arkka/received_events","type":"User","site_admin":false},"body":"Yang ini?","created_at":"2016-06-02T16:06:00Z","updated_at":"2016-06-02T16:06:00Z","html_url":"https://github.com/arkka/in4331/pull/2#discussion_r65569325","pull_request_url":"https://api.github.com/repos/arkka/in4331/pulls/2","_links":{"self":{"href":"https://api.github.com/repos/arkka/in4331/pulls/comments/65569325"},"html":{"href":"https://github.com/arkka/in4331/pull/2#discussion_r65569325"},"pull_request":{"href":"https://api.github.com/repos/arkka/in4331/pulls/2"}}},"pull_request":{"url":"https://api.github.com/repos/arkka/in4331/pulls/2","id":72372789,"html_url":"https://github.com/arkka/in4331/pull/2","diff_url":"https://github.com/arkka/in4331/pull/2.diff","patch_url":"https://github.com/arkka/in4331/pull/2.patch","issue_url":"https://api.github.com/repos/arkka/in4331/issues/2","number":2,"state":"open","locked":false,"title":"Develop mongodb","user":{"login":"sukmawicaksana","id":14909564,"avatar_url":"https://avatars.githubusercontent.com/u/14909564?v=3","gravatar_id":"","url":"https://api.github.com/users/sukmawicaksana","html_url":"https://github.com/sukmawicaksana","followers_url":"https://api.github.com/users/sukmawicaksana/followers","following_url":"https://api.github.com/users/sukmawicaksana/following{/other_user}","gists_url":"https://api.github.com/users/sukmawicaksana/gists{/gist_id}","starred_url":"https://api.github.com/users/sukmawicaksana/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sukmawicaksana/subscriptions","organizations_url":"https://api.github.com/users/sukmawicaksana/orgs","repos_url":"https://api.github.com/users/sukmawicaksana/repos","events_url":"https://api.github.com/users/sukmawicaksana/events{/privacy}","received_events_url":"https://api.github.com/users/sukmawicaksana/received_events","type":"User","site_admin":false},"body":"query mongodb done","created_at":"2016-06-02T16:01:39Z","updated_at":"2016-06-02T16:06:00Z","closed_at":null,"merged_at":null,"merge_commit_sha":"d264ed20dcb3f61a7464df2e1b5ab30dfa5d6b99","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/arkka/in4331/pulls/2/commits","review_comments_url":"https://api.github.com/repos/arkka/in4331/pulls/2/comments","review_comment_url":"https://api.github.com/repos/arkka/in4331/pulls/comments{/number}","comments_url":"https://api.github.com/repos/arkka/in4331/issues/2/comments","statuses_url":"https://api.github.com/repos/arkka/in4331/statuses/31c84c90ba2434a7fee36b0b0616f03826005e02","head":{"label":"arkka:develop-mongodb","ref":"develop-mongodb","sha":"31c84c90ba2434a7fee36b0b0616f03826005e02","user":{"login":"arkka","id":888724,"avatar_url":"https://avatars.githubusercontent.com/u/888724?v=3","gravatar_id":"","url":"https://api.github.com/users/arkka","html_url":"https://github.com/arkka","followers_url":"https://api.github.com/users/arkka/followers","following_url":"https://api.github.com/users/arkka/following{/other_user}","gists_url":"https://api.github.com/users/arkka/gists{/gist_id}","starred_url":"https://api.github.com/users/arkka/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/arkka/subscriptions","organizations_url":"https://api.github.com/users/arkka/orgs","repos_url":"https://api.github.com/users/arkka/repos","events_url":"https://api.github.com/users/arkka/events{/privacy}","received_events_url":"https://api.github.com/users/arkka/received_events","type":"User","site_admin":false},"repo":{"id":58522236,"name":"in4331","full_name":"arkka/in4331","owner":{"login":"arkka","id":888724,"avatar_url":"https://avatars.githubusercontent.com/u/888724?v=3","gravatar_id":"","url":"https://api.github.com/users/arkka","html_url":"https://github.com/arkka","followers_url":"https://api.github.com/users/arkka/followers","following_url":"https://api.github.com/users/arkka/following{/other_user}","gists_url":"https://api.github.com/users/arkka/gists{/gist_id}","starred_url":"https://api.github.com/users/arkka/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/arkka/subscriptions","organizations_url":"https://api.github.com/users/arkka/orgs","repos_url":"https://api.github.com/users/arkka/repos","events_url":"https://api.github.com/users/arkka/events{/privacy}","received_events_url":"https://api.github.com/users/arkka/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/arkka/in4331","description":"Web Data Management","fork":false,"url":"https://api.github.com/repos/arkka/in4331","forks_url":"https://api.github.com/repos/arkka/in4331/forks","keys_url":"https://api.github.com/repos/arkka/in4331/keys{/key_id}","collaborators_url":"https://api.github.com/repos/arkka/in4331/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/arkka/in4331/teams","hooks_url":"https://api.github.com/repos/arkka/in4331/hooks","issue_events_url":"https://api.github.com/repos/arkka/in4331/issues/events{/number}","events_url":"https://api.github.com/repos/arkka/in4331/events","assignees_url":"https://api.github.com/repos/arkka/in4331/assignees{/user}","branches_url":"https://api.github.com/repos/arkka/in4331/branches{/branch}","tags_url":"https://api.github.com/repos/arkka/in4331/tags","blobs_url":"https://api.github.com/repos/arkka/in4331/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/arkka/in4331/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/arkka/in4331/git/refs{/sha}","trees_url":"https://api.github.com/repos/arkka/in4331/git/trees{/sha}","statuses_url":"https://api.github.com/repos/arkka/in4331/statuses/{sha}","languages_url":"https://api.github.com/repos/arkka/in4331/languages","stargazers_url":"https://api.github.com/repos/arkka/in4331/stargazers","contributors_url":"https://api.github.com/repos/arkka/in4331/contributors","subscribers_url":"https://api.github.com/repos/arkka/in4331/subscribers","subscription_url":"https://api.github.com/repos/arkka/in4331/subscription","commits_url":"https://api.github.com/repos/arkka/in4331/commits{/sha}","git_commits_url":"https://api.github.com/repos/arkka/in4331/git/commits{/sha}","comments_url":"https://api.github.com/repos/arkka/in4331/comments{/number}","issue_comment_url":"https://api.github.com/repos/arkka/in4331/issues/comments{/number}","contents_url":"https://api.github.com/repos/arkka/in4331/contents/{+path}","compare_url":"https://api.github.com/repos/arkka/in4331/compare/{base}...{head}","merges_url":"https://api.github.com/repos/arkka/in4331/merges","archive_url":"https://api.github.com/repos/arkka/in4331/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/arkka/in4331/downloads","issues_url":"https://api.github.com/repos/arkka/in4331/issues{/number}","pulls_url":"https://api.github.com/repos/arkka/in4331/pulls{/number}","milestones_url":"https://api.github.com/repos/arkka/in4331/milestones{/number}","notifications_url":"https://api.github.com/repos/arkka/in4331/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/arkka/in4331/labels{/name}","releases_url":"https://api.github.com/repos/arkka/in4331/releases{/id}","deployments_url":"https://api.github.com/repos/arkka/in4331/deployments","created_at":"2016-05-11T07:10:48Z","updated_at":"2016-05-11T07:10:48Z","pushed_at":"2016-06-02T16:01:39Z","git_url":"git://github.com/arkka/in4331.git","ssh_url":"git@github.com:arkka/in4331.git","clone_url":"https://github.com/arkka/in4331.git","svn_url":"https://github.com/arkka/in4331","homepage":null,"size":3513,"stargazers_count":0,"watchers_count":0,"language":null,"has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":2,"forks":0,"open_issues":2,"watchers":0,"default_branch":"master"}},"base":{"label":"arkka:develop","ref":"develop","sha":"116d58853f701a90ae0fa39a509c85521da52b9a","user":{"login":"arkka","id":888724,"avatar_url":"https://avatars.githubusercontent.com/u/888724?v=3","gravatar_id":"","url":"https://api.github.com/users/arkka","html_url":"https://github.com/arkka","followers_url":"https://api.github.com/users/arkka/followers","following_url":"https://api.github.com/users/arkka/following{/other_user}","gists_url":"https://api.github.com/users/arkka/gists{/gist_id}","starred_url":"https://api.github.com/users/arkka/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/arkka/subscriptions","organizations_url":"https://api.github.com/users/arkka/orgs","repos_url":"https://api.github.com/users/arkka/repos","events_url":"https://api.github.com/users/arkka/events{/privacy}","received_events_url":"https://api.github.com/users/arkka/received_events","type":"User","site_admin":false},"repo":{"id":58522236,"name":"in4331","full_name":"arkka/in4331","owner":{"login":"arkka","id":888724,"avatar_url":"https://avatars.githubusercontent.com/u/888724?v=3","gravatar_id":"","url":"https://api.github.com/users/arkka","html_url":"https://github.com/arkka","followers_url":"https://api.github.com/users/arkka/followers","following_url":"https://api.github.com/users/arkka/following{/other_user}","gists_url":"https://api.github.com/users/arkka/gists{/gist_id}","starred_url":"https://api.github.com/users/arkka/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/arkka/subscriptions","organizations_url":"https://api.github.com/users/arkka/orgs","repos_url":"https://api.github.com/users/arkka/repos","events_url":"https://api.github.com/users/arkka/events{/privacy}","received_events_url":"https://api.github.com/users/arkka/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/arkka/in4331","description":"Web Data Management","fork":false,"url":"https://api.github.com/repos/arkka/in4331","forks_url":"https://api.github.com/repos/arkka/in4331/forks","keys_url":"https://api.github.com/repos/arkka/in4331/keys{/key_id}","collaborators_url":"https://api.github.com/repos/arkka/in4331/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/arkka/in4331/teams","hooks_url":"https://api.github.com/repos/arkka/in4331/hooks","issue_events_url":"https://api.github.com/repos/arkka/in4331/issues/events{/number}","events_url":"https://api.github.com/repos/arkka/in4331/events","assignees_url":"https://api.github.com/repos/arkka/in4331/assignees{/user}","branches_url":"https://api.github.com/repos/arkka/in4331/branches{/branch}","tags_url":"https://api.github.com/repos/arkka/in4331/tags","blobs_url":"https://api.github.com/repos/arkka/in4331/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/arkka/in4331/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/arkka/in4331/git/refs{/sha}","trees_url":"https://api.github.com/repos/arkka/in4331/git/trees{/sha}","statuses_url":"https://api.github.com/repos/arkka/in4331/statuses/{sha}","languages_url":"https://api.github.com/repos/arkka/in4331/languages","stargazers_url":"https://api.github.com/repos/arkka/in4331/stargazers","contributors_url":"https://api.github.com/repos/arkka/in4331/contributors","subscribers_url":"https://api.github.com/repos/arkka/in4331/subscribers","subscription_url":"https://api.github.com/repos/arkka/in4331/subscription","commits_url":"https://api.github.com/repos/arkka/in4331/commits{/sha}","git_commits_url":"https://api.github.com/repos/arkka/in4331/git/commits{/sha}","comments_url":"https://api.github.com/repos/arkka/in4331/comments{/number}","issue_comment_url":"https://api.github.com/repos/arkka/in4331/issues/comments{/number}","contents_url":"https://api.github.com/repos/arkka/in4331/contents/{+path}","compare_url":"https://api.github.com/repos/arkka/in4331/compare/{base}...{head}","merges_url":"https://api.github.com/repos/arkka/in4331/merges","archive_url":"https://api.github.com/repos/arkka/in4331/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/arkka/in4331/downloads","issues_url":"https://api.github.com/repos/arkka/in4331/issues{/number}","pulls_url":"https://api.github.com/repos/arkka/in4331/pulls{/number}","milestones_url":"https://api.github.com/repos/arkka/in4331/milestones{/number}","notifications_url":"https://api.github.com/repos/arkka/in4331/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/arkka/in4331/labels{/name}","releases_url":"https://api.github.com/repos/arkka/in4331/releases{/id}","deployments_url":"https://api.github.com/repos/arkka/in4331/deployments","created_at":"2016-05-11T07:10:48Z","updated_at":"2016-05-11T07:10:48Z","pushed_at":"2016-06-02T16:01:39Z","git_url":"git://github.com/arkka/in4331.git","ssh_url":"git@github.com:arkka/in4331.git","clone_url":"https://github.com/arkka/in4331.git","svn_url":"https://github.com/arkka/in4331","homepage":null,"size":3513,"stargazers_count":0,"watchers_count":0,"language":null,"has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":2,"forks":0,"open_issues":2,"watchers":0,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/arkka/in4331/pulls/2"},"html":{"href":"https://github.com/arkka/in4331/pull/2"},"issue":{"href":"https://api.github.com/repos/arkka/in4331/issues/2"},"comments":{"href":"https://api.github.com/repos/arkka/in4331/issues/2/comments"},"review_comments":{"href":"https://api.github.com/repos/arkka/in4331/pulls/2/comments"},"review_comment":{"href":"https://api.github.com/repos/arkka/in4331/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/arkka/in4331/pulls/2/commits"},"statuses":{"href":"https://api.github.com/repos/arkka/in4331/statuses/31c84c90ba2434a7fee36b0b0616f03826005e02"}}}}
{"actor":{"display_login":"arkka"}}