{"action":"opened","number":467,"pull_request":{"url":"https://api.github.com/repos/mullvad/mullvadvpn-app/pulls/467","id":217273139,"node_id":"MDExOlB1bGxSZXF1ZXN0MjE3MjczMTM5","html_url":"https://github.com/mullvad/mullvadvpn-app/pull/467","diff_url":"https://github.com/mullvad/mullvadvpn-app/pull/467.diff","patch_url":"https://github.com/mullvad/mullvadvpn-app/pull/467.patch","issue_url":"https://api.github.com/repos/mullvad/mullvadvpn-app/issues/467","number":467,"state":"open","locked":false,"title":"Simplify account expiry update","user":{"login":"jvff","id":3216731,"node_id":"MDQ6VXNlcjMyMTY3MzE=","avatar_url":"https://avatars3.githubusercontent.com/u/3216731?v=4","gravatar_id":"","url":"https://api.github.com/users/jvff","html_url":"https://github.com/jvff","followers_url":"https://api.github.com/users/jvff/followers","following_url":"https://api.github.com/users/jvff/following{/other_user}","gists_url":"https://api.github.com/users/jvff/gists{/gist_id}","starred_url":"https://api.github.com/users/jvff/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jvff/subscriptions","organizations_url":"https://api.github.com/users/jvff/orgs","repos_url":"https://api.github.com/users/jvff/repos","events_url":"https://api.github.com/users/jvff/events{/privacy}","received_events_url":"https://api.github.com/users/jvff/received_events","type":"User","site_admin":false},"body":"The account expiry is updated from time to time in case the user adds more time to his account. Previously, the update would happen if the user entered specific screens (account, settings or connect). This PR changes things so that the update happens every time the GUI becomes visible, which simplifies the code.\r\n\r\nThe account data cache was also changed so that it is invalidated if the account token was changed.\r\n\r\nGit checklist:\r\n\r\n* [X] Describe the change in **`CHANGELOG.md`** under the `[Unreleased]` header. **Internal refactor, not user visible.**\r\n* [X] Check that commits follow the [Mullvad coding guidelines](https://github.com/mullvad/coding-guidelines)\r\n","created_at":"2018-09-21T12:49:04Z","updated_at":"2018-09-21T12:49:04Z","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/mullvad/mullvadvpn-app/pulls/467/commits","review_comments_url":"https://api.github.com/repos/mullvad/mullvadvpn-app/pulls/467/comments","review_comment_url":"https://api.github.com/repos/mullvad/mullvadvpn-app/pulls/comments{/number}","comments_url":"https://api.github.com/repos/mullvad/mullvadvpn-app/issues/467/comments","statuses_url":"https://api.github.com/repos/mullvad/mullvadvpn-app/statuses/07bb9b5c329e77157dc294c21dcd1e942c286211","head":{"label":"mullvad:simplify-account-data-update","ref":"simplify-account-data-update","sha":"07bb9b5c329e77157dc294c21dcd1e942c286211","user":{"login":"mullvad","id":10848549,"node_id":"MDEyOk9yZ2FuaXphdGlvbjEwODQ4NTQ5","avatar_url":"https://avatars2.githubusercontent.com/u/10848549?v=4","gravatar_id":"","url":"https://api.github.com/users/mullvad","html_url":"https://github.com/mullvad","followers_url":"https://api.github.com/users/mullvad/followers","following_url":"https://api.github.com/users/mullvad/following{/other_user}","gists_url":"https://api.github.com/users/mullvad/gists{/gist_id}","starred_url":"https://api.github.com/users/mullvad/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mullvad/subscriptions","organizations_url":"https://api.github.com/users/mullvad/orgs","repos_url":"https://api.github.com/users/mullvad/repos","events_url":"https://api.github.com/users/mullvad/events{/privacy}","received_events_url":"https://api.github.com/users/mullvad/received_events","type":"Organization","site_admin":false},"repo":{"id":114742422,"node_id":"MDEwOlJlcG9zaXRvcnkxMTQ3NDI0MjI=","name":"mullvadvpn-app","full_name":"mullvad/mullvadvpn-app","private":false,"owner":{"login":"mullvad","id":10848549,"node_id":"MDEyOk9yZ2FuaXphdGlvbjEwODQ4NTQ5","avatar_url":"https://avatars2.githubusercontent.com/u/10848549?v=4","gravatar_id":"","url":"https://api.github.com/users/mullvad","html_url":"https://github.com/mullvad","followers_url":"https://api.github.com/users/mullvad/followers","following_url":"https://api.github.com/users/mullvad/following{/other_user}","gists_url":"https://api.github.com/users/mullvad/gists{/gist_id}","starred_url":"https://api.github.com/users/mullvad/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mullvad/subscriptions","organizations_url":"https://api.github.com/users/mullvad/orgs","repos_url":"https://api.github.com/users/mullvad/repos","events_url":"https://api.github.com/users/mullvad/events{/privacy}","received_events_url":"https://api.github.com/users/mullvad/received_events","type":"Organization","site_admin":false},"html_url":"https://github.com/mullvad/mullvadvpn-app","description":"The Mullvad VPN client app for desktop and mobile","fork":false,"url":"https://api.github.com/repos/mullvad/mullvadvpn-app","forks_url":"https://api.github.com/repos/mullvad/mullvadvpn-app/forks","keys_url":"https://api.github.com/repos/mullvad/mullvadvpn-app/keys{/key_id}","collaborators_url":"https://api.github.com/repos/mullvad/mullvadvpn-app/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/mullvad/mullvadvpn-app/teams","hooks_url":"https://api.github.com/repos/mullvad/mullvadvpn-app/hooks","issue_events_url":"https://api.github.com/repos/mullvad/mullvadvpn-app/issues/events{/number}","events_url":"https://api.github.com/repos/mullvad/mullvadvpn-app/events","assignees_url":"https://api.github.com/repos/mullvad/mullvadvpn-app/assignees{/user}","branches_url":"https://api.github.com/repos/mullvad/mullvadvpn-app/branches{/branch}","tags_url":"https://api.github.com/repos/mullvad/mullvadvpn-app/tags","blobs_url":"https://api.github.com/repos/mullvad/mullvadvpn-app/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/mullvad/mullvadvpn-app/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/mullvad/mullvadvpn-app/git/refs{/sha}","trees_url":"https://api.github.com/repos/mullvad/mullvadvpn-app/git/trees{/sha}","statuses_url":"https://api.github.com/repos/mullvad/mullvadvpn-app/statuses/{sha}","languages_url":"https://api.github.com/repos/mullvad/mullvadvpn-app/languages","stargazers_url":"https://api.github.com/repos/mullvad/mullvadvpn-app/stargazers","contributors_url":"https://api.github.com/repos/mullvad/mullvadvpn-app/contributors","subscribers_url":"https://api.github.com/repos/mullvad/mullvadvpn-app/subscribers","subscription_url":"https://api.github.com/repos/mullvad/mullvadvpn-app/subscription","commits_url":"https://api.github.com/repos/mullvad/mullvadvpn-app/commits{/sha}","git_commits_url":"https://api.github.com/repos/mullvad/mullvadvpn-app/git/commits{/sha}","comments_url":"https://api.github.com/repos/mullvad/mullvadvpn-app/comments{/number}","issue_comment_url":"https://api.github.com/repos/mullvad/mullvadvpn-app/issues/comments{/number}","contents_url":"https://api.github.com/repos/mullvad/mullvadvpn-app/contents/{+path}","compare_url":"https://api.github.com/repos/mullvad/mullvadvpn-app/compare/{base}...{head}","merges_url":"https://api.github.com/repos/mullvad/mullvadvpn-app/merges","archive_url":"https://api.github.com/repos/mullvad/mullvadvpn-app/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/mullvad/mullvadvpn-app/downloads","issues_url":"https://api.github.com/repos/mullvad/mullvadvpn-app/issues{/number}","pulls_url":"https://api.github.com/repos/mullvad/mullvadvpn-app/pulls{/number}","milestones_url":"https://api.github.com/repos/mullvad/mullvadvpn-app/milestones{/number}","notifications_url":"https://api.github.com/repos/mullvad/mullvadvpn-app/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/mullvad/mullvadvpn-app/labels{/name}","releases_url":"https://api.github.com/repos/mullvad/mullvadvpn-app/releases{/id}","deployments_url":"https://api.github.com/repos/mullvad/mullvadvpn-app/deployments","created_at":"2017-12-19T08:59:42Z","updated_at":"2018-09-21T11:29:17Z","pushed_at":"2018-09-21T12:48:12Z","git_url":"git://github.com/mullvad/mullvadvpn-app.git","ssh_url":"git@github.com:mullvad/mullvadvpn-app.git","clone_url":"https://github.com/mullvad/mullvadvpn-app.git","svn_url":"https://github.com/mullvad/mullvadvpn-app","homepage":null,"size":13409,"stargazers_count":142,"watchers_count":142,"language":"Rust","has_issues":true,"has_projects":false,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":11,"mirror_url":null,"archived":false,"open_issues_count":14,"license":{"key":"gpl-3.0","name":"GNU General Public License v3.0","spdx_id":"GPL-3.0","url":"https://api.github.com/licenses/gpl-3.0","node_id":"MDc6TGljZW5zZTk="},"forks":11,"open_issues":14,"watchers":142,"default_branch":"master"}},"base":{"label":"mullvad:master","ref":"master","sha":"b8f7bc3c1f90eebfac34359fde036e15cbda6384","user":{"login":"mullvad","id":10848549,"node_id":"MDEyOk9yZ2FuaXphdGlvbjEwODQ4NTQ5","avatar_url":"https://avatars2.githubusercontent.com/u/10848549?v=4","gravatar_id":"","url":"https://api.github.com/users/mullvad","html_url":"https://github.com/mullvad","followers_url":"https://api.github.com/users/mullvad/followers","following_url":"https://api.github.com/users/mullvad/following{/other_user}","gists_url":"https://api.github.com/users/mullvad/gists{/gist_id}","starred_url":"https://api.github.com/users/mullvad/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mullvad/subscriptions","organizations_url":"https://api.github.com/users/mullvad/orgs","repos_url":"https://api.github.com/users/mullvad/repos","events_url":"https://api.github.com/users/mullvad/events{/privacy}","received_events_url":"https://api.github.com/users/mullvad/received_events","type":"Organization","site_admin":false},"repo":{"id":114742422,"node_id":"MDEwOlJlcG9zaXRvcnkxMTQ3NDI0MjI=","name":"mullvadvpn-app","full_name":"mullvad/mullvadvpn-app","private":false,"owner":{"login":"mullvad","id":10848549,"node_id":"MDEyOk9yZ2FuaXphdGlvbjEwODQ4NTQ5","avatar_url":"https://avatars2.githubusercontent.com/u/10848549?v=4","gravatar_id":"","url":"https://api.github.com/users/mullvad","html_url":"https://github.com/mullvad","followers_url":"https://api.github.com/users/mullvad/followers","following_url":"https://api.github.com/users/mullvad/following{/other_user}","gists_url":"https://api.github.com/users/mullvad/gists{/gist_id}","starred_url":"https://api.github.com/users/mullvad/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mullvad/subscriptions","organizations_url":"https://api.github.com/users/mullvad/orgs","repos_url":"https://api.github.com/users/mullvad/repos","events_url":"https://api.github.com/users/mullvad/events{/privacy}","received_events_url":"https://api.github.com/users/mullvad/received_events","type":"Organization","site_admin":false},"html_url":"https://github.com/mullvad/mullvadvpn-app","description":"The Mullvad VPN client app for desktop and mobile","fork":false,"url":"https://api.github.com/repos/mullvad/mullvadvpn-app","forks_url":"https://api.github.com/repos/mullvad/mullvadvpn-app/forks","keys_url":"https://api.github.com/repos/mullvad/mullvadvpn-app/keys{/key_id}","collaborators_url":"https://api.github.com/repos/mullvad/mullvadvpn-app/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/mullvad/mullvadvpn-app/teams","hooks_url":"https://api.github.com/repos/mullvad/mullvadvpn-app/hooks","issue_events_url":"https://api.github.com/repos/mullvad/mullvadvpn-app/issues/events{/number}","events_url":"https://api.github.com/repos/mullvad/mullvadvpn-app/events","assignees_url":"https://api.github.com/repos/mullvad/mullvadvpn-app/assignees{/user}","branches_url":"https://api.github.com/repos/mullvad/mullvadvpn-app/branches{/branch}","tags_url":"https://api.github.com/repos/mullvad/mullvadvpn-app/tags","blobs_url":"https://api.github.com/repos/mullvad/mullvadvpn-app/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/mullvad/mullvadvpn-app/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/mullvad/mullvadvpn-app/git/refs{/sha}","trees_url":"https://api.github.com/repos/mullvad/mullvadvpn-app/git/trees{/sha}","statuses_url":"https://api.github.com/repos/mullvad/mullvadvpn-app/statuses/{sha}","languages_url":"https://api.github.com/repos/mullvad/mullvadvpn-app/languages","stargazers_url":"https://api.github.com/repos/mullvad/mullvadvpn-app/stargazers","contributors_url":"https://api.github.com/repos/mullvad/mullvadvpn-app/contributors","subscribers_url":"https://api.github.com/repos/mullvad/mullvadvpn-app/subscribers","subscription_url":"https://api.github.com/repos/mullvad/mullvadvpn-app/subscription","commits_url":"https://api.github.com/repos/mullvad/mullvadvpn-app/commits{/sha}","git_commits_url":"https://api.github.com/repos/mullvad/mullvadvpn-app/git/commits{/sha}","comments_url":"https://api.github.com/repos/mullvad/mullvadvpn-app/comments{/number}","issue_comment_url":"https://api.github.com/repos/mullvad/mullvadvpn-app/issues/comments{/number}","contents_url":"https://api.github.com/repos/mullvad/mullvadvpn-app/contents/{+path}","compare_url":"https://api.github.com/repos/mullvad/mullvadvpn-app/compare/{base}...{head}","merges_url":"https://api.github.com/repos/mullvad/mullvadvpn-app/merges","archive_url":"https://api.github.com/repos/mullvad/mullvadvpn-app/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/mullvad/mullvadvpn-app/downloads","issues_url":"https://api.github.com/repos/mullvad/mullvadvpn-app/issues{/number}","pulls_url":"https://api.github.com/repos/mullvad/mullvadvpn-app/pulls{/number}","milestones_url":"https://api.github.com/repos/mullvad/mullvadvpn-app/milestones{/number}","notifications_url":"https://api.github.com/repos/mullvad/mullvadvpn-app/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/mullvad/mullvadvpn-app/labels{/name}","releases_url":"https://api.github.com/repos/mullvad/mullvadvpn-app/releases{/id}","deployments_url":"https://api.github.com/repos/mullvad/mullvadvpn-app/deployments","created_at":"2017-12-19T08:59:42Z","updated_at":"2018-09-21T11:29:17Z","pushed_at":"2018-09-21T12:48:12Z","git_url":"git://github.com/mullvad/mullvadvpn-app.git","ssh_url":"git@github.com:mullvad/mullvadvpn-app.git","clone_url":"https://github.com/mullvad/mullvadvpn-app.git","svn_url":"https://github.com/mullvad/mullvadvpn-app","homepage":null,"size":13409,"stargazers_count":142,"watchers_count":142,"language":"Rust","has_issues":true,"has_projects":false,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":11,"mirror_url":null,"archived":false,"open_issues_count":14,"license":{"key":"gpl-3.0","name":"GNU General Public License v3.0","spdx_id":"GPL-3.0","url":"https://api.github.com/licenses/gpl-3.0","node_id":"MDc6TGljZW5zZTk="},"forks":11,"open_issues":14,"watchers":142,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/mullvad/mullvadvpn-app/pulls/467"},"html":{"href":"https://github.com/mullvad/mullvadvpn-app/pull/467"},"issue":{"href":"https://api.github.com/repos/mullvad/mullvadvpn-app/issues/467"},"comments":{"href":"https://api.github.com/repos/mullvad/mullvadvpn-app/issues/467/comments"},"review_comments":{"href":"https://api.github.com/repos/mullvad/mullvadvpn-app/pulls/467/comments"},"review_comment":{"href":"https://api.github.com/repos/mullvad/mullvadvpn-app/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/mullvad/mullvadvpn-app/pulls/467/commits"},"statuses":{"href":"https://api.github.com/repos/mullvad/mullvadvpn-app/statuses/07bb9b5c329e77157dc294c21dcd1e942c286211"}},"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":3,"additions":17,"deletions":130,"changed_files":9}}
{"actor":{"display_login":"jvff"}}