{"action":"opened","number":253,"pull_request":{"url":"https://api.github.com/repos/infolab-csail/WikipediaBase/pulls/253","id":74685937,"html_url":"https://github.com/infolab-csail/WikipediaBase/pull/253","diff_url":"https://github.com/infolab-csail/WikipediaBase/pull/253.diff","patch_url":"https://github.com/infolab-csail/WikipediaBase/pull/253.patch","issue_url":"https://api.github.com/repos/infolab-csail/WikipediaBase/issues/253","number":253,"state":"open","locked":false,"title":"Fix infinite loop issue with get_with_redirects","user":{"login":"chsamlee","id":4664430,"avatar_url":"https://avatars.githubusercontent.com/u/4664430?v=3","gravatar_id":"","url":"https://api.github.com/users/chsamlee","html_url":"https://github.com/chsamlee","followers_url":"https://api.github.com/users/chsamlee/followers","following_url":"https://api.github.com/users/chsamlee/following{/other_user}","gists_url":"https://api.github.com/users/chsamlee/gists{/gist_id}","starred_url":"https://api.github.com/users/chsamlee/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/chsamlee/subscriptions","organizations_url":"https://api.github.com/users/chsamlee/orgs","repos_url":"https://api.github.com/users/chsamlee/repos","events_url":"https://api.github.com/users/chsamlee/events{/privacy}","received_events_url":"https://api.github.com/users/chsamlee/received_events","type":"User","site_admin":false},"body":"util.extract_redirect('Courtly love') returns a section of itself when it is supposed to return None (the #REDIRECT is inside a HTML comment), so backend.get_with_redirects can't stop and won't stop. Fixed the behavior for extract_redirect and also added in additional safety mechanism in get_with_redirects.\r\n\r\nKudos to @cheahuychou for discovering this bug. You should be able to use get_with_redirects instead of get_article_from_db without any problem after this PR is merged.\r\n\r\nAlso fixes 2 broken test cases with Bill Clinton.","created_at":"2016-06-21T21:09:38Z","updated_at":"2016-06-21T21:09:38Z","closed_at":null,"merged_at":null,"merge_commit_sha":null,"assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/infolab-csail/WikipediaBase/pulls/253/commits","review_comments_url":"https://api.github.com/repos/infolab-csail/WikipediaBase/pulls/253/comments","review_comment_url":"https://api.github.com/repos/infolab-csail/WikipediaBase/pulls/comments{/number}","comments_url":"https://api.github.com/repos/infolab-csail/WikipediaBase/issues/253/comments","statuses_url":"https://api.github.com/repos/infolab-csail/WikipediaBase/statuses/e54c33c9baeaa70d923a734858d3780d2345aecd","head":{"label":"infolab-csail:redirect-inf-loop","ref":"redirect-inf-loop","sha":"e54c33c9baeaa70d923a734858d3780d2345aecd","user":{"login":"infolab-csail","id":13588310,"avatar_url":"https://avatars.githubusercontent.com/u/13588310?v=3","gravatar_id":"","url":"https://api.github.com/users/infolab-csail","html_url":"https://github.com/infolab-csail","followers_url":"https://api.github.com/users/infolab-csail/followers","following_url":"https://api.github.com/users/infolab-csail/following{/other_user}","gists_url":"https://api.github.com/users/infolab-csail/gists{/gist_id}","starred_url":"https://api.github.com/users/infolab-csail/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/infolab-csail/subscriptions","organizations_url":"https://api.github.com/users/infolab-csail/orgs","repos_url":"https://api.github.com/users/infolab-csail/repos","events_url":"https://api.github.com/users/infolab-csail/events{/privacy}","received_events_url":"https://api.github.com/users/infolab-csail/received_events","type":"Organization","site_admin":false},"repo":{"id":15544139,"name":"WikipediaBase","full_name":"infolab-csail/WikipediaBase","owner":{"login":"infolab-csail","id":13588310,"avatar_url":"https://avatars.githubusercontent.com/u/13588310?v=3","gravatar_id":"","url":"https://api.github.com/users/infolab-csail","html_url":"https://github.com/infolab-csail","followers_url":"https://api.github.com/users/infolab-csail/followers","following_url":"https://api.github.com/users/infolab-csail/following{/other_user}","gists_url":"https://api.github.com/users/infolab-csail/gists{/gist_id}","starred_url":"https://api.github.com/users/infolab-csail/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/infolab-csail/subscriptions","organizations_url":"https://api.github.com/users/infolab-csail/orgs","repos_url":"https://api.github.com/users/infolab-csail/repos","events_url":"https://api.github.com/users/infolab-csail/events{/privacy}","received_events_url":"https://api.github.com/users/infolab-csail/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/infolab-csail/WikipediaBase","description":"Wikipedia interaction with start.mit.edu","fork":false,"url":"https://api.github.com/repos/infolab-csail/WikipediaBase","forks_url":"https://api.github.com/repos/infolab-csail/WikipediaBase/forks","keys_url":"https://api.github.com/repos/infolab-csail/WikipediaBase/keys{/key_id}","collaborators_url":"https://api.github.com/repos/infolab-csail/WikipediaBase/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/infolab-csail/WikipediaBase/teams","hooks_url":"https://api.github.com/repos/infolab-csail/WikipediaBase/hooks","issue_events_url":"https://api.github.com/repos/infolab-csail/WikipediaBase/issues/events{/number}","events_url":"https://api.github.com/repos/infolab-csail/WikipediaBase/events","assignees_url":"https://api.github.com/repos/infolab-csail/WikipediaBase/assignees{/user}","branches_url":"https://api.github.com/repos/infolab-csail/WikipediaBase/branches{/branch}","tags_url":"https://api.github.com/repos/infolab-csail/WikipediaBase/tags","blobs_url":"https://api.github.com/repos/infolab-csail/WikipediaBase/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/infolab-csail/WikipediaBase/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/infolab-csail/WikipediaBase/git/refs{/sha}","trees_url":"https://api.github.com/repos/infolab-csail/WikipediaBase/git/trees{/sha}","statuses_url":"https://api.github.com/repos/infolab-csail/WikipediaBase/statuses/{sha}","languages_url":"https://api.github.com/repos/infolab-csail/WikipediaBase/languages","stargazers_url":"https://api.github.com/repos/infolab-csail/WikipediaBase/stargazers","contributors_url":"https://api.github.com/repos/infolab-csail/WikipediaBase/contributors","subscribers_url":"https://api.github.com/repos/infolab-csail/WikipediaBase/subscribers","subscription_url":"https://api.github.com/repos/infolab-csail/WikipediaBase/subscription","commits_url":"https://api.github.com/repos/infolab-csail/WikipediaBase/commits{/sha}","git_commits_url":"https://api.github.com/repos/infolab-csail/WikipediaBase/git/commits{/sha}","comments_url":"https://api.github.com/repos/infolab-csail/WikipediaBase/comments{/number}","issue_comment_url":"https://api.github.com/repos/infolab-csail/WikipediaBase/issues/comments{/number}","contents_url":"https://api.github.com/repos/infolab-csail/WikipediaBase/contents/{+path}","compare_url":"https://api.github.com/repos/infolab-csail/WikipediaBase/compare/{base}...{head}","merges_url":"https://api.github.com/repos/infolab-csail/WikipediaBase/merges","archive_url":"https://api.github.com/repos/infolab-csail/WikipediaBase/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/infolab-csail/WikipediaBase/downloads","issues_url":"https://api.github.com/repos/infolab-csail/WikipediaBase/issues{/number}","pulls_url":"https://api.github.com/repos/infolab-csail/WikipediaBase/pulls{/number}","milestones_url":"https://api.github.com/repos/infolab-csail/WikipediaBase/milestones{/number}","notifications_url":"https://api.github.com/repos/infolab-csail/WikipediaBase/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/infolab-csail/WikipediaBase/labels{/name}","releases_url":"https://api.github.com/repos/infolab-csail/WikipediaBase/releases{/id}","deployments_url":"https://api.github.com/repos/infolab-csail/WikipediaBase/deployments","created_at":"2013-12-31T06:02:34Z","updated_at":"2016-01-13T23:13:10Z","pushed_at":"2016-06-21T21:09:38Z","git_url":"git://github.com/infolab-csail/WikipediaBase.git","ssh_url":"git@github.com:infolab-csail/WikipediaBase.git","clone_url":"https://github.com/infolab-csail/WikipediaBase.git","svn_url":"https://github.com/infolab-csail/WikipediaBase","homepage":null,"size":9108,"stargazers_count":0,"watchers_count":0,"language":"Python","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":1,"mirror_url":null,"open_issues_count":24,"forks":1,"open_issues":24,"watchers":0,"default_branch":"master"}},"base":{"label":"infolab-csail:master","ref":"master","sha":"52ce533538dd298beebaa69e2bdb79b4df43ad4f","user":{"login":"infolab-csail","id":13588310,"avatar_url":"https://avatars.githubusercontent.com/u/13588310?v=3","gravatar_id":"","url":"https://api.github.com/users/infolab-csail","html_url":"https://github.com/infolab-csail","followers_url":"https://api.github.com/users/infolab-csail/followers","following_url":"https://api.github.com/users/infolab-csail/following{/other_user}","gists_url":"https://api.github.com/users/infolab-csail/gists{/gist_id}","starred_url":"https://api.github.com/users/infolab-csail/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/infolab-csail/subscriptions","organizations_url":"https://api.github.com/users/infolab-csail/orgs","repos_url":"https://api.github.com/users/infolab-csail/repos","events_url":"https://api.github.com/users/infolab-csail/events{/privacy}","received_events_url":"https://api.github.com/users/infolab-csail/received_events","type":"Organization","site_admin":false},"repo":{"id":15544139,"name":"WikipediaBase","full_name":"infolab-csail/WikipediaBase","owner":{"login":"infolab-csail","id":13588310,"avatar_url":"https://avatars.githubusercontent.com/u/13588310?v=3","gravatar_id":"","url":"https://api.github.com/users/infolab-csail","html_url":"https://github.com/infolab-csail","followers_url":"https://api.github.com/users/infolab-csail/followers","following_url":"https://api.github.com/users/infolab-csail/following{/other_user}","gists_url":"https://api.github.com/users/infolab-csail/gists{/gist_id}","starred_url":"https://api.github.com/users/infolab-csail/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/infolab-csail/subscriptions","organizations_url":"https://api.github.com/users/infolab-csail/orgs","repos_url":"https://api.github.com/users/infolab-csail/repos","events_url":"https://api.github.com/users/infolab-csail/events{/privacy}","received_events_url":"https://api.github.com/users/infolab-csail/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/infolab-csail/WikipediaBase","description":"Wikipedia interaction with start.mit.edu","fork":false,"url":"https://api.github.com/repos/infolab-csail/WikipediaBase","forks_url":"https://api.github.com/repos/infolab-csail/WikipediaBase/forks","keys_url":"https://api.github.com/repos/infolab-csail/WikipediaBase/keys{/key_id}","collaborators_url":"https://api.github.com/repos/infolab-csail/WikipediaBase/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/infolab-csail/WikipediaBase/teams","hooks_url":"https://api.github.com/repos/infolab-csail/WikipediaBase/hooks","issue_events_url":"https://api.github.com/repos/infolab-csail/WikipediaBase/issues/events{/number}","events_url":"https://api.github.com/repos/infolab-csail/WikipediaBase/events","assignees_url":"https://api.github.com/repos/infolab-csail/WikipediaBase/assignees{/user}","branches_url":"https://api.github.com/repos/infolab-csail/WikipediaBase/branches{/branch}","tags_url":"https://api.github.com/repos/infolab-csail/WikipediaBase/tags","blobs_url":"https://api.github.com/repos/infolab-csail/WikipediaBase/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/infolab-csail/WikipediaBase/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/infolab-csail/WikipediaBase/git/refs{/sha}","trees_url":"https://api.github.com/repos/infolab-csail/WikipediaBase/git/trees{/sha}","statuses_url":"https://api.github.com/repos/infolab-csail/WikipediaBase/statuses/{sha}","languages_url":"https://api.github.com/repos/infolab-csail/WikipediaBase/languages","stargazers_url":"https://api.github.com/repos/infolab-csail/WikipediaBase/stargazers","contributors_url":"https://api.github.com/repos/infolab-csail/WikipediaBase/contributors","subscribers_url":"https://api.github.com/repos/infolab-csail/WikipediaBase/subscribers","subscription_url":"https://api.github.com/repos/infolab-csail/WikipediaBase/subscription","commits_url":"https://api.github.com/repos/infolab-csail/WikipediaBase/commits{/sha}","git_commits_url":"https://api.github.com/repos/infolab-csail/WikipediaBase/git/commits{/sha}","comments_url":"https://api.github.com/repos/infolab-csail/WikipediaBase/comments{/number}","issue_comment_url":"https://api.github.com/repos/infolab-csail/WikipediaBase/issues/comments{/number}","contents_url":"https://api.github.com/repos/infolab-csail/WikipediaBase/contents/{+path}","compare_url":"https://api.github.com/repos/infolab-csail/WikipediaBase/compare/{base}...{head}","merges_url":"https://api.github.com/repos/infolab-csail/WikipediaBase/merges","archive_url":"https://api.github.com/repos/infolab-csail/WikipediaBase/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/infolab-csail/WikipediaBase/downloads","issues_url":"https://api.github.com/repos/infolab-csail/WikipediaBase/issues{/number}","pulls_url":"https://api.github.com/repos/infolab-csail/WikipediaBase/pulls{/number}","milestones_url":"https://api.github.com/repos/infolab-csail/WikipediaBase/milestones{/number}","notifications_url":"https://api.github.com/repos/infolab-csail/WikipediaBase/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/infolab-csail/WikipediaBase/labels{/name}","releases_url":"https://api.github.com/repos/infolab-csail/WikipediaBase/releases{/id}","deployments_url":"https://api.github.com/repos/infolab-csail/WikipediaBase/deployments","created_at":"2013-12-31T06:02:34Z","updated_at":"2016-01-13T23:13:10Z","pushed_at":"2016-06-21T21:09:38Z","git_url":"git://github.com/infolab-csail/WikipediaBase.git","ssh_url":"git@github.com:infolab-csail/WikipediaBase.git","clone_url":"https://github.com/infolab-csail/WikipediaBase.git","svn_url":"https://github.com/infolab-csail/WikipediaBase","homepage":null,"size":9108,"stargazers_count":0,"watchers_count":0,"language":"Python","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":1,"mirror_url":null,"open_issues_count":24,"forks":1,"open_issues":24,"watchers":0,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/infolab-csail/WikipediaBase/pulls/253"},"html":{"href":"https://github.com/infolab-csail/WikipediaBase/pull/253"},"issue":{"href":"https://api.github.com/repos/infolab-csail/WikipediaBase/issues/253"},"comments":{"href":"https://api.github.com/repos/infolab-csail/WikipediaBase/issues/253/comments"},"review_comments":{"href":"https://api.github.com/repos/infolab-csail/WikipediaBase/pulls/253/comments"},"review_comment":{"href":"https://api.github.com/repos/infolab-csail/WikipediaBase/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/infolab-csail/WikipediaBase/pulls/253/commits"},"statuses":{"href":"https://api.github.com/repos/infolab-csail/WikipediaBase/statuses/e54c33c9baeaa70d923a734858d3780d2345aecd"}},"merged":false,"mergeable":null,"mergeable_state":"unknown","merged_by":null,"comments":0,"review_comments":0,"commits":1,"additions":13,"deletions":7,"changed_files":5}}
{"actor":{"display_login":"chsamlee"}}