{"action":"opened","number":34,"pull_request":{"url":"https://api.github.com/repos/GetStream/stream-django/pulls/34","id":59987223,"html_url":"https://github.com/GetStream/stream-django/pull/34","diff_url":"https://github.com/GetStream/stream-django/pull/34.diff","patch_url":"https://github.com/GetStream/stream-django/pull/34.patch","issue_url":"https://api.github.com/repos/GetStream/stream-django/issues/34","number":34,"state":"open","locked":false,"title":"Protect against None in Enrich.is_ref and improved str representation of EnrichedActivity","user":{"login":"sampeka","id":7493006,"avatar_url":"https://avatars.githubusercontent.com/u/7493006?v=3","gravatar_id":"","url":"https://api.github.com/users/sampeka","html_url":"https://github.com/sampeka","followers_url":"https://api.github.com/users/sampeka/followers","following_url":"https://api.github.com/users/sampeka/following{/other_user}","gists_url":"https://api.github.com/users/sampeka/gists{/gist_id}","starred_url":"https://api.github.com/users/sampeka/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sampeka/subscriptions","organizations_url":"https://api.github.com/users/sampeka/orgs","repos_url":"https://api.github.com/users/sampeka/repos","events_url":"https://api.github.com/users/sampeka/events{/privacy}","received_events_url":"https://api.github.com/users/sampeka/received_events","type":"User","site_admin":false},"body":"It is possible that fields can be `None` in the activities, so changed the `Enrich.is_ref` method to account for this. \r\n\r\nAlso added a `__repr__` to EnrichedActivity to help with debugging. `EnrichedActivity` objects curently display as:\r\n\r\n`<stream_django.enrich.EnrichedActivity object at 0x10a8c5518>`\r\n\r\nI've changed this to:\r\n\r\n`EnrichedActivity(activity_data={'bla': 'bla'}, not_enriched_data={})`\r\n","created_at":"2016-02-19T18:23:50Z","updated_at":"2016-02-19T18:23:50Z","closed_at":null,"merged_at":null,"merge_commit_sha":null,"assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/GetStream/stream-django/pulls/34/commits","review_comments_url":"https://api.github.com/repos/GetStream/stream-django/pulls/34/comments","review_comment_url":"https://api.github.com/repos/GetStream/stream-django/pulls/comments{/number}","comments_url":"https://api.github.com/repos/GetStream/stream-django/issues/34/comments","statuses_url":"https://api.github.com/repos/GetStream/stream-django/statuses/09864b96889c28b4365c3d1a0682bf4dcfed67f7","head":{"label":"sampeka:master","ref":"master","sha":"09864b96889c28b4365c3d1a0682bf4dcfed67f7","user":{"login":"sampeka","id":7493006,"avatar_url":"https://avatars.githubusercontent.com/u/7493006?v=3","gravatar_id":"","url":"https://api.github.com/users/sampeka","html_url":"https://github.com/sampeka","followers_url":"https://api.github.com/users/sampeka/followers","following_url":"https://api.github.com/users/sampeka/following{/other_user}","gists_url":"https://api.github.com/users/sampeka/gists{/gist_id}","starred_url":"https://api.github.com/users/sampeka/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sampeka/subscriptions","organizations_url":"https://api.github.com/users/sampeka/orgs","repos_url":"https://api.github.com/users/sampeka/repos","events_url":"https://api.github.com/users/sampeka/events{/privacy}","received_events_url":"https://api.github.com/users/sampeka/received_events","type":"User","site_admin":false},"repo":{"id":52106326,"name":"stream-django","full_name":"sampeka/stream-django","owner":{"login":"sampeka","id":7493006,"avatar_url":"https://avatars.githubusercontent.com/u/7493006?v=3","gravatar_id":"","url":"https://api.github.com/users/sampeka","html_url":"https://github.com/sampeka","followers_url":"https://api.github.com/users/sampeka/followers","following_url":"https://api.github.com/users/sampeka/following{/other_user}","gists_url":"https://api.github.com/users/sampeka/gists{/gist_id}","starred_url":"https://api.github.com/users/sampeka/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sampeka/subscriptions","organizations_url":"https://api.github.com/users/sampeka/orgs","repos_url":"https://api.github.com/users/sampeka/repos","events_url":"https://api.github.com/users/sampeka/events{/privacy}","received_events_url":"https://api.github.com/users/sampeka/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/sampeka/stream-django","description":"Build activity feeds, newsfeeds and activity streams. Stream-Django is a high level client based on Stream-Python.","fork":true,"url":"https://api.github.com/repos/sampeka/stream-django","forks_url":"https://api.github.com/repos/sampeka/stream-django/forks","keys_url":"https://api.github.com/repos/sampeka/stream-django/keys{/key_id}","collaborators_url":"https://api.github.com/repos/sampeka/stream-django/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/sampeka/stream-django/teams","hooks_url":"https://api.github.com/repos/sampeka/stream-django/hooks","issue_events_url":"https://api.github.com/repos/sampeka/stream-django/issues/events{/number}","events_url":"https://api.github.com/repos/sampeka/stream-django/events","assignees_url":"https://api.github.com/repos/sampeka/stream-django/assignees{/user}","branches_url":"https://api.github.com/repos/sampeka/stream-django/branches{/branch}","tags_url":"https://api.github.com/repos/sampeka/stream-django/tags","blobs_url":"https://api.github.com/repos/sampeka/stream-django/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/sampeka/stream-django/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/sampeka/stream-django/git/refs{/sha}","trees_url":"https://api.github.com/repos/sampeka/stream-django/git/trees{/sha}","statuses_url":"https://api.github.com/repos/sampeka/stream-django/statuses/{sha}","languages_url":"https://api.github.com/repos/sampeka/stream-django/languages","stargazers_url":"https://api.github.com/repos/sampeka/stream-django/stargazers","contributors_url":"https://api.github.com/repos/sampeka/stream-django/contributors","subscribers_url":"https://api.github.com/repos/sampeka/stream-django/subscribers","subscription_url":"https://api.github.com/repos/sampeka/stream-django/subscription","commits_url":"https://api.github.com/repos/sampeka/stream-django/commits{/sha}","git_commits_url":"https://api.github.com/repos/sampeka/stream-django/git/commits{/sha}","comments_url":"https://api.github.com/repos/sampeka/stream-django/comments{/number}","issue_comment_url":"https://api.github.com/repos/sampeka/stream-django/issues/comments{/number}","contents_url":"https://api.github.com/repos/sampeka/stream-django/contents/{+path}","compare_url":"https://api.github.com/repos/sampeka/stream-django/compare/{base}...{head}","merges_url":"https://api.github.com/repos/sampeka/stream-django/merges","archive_url":"https://api.github.com/repos/sampeka/stream-django/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/sampeka/stream-django/downloads","issues_url":"https://api.github.com/repos/sampeka/stream-django/issues{/number}","pulls_url":"https://api.github.com/repos/sampeka/stream-django/pulls{/number}","milestones_url":"https://api.github.com/repos/sampeka/stream-django/milestones{/number}","notifications_url":"https://api.github.com/repos/sampeka/stream-django/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/sampeka/stream-django/labels{/name}","releases_url":"https://api.github.com/repos/sampeka/stream-django/releases{/id}","deployments_url":"https://api.github.com/repos/sampeka/stream-django/deployments","created_at":"2016-02-19T18:03:13Z","updated_at":"2016-02-19T18:03:13Z","pushed_at":"2016-02-19T18:23:04Z","git_url":"git://github.com/sampeka/stream-django.git","ssh_url":"git@github.com:sampeka/stream-django.git","clone_url":"https://github.com/sampeka/stream-django.git","svn_url":"https://github.com/sampeka/stream-django","homepage":"https://getstream.io","size":79,"stargazers_count":0,"watchers_count":0,"language":"Python","has_issues":false,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":0,"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"GetStream:master","ref":"master","sha":"bb9ae430a22fd23bdeb9c4070c4a129e11c0f43f","user":{"login":"GetStream","id":8597527,"avatar_url":"https://avatars.githubusercontent.com/u/8597527?v=3","gravatar_id":"","url":"https://api.github.com/users/GetStream","html_url":"https://github.com/GetStream","followers_url":"https://api.github.com/users/GetStream/followers","following_url":"https://api.github.com/users/GetStream/following{/other_user}","gists_url":"https://api.github.com/users/GetStream/gists{/gist_id}","starred_url":"https://api.github.com/users/GetStream/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/GetStream/subscriptions","organizations_url":"https://api.github.com/users/GetStream/orgs","repos_url":"https://api.github.com/users/GetStream/repos","events_url":"https://api.github.com/users/GetStream/events{/privacy}","received_events_url":"https://api.github.com/users/GetStream/received_events","type":"Organization","site_admin":false},"repo":{"id":24891366,"name":"stream-django","full_name":"GetStream/stream-django","owner":{"login":"GetStream","id":8597527,"avatar_url":"https://avatars.githubusercontent.com/u/8597527?v=3","gravatar_id":"","url":"https://api.github.com/users/GetStream","html_url":"https://github.com/GetStream","followers_url":"https://api.github.com/users/GetStream/followers","following_url":"https://api.github.com/users/GetStream/following{/other_user}","gists_url":"https://api.github.com/users/GetStream/gists{/gist_id}","starred_url":"https://api.github.com/users/GetStream/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/GetStream/subscriptions","organizations_url":"https://api.github.com/users/GetStream/orgs","repos_url":"https://api.github.com/users/GetStream/repos","events_url":"https://api.github.com/users/GetStream/events{/privacy}","received_events_url":"https://api.github.com/users/GetStream/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/GetStream/stream-django","description":"Build activity feeds, newsfeeds and activity streams. Stream-Django is a high level client based on Stream-Python.","fork":false,"url":"https://api.github.com/repos/GetStream/stream-django","forks_url":"https://api.github.com/repos/GetStream/stream-django/forks","keys_url":"https://api.github.com/repos/GetStream/stream-django/keys{/key_id}","collaborators_url":"https://api.github.com/repos/GetStream/stream-django/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/GetStream/stream-django/teams","hooks_url":"https://api.github.com/repos/GetStream/stream-django/hooks","issue_events_url":"https://api.github.com/repos/GetStream/stream-django/issues/events{/number}","events_url":"https://api.github.com/repos/GetStream/stream-django/events","assignees_url":"https://api.github.com/repos/GetStream/stream-django/assignees{/user}","branches_url":"https://api.github.com/repos/GetStream/stream-django/branches{/branch}","tags_url":"https://api.github.com/repos/GetStream/stream-django/tags","blobs_url":"https://api.github.com/repos/GetStream/stream-django/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/GetStream/stream-django/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/GetStream/stream-django/git/refs{/sha}","trees_url":"https://api.github.com/repos/GetStream/stream-django/git/trees{/sha}","statuses_url":"https://api.github.com/repos/GetStream/stream-django/statuses/{sha}","languages_url":"https://api.github.com/repos/GetStream/stream-django/languages","stargazers_url":"https://api.github.com/repos/GetStream/stream-django/stargazers","contributors_url":"https://api.github.com/repos/GetStream/stream-django/contributors","subscribers_url":"https://api.github.com/repos/GetStream/stream-django/subscribers","subscription_url":"https://api.github.com/repos/GetStream/stream-django/subscription","commits_url":"https://api.github.com/repos/GetStream/stream-django/commits{/sha}","git_commits_url":"https://api.github.com/repos/GetStream/stream-django/git/commits{/sha}","comments_url":"https://api.github.com/repos/GetStream/stream-django/comments{/number}","issue_comment_url":"https://api.github.com/repos/GetStream/stream-django/issues/comments{/number}","contents_url":"https://api.github.com/repos/GetStream/stream-django/contents/{+path}","compare_url":"https://api.github.com/repos/GetStream/stream-django/compare/{base}...{head}","merges_url":"https://api.github.com/repos/GetStream/stream-django/merges","archive_url":"https://api.github.com/repos/GetStream/stream-django/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/GetStream/stream-django/downloads","issues_url":"https://api.github.com/repos/GetStream/stream-django/issues{/number}","pulls_url":"https://api.github.com/repos/GetStream/stream-django/pulls{/number}","milestones_url":"https://api.github.com/repos/GetStream/stream-django/milestones{/number}","notifications_url":"https://api.github.com/repos/GetStream/stream-django/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/GetStream/stream-django/labels{/name}","releases_url":"https://api.github.com/repos/GetStream/stream-django/releases{/id}","deployments_url":"https://api.github.com/repos/GetStream/stream-django/deployments","created_at":"2014-10-07T13:28:17Z","updated_at":"2016-02-19T09:33:26Z","pushed_at":"2015-11-12T08:39:04Z","git_url":"git://github.com/GetStream/stream-django.git","ssh_url":"git@github.com:GetStream/stream-django.git","clone_url":"https://github.com/GetStream/stream-django.git","svn_url":"https://github.com/GetStream/stream-django","homepage":"https://getstream.io","size":530,"stargazers_count":209,"watchers_count":209,"language":"Python","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":18,"mirror_url":null,"open_issues_count":14,"forks":18,"open_issues":14,"watchers":209,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/GetStream/stream-django/pulls/34"},"html":{"href":"https://github.com/GetStream/stream-django/pull/34"},"issue":{"href":"https://api.github.com/repos/GetStream/stream-django/issues/34"},"comments":{"href":"https://api.github.com/repos/GetStream/stream-django/issues/34/comments"},"review_comments":{"href":"https://api.github.com/repos/GetStream/stream-django/pulls/34/comments"},"review_comment":{"href":"https://api.github.com/repos/GetStream/stream-django/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/GetStream/stream-django/pulls/34/commits"},"statuses":{"href":"https://api.github.com/repos/GetStream/stream-django/statuses/09864b96889c28b4365c3d1a0682bf4dcfed67f7"}},"merged":false,"mergeable":null,"mergeable_state":"unknown","merged_by":null,"comments":0,"review_comments":0,"commits":1,"additions":5,"deletions":1,"changed_files":1}}