{"action":"created","comment":{"url":"https://api.github.com/repos/linnovate/mean/pulls/comments/26983705","id":26983705,"diff_hunk":"@@ -1,11 +1,11 @@\n 'use strict';\n \n-angular.module('mean.articles').controller('ArticlesController', ['$scope', '$stateParams', '$location', 'Global', 'Articles',\n-  function($scope, $stateParams, $location, Global, Articles) {\n+angular.module('mean.articles').controller('ArticlesController', ['$scope', '$stateParams', '$location', 'Global', 'Articles', 'MeanUser',","path":"packages/articles/public/controllers/articles.js","position":5,"original_position":5,"commit_id":"f6c78727f1918cceef8d10883271e093bba1dfbc","original_commit_id":"f6c78727f1918cceef8d10883271e093bba1dfbc","user":{"login":"houndci","id":6697940,"avatar_url":"https://avatars.githubusercontent.com/u/6697940?v=3","gravatar_id":"","url":"https://api.github.com/users/houndci","html_url":"https://github.com/houndci","followers_url":"https://api.github.com/users/houndci/followers","following_url":"https://api.github.com/users/houndci/following{/other_user}","gists_url":"https://api.github.com/users/houndci/gists{/gist_id}","starred_url":"https://api.github.com/users/houndci/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/houndci/subscriptions","organizations_url":"https://api.github.com/users/houndci/orgs","repos_url":"https://api.github.com/users/houndci/repos","events_url":"https://api.github.com/users/houndci/events{/privacy}","received_events_url":"https://api.github.com/users/houndci/received_events","type":"User","site_admin":false},"body":"Line is too long.","created_at":"2015-03-23T21:45:42Z","updated_at":"2015-03-23T21:45:42Z","html_url":"https://github.com/linnovate/mean/pull/1044#discussion_r26983705","pull_request_url":"https://api.github.com/repos/linnovate/mean/pulls/1044","_links":{"self":{"href":"https://api.github.com/repos/linnovate/mean/pulls/comments/26983705"},"html":{"href":"https://github.com/linnovate/mean/pull/1044#discussion_r26983705"},"pull_request":{"href":"https://api.github.com/repos/linnovate/mean/pulls/1044"}}},"pull_request":{"url":"https://api.github.com/repos/linnovate/mean/pulls/1044","id":28436359,"html_url":"https://github.com/linnovate/mean/pull/1044","diff_url":"https://github.com/linnovate/mean/pull/1044.diff","patch_url":"https://github.com/linnovate/mean/pull/1044.patch","issue_url":"https://api.github.com/repos/linnovate/mean/issues/1044","number":1044,"state":"open","locked":false,"title":"Jwt auth","user":{"login":"MilosStanic","id":3983854,"avatar_url":"https://avatars.githubusercontent.com/u/3983854?v=3","gravatar_id":"","url":"https://api.github.com/users/MilosStanic","html_url":"https://github.com/MilosStanic","followers_url":"https://api.github.com/users/MilosStanic/followers","following_url":"https://api.github.com/users/MilosStanic/following{/other_user}","gists_url":"https://api.github.com/users/MilosStanic/gists{/gist_id}","starred_url":"https://api.github.com/users/MilosStanic/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/MilosStanic/subscriptions","organizations_url":"https://api.github.com/users/MilosStanic/orgs","repos_url":"https://api.github.com/users/MilosStanic/repos","events_url":"https://api.github.com/users/MilosStanic/events{/privacy}","received_events_url":"https://api.github.com/users/MilosStanic/received_events","type":"User","site_admin":false},"body":"This is the first preview JSON Web Token (JWT) Authenticatio redesign of `users` package, plus some changes to `system` package in the header.js and header.html to make it work. \r\nCompletely eliminated need for `$rootScope.user`, `window.user` and `Global.user`. All auth done via the MeanUser service, as shown in the changed `articles` package files. \r\nDidn't deal with menus showing or not showing, because that is not a job of this PR. \r\nPlease help me test it, and I can update it later when we find some bugs, and it can be ready for v 0.5.0","created_at":"2015-02-01T20:16:54Z","updated_at":"2015-03-23T21:45:42Z","closed_at":null,"merged_at":null,"merge_commit_sha":"46288e38988ea53c26c22a35fd118c15f0bd7acc","assignee":null,"milestone":{"url":"https://api.github.com/repos/linnovate/mean/milestones/4","html_url":"https://github.com/linnovate/mean/milestones/0.5","labels_url":"https://api.github.com/repos/linnovate/mean/milestones/4/labels","id":950181,"number":4,"title":"0.5","description":"- Multiple DB support\r\n- Swagger support\r\n- clean urls - html5push state + mean-seo","creator":{"login":"liorkesos","id":245027,"avatar_url":"https://avatars.githubusercontent.com/u/245027?v=3","gravatar_id":"","url":"https://api.github.com/users/liorkesos","html_url":"https://github.com/liorkesos","followers_url":"https://api.github.com/users/liorkesos/followers","following_url":"https://api.github.com/users/liorkesos/following{/other_user}","gists_url":"https://api.github.com/users/liorkesos/gists{/gist_id}","starred_url":"https://api.github.com/users/liorkesos/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/liorkesos/subscriptions","organizations_url":"https://api.github.com/users/liorkesos/orgs","repos_url":"https://api.github.com/users/liorkesos/repos","events_url":"https://api.github.com/users/liorkesos/events{/privacy}","received_events_url":"https://api.github.com/users/liorkesos/received_events","type":"User","site_admin":false},"open_issues":4,"closed_issues":1,"state":"open","created_at":"2015-01-25T10:55:18Z","updated_at":"2015-03-22T09:37:17Z","due_on":"2015-03-30T21:00:00Z","closed_at":null},"commits_url":"https://api.github.com/repos/linnovate/mean/pulls/1044/commits","review_comments_url":"https://api.github.com/repos/linnovate/mean/pulls/1044/comments","review_comment_url":"https://api.github.com/repos/linnovate/mean/pulls/comments{/number}","comments_url":"https://api.github.com/repos/linnovate/mean/issues/1044/comments","statuses_url":"https://api.github.com/repos/linnovate/mean/statuses/f6c78727f1918cceef8d10883271e093bba1dfbc","head":{"label":"MilosStanic:jwt-auth","ref":"jwt-auth","sha":"f6c78727f1918cceef8d10883271e093bba1dfbc","user":{"login":"MilosStanic","id":3983854,"avatar_url":"https://avatars.githubusercontent.com/u/3983854?v=3","gravatar_id":"","url":"https://api.github.com/users/MilosStanic","html_url":"https://github.com/MilosStanic","followers_url":"https://api.github.com/users/MilosStanic/followers","following_url":"https://api.github.com/users/MilosStanic/following{/other_user}","gists_url":"https://api.github.com/users/MilosStanic/gists{/gist_id}","starred_url":"https://api.github.com/users/MilosStanic/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/MilosStanic/subscriptions","organizations_url":"https://api.github.com/users/MilosStanic/orgs","repos_url":"https://api.github.com/users/MilosStanic/repos","events_url":"https://api.github.com/users/MilosStanic/events{/privacy}","received_events_url":"https://api.github.com/users/MilosStanic/received_events","type":"User","site_admin":false},"repo":{"id":29772896,"name":"mean","full_name":"MilosStanic/mean","owner":{"login":"MilosStanic","id":3983854,"avatar_url":"https://avatars.githubusercontent.com/u/3983854?v=3","gravatar_id":"","url":"https://api.github.com/users/MilosStanic","html_url":"https://github.com/MilosStanic","followers_url":"https://api.github.com/users/MilosStanic/followers","following_url":"https://api.github.com/users/MilosStanic/following{/other_user}","gists_url":"https://api.github.com/users/MilosStanic/gists{/gist_id}","starred_url":"https://api.github.com/users/MilosStanic/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/MilosStanic/subscriptions","organizations_url":"https://api.github.com/users/MilosStanic/orgs","repos_url":"https://api.github.com/users/MilosStanic/repos","events_url":"https://api.github.com/users/MilosStanic/events{/privacy}","received_events_url":"https://api.github.com/users/MilosStanic/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/MilosStanic/mean","description":"MEAN (Mongo, Express, Angular, Node) - A Simple, Scalable and Easy starting point for full stack javascript web development - utilizing many of the best practices we've found on the way","fork":true,"url":"https://api.github.com/repos/MilosStanic/mean","forks_url":"https://api.github.com/repos/MilosStanic/mean/forks","keys_url":"https://api.github.com/repos/MilosStanic/mean/keys{/key_id}","collaborators_url":"https://api.github.com/repos/MilosStanic/mean/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/MilosStanic/mean/teams","hooks_url":"https://api.github.com/repos/MilosStanic/mean/hooks","issue_events_url":"https://api.github.com/repos/MilosStanic/mean/issues/events{/number}","events_url":"https://api.github.com/repos/MilosStanic/mean/events","assignees_url":"https://api.github.com/repos/MilosStanic/mean/assignees{/user}","branches_url":"https://api.github.com/repos/MilosStanic/mean/branches{/branch}","tags_url":"https://api.github.com/repos/MilosStanic/mean/tags","blobs_url":"https://api.github.com/repos/MilosStanic/mean/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/MilosStanic/mean/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/MilosStanic/mean/git/refs{/sha}","trees_url":"https://api.github.com/repos/MilosStanic/mean/git/trees{/sha}","statuses_url":"https://api.github.com/repos/MilosStanic/mean/statuses/{sha}","languages_url":"https://api.github.com/repos/MilosStanic/mean/languages","stargazers_url":"https://api.github.com/repos/MilosStanic/mean/stargazers","contributors_url":"https://api.github.com/repos/MilosStanic/mean/contributors","subscribers_url":"https://api.github.com/repos/MilosStanic/mean/subscribers","subscription_url":"https://api.github.com/repos/MilosStanic/mean/subscription","commits_url":"https://api.github.com/repos/MilosStanic/mean/commits{/sha}","git_commits_url":"https://api.github.com/repos/MilosStanic/mean/git/commits{/sha}","comments_url":"https://api.github.com/repos/MilosStanic/mean/comments{/number}","issue_comment_url":"https://api.github.com/repos/MilosStanic/mean/issues/comments{/number}","contents_url":"https://api.github.com/repos/MilosStanic/mean/contents/{+path}","compare_url":"https://api.github.com/repos/MilosStanic/mean/compare/{base}...{head}","merges_url":"https://api.github.com/repos/MilosStanic/mean/merges","archive_url":"https://api.github.com/repos/MilosStanic/mean/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/MilosStanic/mean/downloads","issues_url":"https://api.github.com/repos/MilosStanic/mean/issues{/number}","pulls_url":"https://api.github.com/repos/MilosStanic/mean/pulls{/number}","milestones_url":"https://api.github.com/repos/MilosStanic/mean/milestones{/number}","notifications_url":"https://api.github.com/repos/MilosStanic/mean/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/MilosStanic/mean/labels{/name}","releases_url":"https://api.github.com/repos/MilosStanic/mean/releases{/id}","created_at":"2015-01-24T10:21:13Z","updated_at":"2015-01-24T10:21:14Z","pushed_at":"2015-03-23T21:45:30Z","git_url":"git://github.com/MilosStanic/mean.git","ssh_url":"git@github.com:MilosStanic/mean.git","clone_url":"https://github.com/MilosStanic/mean.git","svn_url":"https://github.com/MilosStanic/mean","homepage":"http://mean.io","size":6009,"stargazers_count":0,"watchers_count":0,"language":"JavaScript","has_issues":false,"has_downloads":true,"has_wiki":true,"has_pages":true,"forks_count":0,"mirror_url":null,"open_issues_count":1,"forks":0,"open_issues":1,"watchers":0,"default_branch":"master"}},"base":{"label":"linnovate:master","ref":"master","sha":"29219519c52a77b30745bf80589c4ed2aa35b740","user":{"login":"linnovate","id":307487,"avatar_url":"https://avatars.githubusercontent.com/u/307487?v=3","gravatar_id":"","url":"https://api.github.com/users/linnovate","html_url":"https://github.com/linnovate","followers_url":"https://api.github.com/users/linnovate/followers","following_url":"https://api.github.com/users/linnovate/following{/other_user}","gists_url":"https://api.github.com/users/linnovate/gists{/gist_id}","starred_url":"https://api.github.com/users/linnovate/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/linnovate/subscriptions","organizations_url":"https://api.github.com/users/linnovate/orgs","repos_url":"https://api.github.com/users/linnovate/repos","events_url":"https://api.github.com/users/linnovate/events{/privacy}","received_events_url":"https://api.github.com/users/linnovate/received_events","type":"Organization","site_admin":false},"repo":{"id":10219106,"name":"mean","full_name":"linnovate/mean","owner":{"login":"linnovate","id":307487,"avatar_url":"https://avatars.githubusercontent.com/u/307487?v=3","gravatar_id":"","url":"https://api.github.com/users/linnovate","html_url":"https://github.com/linnovate","followers_url":"https://api.github.com/users/linnovate/followers","following_url":"https://api.github.com/users/linnovate/following{/other_user}","gists_url":"https://api.github.com/users/linnovate/gists{/gist_id}","starred_url":"https://api.github.com/users/linnovate/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/linnovate/subscriptions","organizations_url":"https://api.github.com/users/linnovate/orgs","repos_url":"https://api.github.com/users/linnovate/repos","events_url":"https://api.github.com/users/linnovate/events{/privacy}","received_events_url":"https://api.github.com/users/linnovate/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/linnovate/mean","description":"MEAN (Mongo, Express, Angular, Node) - A Simple, Scalable and Easy starting point for full stack javascript web development - utilizing many of the best practices we've found on the way","fork":false,"url":"https://api.github.com/repos/linnovate/mean","forks_url":"https://api.github.com/repos/linnovate/mean/forks","keys_url":"https://api.github.com/repos/linnovate/mean/keys{/key_id}","collaborators_url":"https://api.github.com/repos/linnovate/mean/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/linnovate/mean/teams","hooks_url":"https://api.github.com/repos/linnovate/mean/hooks","issue_events_url":"https://api.github.com/repos/linnovate/mean/issues/events{/number}","events_url":"https://api.github.com/repos/linnovate/mean/events","assignees_url":"https://api.github.com/repos/linnovate/mean/assignees{/user}","branches_url":"https://api.github.com/repos/linnovate/mean/branches{/branch}","tags_url":"https://api.github.com/repos/linnovate/mean/tags","blobs_url":"https://api.github.com/repos/linnovate/mean/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/linnovate/mean/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/linnovate/mean/git/refs{/sha}","trees_url":"https://api.github.com/repos/linnovate/mean/git/trees{/sha}","statuses_url":"https://api.github.com/repos/linnovate/mean/statuses/{sha}","languages_url":"https://api.github.com/repos/linnovate/mean/languages","stargazers_url":"https://api.github.com/repos/linnovate/mean/stargazers","contributors_url":"https://api.github.com/repos/linnovate/mean/contributors","subscribers_url":"https://api.github.com/repos/linnovate/mean/subscribers","subscription_url":"https://api.github.com/repos/linnovate/mean/subscription","commits_url":"https://api.github.com/repos/linnovate/mean/commits{/sha}","git_commits_url":"https://api.github.com/repos/linnovate/mean/git/commits{/sha}","comments_url":"https://api.github.com/repos/linnovate/mean/comments{/number}","issue_comment_url":"https://api.github.com/repos/linnovate/mean/issues/comments{/number}","contents_url":"https://api.github.com/repos/linnovate/mean/contents/{+path}","compare_url":"https://api.github.com/repos/linnovate/mean/compare/{base}...{head}","merges_url":"https://api.github.com/repos/linnovate/mean/merges","archive_url":"https://api.github.com/repos/linnovate/mean/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/linnovate/mean/downloads","issues_url":"https://api.github.com/repos/linnovate/mean/issues{/number}","pulls_url":"https://api.github.com/repos/linnovate/mean/pulls{/number}","milestones_url":"https://api.github.com/repos/linnovate/mean/milestones{/number}","notifications_url":"https://api.github.com/repos/linnovate/mean/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/linnovate/mean/labels{/name}","releases_url":"https://api.github.com/repos/linnovate/mean/releases{/id}","created_at":"2013-05-22T12:15:47Z","updated_at":"2015-03-23T21:41:51Z","pushed_at":"2015-03-23T21:45:34Z","git_url":"git://github.com/linnovate/mean.git","ssh_url":"git@github.com:linnovate/mean.git","clone_url":"https://github.com/linnovate/mean.git","svn_url":"https://github.com/linnovate/mean","homepage":"http://mean.io","size":13138,"stargazers_count":6349,"watchers_count":6349,"language":"JavaScript","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":true,"forks_count":1885,"mirror_url":null,"open_issues_count":298,"forks":1885,"open_issues":298,"watchers":6349,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/linnovate/mean/pulls/1044"},"html":{"href":"https://github.com/linnovate/mean/pull/1044"},"issue":{"href":"https://api.github.com/repos/linnovate/mean/issues/1044"},"comments":{"href":"https://api.github.com/repos/linnovate/mean/issues/1044/comments"},"review_comments":{"href":"https://api.github.com/repos/linnovate/mean/pulls/1044/comments"},"review_comment":{"href":"https://api.github.com/repos/linnovate/mean/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/linnovate/mean/pulls/1044/commits"},"statuses":{"href":"https://api.github.com/repos/linnovate/mean/statuses/f6c78727f1918cceef8d10883271e093bba1dfbc"}}}}