{"action":"created","comment":{"url":"https://api.github.com/repos/edx/edx-milestones/pulls/comments/22630766","id":22630766,"diff_hunk":"@@ -0,0 +1,119 @@\n+# pylint: disable=no-init\n+# pylint: disable=old-style-class\n+# pylint: disable=too-few-public-methods\n+\"\"\"\n+Database ORM models managed by this Django app\n+Please do not integrate directly with these models!!!  This app currently\n+offers two APIs -- api.py for direct Python integration and receivers.py,\n+which leverages Django's signal framework.\n+\"\"\"\n+\n+from django.db import models\n+from model_utils.models import TimeStampedModel\n+\n+\n+class Milestone(TimeStampedModel):\n+    \"\"\"\n+    A Milestone is a representation of an accomplishment which can be\n+    attained by a user. Milestones have a base set of meta data\n+    describing the milestone, including id, name, and description.\n+    Milestones can be used to drive functionality and behavior 'behind\n+    the scenes' in Open edX, such as with the Pre-Requisite Course and\n+    Course Entrance Exam use cases.\n+    \"\"\"\n+    namespace = models.CharField(max_length=255, db_index=True)\n+    name = models.CharField(max_length=255, db_index=True)\n+    description = models.TextField()\n+    active = models.BooleanField(default=True, db_index=True)","path":"milestones/models.py","position":27,"original_position":27,"commit_id":"219c65cfcf727daa3b380befe9c856c0dd2367f8","original_commit_id":"219c65cfcf727daa3b380befe9c856c0dd2367f8","user":{"login":"ormsbee","id":41625,"avatar_url":"https://avatars.githubusercontent.com/u/41625?v=3","gravatar_id":"","url":"https://api.github.com/users/ormsbee","html_url":"https://github.com/ormsbee","followers_url":"https://api.github.com/users/ormsbee/followers","following_url":"https://api.github.com/users/ormsbee/following{/other_user}","gists_url":"https://api.github.com/users/ormsbee/gists{/gist_id}","starred_url":"https://api.github.com/users/ormsbee/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ormsbee/subscriptions","organizations_url":"https://api.github.com/users/ormsbee/orgs","repos_url":"https://api.github.com/users/ormsbee/repos","events_url":"https://api.github.com/users/ormsbee/events{/privacy}","received_events_url":"https://api.github.com/users/ormsbee/received_events","type":"User","site_admin":false},"body":"Why this index on a boolean field?","created_at":"2015-01-08T01:39:53Z","updated_at":"2015-01-08T01:39:53Z","html_url":"https://github.com/edx/edx-milestones/pull/7#discussion_r22630766","pull_request_url":"https://api.github.com/repos/edx/edx-milestones/pulls/7","_links":{"self":{"href":"https://api.github.com/repos/edx/edx-milestones/pulls/comments/22630766"},"html":{"href":"https://github.com/edx/edx-milestones/pull/7#discussion_r22630766"},"pull_request":{"href":"https://api.github.com/repos/edx/edx-milestones/pulls/7"}}},"pull_request":{"url":"https://api.github.com/repos/edx/edx-milestones/pulls/7","id":26870194,"html_url":"https://github.com/edx/edx-milestones/pull/7","diff_url":"https://github.com/edx/edx-milestones/pull/7.diff","patch_url":"https://github.com/edx/edx-milestones/pull/7.patch","issue_url":"https://api.github.com/repos/edx/edx-milestones/issues/7","number":7,"state":"open","locked":false,"title":"Release review","user":{"login":"mattdrayer","id":4520595,"avatar_url":"https://avatars.githubusercontent.com/u/4520595?v=3","gravatar_id":"","url":"https://api.github.com/users/mattdrayer","html_url":"https://github.com/mattdrayer","followers_url":"https://api.github.com/users/mattdrayer/followers","following_url":"https://api.github.com/users/mattdrayer/following{/other_user}","gists_url":"https://api.github.com/users/mattdrayer/gists{/gist_id}","starred_url":"https://api.github.com/users/mattdrayer/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mattdrayer/subscriptions","organizations_url":"https://api.github.com/users/mattdrayer/orgs","repos_url":"https://api.github.com/users/mattdrayer/repos","events_url":"https://api.github.com/users/mattdrayer/events{/privacy}","received_events_url":"https://api.github.com/users/mattdrayer/received_events","type":"User","site_admin":false},"body":"@ormsbee @chrisndodge @cpennington -- here's the PR as described in JIRA ticket PLAT-307","created_at":"2015-01-06T05:04:48Z","updated_at":"2015-01-08T01:39:53Z","closed_at":null,"merged_at":null,"merge_commit_sha":"4513a27234a1a1b46d5516a2ac46f0f787f4b040","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/edx/edx-milestones/pulls/7/commits","review_comments_url":"https://api.github.com/repos/edx/edx-milestones/pulls/7/comments","review_comment_url":"https://api.github.com/repos/edx/edx-milestones/pulls/comments/{number}","comments_url":"https://api.github.com/repos/edx/edx-milestones/issues/7/comments","statuses_url":"https://api.github.com/repos/edx/edx-milestones/statuses/219c65cfcf727daa3b380befe9c856c0dd2367f8","head":{"label":"edx:release_review","ref":"release_review","sha":"219c65cfcf727daa3b380befe9c856c0dd2367f8","user":{"login":"edx","id":3179841,"avatar_url":"https://avatars.githubusercontent.com/u/3179841?v=3","gravatar_id":"","url":"https://api.github.com/users/edx","html_url":"https://github.com/edx","followers_url":"https://api.github.com/users/edx/followers","following_url":"https://api.github.com/users/edx/following{/other_user}","gists_url":"https://api.github.com/users/edx/gists{/gist_id}","starred_url":"https://api.github.com/users/edx/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/edx/subscriptions","organizations_url":"https://api.github.com/users/edx/orgs","repos_url":"https://api.github.com/users/edx/repos","events_url":"https://api.github.com/users/edx/events{/privacy}","received_events_url":"https://api.github.com/users/edx/received_events","type":"Organization","site_admin":false},"repo":{"id":27085198,"name":"edx-milestones","full_name":"edx/edx-milestones","owner":{"login":"edx","id":3179841,"avatar_url":"https://avatars.githubusercontent.com/u/3179841?v=3","gravatar_id":"","url":"https://api.github.com/users/edx","html_url":"https://github.com/edx","followers_url":"https://api.github.com/users/edx/followers","following_url":"https://api.github.com/users/edx/following{/other_user}","gists_url":"https://api.github.com/users/edx/gists{/gist_id}","starred_url":"https://api.github.com/users/edx/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/edx/subscriptions","organizations_url":"https://api.github.com/users/edx/orgs","repos_url":"https://api.github.com/users/edx/repos","events_url":"https://api.github.com/users/edx/events{/privacy}","received_events_url":"https://api.github.com/users/edx/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/edx/edx-milestones","description":"","fork":false,"url":"https://api.github.com/repos/edx/edx-milestones","forks_url":"https://api.github.com/repos/edx/edx-milestones/forks","keys_url":"https://api.github.com/repos/edx/edx-milestones/keys{/key_id}","collaborators_url":"https://api.github.com/repos/edx/edx-milestones/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/edx/edx-milestones/teams","hooks_url":"https://api.github.com/repos/edx/edx-milestones/hooks","issue_events_url":"https://api.github.com/repos/edx/edx-milestones/issues/events{/number}","events_url":"https://api.github.com/repos/edx/edx-milestones/events","assignees_url":"https://api.github.com/repos/edx/edx-milestones/assignees{/user}","branches_url":"https://api.github.com/repos/edx/edx-milestones/branches{/branch}","tags_url":"https://api.github.com/repos/edx/edx-milestones/tags","blobs_url":"https://api.github.com/repos/edx/edx-milestones/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/edx/edx-milestones/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/edx/edx-milestones/git/refs{/sha}","trees_url":"https://api.github.com/repos/edx/edx-milestones/git/trees{/sha}","statuses_url":"https://api.github.com/repos/edx/edx-milestones/statuses/{sha}","languages_url":"https://api.github.com/repos/edx/edx-milestones/languages","stargazers_url":"https://api.github.com/repos/edx/edx-milestones/stargazers","contributors_url":"https://api.github.com/repos/edx/edx-milestones/contributors","subscribers_url":"https://api.github.com/repos/edx/edx-milestones/subscribers","subscription_url":"https://api.github.com/repos/edx/edx-milestones/subscription","commits_url":"https://api.github.com/repos/edx/edx-milestones/commits{/sha}","git_commits_url":"https://api.github.com/repos/edx/edx-milestones/git/commits{/sha}","comments_url":"https://api.github.com/repos/edx/edx-milestones/comments{/number}","issue_comment_url":"https://api.github.com/repos/edx/edx-milestones/issues/comments/{number}","contents_url":"https://api.github.com/repos/edx/edx-milestones/contents/{+path}","compare_url":"https://api.github.com/repos/edx/edx-milestones/compare/{base}...{head}","merges_url":"https://api.github.com/repos/edx/edx-milestones/merges","archive_url":"https://api.github.com/repos/edx/edx-milestones/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/edx/edx-milestones/downloads","issues_url":"https://api.github.com/repos/edx/edx-milestones/issues{/number}","pulls_url":"https://api.github.com/repos/edx/edx-milestones/pulls{/number}","milestones_url":"https://api.github.com/repos/edx/edx-milestones/milestones{/number}","notifications_url":"https://api.github.com/repos/edx/edx-milestones/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/edx/edx-milestones/labels{/name}","releases_url":"https://api.github.com/repos/edx/edx-milestones/releases{/id}","created_at":"2014-11-24T16:56:50Z","updated_at":"2014-12-31T02:22:05Z","pushed_at":"2015-01-07T21:25:57Z","git_url":"git://github.com/edx/edx-milestones.git","ssh_url":"git@github.com:edx/edx-milestones.git","clone_url":"https://github.com/edx/edx-milestones.git","svn_url":"https://github.com/edx/edx-milestones","homepage":null,"size":565,"stargazers_count":1,"watchers_count":1,"language":"Python","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":1,"mirror_url":null,"open_issues_count":1,"forks":1,"open_issues":1,"watchers":1,"default_branch":"master"}},"base":{"label":"edx:empty","ref":"empty","sha":"f0b5d921ab6865d21fc00ba1c29d1329b1c24417","user":{"login":"edx","id":3179841,"avatar_url":"https://avatars.githubusercontent.com/u/3179841?v=3","gravatar_id":"","url":"https://api.github.com/users/edx","html_url":"https://github.com/edx","followers_url":"https://api.github.com/users/edx/followers","following_url":"https://api.github.com/users/edx/following{/other_user}","gists_url":"https://api.github.com/users/edx/gists{/gist_id}","starred_url":"https://api.github.com/users/edx/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/edx/subscriptions","organizations_url":"https://api.github.com/users/edx/orgs","repos_url":"https://api.github.com/users/edx/repos","events_url":"https://api.github.com/users/edx/events{/privacy}","received_events_url":"https://api.github.com/users/edx/received_events","type":"Organization","site_admin":false},"repo":{"id":27085198,"name":"edx-milestones","full_name":"edx/edx-milestones","owner":{"login":"edx","id":3179841,"avatar_url":"https://avatars.githubusercontent.com/u/3179841?v=3","gravatar_id":"","url":"https://api.github.com/users/edx","html_url":"https://github.com/edx","followers_url":"https://api.github.com/users/edx/followers","following_url":"https://api.github.com/users/edx/following{/other_user}","gists_url":"https://api.github.com/users/edx/gists{/gist_id}","starred_url":"https://api.github.com/users/edx/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/edx/subscriptions","organizations_url":"https://api.github.com/users/edx/orgs","repos_url":"https://api.github.com/users/edx/repos","events_url":"https://api.github.com/users/edx/events{/privacy}","received_events_url":"https://api.github.com/users/edx/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/edx/edx-milestones","description":"","fork":false,"url":"https://api.github.com/repos/edx/edx-milestones","forks_url":"https://api.github.com/repos/edx/edx-milestones/forks","keys_url":"https://api.github.com/repos/edx/edx-milestones/keys{/key_id}","collaborators_url":"https://api.github.com/repos/edx/edx-milestones/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/edx/edx-milestones/teams","hooks_url":"https://api.github.com/repos/edx/edx-milestones/hooks","issue_events_url":"https://api.github.com/repos/edx/edx-milestones/issues/events{/number}","events_url":"https://api.github.com/repos/edx/edx-milestones/events","assignees_url":"https://api.github.com/repos/edx/edx-milestones/assignees{/user}","branches_url":"https://api.github.com/repos/edx/edx-milestones/branches{/branch}","tags_url":"https://api.github.com/repos/edx/edx-milestones/tags","blobs_url":"https://api.github.com/repos/edx/edx-milestones/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/edx/edx-milestones/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/edx/edx-milestones/git/refs{/sha}","trees_url":"https://api.github.com/repos/edx/edx-milestones/git/trees{/sha}","statuses_url":"https://api.github.com/repos/edx/edx-milestones/statuses/{sha}","languages_url":"https://api.github.com/repos/edx/edx-milestones/languages","stargazers_url":"https://api.github.com/repos/edx/edx-milestones/stargazers","contributors_url":"https://api.github.com/repos/edx/edx-milestones/contributors","subscribers_url":"https://api.github.com/repos/edx/edx-milestones/subscribers","subscription_url":"https://api.github.com/repos/edx/edx-milestones/subscription","commits_url":"https://api.github.com/repos/edx/edx-milestones/commits{/sha}","git_commits_url":"https://api.github.com/repos/edx/edx-milestones/git/commits{/sha}","comments_url":"https://api.github.com/repos/edx/edx-milestones/comments{/number}","issue_comment_url":"https://api.github.com/repos/edx/edx-milestones/issues/comments/{number}","contents_url":"https://api.github.com/repos/edx/edx-milestones/contents/{+path}","compare_url":"https://api.github.com/repos/edx/edx-milestones/compare/{base}...{head}","merges_url":"https://api.github.com/repos/edx/edx-milestones/merges","archive_url":"https://api.github.com/repos/edx/edx-milestones/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/edx/edx-milestones/downloads","issues_url":"https://api.github.com/repos/edx/edx-milestones/issues{/number}","pulls_url":"https://api.github.com/repos/edx/edx-milestones/pulls{/number}","milestones_url":"https://api.github.com/repos/edx/edx-milestones/milestones{/number}","notifications_url":"https://api.github.com/repos/edx/edx-milestones/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/edx/edx-milestones/labels{/name}","releases_url":"https://api.github.com/repos/edx/edx-milestones/releases{/id}","created_at":"2014-11-24T16:56:50Z","updated_at":"2014-12-31T02:22:05Z","pushed_at":"2015-01-07T21:25:57Z","git_url":"git://github.com/edx/edx-milestones.git","ssh_url":"git@github.com:edx/edx-milestones.git","clone_url":"https://github.com/edx/edx-milestones.git","svn_url":"https://github.com/edx/edx-milestones","homepage":null,"size":565,"stargazers_count":1,"watchers_count":1,"language":"Python","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":1,"mirror_url":null,"open_issues_count":1,"forks":1,"open_issues":1,"watchers":1,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/edx/edx-milestones/pulls/7"},"html":{"href":"https://github.com/edx/edx-milestones/pull/7"},"issue":{"href":"https://api.github.com/repos/edx/edx-milestones/issues/7"},"comments":{"href":"https://api.github.com/repos/edx/edx-milestones/issues/7/comments"},"review_comments":{"href":"https://api.github.com/repos/edx/edx-milestones/pulls/7/comments"},"review_comment":{"href":"https://api.github.com/repos/edx/edx-milestones/pulls/comments/{number}"},"commits":{"href":"https://api.github.com/repos/edx/edx-milestones/pulls/7/commits"},"statuses":{"href":"https://api.github.com/repos/edx/edx-milestones/statuses/219c65cfcf727daa3b380befe9c856c0dd2367f8"}}}}