{"action":"created","comment":{"url":"https://api.github.com/repos/open-craft/edx-platform/pulls/comments/229021070","pull_request_review_id":169421544,"id":229021070,"node_id":"MDI0OlB1bGxSZXF1ZXN0UmV2aWV3Q29tbWVudDIyOTAyMTA3MA==","diff_hunk":"@@ -0,0 +1,139 @@\n+import base64\n+from uuid import UUID\n+\n+from opaque_keys import InvalidKeyError\n+from opaque_keys.edx.keys import DefinitionKey\n+\n+\n+class BundleDefinitionLocator(DefinitionKey):\n+    \"\"\"\n+    Implementation of the DefinitionKey type, for XBlock content stored in\n+    Blockstore bundles (.olx files).\n+\n+    Each BundleDefinitionLocator holds the following data\n+        bundle UUID (e.g. fc4d4d8d-60b3-4aad-b9f1-4ea738505d13)\n+        OLX file path (e.g. /unit-welcome/welcome.olx)\n+        Block type (of some block within the OLX file, e.g. 'html')\n+        Block definition ID (of some block within the OLX file, e.g. 'intro')\n+    \n+    Note that we do not store bundle slugs (rather UUIDs), because the slugs\n+    may change. These definition keys are more for internal use than for\n+    displaying to users.\n+    \"\"\"\n+    CANONICAL_NAMESPACE = 'olx-v1'\n+    KEY_FIELDS = ('bundle_uuid', 'olx_path', 'block_type', 'definition_id')\n+    __slots__ = KEY_FIELDS\n+    CHECKED_INIT = False\n+\n+    def __init__(self, bundle_uuid, olx_path, block_type, definition_id):\n+        if not isinstance(bundle_uuid, UUID):\n+            bundle_uuid = UUID(bundle_uuid)\n+        if len(olx_path) < 2 or olx_path[0] != '/' or olx_path.find(':') != -1:\n+            raise ValueError(\"Invalid OLX path: {}\".format(olx_path))\n+        super(BundleDefinitionLocator, self).__init__(\n+            bundle_uuid=bundle_uuid,\n+            olx_path=olx_path,\n+            block_type=block_type,\n+            definition_id=definition_id,\n+        )\n+\n+    @classmethod\n+    def _olx_path_shortened(cls, olx_path):\n+        \"\"\"\n+        Convert an arbitrary OLX path to a potentially shorter format.\n+        The result is shorter if the olx path is in the standard format\n+        /block_type-block_id/block_id.olx\n+\n+        The result is a string like \"block_type/block_id\" or the original string.\n+\n+        Returns a tuple: short_string, type_part or None, id_part or None\n+        \"\"\"\n+        if len(olx_path) < 2 or olx_path[0] != '/':\n+            raise ValueError(\"An OLX path must start with / and contain a filename\")\n+        if olx_path.endswith('.olx'):\n+            id_part = olx_path[:-4].rpartition('/')[2]  # from \"/foo/bar.olx\", get \"bar\"\n+            type_part = olx_path[1:].partition('-' + id_part + '/')[0] # from \"/foo-bar/bar.olx\", get \"foo\"\n+            short_path = type_part + '/' + id_part\n+            if cls._olx_path_expanded(short_path)[0] == olx_path:\n+                return (short_path, type_part, id_part)\n+        return (olx_path, None, None)\n+\n+    @classmethod\n+    def _olx_path_expanded(cls, olx_path_shortened):\n+        \"\"\"\n+        Convert a potentially shortened OLX path to the full expanded form\n+        The result is a string like \"/block_type-block_id/block_id.olx\"\n+\n+        Returns a tuple: olx_path, type_part or None, id_part or None\n+        \"\"\"","path":"openedx/core/lib/xblock_keys/bundle_def.py","position":68,"original_position":68,"commit_id":"a7c1610e885f6c0bc4f69827bf82e545b5067c0e","original_commit_id":"a7c1610e885f6c0bc4f69827bf82e545b5067c0e","user":{"login":"bradenmacdonald","id":945577,"node_id":"MDQ6VXNlcjk0NTU3Nw==","avatar_url":"https://avatars2.githubusercontent.com/u/945577?v=4","gravatar_id":"","url":"https://api.github.com/users/bradenmacdonald","html_url":"https://github.com/bradenmacdonald","followers_url":"https://api.github.com/users/bradenmacdonald/followers","following_url":"https://api.github.com/users/bradenmacdonald/following{/other_user}","gists_url":"https://api.github.com/users/bradenmacdonald/gists{/gist_id}","starred_url":"https://api.github.com/users/bradenmacdonald/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bradenmacdonald/subscriptions","organizations_url":"https://api.github.com/users/bradenmacdonald/orgs","repos_url":"https://api.github.com/users/bradenmacdonald/repos","events_url":"https://api.github.com/users/bradenmacdonald/events{/privacy}","received_events_url":"https://api.github.com/users/bradenmacdonald/received_events","type":"User","site_admin":false},"body":"@ormsbee Yeah, after thinking about this more, I do think what you're saying makes sense.\r\n\r\nSo is it reasonable to update these definition keys to store `bundle_uuid`, `block_type`, and `url_name` only? And consider those three pieces of data both necessary and sufficient to identify any XBlock definition in Blockstore?","created_at":"2018-10-29T17:19:20Z","updated_at":"2018-10-29T17:19:20Z","html_url":"https://github.com/open-craft/edx-platform/pull/146#discussion_r229021070","pull_request_url":"https://api.github.com/repos/open-craft/edx-platform/pulls/146","author_association":"MEMBER","_links":{"self":{"href":"https://api.github.com/repos/open-craft/edx-platform/pulls/comments/229021070"},"html":{"href":"https://github.com/open-craft/edx-platform/pull/146#discussion_r229021070"},"pull_request":{"href":"https://api.github.com/repos/open-craft/edx-platform/pulls/146"}},"in_reply_to_id":228612958},"pull_request":{"url":"https://api.github.com/repos/open-craft/edx-platform/pulls/146","id":225478497,"node_id":"MDExOlB1bGxSZXF1ZXN0MjI1NDc4NDk3","html_url":"https://github.com/open-craft/edx-platform/pull/146","diff_url":"https://github.com/open-craft/edx-platform/pull/146.diff","patch_url":"https://github.com/open-craft/edx-platform/pull/146.patch","issue_url":"https://api.github.com/repos/open-craft/edx-platform/issues/146","number":146,"state":"open","locked":false,"title":"Prototype: Opaque keys for Blockstore-based XBlock runtime [LX-88]","user":{"login":"bradenmacdonald","id":945577,"node_id":"MDQ6VXNlcjk0NTU3Nw==","avatar_url":"https://avatars2.githubusercontent.com/u/945577?v=4","gravatar_id":"","url":"https://api.github.com/users/bradenmacdonald","html_url":"https://github.com/bradenmacdonald","followers_url":"https://api.github.com/users/bradenmacdonald/followers","following_url":"https://api.github.com/users/bradenmacdonald/following{/other_user}","gists_url":"https://api.github.com/users/bradenmacdonald/gists{/gist_id}","starred_url":"https://api.github.com/users/bradenmacdonald/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bradenmacdonald/subscriptions","organizations_url":"https://api.github.com/users/bradenmacdonald/orgs","repos_url":"https://api.github.com/users/bradenmacdonald/repos","events_url":"https://api.github.com/users/bradenmacdonald/events{/privacy}","received_events_url":"https://api.github.com/users/bradenmacdonald/received_events","type":"User","site_admin":false},"body":"# 🚧 WIP 🚧\r\n\r\nThis implements some new types of opaque key designed to reference XBlock data in Blockstore. This proposed implementation includes:\r\n* The concept of a \"Learning Context\" which is a course, a library, a playlist of blocks, an external site, or any other \"thing\" that groups content together for a single learning experience.\r\n* The concept of the \"Global Context\" which is the Learning Context when blocks are viewed \"directly\" from Blockstore rather than viewed as part of a course, etc.\r\n* A new DefinitionKey implementation, `BundleDefinitionLocator`, which refers to the XML of an XBlock within an OLX file in blockstore. Each `BundleDefinitionLocator` encodes:\r\n  * the `UUID` of a bundle\r\n  * the full path to an OLX file in the bundle, e.g. `/drag-and-drop-v2-971aadaaaa5a4886b37fee3ced711b30/971aadaaaa5a4886b37fee3ced711b30.olx`\r\n  * the `block_type` and `definition_id` (`url_name`) of the XBlock within that OLX file (many blocks may be in a single file), e.g. `drag-and-drop-v2` and `first-drag-and-drop-problem`\r\n  * Even though these `BundleDefinitionLocator` keys store so much data, I used some tricks to give them a somewhat compact string representation; a typical key like `BundleDefinitionLocator(bundle_uuid='fc4d4d8d-60b3-4aad-b9f1-4ea738505d13', olx_path='/drag-and-drop-v2-971aadaaaa5a4886b37fee3ced711b30/971aadaaaa5a4886b37fee3ced711b30.olx', block_type='drag-and-drop-v2', definition_id='971aadaaaa5a4886b37fee3ced711b30')` will be serialized as `olx-v1:_E1NjWCzSq258U6nOFBdEw:drag-and-drop-v2/971aadaaaa5a4886b37fee3ced711b30::`\r\n\r\nThis merges into the feature branch of PR https://github.com/edx/edx-platform/pull/19136\r\n\r\n## Test Instructions:\r\n\r\nCheck out this branch.\r\n\r\nRun `make studio-shell` then `pip install -e .` to update the required entry points. Restart Studio.\r\n\r\nTest as described in https://github.com/edx/edx-platform/pull/19136\r\n\r\nYou should see that the root XBlock `<div>` in the resulting HTML has a usage key attribute like `data-usage='gblock-v1:_E1NjWCzSq258U6nOFBdEw:drag-and-drop-v2/971aadaaaa5a4886b37fee3ced711b30::'`\r\n\r\nAlso, from `./manage.py cms shell` you should be able to do things like:\r\n\r\n```python\r\n>>> from opaque_keys.edx.keys import DefinitionKey\r\n>>> DefinitionKey.from_string('olx-v1:_E1NjWCzSq258U6nOFBdEw:drag-and-drop-v2/971aadaaaa5a4886b37fee3ced711b30::')\r\nBundleDefinitionLocator(UUID('fc4d4d8d-60b3-4aad-b9f1-4ea738505d13'), u'/drag-and-drop-v2-971aadaaaa5a4886b37fee3ced711b30/971aadaaaa5a4886b37fee3ced711b30.olx', u'drag-and-drop-v2', u'971aadaaaa5a4886b37fee3ced711b30')\r\n>>> from openedx.core.lib.xblock_keys.bundle_def import BundleDefinitionLocator\r\n>>> key = BundleDefinitionLocator(bundle_uuid='fc4d4d8d-60b3-4aad-b9f1-4ea738505d13', olx_path='/any/arbitrary/path/unit.olx', block_type='vertical', definition_id='root')\r\n>>> unicode(key)\r\nu'olx-v1:_E1NjWCzSq258U6nOFBdEw:/any/arbitrary/path/unit.olx:vertical:root'\r\n>>> key == DefinitionKey.from_string(unicode(key))\r\nTrue\r\n```\r\n\r\n## TODO: \r\n* Get feedback\r\n* Add tests\r\n* Get working with whole units (`vertical`s)\r\n* ~~Fix blockstore importer to preserve `url_name`s (necessary for definition IDs)~~ Actually I think this is working","created_at":"2018-10-24T16:55:33Z","updated_at":"2018-10-29T17:19:20Z","closed_at":null,"merged_at":null,"merge_commit_sha":"9c4545b145849159aa46fc0134795fcb60f6f599","assignee":null,"assignees":[],"requested_reviewers":[],"requested_teams":[],"labels":[],"milestone":null,"commits_url":"https://api.github.com/repos/open-craft/edx-platform/pulls/146/commits","review_comments_url":"https://api.github.com/repos/open-craft/edx-platform/pulls/146/comments","review_comment_url":"https://api.github.com/repos/open-craft/edx-platform/pulls/comments{/number}","comments_url":"https://api.github.com/repos/open-craft/edx-platform/issues/146/comments","statuses_url":"https://api.github.com/repos/open-craft/edx-platform/statuses/a7c1610e885f6c0bc4f69827bf82e545b5067c0e","head":{"label":"open-craft:blockstore-keys","ref":"blockstore-keys","sha":"a7c1610e885f6c0bc4f69827bf82e545b5067c0e","user":{"login":"open-craft","id":7414786,"node_id":"MDEyOk9yZ2FuaXphdGlvbjc0MTQ3ODY=","avatar_url":"https://avatars0.githubusercontent.com/u/7414786?v=4","gravatar_id":"","url":"https://api.github.com/users/open-craft","html_url":"https://github.com/open-craft","followers_url":"https://api.github.com/users/open-craft/followers","following_url":"https://api.github.com/users/open-craft/following{/other_user}","gists_url":"https://api.github.com/users/open-craft/gists{/gist_id}","starred_url":"https://api.github.com/users/open-craft/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/open-craft/subscriptions","organizations_url":"https://api.github.com/users/open-craft/orgs","repos_url":"https://api.github.com/users/open-craft/repos","events_url":"https://api.github.com/users/open-craft/events{/privacy}","received_events_url":"https://api.github.com/users/open-craft/received_events","type":"Organization","site_admin":false},"repo":{"id":19940883,"node_id":"MDEwOlJlcG9zaXRvcnkxOTk0MDg4Mw==","name":"edx-platform","full_name":"open-craft/edx-platform","private":false,"owner":{"login":"open-craft","id":7414786,"node_id":"MDEyOk9yZ2FuaXphdGlvbjc0MTQ3ODY=","avatar_url":"https://avatars0.githubusercontent.com/u/7414786?v=4","gravatar_id":"","url":"https://api.github.com/users/open-craft","html_url":"https://github.com/open-craft","followers_url":"https://api.github.com/users/open-craft/followers","following_url":"https://api.github.com/users/open-craft/following{/other_user}","gists_url":"https://api.github.com/users/open-craft/gists{/gist_id}","starred_url":"https://api.github.com/users/open-craft/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/open-craft/subscriptions","organizations_url":"https://api.github.com/users/open-craft/orgs","repos_url":"https://api.github.com/users/open-craft/repos","events_url":"https://api.github.com/users/open-craft/events{/privacy}","received_events_url":"https://api.github.com/users/open-craft/received_events","type":"Organization","site_admin":false},"html_url":"https://github.com/open-craft/edx-platform","description":"the edX learning management system (LMS) and course authoring tool, Studio","fork":true,"url":"https://api.github.com/repos/open-craft/edx-platform","forks_url":"https://api.github.com/repos/open-craft/edx-platform/forks","keys_url":"https://api.github.com/repos/open-craft/edx-platform/keys{/key_id}","collaborators_url":"https://api.github.com/repos/open-craft/edx-platform/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/open-craft/edx-platform/teams","hooks_url":"https://api.github.com/repos/open-craft/edx-platform/hooks","issue_events_url":"https://api.github.com/repos/open-craft/edx-platform/issues/events{/number}","events_url":"https://api.github.com/repos/open-craft/edx-platform/events","assignees_url":"https://api.github.com/repos/open-craft/edx-platform/assignees{/user}","branches_url":"https://api.github.com/repos/open-craft/edx-platform/branches{/branch}","tags_url":"https://api.github.com/repos/open-craft/edx-platform/tags","blobs_url":"https://api.github.com/repos/open-craft/edx-platform/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/open-craft/edx-platform/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/open-craft/edx-platform/git/refs{/sha}","trees_url":"https://api.github.com/repos/open-craft/edx-platform/git/trees{/sha}","statuses_url":"https://api.github.com/repos/open-craft/edx-platform/statuses/{sha}","languages_url":"https://api.github.com/repos/open-craft/edx-platform/languages","stargazers_url":"https://api.github.com/repos/open-craft/edx-platform/stargazers","contributors_url":"https://api.github.com/repos/open-craft/edx-platform/contributors","subscribers_url":"https://api.github.com/repos/open-craft/edx-platform/subscribers","subscription_url":"https://api.github.com/repos/open-craft/edx-platform/subscription","commits_url":"https://api.github.com/repos/open-craft/edx-platform/commits{/sha}","git_commits_url":"https://api.github.com/repos/open-craft/edx-platform/git/commits{/sha}","comments_url":"https://api.github.com/repos/open-craft/edx-platform/comments{/number}","issue_comment_url":"https://api.github.com/repos/open-craft/edx-platform/issues/comments{/number}","contents_url":"https://api.github.com/repos/open-craft/edx-platform/contents/{+path}","compare_url":"https://api.github.com/repos/open-craft/edx-platform/compare/{base}...{head}","merges_url":"https://api.github.com/repos/open-craft/edx-platform/merges","archive_url":"https://api.github.com/repos/open-craft/edx-platform/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/open-craft/edx-platform/downloads","issues_url":"https://api.github.com/repos/open-craft/edx-platform/issues{/number}","pulls_url":"https://api.github.com/repos/open-craft/edx-platform/pulls{/number}","milestones_url":"https://api.github.com/repos/open-craft/edx-platform/milestones{/number}","notifications_url":"https://api.github.com/repos/open-craft/edx-platform/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/open-craft/edx-platform/labels{/name}","releases_url":"https://api.github.com/repos/open-craft/edx-platform/releases{/id}","deployments_url":"https://api.github.com/repos/open-craft/edx-platform/deployments","created_at":"2014-05-19T12:28:25Z","updated_at":"2018-07-20T16:54:43Z","pushed_at":"2018-10-28T02:56:47Z","git_url":"git://github.com/open-craft/edx-platform.git","ssh_url":"git@github.com:open-craft/edx-platform.git","clone_url":"https://github.com/open-craft/edx-platform.git","svn_url":"https://github.com/open-craft/edx-platform","homepage":"http://code.edx.org/","size":984591,"stargazers_count":6,"watchers_count":6,"language":"Python","has_issues":false,"has_projects":false,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":2,"mirror_url":null,"archived":false,"open_issues_count":5,"license":null,"forks":2,"open_issues":5,"watchers":6,"default_branch":"open-craft-notice"}},"base":{"label":"open-craft:braden/runtime-learning-context","ref":"braden/runtime-learning-context","sha":"67bf61346e225d714b1706b165779b284c9b7f50","user":{"login":"open-craft","id":7414786,"node_id":"MDEyOk9yZ2FuaXphdGlvbjc0MTQ3ODY=","avatar_url":"https://avatars0.githubusercontent.com/u/7414786?v=4","gravatar_id":"","url":"https://api.github.com/users/open-craft","html_url":"https://github.com/open-craft","followers_url":"https://api.github.com/users/open-craft/followers","following_url":"https://api.github.com/users/open-craft/following{/other_user}","gists_url":"https://api.github.com/users/open-craft/gists{/gist_id}","starred_url":"https://api.github.com/users/open-craft/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/open-craft/subscriptions","organizations_url":"https://api.github.com/users/open-craft/orgs","repos_url":"https://api.github.com/users/open-craft/repos","events_url":"https://api.github.com/users/open-craft/events{/privacy}","received_events_url":"https://api.github.com/users/open-craft/received_events","type":"Organization","site_admin":false},"repo":{"id":19940883,"node_id":"MDEwOlJlcG9zaXRvcnkxOTk0MDg4Mw==","name":"edx-platform","full_name":"open-craft/edx-platform","private":false,"owner":{"login":"open-craft","id":7414786,"node_id":"MDEyOk9yZ2FuaXphdGlvbjc0MTQ3ODY=","avatar_url":"https://avatars0.githubusercontent.com/u/7414786?v=4","gravatar_id":"","url":"https://api.github.com/users/open-craft","html_url":"https://github.com/open-craft","followers_url":"https://api.github.com/users/open-craft/followers","following_url":"https://api.github.com/users/open-craft/following{/other_user}","gists_url":"https://api.github.com/users/open-craft/gists{/gist_id}","starred_url":"https://api.github.com/users/open-craft/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/open-craft/subscriptions","organizations_url":"https://api.github.com/users/open-craft/orgs","repos_url":"https://api.github.com/users/open-craft/repos","events_url":"https://api.github.com/users/open-craft/events{/privacy}","received_events_url":"https://api.github.com/users/open-craft/received_events","type":"Organization","site_admin":false},"html_url":"https://github.com/open-craft/edx-platform","description":"the edX learning management system (LMS) and course authoring tool, Studio","fork":true,"url":"https://api.github.com/repos/open-craft/edx-platform","forks_url":"https://api.github.com/repos/open-craft/edx-platform/forks","keys_url":"https://api.github.com/repos/open-craft/edx-platform/keys{/key_id}","collaborators_url":"https://api.github.com/repos/open-craft/edx-platform/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/open-craft/edx-platform/teams","hooks_url":"https://api.github.com/repos/open-craft/edx-platform/hooks","issue_events_url":"https://api.github.com/repos/open-craft/edx-platform/issues/events{/number}","events_url":"https://api.github.com/repos/open-craft/edx-platform/events","assignees_url":"https://api.github.com/repos/open-craft/edx-platform/assignees{/user}","branches_url":"https://api.github.com/repos/open-craft/edx-platform/branches{/branch}","tags_url":"https://api.github.com/repos/open-craft/edx-platform/tags","blobs_url":"https://api.github.com/repos/open-craft/edx-platform/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/open-craft/edx-platform/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/open-craft/edx-platform/git/refs{/sha}","trees_url":"https://api.github.com/repos/open-craft/edx-platform/git/trees{/sha}","statuses_url":"https://api.github.com/repos/open-craft/edx-platform/statuses/{sha}","languages_url":"https://api.github.com/repos/open-craft/edx-platform/languages","stargazers_url":"https://api.github.com/repos/open-craft/edx-platform/stargazers","contributors_url":"https://api.github.com/repos/open-craft/edx-platform/contributors","subscribers_url":"https://api.github.com/repos/open-craft/edx-platform/subscribers","subscription_url":"https://api.github.com/repos/open-craft/edx-platform/subscription","commits_url":"https://api.github.com/repos/open-craft/edx-platform/commits{/sha}","git_commits_url":"https://api.github.com/repos/open-craft/edx-platform/git/commits{/sha}","comments_url":"https://api.github.com/repos/open-craft/edx-platform/comments{/number}","issue_comment_url":"https://api.github.com/repos/open-craft/edx-platform/issues/comments{/number}","contents_url":"https://api.github.com/repos/open-craft/edx-platform/contents/{+path}","compare_url":"https://api.github.com/repos/open-craft/edx-platform/compare/{base}...{head}","merges_url":"https://api.github.com/repos/open-craft/edx-platform/merges","archive_url":"https://api.github.com/repos/open-craft/edx-platform/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/open-craft/edx-platform/downloads","issues_url":"https://api.github.com/repos/open-craft/edx-platform/issues{/number}","pulls_url":"https://api.github.com/repos/open-craft/edx-platform/pulls{/number}","milestones_url":"https://api.github.com/repos/open-craft/edx-platform/milestones{/number}","notifications_url":"https://api.github.com/repos/open-craft/edx-platform/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/open-craft/edx-platform/labels{/name}","releases_url":"https://api.github.com/repos/open-craft/edx-platform/releases{/id}","deployments_url":"https://api.github.com/repos/open-craft/edx-platform/deployments","created_at":"2014-05-19T12:28:25Z","updated_at":"2018-07-20T16:54:43Z","pushed_at":"2018-10-28T02:56:47Z","git_url":"git://github.com/open-craft/edx-platform.git","ssh_url":"git@github.com:open-craft/edx-platform.git","clone_url":"https://github.com/open-craft/edx-platform.git","svn_url":"https://github.com/open-craft/edx-platform","homepage":"http://code.edx.org/","size":984591,"stargazers_count":6,"watchers_count":6,"language":"Python","has_issues":false,"has_projects":false,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":2,"mirror_url":null,"archived":false,"open_issues_count":5,"license":null,"forks":2,"open_issues":5,"watchers":6,"default_branch":"open-craft-notice"}},"_links":{"self":{"href":"https://api.github.com/repos/open-craft/edx-platform/pulls/146"},"html":{"href":"https://github.com/open-craft/edx-platform/pull/146"},"issue":{"href":"https://api.github.com/repos/open-craft/edx-platform/issues/146"},"comments":{"href":"https://api.github.com/repos/open-craft/edx-platform/issues/146/comments"},"review_comments":{"href":"https://api.github.com/repos/open-craft/edx-platform/pulls/146/comments"},"review_comment":{"href":"https://api.github.com/repos/open-craft/edx-platform/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/open-craft/edx-platform/pulls/146/commits"},"statuses":{"href":"https://api.github.com/repos/open-craft/edx-platform/statuses/a7c1610e885f6c0bc4f69827bf82e545b5067c0e"}},"author_association":"MEMBER"}}
{"actor":{"display_login":"bradenmacdonald"}}