{"action":"opened","number":182,"pull_request":{"url":"https://api.github.com/repos/dropbox/nsot/pulls/182","id":64556857,"html_url":"https://github.com/dropbox/nsot/pull/182","diff_url":"https://github.com/dropbox/nsot/pull/182.diff","patch_url":"https://github.com/dropbox/nsot/pull/182.patch","issue_url":"https://api.github.com/repos/dropbox/nsot/issues/182","number":182,"state":"open","locked":false,"title":"Fixes #130 - Redirect to login screen if a 401 is detected","user":{"login":"jathanism","id":138052,"avatar_url":"https://avatars.githubusercontent.com/u/138052?v=3","gravatar_id":"","url":"https://api.github.com/users/jathanism","html_url":"https://github.com/jathanism","followers_url":"https://api.github.com/users/jathanism/followers","following_url":"https://api.github.com/users/jathanism/following{/other_user}","gists_url":"https://api.github.com/users/jathanism/gists{/gist_id}","starred_url":"https://api.github.com/users/jathanism/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jathanism/subscriptions","organizations_url":"https://api.github.com/users/jathanism/orgs","repos_url":"https://api.github.com/users/jathanism/repos","events_url":"https://api.github.com/users/jathanism/events{/privacy}","received_events_url":"https://api.github.com/users/jathanism/received_events","type":"User","site_admin":false},"body":"- This adds HTTP interceptor for 401 responses that will redirect to the\r\n  DRF API login web screen.\r\n- Also skinned the default DRF login screen to match the NSoT theme.\r\n- Stopgap fix in `services.js` to check for `response.status`. This will\r\n  have to be adjusted as a part of the API version 1.0 migration, along\r\n  with all of the other JS code.","created_at":"2016-03-30T00:49:12Z","updated_at":"2016-03-30T00:49:12Z","closed_at":null,"merged_at":null,"merge_commit_sha":null,"assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/dropbox/nsot/pulls/182/commits","review_comments_url":"https://api.github.com/repos/dropbox/nsot/pulls/182/comments","review_comment_url":"https://api.github.com/repos/dropbox/nsot/pulls/comments{/number}","comments_url":"https://api.github.com/repos/dropbox/nsot/issues/182/comments","statuses_url":"https://api.github.com/repos/dropbox/nsot/statuses/9b1d241db868060fca0afe0e508398d2c6b6d87a","head":{"label":"jathanism:login","ref":"login","sha":"9b1d241db868060fca0afe0e508398d2c6b6d87a","user":{"login":"jathanism","id":138052,"avatar_url":"https://avatars.githubusercontent.com/u/138052?v=3","gravatar_id":"","url":"https://api.github.com/users/jathanism","html_url":"https://github.com/jathanism","followers_url":"https://api.github.com/users/jathanism/followers","following_url":"https://api.github.com/users/jathanism/following{/other_user}","gists_url":"https://api.github.com/users/jathanism/gists{/gist_id}","starred_url":"https://api.github.com/users/jathanism/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jathanism/subscriptions","organizations_url":"https://api.github.com/users/jathanism/orgs","repos_url":"https://api.github.com/users/jathanism/repos","events_url":"https://api.github.com/users/jathanism/events{/privacy}","received_events_url":"https://api.github.com/users/jathanism/received_events","type":"User","site_admin":false},"repo":{"id":28982986,"name":"nsot","full_name":"jathanism/nsot","owner":{"login":"jathanism","id":138052,"avatar_url":"https://avatars.githubusercontent.com/u/138052?v=3","gravatar_id":"","url":"https://api.github.com/users/jathanism","html_url":"https://github.com/jathanism","followers_url":"https://api.github.com/users/jathanism/followers","following_url":"https://api.github.com/users/jathanism/following{/other_user}","gists_url":"https://api.github.com/users/jathanism/gists{/gist_id}","starred_url":"https://api.github.com/users/jathanism/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jathanism/subscriptions","organizations_url":"https://api.github.com/users/jathanism/orgs","repos_url":"https://api.github.com/users/jathanism/repos","events_url":"https://api.github.com/users/jathanism/events{/privacy}","received_events_url":"https://api.github.com/users/jathanism/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/jathanism/nsot","description":"Network Source of Truth","fork":true,"url":"https://api.github.com/repos/jathanism/nsot","forks_url":"https://api.github.com/repos/jathanism/nsot/forks","keys_url":"https://api.github.com/repos/jathanism/nsot/keys{/key_id}","collaborators_url":"https://api.github.com/repos/jathanism/nsot/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/jathanism/nsot/teams","hooks_url":"https://api.github.com/repos/jathanism/nsot/hooks","issue_events_url":"https://api.github.com/repos/jathanism/nsot/issues/events{/number}","events_url":"https://api.github.com/repos/jathanism/nsot/events","assignees_url":"https://api.github.com/repos/jathanism/nsot/assignees{/user}","branches_url":"https://api.github.com/repos/jathanism/nsot/branches{/branch}","tags_url":"https://api.github.com/repos/jathanism/nsot/tags","blobs_url":"https://api.github.com/repos/jathanism/nsot/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/jathanism/nsot/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/jathanism/nsot/git/refs{/sha}","trees_url":"https://api.github.com/repos/jathanism/nsot/git/trees{/sha}","statuses_url":"https://api.github.com/repos/jathanism/nsot/statuses/{sha}","languages_url":"https://api.github.com/repos/jathanism/nsot/languages","stargazers_url":"https://api.github.com/repos/jathanism/nsot/stargazers","contributors_url":"https://api.github.com/repos/jathanism/nsot/contributors","subscribers_url":"https://api.github.com/repos/jathanism/nsot/subscribers","subscription_url":"https://api.github.com/repos/jathanism/nsot/subscription","commits_url":"https://api.github.com/repos/jathanism/nsot/commits{/sha}","git_commits_url":"https://api.github.com/repos/jathanism/nsot/git/commits{/sha}","comments_url":"https://api.github.com/repos/jathanism/nsot/comments{/number}","issue_comment_url":"https://api.github.com/repos/jathanism/nsot/issues/comments{/number}","contents_url":"https://api.github.com/repos/jathanism/nsot/contents/{+path}","compare_url":"https://api.github.com/repos/jathanism/nsot/compare/{base}...{head}","merges_url":"https://api.github.com/repos/jathanism/nsot/merges","archive_url":"https://api.github.com/repos/jathanism/nsot/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/jathanism/nsot/downloads","issues_url":"https://api.github.com/repos/jathanism/nsot/issues{/number}","pulls_url":"https://api.github.com/repos/jathanism/nsot/pulls{/number}","milestones_url":"https://api.github.com/repos/jathanism/nsot/milestones{/number}","notifications_url":"https://api.github.com/repos/jathanism/nsot/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/jathanism/nsot/labels{/name}","releases_url":"https://api.github.com/repos/jathanism/nsot/releases{/id}","deployments_url":"https://api.github.com/repos/jathanism/nsot/deployments","created_at":"2015-01-08T19:48:34Z","updated_at":"2016-02-02T18:14:42Z","pushed_at":"2016-03-30T00:48:55Z","git_url":"git://github.com/jathanism/nsot.git","ssh_url":"git@github.com:jathanism/nsot.git","clone_url":"https://github.com/jathanism/nsot.git","svn_url":"https://github.com/jathanism/nsot","homepage":null,"size":2486,"stargazers_count":1,"watchers_count":1,"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":1,"default_branch":"master"}},"base":{"label":"dropbox:master","ref":"master","sha":"cac5aefaa501a33bafca731bd72b67c8ba376dc7","user":{"login":"dropbox","id":559357,"avatar_url":"https://avatars.githubusercontent.com/u/559357?v=3","gravatar_id":"","url":"https://api.github.com/users/dropbox","html_url":"https://github.com/dropbox","followers_url":"https://api.github.com/users/dropbox/followers","following_url":"https://api.github.com/users/dropbox/following{/other_user}","gists_url":"https://api.github.com/users/dropbox/gists{/gist_id}","starred_url":"https://api.github.com/users/dropbox/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dropbox/subscriptions","organizations_url":"https://api.github.com/users/dropbox/orgs","repos_url":"https://api.github.com/users/dropbox/repos","events_url":"https://api.github.com/users/dropbox/events{/privacy}","received_events_url":"https://api.github.com/users/dropbox/received_events","type":"Organization","site_admin":false},"repo":{"id":28201627,"name":"nsot","full_name":"dropbox/nsot","owner":{"login":"dropbox","id":559357,"avatar_url":"https://avatars.githubusercontent.com/u/559357?v=3","gravatar_id":"","url":"https://api.github.com/users/dropbox","html_url":"https://github.com/dropbox","followers_url":"https://api.github.com/users/dropbox/followers","following_url":"https://api.github.com/users/dropbox/following{/other_user}","gists_url":"https://api.github.com/users/dropbox/gists{/gist_id}","starred_url":"https://api.github.com/users/dropbox/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dropbox/subscriptions","organizations_url":"https://api.github.com/users/dropbox/orgs","repos_url":"https://api.github.com/users/dropbox/repos","events_url":"https://api.github.com/users/dropbox/events{/privacy}","received_events_url":"https://api.github.com/users/dropbox/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/dropbox/nsot","description":"Network Source of Truth","fork":false,"url":"https://api.github.com/repos/dropbox/nsot","forks_url":"https://api.github.com/repos/dropbox/nsot/forks","keys_url":"https://api.github.com/repos/dropbox/nsot/keys{/key_id}","collaborators_url":"https://api.github.com/repos/dropbox/nsot/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/dropbox/nsot/teams","hooks_url":"https://api.github.com/repos/dropbox/nsot/hooks","issue_events_url":"https://api.github.com/repos/dropbox/nsot/issues/events{/number}","events_url":"https://api.github.com/repos/dropbox/nsot/events","assignees_url":"https://api.github.com/repos/dropbox/nsot/assignees{/user}","branches_url":"https://api.github.com/repos/dropbox/nsot/branches{/branch}","tags_url":"https://api.github.com/repos/dropbox/nsot/tags","blobs_url":"https://api.github.com/repos/dropbox/nsot/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/dropbox/nsot/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/dropbox/nsot/git/refs{/sha}","trees_url":"https://api.github.com/repos/dropbox/nsot/git/trees{/sha}","statuses_url":"https://api.github.com/repos/dropbox/nsot/statuses/{sha}","languages_url":"https://api.github.com/repos/dropbox/nsot/languages","stargazers_url":"https://api.github.com/repos/dropbox/nsot/stargazers","contributors_url":"https://api.github.com/repos/dropbox/nsot/contributors","subscribers_url":"https://api.github.com/repos/dropbox/nsot/subscribers","subscription_url":"https://api.github.com/repos/dropbox/nsot/subscription","commits_url":"https://api.github.com/repos/dropbox/nsot/commits{/sha}","git_commits_url":"https://api.github.com/repos/dropbox/nsot/git/commits{/sha}","comments_url":"https://api.github.com/repos/dropbox/nsot/comments{/number}","issue_comment_url":"https://api.github.com/repos/dropbox/nsot/issues/comments{/number}","contents_url":"https://api.github.com/repos/dropbox/nsot/contents/{+path}","compare_url":"https://api.github.com/repos/dropbox/nsot/compare/{base}...{head}","merges_url":"https://api.github.com/repos/dropbox/nsot/merges","archive_url":"https://api.github.com/repos/dropbox/nsot/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/dropbox/nsot/downloads","issues_url":"https://api.github.com/repos/dropbox/nsot/issues{/number}","pulls_url":"https://api.github.com/repos/dropbox/nsot/pulls{/number}","milestones_url":"https://api.github.com/repos/dropbox/nsot/milestones{/number}","notifications_url":"https://api.github.com/repos/dropbox/nsot/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/dropbox/nsot/labels{/name}","releases_url":"https://api.github.com/repos/dropbox/nsot/releases{/id}","deployments_url":"https://api.github.com/repos/dropbox/nsot/deployments","created_at":"2014-12-18T21:06:12Z","updated_at":"2016-03-25T09:39:40Z","pushed_at":"2016-03-29T16:42:58Z","git_url":"git://github.com/dropbox/nsot.git","ssh_url":"git@github.com:dropbox/nsot.git","clone_url":"https://github.com/dropbox/nsot.git","svn_url":"https://github.com/dropbox/nsot","homepage":null,"size":2488,"stargazers_count":33,"watchers_count":33,"language":"Python","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":11,"mirror_url":null,"open_issues_count":22,"forks":11,"open_issues":22,"watchers":33,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/dropbox/nsot/pulls/182"},"html":{"href":"https://github.com/dropbox/nsot/pull/182"},"issue":{"href":"https://api.github.com/repos/dropbox/nsot/issues/182"},"comments":{"href":"https://api.github.com/repos/dropbox/nsot/issues/182/comments"},"review_comments":{"href":"https://api.github.com/repos/dropbox/nsot/pulls/182/comments"},"review_comment":{"href":"https://api.github.com/repos/dropbox/nsot/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/dropbox/nsot/pulls/182/commits"},"statuses":{"href":"https://api.github.com/repos/dropbox/nsot/statuses/9b1d241db868060fca0afe0e508398d2c6b6d87a"}},"merged":false,"mergeable":null,"mergeable_state":"unknown","merged_by":null,"comments":0,"review_comments":0,"commits":1,"additions":78,"deletions":8,"changed_files":5}}