{"action":"opened","number":18,"pull_request":{"url":"https://api.github.com/repos/Starbow/website/pulls/18","id":39863876,"html_url":"https://github.com/Starbow/website/pull/18","diff_url":"https://github.com/Starbow/website/pull/18.diff","patch_url":"https://github.com/Starbow/website/pull/18.patch","issue_url":"https://api.github.com/repos/Starbow/website/issues/18","number":18,"state":"open","locked":false,"title":"Model abstraction","user":{"login":"kafoso","id":3169691,"avatar_url":"https://avatars.githubusercontent.com/u/3169691?v=3","gravatar_id":"","url":"https://api.github.com/users/kafoso","html_url":"https://github.com/kafoso","followers_url":"https://api.github.com/users/kafoso/followers","following_url":"https://api.github.com/users/kafoso/following{/other_user}","gists_url":"https://api.github.com/users/kafoso/gists{/gist_id}","starred_url":"https://api.github.com/users/kafoso/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kafoso/subscriptions","organizations_url":"https://api.github.com/users/kafoso/orgs","repos_url":"https://api.github.com/users/kafoso/repos","events_url":"https://api.github.com/users/kafoso/events{/privacy}","received_events_url":"https://api.github.com/users/kafoso/received_events","type":"User","site_admin":false},"body":"@Sikian \r\n\r\nI've abstracted common functionality in models to other modules (or \"classes\"), allowing these model to extend parent models through the `inherit` module.\r\n\r\nMost notably, the `User` model has been split up into `ThinkyDocumentModel` and `ConfigModel`; each extending each other.\r\n\r\nThis means:\r\n\r\n1. It should be easier to adhere to the Open/closed principle.\r\n2. Models are not forced to retrieve config data or the database Object, which in turn should improve performance.\r\n3. It's easier to write manageable unit tests for each model.","created_at":"2015-07-13T22:27:44Z","updated_at":"2015-07-13T22:27:44Z","closed_at":null,"merged_at":null,"merge_commit_sha":null,"assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/Starbow/website/pulls/18/commits","review_comments_url":"https://api.github.com/repos/Starbow/website/pulls/18/comments","review_comment_url":"https://api.github.com/repos/Starbow/website/pulls/comments{/number}","comments_url":"https://api.github.com/repos/Starbow/website/issues/18/comments","statuses_url":"https://api.github.com/repos/Starbow/website/statuses/e8431f5b2ebe5c87aaeb0ab2f4c9b71537d4ed3f","head":{"label":"Starbow:model-abstraction","ref":"model-abstraction","sha":"e8431f5b2ebe5c87aaeb0ab2f4c9b71537d4ed3f","user":{"login":"Starbow","id":6475859,"avatar_url":"https://avatars.githubusercontent.com/u/6475859?v=3","gravatar_id":"","url":"https://api.github.com/users/Starbow","html_url":"https://github.com/Starbow","followers_url":"https://api.github.com/users/Starbow/followers","following_url":"https://api.github.com/users/Starbow/following{/other_user}","gists_url":"https://api.github.com/users/Starbow/gists{/gist_id}","starred_url":"https://api.github.com/users/Starbow/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Starbow/subscriptions","organizations_url":"https://api.github.com/users/Starbow/orgs","repos_url":"https://api.github.com/users/Starbow/repos","events_url":"https://api.github.com/users/Starbow/events{/privacy}","received_events_url":"https://api.github.com/users/Starbow/received_events","type":"Organization","site_admin":false},"repo":{"id":38239497,"name":"website","full_name":"Starbow/website","owner":{"login":"Starbow","id":6475859,"avatar_url":"https://avatars.githubusercontent.com/u/6475859?v=3","gravatar_id":"","url":"https://api.github.com/users/Starbow","html_url":"https://github.com/Starbow","followers_url":"https://api.github.com/users/Starbow/followers","following_url":"https://api.github.com/users/Starbow/following{/other_user}","gists_url":"https://api.github.com/users/Starbow/gists{/gist_id}","starred_url":"https://api.github.com/users/Starbow/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Starbow/subscriptions","organizations_url":"https://api.github.com/users/Starbow/orgs","repos_url":"https://api.github.com/users/Starbow/repos","events_url":"https://api.github.com/users/Starbow/events{/privacy}","received_events_url":"https://api.github.com/users/Starbow/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/Starbow/website","description":"","fork":false,"url":"https://api.github.com/repos/Starbow/website","forks_url":"https://api.github.com/repos/Starbow/website/forks","keys_url":"https://api.github.com/repos/Starbow/website/keys{/key_id}","collaborators_url":"https://api.github.com/repos/Starbow/website/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/Starbow/website/teams","hooks_url":"https://api.github.com/repos/Starbow/website/hooks","issue_events_url":"https://api.github.com/repos/Starbow/website/issues/events{/number}","events_url":"https://api.github.com/repos/Starbow/website/events","assignees_url":"https://api.github.com/repos/Starbow/website/assignees{/user}","branches_url":"https://api.github.com/repos/Starbow/website/branches{/branch}","tags_url":"https://api.github.com/repos/Starbow/website/tags","blobs_url":"https://api.github.com/repos/Starbow/website/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/Starbow/website/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/Starbow/website/git/refs{/sha}","trees_url":"https://api.github.com/repos/Starbow/website/git/trees{/sha}","statuses_url":"https://api.github.com/repos/Starbow/website/statuses/{sha}","languages_url":"https://api.github.com/repos/Starbow/website/languages","stargazers_url":"https://api.github.com/repos/Starbow/website/stargazers","contributors_url":"https://api.github.com/repos/Starbow/website/contributors","subscribers_url":"https://api.github.com/repos/Starbow/website/subscribers","subscription_url":"https://api.github.com/repos/Starbow/website/subscription","commits_url":"https://api.github.com/repos/Starbow/website/commits{/sha}","git_commits_url":"https://api.github.com/repos/Starbow/website/git/commits{/sha}","comments_url":"https://api.github.com/repos/Starbow/website/comments{/number}","issue_comment_url":"https://api.github.com/repos/Starbow/website/issues/comments{/number}","contents_url":"https://api.github.com/repos/Starbow/website/contents/{+path}","compare_url":"https://api.github.com/repos/Starbow/website/compare/{base}...{head}","merges_url":"https://api.github.com/repos/Starbow/website/merges","archive_url":"https://api.github.com/repos/Starbow/website/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/Starbow/website/downloads","issues_url":"https://api.github.com/repos/Starbow/website/issues{/number}","pulls_url":"https://api.github.com/repos/Starbow/website/pulls{/number}","milestones_url":"https://api.github.com/repos/Starbow/website/milestones{/number}","notifications_url":"https://api.github.com/repos/Starbow/website/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/Starbow/website/labels{/name}","releases_url":"https://api.github.com/repos/Starbow/website/releases{/id}","created_at":"2015-06-29T09:31:19Z","updated_at":"2015-07-11T08:54:19Z","pushed_at":"2015-07-13T22:18:46Z","git_url":"git://github.com/Starbow/website.git","ssh_url":"git@github.com:Starbow/website.git","clone_url":"https://github.com/Starbow/website.git","svn_url":"https://github.com/Starbow/website","homepage":null,"size":480,"stargazers_count":3,"watchers_count":3,"language":"JavaScript","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":3,"forks":0,"open_issues":3,"watchers":3,"default_branch":"master"}},"base":{"label":"Starbow:master","ref":"master","sha":"26e76e264734b713d789b93a7077a3e366a63d46","user":{"login":"Starbow","id":6475859,"avatar_url":"https://avatars.githubusercontent.com/u/6475859?v=3","gravatar_id":"","url":"https://api.github.com/users/Starbow","html_url":"https://github.com/Starbow","followers_url":"https://api.github.com/users/Starbow/followers","following_url":"https://api.github.com/users/Starbow/following{/other_user}","gists_url":"https://api.github.com/users/Starbow/gists{/gist_id}","starred_url":"https://api.github.com/users/Starbow/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Starbow/subscriptions","organizations_url":"https://api.github.com/users/Starbow/orgs","repos_url":"https://api.github.com/users/Starbow/repos","events_url":"https://api.github.com/users/Starbow/events{/privacy}","received_events_url":"https://api.github.com/users/Starbow/received_events","type":"Organization","site_admin":false},"repo":{"id":38239497,"name":"website","full_name":"Starbow/website","owner":{"login":"Starbow","id":6475859,"avatar_url":"https://avatars.githubusercontent.com/u/6475859?v=3","gravatar_id":"","url":"https://api.github.com/users/Starbow","html_url":"https://github.com/Starbow","followers_url":"https://api.github.com/users/Starbow/followers","following_url":"https://api.github.com/users/Starbow/following{/other_user}","gists_url":"https://api.github.com/users/Starbow/gists{/gist_id}","starred_url":"https://api.github.com/users/Starbow/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Starbow/subscriptions","organizations_url":"https://api.github.com/users/Starbow/orgs","repos_url":"https://api.github.com/users/Starbow/repos","events_url":"https://api.github.com/users/Starbow/events{/privacy}","received_events_url":"https://api.github.com/users/Starbow/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/Starbow/website","description":"","fork":false,"url":"https://api.github.com/repos/Starbow/website","forks_url":"https://api.github.com/repos/Starbow/website/forks","keys_url":"https://api.github.com/repos/Starbow/website/keys{/key_id}","collaborators_url":"https://api.github.com/repos/Starbow/website/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/Starbow/website/teams","hooks_url":"https://api.github.com/repos/Starbow/website/hooks","issue_events_url":"https://api.github.com/repos/Starbow/website/issues/events{/number}","events_url":"https://api.github.com/repos/Starbow/website/events","assignees_url":"https://api.github.com/repos/Starbow/website/assignees{/user}","branches_url":"https://api.github.com/repos/Starbow/website/branches{/branch}","tags_url":"https://api.github.com/repos/Starbow/website/tags","blobs_url":"https://api.github.com/repos/Starbow/website/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/Starbow/website/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/Starbow/website/git/refs{/sha}","trees_url":"https://api.github.com/repos/Starbow/website/git/trees{/sha}","statuses_url":"https://api.github.com/repos/Starbow/website/statuses/{sha}","languages_url":"https://api.github.com/repos/Starbow/website/languages","stargazers_url":"https://api.github.com/repos/Starbow/website/stargazers","contributors_url":"https://api.github.com/repos/Starbow/website/contributors","subscribers_url":"https://api.github.com/repos/Starbow/website/subscribers","subscription_url":"https://api.github.com/repos/Starbow/website/subscription","commits_url":"https://api.github.com/repos/Starbow/website/commits{/sha}","git_commits_url":"https://api.github.com/repos/Starbow/website/git/commits{/sha}","comments_url":"https://api.github.com/repos/Starbow/website/comments{/number}","issue_comment_url":"https://api.github.com/repos/Starbow/website/issues/comments{/number}","contents_url":"https://api.github.com/repos/Starbow/website/contents/{+path}","compare_url":"https://api.github.com/repos/Starbow/website/compare/{base}...{head}","merges_url":"https://api.github.com/repos/Starbow/website/merges","archive_url":"https://api.github.com/repos/Starbow/website/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/Starbow/website/downloads","issues_url":"https://api.github.com/repos/Starbow/website/issues{/number}","pulls_url":"https://api.github.com/repos/Starbow/website/pulls{/number}","milestones_url":"https://api.github.com/repos/Starbow/website/milestones{/number}","notifications_url":"https://api.github.com/repos/Starbow/website/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/Starbow/website/labels{/name}","releases_url":"https://api.github.com/repos/Starbow/website/releases{/id}","created_at":"2015-06-29T09:31:19Z","updated_at":"2015-07-11T08:54:19Z","pushed_at":"2015-07-13T22:18:46Z","git_url":"git://github.com/Starbow/website.git","ssh_url":"git@github.com:Starbow/website.git","clone_url":"https://github.com/Starbow/website.git","svn_url":"https://github.com/Starbow/website","homepage":null,"size":480,"stargazers_count":3,"watchers_count":3,"language":"JavaScript","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":3,"forks":0,"open_issues":3,"watchers":3,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/Starbow/website/pulls/18"},"html":{"href":"https://github.com/Starbow/website/pull/18"},"issue":{"href":"https://api.github.com/repos/Starbow/website/issues/18"},"comments":{"href":"https://api.github.com/repos/Starbow/website/issues/18/comments"},"review_comments":{"href":"https://api.github.com/repos/Starbow/website/pulls/18/comments"},"review_comment":{"href":"https://api.github.com/repos/Starbow/website/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/Starbow/website/pulls/18/commits"},"statuses":{"href":"https://api.github.com/repos/Starbow/website/statuses/e8431f5b2ebe5c87aaeb0ab2f4c9b71537d4ed3f"}},"merged":false,"mergeable":null,"mergeable_state":"unknown","merged_by":null,"comments":0,"review_comments":0,"commits":24,"additions":363,"deletions":207,"changed_files":16}}