{"action":"created","issue":{"url":"https://api.github.com/repos/Wikia/app/issues/9720","repository_url":"https://api.github.com/repos/Wikia/app","labels_url":"https://api.github.com/repos/Wikia/app/issues/9720/labels{/name}","comments_url":"https://api.github.com/repos/Wikia/app/issues/9720/comments","events_url":"https://api.github.com/repos/Wikia/app/issues/9720/events","html_url":"https://github.com/Wikia/app/pull/9720","id":133976335,"number":9720,"title":"[PLATFORM-1483] User permissions lib - Do Not Merge","user":{"login":"jcellary","id":7473307,"avatar_url":"https://avatars.githubusercontent.com/u/7473307?v=3","gravatar_id":"","url":"https://api.github.com/users/jcellary","html_url":"https://github.com/jcellary","followers_url":"https://api.github.com/users/jcellary/followers","following_url":"https://api.github.com/users/jcellary/following{/other_user}","gists_url":"https://api.github.com/users/jcellary/gists{/gist_id}","starred_url":"https://api.github.com/users/jcellary/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jcellary/subscriptions","organizations_url":"https://api.github.com/users/jcellary/orgs","repos_url":"https://api.github.com/users/jcellary/repos","events_url":"https://api.github.com/users/jcellary/events{/privacy}","received_events_url":"https://api.github.com/users/jcellary/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2016-02-16T13:01:23Z","updated_at":"2016-02-17T15:31:13Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/Wikia/app/pulls/9720","html_url":"https://github.com/Wikia/app/pull/9720","diff_url":"https://github.com/Wikia/app/pull/9720.diff","patch_url":"https://github.com/Wikia/app/pull/9720.patch"},"body":"This PR is a WIP for centralizing permission handling inside of media wiki, so that later on we can move that logic to the user permissions service.\r\n\r\nFor that purpose a new permission service lib has been introduced (similarly to user preferences) and all logic from the User class is moved to the lib. Methods in the User class now only serve as a proxy. \r\n\r\nFrom an altered lines perspective most of changes are moving permission definition to a single file located in config repo.\r\n\r\nOther changes include\r\n- Removal of unused extension 3rdparty/SpecialProtectSite (not to confuse with wikia/SpecialProtectSite)\r\n- Removal of WIKIA_ENV_INTERNAL (retired wikia one)\r\n- Removal of unused autopromote once functionality\r\n- Removal of some of the hooks and global variables to help encapsulation\r\n\r\nThis is still a WIP - that is implementaion is finished, but I'm still testing. I created this PR the get your opinion on the introduced changes. This PR needs to processed together with the corresponding PR in config repo: https://github.com/Wikia/config/pull/1620"},"comment":{"url":"https://api.github.com/repos/Wikia/app/issues/comments/185255772","html_url":"https://github.com/Wikia/app/pull/9720#issuecomment-185255772","issue_url":"https://api.github.com/repos/Wikia/app/issues/9720","id":185255772,"user":{"login":"jcellary","id":7473307,"avatar_url":"https://avatars.githubusercontent.com/u/7473307?v=3","gravatar_id":"","url":"https://api.github.com/users/jcellary","html_url":"https://github.com/jcellary","followers_url":"https://api.github.com/users/jcellary/followers","following_url":"https://api.github.com/users/jcellary/following{/other_user}","gists_url":"https://api.github.com/users/jcellary/gists{/gist_id}","starred_url":"https://api.github.com/users/jcellary/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jcellary/subscriptions","organizations_url":"https://api.github.com/users/jcellary/orgs","repos_url":"https://api.github.com/users/jcellary/repos","events_url":"https://api.github.com/users/jcellary/events{/privacy}","received_events_url":"https://api.github.com/users/jcellary/received_events","type":"User","site_admin":false},"created_at":"2016-02-17T15:31:13Z","updated_at":"2016-02-17T15:31:13Z","body":"You're right Macbre, I'll create a separate PR for the cleanups and release it step by step."}}