{"action":"created","comment":{"url":"https://api.github.com/repos/venicegeo/bf-ui/pulls/comments/64433739","id":64433739,"diff_hunk":"@@ -1,25 +1,48 @@\n import React from 'react'\n import {createHistory} from 'history'\n-import {Router, Route, useRouterHistory} from 'react-router'\n+import {Router, Route, useRouterHistory, IndexRoute} from 'react-router'\n import {render} from 'react-dom'\n import Application from './components/Application'\n+import Login from './components/Login'\n import CreateJob from './components/CreateJob'\n import JobStatusList from './components/JobStatusList'\n+import auth from './utils/auth.js'\n import Help from './components/Help'\n import About from './components/About'\n \n+function redirectToLogin(nextState, replace) {","path":"app/router.jsx","position":14,"original_position":14,"commit_id":"b7415ca5359752392fd33d90487b8c12537a0ee1","original_commit_id":"b7415ca5359752392fd33d90487b8c12537a0ee1","user":{"login":"dbazile","id":1542531,"avatar_url":"https://avatars.githubusercontent.com/u/1542531?v=3","gravatar_id":"","url":"https://api.github.com/users/dbazile","html_url":"https://github.com/dbazile","followers_url":"https://api.github.com/users/dbazile/followers","following_url":"https://api.github.com/users/dbazile/following{/other_user}","gists_url":"https://api.github.com/users/dbazile/gists{/gist_id}","starred_url":"https://api.github.com/users/dbazile/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dbazile/subscriptions","organizations_url":"https://api.github.com/users/dbazile/orgs","repos_url":"https://api.github.com/users/dbazile/repos","events_url":"https://api.github.com/users/dbazile/events{/privacy}","received_events_url":"https://api.github.com/users/dbazile/received_events","type":"User","site_admin":false},"body":"Can you move this internal function to after the exported function?\r\n\r\nOne convention I'm trying to keep is to keep all of the exports (i.e., public interface) of a module at the top of the file ([reference](https://github.com/venicegeo/bf-ui/blob/master/app/api/algorithms.js#L3-L6)).","created_at":"2016-05-24T17:07:31Z","updated_at":"2016-05-24T17:07:31Z","html_url":"https://github.com/venicegeo/bf-ui/pull/35#discussion_r64433739","pull_request_url":"https://api.github.com/repos/venicegeo/bf-ui/pulls/35","_links":{"self":{"href":"https://api.github.com/repos/venicegeo/bf-ui/pulls/comments/64433739"},"html":{"href":"https://github.com/venicegeo/bf-ui/pull/35#discussion_r64433739"},"pull_request":{"href":"https://api.github.com/repos/venicegeo/bf-ui/pulls/35"}}},"pull_request":{"url":"https://api.github.com/repos/venicegeo/bf-ui/pulls/35","id":71247325,"html_url":"https://github.com/venicegeo/bf-ui/pull/35","diff_url":"https://github.com/venicegeo/bf-ui/pull/35.diff","patch_url":"https://github.com/venicegeo/bf-ui/pull/35.patch","issue_url":"https://api.github.com/repos/venicegeo/bf-ui/issues/35","number":35,"state":"open","locked":false,"title":"2563 authentication","user":{"login":"jduncanRadBlue","id":16208809,"avatar_url":"https://avatars.githubusercontent.com/u/16208809?v=3","gravatar_id":"","url":"https://api.github.com/users/jduncanRadBlue","html_url":"https://github.com/jduncanRadBlue","followers_url":"https://api.github.com/users/jduncanRadBlue/followers","following_url":"https://api.github.com/users/jduncanRadBlue/following{/other_user}","gists_url":"https://api.github.com/users/jduncanRadBlue/gists{/gist_id}","starred_url":"https://api.github.com/users/jduncanRadBlue/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jduncanRadBlue/subscriptions","organizations_url":"https://api.github.com/users/jduncanRadBlue/orgs","repos_url":"https://api.github.com/users/jduncanRadBlue/repos","events_url":"https://api.github.com/users/jduncanRadBlue/events{/privacy}","received_events_url":"https://api.github.com/users/jduncanRadBlue/received_events","type":"User","site_admin":false},"body":"","created_at":"2016-05-24T16:01:15Z","updated_at":"2016-05-24T17:07:31Z","closed_at":null,"merged_at":null,"merge_commit_sha":"1b3d3ea63cae6433e6f9acacf92347d54909d433","assignee":{"login":"dbazile","id":1542531,"avatar_url":"https://avatars.githubusercontent.com/u/1542531?v=3","gravatar_id":"","url":"https://api.github.com/users/dbazile","html_url":"https://github.com/dbazile","followers_url":"https://api.github.com/users/dbazile/followers","following_url":"https://api.github.com/users/dbazile/following{/other_user}","gists_url":"https://api.github.com/users/dbazile/gists{/gist_id}","starred_url":"https://api.github.com/users/dbazile/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dbazile/subscriptions","organizations_url":"https://api.github.com/users/dbazile/orgs","repos_url":"https://api.github.com/users/dbazile/repos","events_url":"https://api.github.com/users/dbazile/events{/privacy}","received_events_url":"https://api.github.com/users/dbazile/received_events","type":"User","site_admin":false},"milestone":null,"commits_url":"https://api.github.com/repos/venicegeo/bf-ui/pulls/35/commits","review_comments_url":"https://api.github.com/repos/venicegeo/bf-ui/pulls/35/comments","review_comment_url":"https://api.github.com/repos/venicegeo/bf-ui/pulls/comments{/number}","comments_url":"https://api.github.com/repos/venicegeo/bf-ui/issues/35/comments","statuses_url":"https://api.github.com/repos/venicegeo/bf-ui/statuses/b7415ca5359752392fd33d90487b8c12537a0ee1","head":{"label":"venicegeo:2563-authentication","ref":"2563-authentication","sha":"b7415ca5359752392fd33d90487b8c12537a0ee1","user":{"login":"venicegeo","id":15457149,"avatar_url":"https://avatars.githubusercontent.com/u/15457149?v=3","gravatar_id":"","url":"https://api.github.com/users/venicegeo","html_url":"https://github.com/venicegeo","followers_url":"https://api.github.com/users/venicegeo/followers","following_url":"https://api.github.com/users/venicegeo/following{/other_user}","gists_url":"https://api.github.com/users/venicegeo/gists{/gist_id}","starred_url":"https://api.github.com/users/venicegeo/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/venicegeo/subscriptions","organizations_url":"https://api.github.com/users/venicegeo/orgs","repos_url":"https://api.github.com/users/venicegeo/repos","events_url":"https://api.github.com/users/venicegeo/events{/privacy}","received_events_url":"https://api.github.com/users/venicegeo/received_events","type":"Organization","site_admin":false},"repo":{"id":53370248,"name":"bf-ui","full_name":"venicegeo/bf-ui","owner":{"login":"venicegeo","id":15457149,"avatar_url":"https://avatars.githubusercontent.com/u/15457149?v=3","gravatar_id":"","url":"https://api.github.com/users/venicegeo","html_url":"https://github.com/venicegeo","followers_url":"https://api.github.com/users/venicegeo/followers","following_url":"https://api.github.com/users/venicegeo/following{/other_user}","gists_url":"https://api.github.com/users/venicegeo/gists{/gist_id}","starred_url":"https://api.github.com/users/venicegeo/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/venicegeo/subscriptions","organizations_url":"https://api.github.com/users/venicegeo/orgs","repos_url":"https://api.github.com/users/venicegeo/repos","events_url":"https://api.github.com/users/venicegeo/events{/privacy}","received_events_url":"https://api.github.com/users/venicegeo/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/venicegeo/bf-ui","description":"Automated global vector shoreline extraction.","fork":false,"url":"https://api.github.com/repos/venicegeo/bf-ui","forks_url":"https://api.github.com/repos/venicegeo/bf-ui/forks","keys_url":"https://api.github.com/repos/venicegeo/bf-ui/keys{/key_id}","collaborators_url":"https://api.github.com/repos/venicegeo/bf-ui/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/venicegeo/bf-ui/teams","hooks_url":"https://api.github.com/repos/venicegeo/bf-ui/hooks","issue_events_url":"https://api.github.com/repos/venicegeo/bf-ui/issues/events{/number}","events_url":"https://api.github.com/repos/venicegeo/bf-ui/events","assignees_url":"https://api.github.com/repos/venicegeo/bf-ui/assignees{/user}","branches_url":"https://api.github.com/repos/venicegeo/bf-ui/branches{/branch}","tags_url":"https://api.github.com/repos/venicegeo/bf-ui/tags","blobs_url":"https://api.github.com/repos/venicegeo/bf-ui/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/venicegeo/bf-ui/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/venicegeo/bf-ui/git/refs{/sha}","trees_url":"https://api.github.com/repos/venicegeo/bf-ui/git/trees{/sha}","statuses_url":"https://api.github.com/repos/venicegeo/bf-ui/statuses/{sha}","languages_url":"https://api.github.com/repos/venicegeo/bf-ui/languages","stargazers_url":"https://api.github.com/repos/venicegeo/bf-ui/stargazers","contributors_url":"https://api.github.com/repos/venicegeo/bf-ui/contributors","subscribers_url":"https://api.github.com/repos/venicegeo/bf-ui/subscribers","subscription_url":"https://api.github.com/repos/venicegeo/bf-ui/subscription","commits_url":"https://api.github.com/repos/venicegeo/bf-ui/commits{/sha}","git_commits_url":"https://api.github.com/repos/venicegeo/bf-ui/git/commits{/sha}","comments_url":"https://api.github.com/repos/venicegeo/bf-ui/comments{/number}","issue_comment_url":"https://api.github.com/repos/venicegeo/bf-ui/issues/comments{/number}","contents_url":"https://api.github.com/repos/venicegeo/bf-ui/contents/{+path}","compare_url":"https://api.github.com/repos/venicegeo/bf-ui/compare/{base}...{head}","merges_url":"https://api.github.com/repos/venicegeo/bf-ui/merges","archive_url":"https://api.github.com/repos/venicegeo/bf-ui/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/venicegeo/bf-ui/downloads","issues_url":"https://api.github.com/repos/venicegeo/bf-ui/issues{/number}","pulls_url":"https://api.github.com/repos/venicegeo/bf-ui/pulls{/number}","milestones_url":"https://api.github.com/repos/venicegeo/bf-ui/milestones{/number}","notifications_url":"https://api.github.com/repos/venicegeo/bf-ui/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/venicegeo/bf-ui/labels{/name}","releases_url":"https://api.github.com/repos/venicegeo/bf-ui/releases{/id}","deployments_url":"https://api.github.com/repos/venicegeo/bf-ui/deployments","created_at":"2016-03-08T00:48:20Z","updated_at":"2016-05-19T22:06:27Z","pushed_at":"2016-05-24T16:47:24Z","git_url":"git://github.com/venicegeo/bf-ui.git","ssh_url":"git@github.com:venicegeo/bf-ui.git","clone_url":"https://github.com/venicegeo/bf-ui.git","svn_url":"https://github.com/venicegeo/bf-ui","homepage":null,"size":5888,"stargazers_count":0,"watchers_count":0,"language":"JavaScript","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":1,"forks":0,"open_issues":1,"watchers":0,"default_branch":"master"}},"base":{"label":"venicegeo:master","ref":"master","sha":"37137110157959906f288936d0cae1fc51f75032","user":{"login":"venicegeo","id":15457149,"avatar_url":"https://avatars.githubusercontent.com/u/15457149?v=3","gravatar_id":"","url":"https://api.github.com/users/venicegeo","html_url":"https://github.com/venicegeo","followers_url":"https://api.github.com/users/venicegeo/followers","following_url":"https://api.github.com/users/venicegeo/following{/other_user}","gists_url":"https://api.github.com/users/venicegeo/gists{/gist_id}","starred_url":"https://api.github.com/users/venicegeo/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/venicegeo/subscriptions","organizations_url":"https://api.github.com/users/venicegeo/orgs","repos_url":"https://api.github.com/users/venicegeo/repos","events_url":"https://api.github.com/users/venicegeo/events{/privacy}","received_events_url":"https://api.github.com/users/venicegeo/received_events","type":"Organization","site_admin":false},"repo":{"id":53370248,"name":"bf-ui","full_name":"venicegeo/bf-ui","owner":{"login":"venicegeo","id":15457149,"avatar_url":"https://avatars.githubusercontent.com/u/15457149?v=3","gravatar_id":"","url":"https://api.github.com/users/venicegeo","html_url":"https://github.com/venicegeo","followers_url":"https://api.github.com/users/venicegeo/followers","following_url":"https://api.github.com/users/venicegeo/following{/other_user}","gists_url":"https://api.github.com/users/venicegeo/gists{/gist_id}","starred_url":"https://api.github.com/users/venicegeo/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/venicegeo/subscriptions","organizations_url":"https://api.github.com/users/venicegeo/orgs","repos_url":"https://api.github.com/users/venicegeo/repos","events_url":"https://api.github.com/users/venicegeo/events{/privacy}","received_events_url":"https://api.github.com/users/venicegeo/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/venicegeo/bf-ui","description":"Automated global vector shoreline extraction.","fork":false,"url":"https://api.github.com/repos/venicegeo/bf-ui","forks_url":"https://api.github.com/repos/venicegeo/bf-ui/forks","keys_url":"https://api.github.com/repos/venicegeo/bf-ui/keys{/key_id}","collaborators_url":"https://api.github.com/repos/venicegeo/bf-ui/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/venicegeo/bf-ui/teams","hooks_url":"https://api.github.com/repos/venicegeo/bf-ui/hooks","issue_events_url":"https://api.github.com/repos/venicegeo/bf-ui/issues/events{/number}","events_url":"https://api.github.com/repos/venicegeo/bf-ui/events","assignees_url":"https://api.github.com/repos/venicegeo/bf-ui/assignees{/user}","branches_url":"https://api.github.com/repos/venicegeo/bf-ui/branches{/branch}","tags_url":"https://api.github.com/repos/venicegeo/bf-ui/tags","blobs_url":"https://api.github.com/repos/venicegeo/bf-ui/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/venicegeo/bf-ui/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/venicegeo/bf-ui/git/refs{/sha}","trees_url":"https://api.github.com/repos/venicegeo/bf-ui/git/trees{/sha}","statuses_url":"https://api.github.com/repos/venicegeo/bf-ui/statuses/{sha}","languages_url":"https://api.github.com/repos/venicegeo/bf-ui/languages","stargazers_url":"https://api.github.com/repos/venicegeo/bf-ui/stargazers","contributors_url":"https://api.github.com/repos/venicegeo/bf-ui/contributors","subscribers_url":"https://api.github.com/repos/venicegeo/bf-ui/subscribers","subscription_url":"https://api.github.com/repos/venicegeo/bf-ui/subscription","commits_url":"https://api.github.com/repos/venicegeo/bf-ui/commits{/sha}","git_commits_url":"https://api.github.com/repos/venicegeo/bf-ui/git/commits{/sha}","comments_url":"https://api.github.com/repos/venicegeo/bf-ui/comments{/number}","issue_comment_url":"https://api.github.com/repos/venicegeo/bf-ui/issues/comments{/number}","contents_url":"https://api.github.com/repos/venicegeo/bf-ui/contents/{+path}","compare_url":"https://api.github.com/repos/venicegeo/bf-ui/compare/{base}...{head}","merges_url":"https://api.github.com/repos/venicegeo/bf-ui/merges","archive_url":"https://api.github.com/repos/venicegeo/bf-ui/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/venicegeo/bf-ui/downloads","issues_url":"https://api.github.com/repos/venicegeo/bf-ui/issues{/number}","pulls_url":"https://api.github.com/repos/venicegeo/bf-ui/pulls{/number}","milestones_url":"https://api.github.com/repos/venicegeo/bf-ui/milestones{/number}","notifications_url":"https://api.github.com/repos/venicegeo/bf-ui/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/venicegeo/bf-ui/labels{/name}","releases_url":"https://api.github.com/repos/venicegeo/bf-ui/releases{/id}","deployments_url":"https://api.github.com/repos/venicegeo/bf-ui/deployments","created_at":"2016-03-08T00:48:20Z","updated_at":"2016-05-19T22:06:27Z","pushed_at":"2016-05-24T16:47:24Z","git_url":"git://github.com/venicegeo/bf-ui.git","ssh_url":"git@github.com:venicegeo/bf-ui.git","clone_url":"https://github.com/venicegeo/bf-ui.git","svn_url":"https://github.com/venicegeo/bf-ui","homepage":null,"size":5888,"stargazers_count":0,"watchers_count":0,"language":"JavaScript","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":1,"forks":0,"open_issues":1,"watchers":0,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/venicegeo/bf-ui/pulls/35"},"html":{"href":"https://github.com/venicegeo/bf-ui/pull/35"},"issue":{"href":"https://api.github.com/repos/venicegeo/bf-ui/issues/35"},"comments":{"href":"https://api.github.com/repos/venicegeo/bf-ui/issues/35/comments"},"review_comments":{"href":"https://api.github.com/repos/venicegeo/bf-ui/pulls/35/comments"},"review_comment":{"href":"https://api.github.com/repos/venicegeo/bf-ui/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/venicegeo/bf-ui/pulls/35/commits"},"statuses":{"href":"https://api.github.com/repos/venicegeo/bf-ui/statuses/b7415ca5359752392fd33d90487b8c12537a0ee1"}}}}
{"actor":{"display_login":"dbazile"}}