{"action":"opened","number":455,"pull_request":{"url":"https://api.github.com/repos/AlexsLemonade/refinebio-frontend/pulls/455","id":236282806,"node_id":"MDExOlB1bGxSZXF1ZXN0MjM2MjgyODA2","html_url":"https://github.com/AlexsLemonade/refinebio-frontend/pull/455","diff_url":"https://github.com/AlexsLemonade/refinebio-frontend/pull/455.diff","patch_url":"https://github.com/AlexsLemonade/refinebio-frontend/pull/455.patch","issue_url":"https://api.github.com/repos/AlexsLemonade/refinebio-frontend/issues/455","number":455,"state":"open","locked":false,"title":"Refresh the app when the version of the api changes","user":{"login":"arielsvn","id":1882507,"node_id":"MDQ6VXNlcjE4ODI1MDc=","avatar_url":"https://avatars1.githubusercontent.com/u/1882507?v=4","gravatar_id":"","url":"https://api.github.com/users/arielsvn","html_url":"https://github.com/arielsvn","followers_url":"https://api.github.com/users/arielsvn/followers","following_url":"https://api.github.com/users/arielsvn/following{/other_user}","gists_url":"https://api.github.com/users/arielsvn/gists{/gist_id}","starred_url":"https://api.github.com/users/arielsvn/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/arielsvn/subscriptions","organizations_url":"https://api.github.com/users/arielsvn/orgs","repos_url":"https://api.github.com/users/arielsvn/repos","events_url":"https://api.github.com/users/arielsvn/events{/privacy}","received_events_url":"https://api.github.com/users/arielsvn/received_events","type":"User","site_admin":false},"body":"## Issue Number\r\n\r\nclose #149 \r\n\r\n## Purpose/Implementation Notes\r\n\r\nWith https://github.com/AlexsLemonade/refinebio/pull/870, the version of the api will be sent on every request. \r\n\r\nEvery time the frontend is deployed it will query the API and save it's version at that moment, then it will continue to check that the versions match on every network request. When they don't a page refresh will be triggered.\r\n\r\n## Types of changes\r\n\r\n* [x] New feature (non-breaking change which adds functionality)\r\n\r\n## Functional tests\r\n\r\nChecked with a local version of the api, updating the versions on both ends several times.\r\n\r\n## Checklist\r\n\r\n_Put an `x` in the boxes that apply._\r\n\r\n* [x] Lint and unit tests pass locally with my changes\r\n* [ ] I have added tests that prove my fix is effective or that my feature works\r\n* [ ] I have added necessary documentation (if appropriate)\r\n* [ ] Any dependent changes have been merged and published in downstream modules\r\n","created_at":"2018-12-05T18:46:48Z","updated_at":"2018-12-05T18:46:48Z","closed_at":null,"merged_at":null,"merge_commit_sha":null,"assignee":null,"assignees":[],"requested_reviewers":[],"requested_teams":[],"labels":[],"milestone":null,"commits_url":"https://api.github.com/repos/AlexsLemonade/refinebio-frontend/pulls/455/commits","review_comments_url":"https://api.github.com/repos/AlexsLemonade/refinebio-frontend/pulls/455/comments","review_comment_url":"https://api.github.com/repos/AlexsLemonade/refinebio-frontend/pulls/comments{/number}","comments_url":"https://api.github.com/repos/AlexsLemonade/refinebio-frontend/issues/455/comments","statuses_url":"https://api.github.com/repos/AlexsLemonade/refinebio-frontend/statuses/5ff5c9d9ea2882abb372109a077f513f3fe5512c","head":{"label":"AlexsLemonade:arielsvn/support/149-check-api-version","ref":"arielsvn/support/149-check-api-version","sha":"5ff5c9d9ea2882abb372109a077f513f3fe5512c","user":{"login":"AlexsLemonade","id":29661525,"node_id":"MDEyOk9yZ2FuaXphdGlvbjI5NjYxNTI1","avatar_url":"https://avatars1.githubusercontent.com/u/29661525?v=4","gravatar_id":"","url":"https://api.github.com/users/AlexsLemonade","html_url":"https://github.com/AlexsLemonade","followers_url":"https://api.github.com/users/AlexsLemonade/followers","following_url":"https://api.github.com/users/AlexsLemonade/following{/other_user}","gists_url":"https://api.github.com/users/AlexsLemonade/gists{/gist_id}","starred_url":"https://api.github.com/users/AlexsLemonade/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/AlexsLemonade/subscriptions","organizations_url":"https://api.github.com/users/AlexsLemonade/orgs","repos_url":"https://api.github.com/users/AlexsLemonade/repos","events_url":"https://api.github.com/users/AlexsLemonade/events{/privacy}","received_events_url":"https://api.github.com/users/AlexsLemonade/received_events","type":"Organization","site_admin":false},"repo":{"id":126057994,"node_id":"MDEwOlJlcG9zaXRvcnkxMjYwNTc5OTQ=","name":"refinebio-frontend","full_name":"AlexsLemonade/refinebio-frontend","private":false,"owner":{"login":"AlexsLemonade","id":29661525,"node_id":"MDEyOk9yZ2FuaXphdGlvbjI5NjYxNTI1","avatar_url":"https://avatars1.githubusercontent.com/u/29661525?v=4","gravatar_id":"","url":"https://api.github.com/users/AlexsLemonade","html_url":"https://github.com/AlexsLemonade","followers_url":"https://api.github.com/users/AlexsLemonade/followers","following_url":"https://api.github.com/users/AlexsLemonade/following{/other_user}","gists_url":"https://api.github.com/users/AlexsLemonade/gists{/gist_id}","starred_url":"https://api.github.com/users/AlexsLemonade/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/AlexsLemonade/subscriptions","organizations_url":"https://api.github.com/users/AlexsLemonade/orgs","repos_url":"https://api.github.com/users/AlexsLemonade/repos","events_url":"https://api.github.com/users/AlexsLemonade/events{/privacy}","received_events_url":"https://api.github.com/users/AlexsLemonade/received_events","type":"Organization","site_admin":false},"html_url":"https://github.com/AlexsLemonade/refinebio-frontend","description":"Frontend app for refine.bio","fork":false,"url":"https://api.github.com/repos/AlexsLemonade/refinebio-frontend","forks_url":"https://api.github.com/repos/AlexsLemonade/refinebio-frontend/forks","keys_url":"https://api.github.com/repos/AlexsLemonade/refinebio-frontend/keys{/key_id}","collaborators_url":"https://api.github.com/repos/AlexsLemonade/refinebio-frontend/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/AlexsLemonade/refinebio-frontend/teams","hooks_url":"https://api.github.com/repos/AlexsLemonade/refinebio-frontend/hooks","issue_events_url":"https://api.github.com/repos/AlexsLemonade/refinebio-frontend/issues/events{/number}","events_url":"https://api.github.com/repos/AlexsLemonade/refinebio-frontend/events","assignees_url":"https://api.github.com/repos/AlexsLemonade/refinebio-frontend/assignees{/user}","branches_url":"https://api.github.com/repos/AlexsLemonade/refinebio-frontend/branches{/branch}","tags_url":"https://api.github.com/repos/AlexsLemonade/refinebio-frontend/tags","blobs_url":"https://api.github.com/repos/AlexsLemonade/refinebio-frontend/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/AlexsLemonade/refinebio-frontend/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/AlexsLemonade/refinebio-frontend/git/refs{/sha}","trees_url":"https://api.github.com/repos/AlexsLemonade/refinebio-frontend/git/trees{/sha}","statuses_url":"https://api.github.com/repos/AlexsLemonade/refinebio-frontend/statuses/{sha}","languages_url":"https://api.github.com/repos/AlexsLemonade/refinebio-frontend/languages","stargazers_url":"https://api.github.com/repos/AlexsLemonade/refinebio-frontend/stargazers","contributors_url":"https://api.github.com/repos/AlexsLemonade/refinebio-frontend/contributors","subscribers_url":"https://api.github.com/repos/AlexsLemonade/refinebio-frontend/subscribers","subscription_url":"https://api.github.com/repos/AlexsLemonade/refinebio-frontend/subscription","commits_url":"https://api.github.com/repos/AlexsLemonade/refinebio-frontend/commits{/sha}","git_commits_url":"https://api.github.com/repos/AlexsLemonade/refinebio-frontend/git/commits{/sha}","comments_url":"https://api.github.com/repos/AlexsLemonade/refinebio-frontend/comments{/number}","issue_comment_url":"https://api.github.com/repos/AlexsLemonade/refinebio-frontend/issues/comments{/number}","contents_url":"https://api.github.com/repos/AlexsLemonade/refinebio-frontend/contents/{+path}","compare_url":"https://api.github.com/repos/AlexsLemonade/refinebio-frontend/compare/{base}...{head}","merges_url":"https://api.github.com/repos/AlexsLemonade/refinebio-frontend/merges","archive_url":"https://api.github.com/repos/AlexsLemonade/refinebio-frontend/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/AlexsLemonade/refinebio-frontend/downloads","issues_url":"https://api.github.com/repos/AlexsLemonade/refinebio-frontend/issues{/number}","pulls_url":"https://api.github.com/repos/AlexsLemonade/refinebio-frontend/pulls{/number}","milestones_url":"https://api.github.com/repos/AlexsLemonade/refinebio-frontend/milestones{/number}","notifications_url":"https://api.github.com/repos/AlexsLemonade/refinebio-frontend/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/AlexsLemonade/refinebio-frontend/labels{/name}","releases_url":"https://api.github.com/repos/AlexsLemonade/refinebio-frontend/releases{/id}","deployments_url":"https://api.github.com/repos/AlexsLemonade/refinebio-frontend/deployments","created_at":"2018-03-20T17:36:31Z","updated_at":"2018-12-03T19:18:59Z","pushed_at":"2018-12-05T18:17:33Z","git_url":"git://github.com/AlexsLemonade/refinebio-frontend.git","ssh_url":"git@github.com:AlexsLemonade/refinebio-frontend.git","clone_url":"https://github.com/AlexsLemonade/refinebio-frontend.git","svn_url":"https://github.com/AlexsLemonade/refinebio-frontend","homepage":"https://www.refine.bio","size":19650,"stargazers_count":0,"watchers_count":0,"language":"JavaScript","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":1,"mirror_url":null,"archived":false,"open_issues_count":34,"license":null,"forks":1,"open_issues":34,"watchers":0,"default_branch":"dev"}},"base":{"label":"AlexsLemonade:dev","ref":"dev","sha":"32a040d9d2dc84ac926e19902c51131fc5be8001","user":{"login":"AlexsLemonade","id":29661525,"node_id":"MDEyOk9yZ2FuaXphdGlvbjI5NjYxNTI1","avatar_url":"https://avatars1.githubusercontent.com/u/29661525?v=4","gravatar_id":"","url":"https://api.github.com/users/AlexsLemonade","html_url":"https://github.com/AlexsLemonade","followers_url":"https://api.github.com/users/AlexsLemonade/followers","following_url":"https://api.github.com/users/AlexsLemonade/following{/other_user}","gists_url":"https://api.github.com/users/AlexsLemonade/gists{/gist_id}","starred_url":"https://api.github.com/users/AlexsLemonade/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/AlexsLemonade/subscriptions","organizations_url":"https://api.github.com/users/AlexsLemonade/orgs","repos_url":"https://api.github.com/users/AlexsLemonade/repos","events_url":"https://api.github.com/users/AlexsLemonade/events{/privacy}","received_events_url":"https://api.github.com/users/AlexsLemonade/received_events","type":"Organization","site_admin":false},"repo":{"id":126057994,"node_id":"MDEwOlJlcG9zaXRvcnkxMjYwNTc5OTQ=","name":"refinebio-frontend","full_name":"AlexsLemonade/refinebio-frontend","private":false,"owner":{"login":"AlexsLemonade","id":29661525,"node_id":"MDEyOk9yZ2FuaXphdGlvbjI5NjYxNTI1","avatar_url":"https://avatars1.githubusercontent.com/u/29661525?v=4","gravatar_id":"","url":"https://api.github.com/users/AlexsLemonade","html_url":"https://github.com/AlexsLemonade","followers_url":"https://api.github.com/users/AlexsLemonade/followers","following_url":"https://api.github.com/users/AlexsLemonade/following{/other_user}","gists_url":"https://api.github.com/users/AlexsLemonade/gists{/gist_id}","starred_url":"https://api.github.com/users/AlexsLemonade/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/AlexsLemonade/subscriptions","organizations_url":"https://api.github.com/users/AlexsLemonade/orgs","repos_url":"https://api.github.com/users/AlexsLemonade/repos","events_url":"https://api.github.com/users/AlexsLemonade/events{/privacy}","received_events_url":"https://api.github.com/users/AlexsLemonade/received_events","type":"Organization","site_admin":false},"html_url":"https://github.com/AlexsLemonade/refinebio-frontend","description":"Frontend app for refine.bio","fork":false,"url":"https://api.github.com/repos/AlexsLemonade/refinebio-frontend","forks_url":"https://api.github.com/repos/AlexsLemonade/refinebio-frontend/forks","keys_url":"https://api.github.com/repos/AlexsLemonade/refinebio-frontend/keys{/key_id}","collaborators_url":"https://api.github.com/repos/AlexsLemonade/refinebio-frontend/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/AlexsLemonade/refinebio-frontend/teams","hooks_url":"https://api.github.com/repos/AlexsLemonade/refinebio-frontend/hooks","issue_events_url":"https://api.github.com/repos/AlexsLemonade/refinebio-frontend/issues/events{/number}","events_url":"https://api.github.com/repos/AlexsLemonade/refinebio-frontend/events","assignees_url":"https://api.github.com/repos/AlexsLemonade/refinebio-frontend/assignees{/user}","branches_url":"https://api.github.com/repos/AlexsLemonade/refinebio-frontend/branches{/branch}","tags_url":"https://api.github.com/repos/AlexsLemonade/refinebio-frontend/tags","blobs_url":"https://api.github.com/repos/AlexsLemonade/refinebio-frontend/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/AlexsLemonade/refinebio-frontend/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/AlexsLemonade/refinebio-frontend/git/refs{/sha}","trees_url":"https://api.github.com/repos/AlexsLemonade/refinebio-frontend/git/trees{/sha}","statuses_url":"https://api.github.com/repos/AlexsLemonade/refinebio-frontend/statuses/{sha}","languages_url":"https://api.github.com/repos/AlexsLemonade/refinebio-frontend/languages","stargazers_url":"https://api.github.com/repos/AlexsLemonade/refinebio-frontend/stargazers","contributors_url":"https://api.github.com/repos/AlexsLemonade/refinebio-frontend/contributors","subscribers_url":"https://api.github.com/repos/AlexsLemonade/refinebio-frontend/subscribers","subscription_url":"https://api.github.com/repos/AlexsLemonade/refinebio-frontend/subscription","commits_url":"https://api.github.com/repos/AlexsLemonade/refinebio-frontend/commits{/sha}","git_commits_url":"https://api.github.com/repos/AlexsLemonade/refinebio-frontend/git/commits{/sha}","comments_url":"https://api.github.com/repos/AlexsLemonade/refinebio-frontend/comments{/number}","issue_comment_url":"https://api.github.com/repos/AlexsLemonade/refinebio-frontend/issues/comments{/number}","contents_url":"https://api.github.com/repos/AlexsLemonade/refinebio-frontend/contents/{+path}","compare_url":"https://api.github.com/repos/AlexsLemonade/refinebio-frontend/compare/{base}...{head}","merges_url":"https://api.github.com/repos/AlexsLemonade/refinebio-frontend/merges","archive_url":"https://api.github.com/repos/AlexsLemonade/refinebio-frontend/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/AlexsLemonade/refinebio-frontend/downloads","issues_url":"https://api.github.com/repos/AlexsLemonade/refinebio-frontend/issues{/number}","pulls_url":"https://api.github.com/repos/AlexsLemonade/refinebio-frontend/pulls{/number}","milestones_url":"https://api.github.com/repos/AlexsLemonade/refinebio-frontend/milestones{/number}","notifications_url":"https://api.github.com/repos/AlexsLemonade/refinebio-frontend/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/AlexsLemonade/refinebio-frontend/labels{/name}","releases_url":"https://api.github.com/repos/AlexsLemonade/refinebio-frontend/releases{/id}","deployments_url":"https://api.github.com/repos/AlexsLemonade/refinebio-frontend/deployments","created_at":"2018-03-20T17:36:31Z","updated_at":"2018-12-03T19:18:59Z","pushed_at":"2018-12-05T18:17:33Z","git_url":"git://github.com/AlexsLemonade/refinebio-frontend.git","ssh_url":"git@github.com:AlexsLemonade/refinebio-frontend.git","clone_url":"https://github.com/AlexsLemonade/refinebio-frontend.git","svn_url":"https://github.com/AlexsLemonade/refinebio-frontend","homepage":"https://www.refine.bio","size":19650,"stargazers_count":0,"watchers_count":0,"language":"JavaScript","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":1,"mirror_url":null,"archived":false,"open_issues_count":34,"license":null,"forks":1,"open_issues":34,"watchers":0,"default_branch":"dev"}},"_links":{"self":{"href":"https://api.github.com/repos/AlexsLemonade/refinebio-frontend/pulls/455"},"html":{"href":"https://github.com/AlexsLemonade/refinebio-frontend/pull/455"},"issue":{"href":"https://api.github.com/repos/AlexsLemonade/refinebio-frontend/issues/455"},"comments":{"href":"https://api.github.com/repos/AlexsLemonade/refinebio-frontend/issues/455/comments"},"review_comments":{"href":"https://api.github.com/repos/AlexsLemonade/refinebio-frontend/pulls/455/comments"},"review_comment":{"href":"https://api.github.com/repos/AlexsLemonade/refinebio-frontend/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/AlexsLemonade/refinebio-frontend/pulls/455/commits"},"statuses":{"href":"https://api.github.com/repos/AlexsLemonade/refinebio-frontend/statuses/5ff5c9d9ea2882abb372109a077f513f3fe5512c"}},"author_association":"CONTRIBUTOR","merged":false,"mergeable":null,"rebaseable":null,"mergeable_state":"unknown","merged_by":null,"comments":0,"review_comments":0,"maintainer_can_modify":false,"commits":2,"additions":41,"deletions":1,"changed_files":4}}
{"actor":{"display_login":"arielsvn"}}