{"action":"closed","number":85,"pull_request":{"url":"https://api.github.com/repos/UN-OCHA/reports-site/pulls/85","id":234654557,"node_id":"MDExOlB1bGxSZXF1ZXN0MjM0NjU0NTU3","html_url":"https://github.com/UN-OCHA/reports-site/pull/85","diff_url":"https://github.com/UN-OCHA/reports-site/pull/85.diff","patch_url":"https://github.com/UN-OCHA/reports-site/pull/85.patch","issue_url":"https://api.github.com/repos/UN-OCHA/reports-site/issues/85","number":85,"state":"closed","locked":false,"title":"DSR-88: direct visits include client-side API fetches to update stale HTML","user":{"login":"rupl","id":254753,"node_id":"MDQ6VXNlcjI1NDc1Mw==","avatar_url":"https://avatars2.githubusercontent.com/u/254753?v=4","gravatar_id":"","url":"https://api.github.com/users/rupl","html_url":"https://github.com/rupl","followers_url":"https://api.github.com/users/rupl/followers","following_url":"https://api.github.com/users/rupl/following{/other_user}","gists_url":"https://api.github.com/users/rupl/gists{/gist_id}","starred_url":"https://api.github.com/users/rupl/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rupl/subscriptions","organizations_url":"https://api.github.com/users/rupl/orgs","repos_url":"https://api.github.com/users/rupl/repos","events_url":"https://api.github.com/users/rupl/events{/privacy}","received_events_url":"https://api.github.com/users/rupl/received_events","type":"User","site_admin":false},"body":"## https://humanitarian.atlassian.net/browse/DSR-88\r\n\r\nTrying to balance the need for fresh content with quick server response, we're generating static files periodically. However it's already caused some concern when updates from Contentful do not apply immediately.\r\n\r\nClient-side navigations don't have a problem because they are already using Contentful responses to build the new page of data. But direct views of a URL were revealing the problem.\r\n\r\nThis PR resolves the issue when directly viewing a URL by forcing an additional client-side request which re-populates the data for the page. There's a slight lag of course, but within a few seconds the changes are reflected. GIF:\r\n\r\n![dsr-88-refresh-client](https://user-images.githubusercontent.com/254753/49227685-f77e9e00-f3e9-11e8-9bf1-d3e16ce1fd58.gif)\r\n","created_at":"2018-11-29T14:19:30Z","updated_at":"2018-11-29T14:20:19Z","closed_at":"2018-11-29T14:20:19Z","merged_at":"2018-11-29T14:20:19Z","merge_commit_sha":"e1f82c58a9b6b84834e6d6bdb351a71f0f519262","assignee":null,"assignees":[],"requested_reviewers":[],"requested_teams":[],"labels":[],"milestone":null,"commits_url":"https://api.github.com/repos/UN-OCHA/reports-site/pulls/85/commits","review_comments_url":"https://api.github.com/repos/UN-OCHA/reports-site/pulls/85/comments","review_comment_url":"https://api.github.com/repos/UN-OCHA/reports-site/pulls/comments{/number}","comments_url":"https://api.github.com/repos/UN-OCHA/reports-site/issues/85/comments","statuses_url":"https://api.github.com/repos/UN-OCHA/reports-site/statuses/08b8bfc74a4d932d6a247dbd39cd5d5a03753ac8","head":{"label":"UN-OCHA:dsr/88-client-refresh","ref":"dsr/88-client-refresh","sha":"08b8bfc74a4d932d6a247dbd39cd5d5a03753ac8","user":{"login":"UN-OCHA","id":7985843,"node_id":"MDEyOk9yZ2FuaXphdGlvbjc5ODU4NDM=","avatar_url":"https://avatars3.githubusercontent.com/u/7985843?v=4","gravatar_id":"","url":"https://api.github.com/users/UN-OCHA","html_url":"https://github.com/UN-OCHA","followers_url":"https://api.github.com/users/UN-OCHA/followers","following_url":"https://api.github.com/users/UN-OCHA/following{/other_user}","gists_url":"https://api.github.com/users/UN-OCHA/gists{/gist_id}","starred_url":"https://api.github.com/users/UN-OCHA/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/UN-OCHA/subscriptions","organizations_url":"https://api.github.com/users/UN-OCHA/orgs","repos_url":"https://api.github.com/users/UN-OCHA/repos","events_url":"https://api.github.com/users/UN-OCHA/events{/privacy}","received_events_url":"https://api.github.com/users/UN-OCHA/received_events","type":"Organization","site_admin":false},"repo":{"id":146879748,"node_id":"MDEwOlJlcG9zaXRvcnkxNDY4Nzk3NDg=","name":"reports-site","full_name":"UN-OCHA/reports-site","private":false,"owner":{"login":"UN-OCHA","id":7985843,"node_id":"MDEyOk9yZ2FuaXphdGlvbjc5ODU4NDM=","avatar_url":"https://avatars3.githubusercontent.com/u/7985843?v=4","gravatar_id":"","url":"https://api.github.com/users/UN-OCHA","html_url":"https://github.com/UN-OCHA","followers_url":"https://api.github.com/users/UN-OCHA/followers","following_url":"https://api.github.com/users/UN-OCHA/following{/other_user}","gists_url":"https://api.github.com/users/UN-OCHA/gists{/gist_id}","starred_url":"https://api.github.com/users/UN-OCHA/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/UN-OCHA/subscriptions","organizations_url":"https://api.github.com/users/UN-OCHA/orgs","repos_url":"https://api.github.com/users/UN-OCHA/repos","events_url":"https://api.github.com/users/UN-OCHA/events{/privacy}","received_events_url":"https://api.github.com/users/UN-OCHA/received_events","type":"Organization","site_admin":false},"html_url":"https://github.com/UN-OCHA/reports-site","description":"Digital Situation Reports","fork":false,"url":"https://api.github.com/repos/UN-OCHA/reports-site","forks_url":"https://api.github.com/repos/UN-OCHA/reports-site/forks","keys_url":"https://api.github.com/repos/UN-OCHA/reports-site/keys{/key_id}","collaborators_url":"https://api.github.com/repos/UN-OCHA/reports-site/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/UN-OCHA/reports-site/teams","hooks_url":"https://api.github.com/repos/UN-OCHA/reports-site/hooks","issue_events_url":"https://api.github.com/repos/UN-OCHA/reports-site/issues/events{/number}","events_url":"https://api.github.com/repos/UN-OCHA/reports-site/events","assignees_url":"https://api.github.com/repos/UN-OCHA/reports-site/assignees{/user}","branches_url":"https://api.github.com/repos/UN-OCHA/reports-site/branches{/branch}","tags_url":"https://api.github.com/repos/UN-OCHA/reports-site/tags","blobs_url":"https://api.github.com/repos/UN-OCHA/reports-site/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/UN-OCHA/reports-site/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/UN-OCHA/reports-site/git/refs{/sha}","trees_url":"https://api.github.com/repos/UN-OCHA/reports-site/git/trees{/sha}","statuses_url":"https://api.github.com/repos/UN-OCHA/reports-site/statuses/{sha}","languages_url":"https://api.github.com/repos/UN-OCHA/reports-site/languages","stargazers_url":"https://api.github.com/repos/UN-OCHA/reports-site/stargazers","contributors_url":"https://api.github.com/repos/UN-OCHA/reports-site/contributors","subscribers_url":"https://api.github.com/repos/UN-OCHA/reports-site/subscribers","subscription_url":"https://api.github.com/repos/UN-OCHA/reports-site/subscription","commits_url":"https://api.github.com/repos/UN-OCHA/reports-site/commits{/sha}","git_commits_url":"https://api.github.com/repos/UN-OCHA/reports-site/git/commits{/sha}","comments_url":"https://api.github.com/repos/UN-OCHA/reports-site/comments{/number}","issue_comment_url":"https://api.github.com/repos/UN-OCHA/reports-site/issues/comments{/number}","contents_url":"https://api.github.com/repos/UN-OCHA/reports-site/contents/{+path}","compare_url":"https://api.github.com/repos/UN-OCHA/reports-site/compare/{base}...{head}","merges_url":"https://api.github.com/repos/UN-OCHA/reports-site/merges","archive_url":"https://api.github.com/repos/UN-OCHA/reports-site/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/UN-OCHA/reports-site/downloads","issues_url":"https://api.github.com/repos/UN-OCHA/reports-site/issues{/number}","pulls_url":"https://api.github.com/repos/UN-OCHA/reports-site/pulls{/number}","milestones_url":"https://api.github.com/repos/UN-OCHA/reports-site/milestones{/number}","notifications_url":"https://api.github.com/repos/UN-OCHA/reports-site/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/UN-OCHA/reports-site/labels{/name}","releases_url":"https://api.github.com/repos/UN-OCHA/reports-site/releases{/id}","deployments_url":"https://api.github.com/repos/UN-OCHA/reports-site/deployments","created_at":"2018-08-31T10:51:06Z","updated_at":"2018-11-28T16:14:14Z","pushed_at":"2018-11-29T14:20:19Z","git_url":"git://github.com/UN-OCHA/reports-site.git","ssh_url":"git@github.com:UN-OCHA/reports-site.git","clone_url":"https://github.com/UN-OCHA/reports-site.git","svn_url":"https://github.com/UN-OCHA/reports-site","homepage":"https://reports.unocha.org","size":666,"stargazers_count":1,"watchers_count":1,"language":"Vue","has_issues":true,"has_projects":false,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":0,"mirror_url":null,"archived":false,"open_issues_count":0,"license":{"key":"apache-2.0","name":"Apache License 2.0","spdx_id":"Apache-2.0","url":"https://api.github.com/licenses/apache-2.0","node_id":"MDc6TGljZW5zZTI="},"forks":0,"open_issues":0,"watchers":1,"default_branch":"dev"}},"base":{"label":"UN-OCHA:dev","ref":"dev","sha":"eff02d930ae10a92415c8627acc760a4546e91ef","user":{"login":"UN-OCHA","id":7985843,"node_id":"MDEyOk9yZ2FuaXphdGlvbjc5ODU4NDM=","avatar_url":"https://avatars3.githubusercontent.com/u/7985843?v=4","gravatar_id":"","url":"https://api.github.com/users/UN-OCHA","html_url":"https://github.com/UN-OCHA","followers_url":"https://api.github.com/users/UN-OCHA/followers","following_url":"https://api.github.com/users/UN-OCHA/following{/other_user}","gists_url":"https://api.github.com/users/UN-OCHA/gists{/gist_id}","starred_url":"https://api.github.com/users/UN-OCHA/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/UN-OCHA/subscriptions","organizations_url":"https://api.github.com/users/UN-OCHA/orgs","repos_url":"https://api.github.com/users/UN-OCHA/repos","events_url":"https://api.github.com/users/UN-OCHA/events{/privacy}","received_events_url":"https://api.github.com/users/UN-OCHA/received_events","type":"Organization","site_admin":false},"repo":{"id":146879748,"node_id":"MDEwOlJlcG9zaXRvcnkxNDY4Nzk3NDg=","name":"reports-site","full_name":"UN-OCHA/reports-site","private":false,"owner":{"login":"UN-OCHA","id":7985843,"node_id":"MDEyOk9yZ2FuaXphdGlvbjc5ODU4NDM=","avatar_url":"https://avatars3.githubusercontent.com/u/7985843?v=4","gravatar_id":"","url":"https://api.github.com/users/UN-OCHA","html_url":"https://github.com/UN-OCHA","followers_url":"https://api.github.com/users/UN-OCHA/followers","following_url":"https://api.github.com/users/UN-OCHA/following{/other_user}","gists_url":"https://api.github.com/users/UN-OCHA/gists{/gist_id}","starred_url":"https://api.github.com/users/UN-OCHA/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/UN-OCHA/subscriptions","organizations_url":"https://api.github.com/users/UN-OCHA/orgs","repos_url":"https://api.github.com/users/UN-OCHA/repos","events_url":"https://api.github.com/users/UN-OCHA/events{/privacy}","received_events_url":"https://api.github.com/users/UN-OCHA/received_events","type":"Organization","site_admin":false},"html_url":"https://github.com/UN-OCHA/reports-site","description":"Digital Situation Reports","fork":false,"url":"https://api.github.com/repos/UN-OCHA/reports-site","forks_url":"https://api.github.com/repos/UN-OCHA/reports-site/forks","keys_url":"https://api.github.com/repos/UN-OCHA/reports-site/keys{/key_id}","collaborators_url":"https://api.github.com/repos/UN-OCHA/reports-site/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/UN-OCHA/reports-site/teams","hooks_url":"https://api.github.com/repos/UN-OCHA/reports-site/hooks","issue_events_url":"https://api.github.com/repos/UN-OCHA/reports-site/issues/events{/number}","events_url":"https://api.github.com/repos/UN-OCHA/reports-site/events","assignees_url":"https://api.github.com/repos/UN-OCHA/reports-site/assignees{/user}","branches_url":"https://api.github.com/repos/UN-OCHA/reports-site/branches{/branch}","tags_url":"https://api.github.com/repos/UN-OCHA/reports-site/tags","blobs_url":"https://api.github.com/repos/UN-OCHA/reports-site/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/UN-OCHA/reports-site/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/UN-OCHA/reports-site/git/refs{/sha}","trees_url":"https://api.github.com/repos/UN-OCHA/reports-site/git/trees{/sha}","statuses_url":"https://api.github.com/repos/UN-OCHA/reports-site/statuses/{sha}","languages_url":"https://api.github.com/repos/UN-OCHA/reports-site/languages","stargazers_url":"https://api.github.com/repos/UN-OCHA/reports-site/stargazers","contributors_url":"https://api.github.com/repos/UN-OCHA/reports-site/contributors","subscribers_url":"https://api.github.com/repos/UN-OCHA/reports-site/subscribers","subscription_url":"https://api.github.com/repos/UN-OCHA/reports-site/subscription","commits_url":"https://api.github.com/repos/UN-OCHA/reports-site/commits{/sha}","git_commits_url":"https://api.github.com/repos/UN-OCHA/reports-site/git/commits{/sha}","comments_url":"https://api.github.com/repos/UN-OCHA/reports-site/comments{/number}","issue_comment_url":"https://api.github.com/repos/UN-OCHA/reports-site/issues/comments{/number}","contents_url":"https://api.github.com/repos/UN-OCHA/reports-site/contents/{+path}","compare_url":"https://api.github.com/repos/UN-OCHA/reports-site/compare/{base}...{head}","merges_url":"https://api.github.com/repos/UN-OCHA/reports-site/merges","archive_url":"https://api.github.com/repos/UN-OCHA/reports-site/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/UN-OCHA/reports-site/downloads","issues_url":"https://api.github.com/repos/UN-OCHA/reports-site/issues{/number}","pulls_url":"https://api.github.com/repos/UN-OCHA/reports-site/pulls{/number}","milestones_url":"https://api.github.com/repos/UN-OCHA/reports-site/milestones{/number}","notifications_url":"https://api.github.com/repos/UN-OCHA/reports-site/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/UN-OCHA/reports-site/labels{/name}","releases_url":"https://api.github.com/repos/UN-OCHA/reports-site/releases{/id}","deployments_url":"https://api.github.com/repos/UN-OCHA/reports-site/deployments","created_at":"2018-08-31T10:51:06Z","updated_at":"2018-11-28T16:14:14Z","pushed_at":"2018-11-29T14:20:19Z","git_url":"git://github.com/UN-OCHA/reports-site.git","ssh_url":"git@github.com:UN-OCHA/reports-site.git","clone_url":"https://github.com/UN-OCHA/reports-site.git","svn_url":"https://github.com/UN-OCHA/reports-site","homepage":"https://reports.unocha.org","size":666,"stargazers_count":1,"watchers_count":1,"language":"Vue","has_issues":true,"has_projects":false,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":0,"mirror_url":null,"archived":false,"open_issues_count":0,"license":{"key":"apache-2.0","name":"Apache License 2.0","spdx_id":"Apache-2.0","url":"https://api.github.com/licenses/apache-2.0","node_id":"MDc6TGljZW5zZTI="},"forks":0,"open_issues":0,"watchers":1,"default_branch":"dev"}},"_links":{"self":{"href":"https://api.github.com/repos/UN-OCHA/reports-site/pulls/85"},"html":{"href":"https://github.com/UN-OCHA/reports-site/pull/85"},"issue":{"href":"https://api.github.com/repos/UN-OCHA/reports-site/issues/85"},"comments":{"href":"https://api.github.com/repos/UN-OCHA/reports-site/issues/85/comments"},"review_comments":{"href":"https://api.github.com/repos/UN-OCHA/reports-site/pulls/85/comments"},"review_comment":{"href":"https://api.github.com/repos/UN-OCHA/reports-site/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/UN-OCHA/reports-site/pulls/85/commits"},"statuses":{"href":"https://api.github.com/repos/UN-OCHA/reports-site/statuses/08b8bfc74a4d932d6a247dbd39cd5d5a03753ac8"}},"author_association":"MEMBER","merged":true,"mergeable":null,"rebaseable":null,"mergeable_state":"unknown","merged_by":{"login":"rupl","id":254753,"node_id":"MDQ6VXNlcjI1NDc1Mw==","avatar_url":"https://avatars2.githubusercontent.com/u/254753?v=4","gravatar_id":"","url":"https://api.github.com/users/rupl","html_url":"https://github.com/rupl","followers_url":"https://api.github.com/users/rupl/followers","following_url":"https://api.github.com/users/rupl/following{/other_user}","gists_url":"https://api.github.com/users/rupl/gists{/gist_id}","starred_url":"https://api.github.com/users/rupl/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rupl/subscriptions","organizations_url":"https://api.github.com/users/rupl/orgs","repos_url":"https://api.github.com/users/rupl/repos","events_url":"https://api.github.com/users/rupl/events{/privacy}","received_events_url":"https://api.github.com/users/rupl/received_events","type":"User","site_admin":false},"comments":0,"review_comments":0,"maintainer_can_modify":false,"commits":1,"additions":63,"deletions":37,"changed_files":1}}
{"actor":{"display_login":"rupl"}}