{"action":"created","comment":{"url":"https://api.github.com/repos/wordpress-mobile/WordPressCom-Stats-iOS/pulls/comments/40051321","id":40051321,"diff_hunk":"@@ -179,6 +180,7 @@ - (void)retrieveInsightsStatsWithAllTimeStatsCompletionHandler:(StatsAllTimeComp\n     id allTimeData = cacheDictionary[@(StatsSectionInsightsAllTime)];\n     id insightsData = cacheDictionary[@(StatsSectionInsightsMostPopular)];\n     id todayData = cacheDictionary[@(StatsSectionInsightsTodaysStats)];\n+    id latestPostData = cacheDictionary[@(StatsSectionInsightsLatestPostSummary)];\n     id commentsAuthorData = cacheDictionary[@(StatsSubSectionCommentsByAuthor)];\n     id commentsPostsData = cacheDictionary[@(StatsSubSectionCommentsByPosts)];\n     id tagsCategoriesData = cacheDictionary[@(StatsSectionTagsCategories)];","path":"WordPressCom-Stats-iOS/WPStatsService.m","position":15,"original_position":15,"commit_id":"4de0974c6adc96bc1da192eb48cdb2c321ef514e","original_commit_id":"4de0974c6adc96bc1da192eb48cdb2c321ef514e","user":{"login":"astralbodies","id":373903,"avatar_url":"https://avatars.githubusercontent.com/u/373903?v=3","gravatar_id":"","url":"https://api.github.com/users/astralbodies","html_url":"https://github.com/astralbodies","followers_url":"https://api.github.com/users/astralbodies/followers","following_url":"https://api.github.com/users/astralbodies/following{/other_user}","gists_url":"https://api.github.com/users/astralbodies/gists{/gist_id}","starred_url":"https://api.github.com/users/astralbodies/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/astralbodies/subscriptions","organizations_url":"https://api.github.com/users/astralbodies/orgs","repos_url":"https://api.github.com/users/astralbodies/repos","events_url":"https://api.github.com/users/astralbodies/events{/privacy}","received_events_url":"https://api.github.com/users/astralbodies/received_events","type":"User","site_admin":false},"body":"In this case I am bastardizing the dictionary by relying upon mixed data coming back. Dangerous, I know!!","created_at":"2015-09-22T03:54:00Z","updated_at":"2015-09-22T03:54:00Z","html_url":"https://github.com/wordpress-mobile/WordPressCom-Stats-iOS/pull/317#discussion_r40051321","pull_request_url":"https://api.github.com/repos/wordpress-mobile/WordPressCom-Stats-iOS/pulls/317","_links":{"self":{"href":"https://api.github.com/repos/wordpress-mobile/WordPressCom-Stats-iOS/pulls/comments/40051321"},"html":{"href":"https://github.com/wordpress-mobile/WordPressCom-Stats-iOS/pull/317#discussion_r40051321"},"pull_request":{"href":"https://api.github.com/repos/wordpress-mobile/WordPressCom-Stats-iOS/pulls/317"}}},"pull_request":{"url":"https://api.github.com/repos/wordpress-mobile/WordPressCom-Stats-iOS/pulls/317","id":45362260,"html_url":"https://github.com/wordpress-mobile/WordPressCom-Stats-iOS/pull/317","diff_url":"https://github.com/wordpress-mobile/WordPressCom-Stats-iOS/pull/317.diff","patch_url":"https://github.com/wordpress-mobile/WordPressCom-Stats-iOS/pull/317.patch","issue_url":"https://api.github.com/repos/wordpress-mobile/WordPressCom-Stats-iOS/issues/317","number":317,"state":"open","locked":false,"title":"Persist last selected tab in stats","user":{"login":"astralbodies","id":373903,"avatar_url":"https://avatars.githubusercontent.com/u/373903?v=3","gravatar_id":"","url":"https://api.github.com/users/astralbodies","html_url":"https://github.com/astralbodies","followers_url":"https://api.github.com/users/astralbodies/followers","following_url":"https://api.github.com/users/astralbodies/following{/other_user}","gists_url":"https://api.github.com/users/astralbodies/gists{/gist_id}","starred_url":"https://api.github.com/users/astralbodies/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/astralbodies/subscriptions","organizations_url":"https://api.github.com/users/astralbodies/orgs","repos_url":"https://api.github.com/users/astralbodies/repos","events_url":"https://api.github.com/users/astralbodies/events{/privacy}","received_events_url":"https://api.github.com/users/astralbodies/received_events","type":"User","site_admin":false},"body":"Closes #309 \r\n\r\nPersists the last selected \"tab\" (segment) in stats and defaults it to Insights like before. This tab will be persisted across the sites - so if the user switches sites the last tab will be still selected. Chances are the user will want to come back to the same tab in every site they have.\r\n\r\nNeeds Review: @jleandroperez \r\n\r\nDo not merge this PR until #315 is merged (this branch is based off of it)","created_at":"2015-09-18T02:03:42Z","updated_at":"2015-09-22T03:54:00Z","closed_at":null,"merged_at":null,"merge_commit_sha":"b12679410fd2490352158f9164e6382a7aeb38d6","assignee":null,"milestone":{"url":"https://api.github.com/repos/wordpress-mobile/WordPressCom-Stats-iOS/milestones/10","html_url":"https://github.com/wordpress-mobile/WordPressCom-Stats-iOS/milestones/Release%206","labels_url":"https://api.github.com/repos/wordpress-mobile/WordPressCom-Stats-iOS/milestones/10/labels","id":1311270,"number":10,"title":"Release 6","description":"Aimed at WPiOS 5.7 code freeze 9/24","creator":{"login":"astralbodies","id":373903,"avatar_url":"https://avatars.githubusercontent.com/u/373903?v=3","gravatar_id":"","url":"https://api.github.com/users/astralbodies","html_url":"https://github.com/astralbodies","followers_url":"https://api.github.com/users/astralbodies/followers","following_url":"https://api.github.com/users/astralbodies/following{/other_user}","gists_url":"https://api.github.com/users/astralbodies/gists{/gist_id}","starred_url":"https://api.github.com/users/astralbodies/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/astralbodies/subscriptions","organizations_url":"https://api.github.com/users/astralbodies/orgs","repos_url":"https://api.github.com/users/astralbodies/repos","events_url":"https://api.github.com/users/astralbodies/events{/privacy}","received_events_url":"https://api.github.com/users/astralbodies/received_events","type":"User","site_admin":false},"open_issues":10,"closed_issues":0,"state":"open","created_at":"2015-09-17T19:01:03Z","updated_at":"2015-09-22T03:51:20Z","due_on":"2015-09-23T05:00:00Z","closed_at":null},"commits_url":"https://api.github.com/repos/wordpress-mobile/WordPressCom-Stats-iOS/pulls/317/commits","review_comments_url":"https://api.github.com/repos/wordpress-mobile/WordPressCom-Stats-iOS/pulls/317/comments","review_comment_url":"https://api.github.com/repos/wordpress-mobile/WordPressCom-Stats-iOS/pulls/comments{/number}","comments_url":"https://api.github.com/repos/wordpress-mobile/WordPressCom-Stats-iOS/issues/317/comments","statuses_url":"https://api.github.com/repos/wordpress-mobile/WordPressCom-Stats-iOS/statuses/4de0974c6adc96bc1da192eb48cdb2c321ef514e","head":{"label":"wordpress-mobile:issue/309-persist-insights-tab","ref":"issue/309-persist-insights-tab","sha":"4de0974c6adc96bc1da192eb48cdb2c321ef514e","user":{"login":"wordpress-mobile","id":1306301,"avatar_url":"https://avatars.githubusercontent.com/u/1306301?v=3","gravatar_id":"","url":"https://api.github.com/users/wordpress-mobile","html_url":"https://github.com/wordpress-mobile","followers_url":"https://api.github.com/users/wordpress-mobile/followers","following_url":"https://api.github.com/users/wordpress-mobile/following{/other_user}","gists_url":"https://api.github.com/users/wordpress-mobile/gists{/gist_id}","starred_url":"https://api.github.com/users/wordpress-mobile/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/wordpress-mobile/subscriptions","organizations_url":"https://api.github.com/users/wordpress-mobile/orgs","repos_url":"https://api.github.com/users/wordpress-mobile/repos","events_url":"https://api.github.com/users/wordpress-mobile/events{/privacy}","received_events_url":"https://api.github.com/users/wordpress-mobile/received_events","type":"Organization","site_admin":false},"repo":{"id":19698391,"name":"WordPressCom-Stats-iOS","full_name":"wordpress-mobile/WordPressCom-Stats-iOS","owner":{"login":"wordpress-mobile","id":1306301,"avatar_url":"https://avatars.githubusercontent.com/u/1306301?v=3","gravatar_id":"","url":"https://api.github.com/users/wordpress-mobile","html_url":"https://github.com/wordpress-mobile","followers_url":"https://api.github.com/users/wordpress-mobile/followers","following_url":"https://api.github.com/users/wordpress-mobile/following{/other_user}","gists_url":"https://api.github.com/users/wordpress-mobile/gists{/gist_id}","starred_url":"https://api.github.com/users/wordpress-mobile/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/wordpress-mobile/subscriptions","organizations_url":"https://api.github.com/users/wordpress-mobile/orgs","repos_url":"https://api.github.com/users/wordpress-mobile/repos","events_url":"https://api.github.com/users/wordpress-mobile/events{/privacy}","received_events_url":"https://api.github.com/users/wordpress-mobile/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/wordpress-mobile/WordPressCom-Stats-iOS","description":"Reusable component for displaying WordPress.com site stats in an iOS application","fork":false,"url":"https://api.github.com/repos/wordpress-mobile/WordPressCom-Stats-iOS","forks_url":"https://api.github.com/repos/wordpress-mobile/WordPressCom-Stats-iOS/forks","keys_url":"https://api.github.com/repos/wordpress-mobile/WordPressCom-Stats-iOS/keys{/key_id}","collaborators_url":"https://api.github.com/repos/wordpress-mobile/WordPressCom-Stats-iOS/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/wordpress-mobile/WordPressCom-Stats-iOS/teams","hooks_url":"https://api.github.com/repos/wordpress-mobile/WordPressCom-Stats-iOS/hooks","issue_events_url":"https://api.github.com/repos/wordpress-mobile/WordPressCom-Stats-iOS/issues/events{/number}","events_url":"https://api.github.com/repos/wordpress-mobile/WordPressCom-Stats-iOS/events","assignees_url":"https://api.github.com/repos/wordpress-mobile/WordPressCom-Stats-iOS/assignees{/user}","branches_url":"https://api.github.com/repos/wordpress-mobile/WordPressCom-Stats-iOS/branches{/branch}","tags_url":"https://api.github.com/repos/wordpress-mobile/WordPressCom-Stats-iOS/tags","blobs_url":"https://api.github.com/repos/wordpress-mobile/WordPressCom-Stats-iOS/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/wordpress-mobile/WordPressCom-Stats-iOS/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/wordpress-mobile/WordPressCom-Stats-iOS/git/refs{/sha}","trees_url":"https://api.github.com/repos/wordpress-mobile/WordPressCom-Stats-iOS/git/trees{/sha}","statuses_url":"https://api.github.com/repos/wordpress-mobile/WordPressCom-Stats-iOS/statuses/{sha}","languages_url":"https://api.github.com/repos/wordpress-mobile/WordPressCom-Stats-iOS/languages","stargazers_url":"https://api.github.com/repos/wordpress-mobile/WordPressCom-Stats-iOS/stargazers","contributors_url":"https://api.github.com/repos/wordpress-mobile/WordPressCom-Stats-iOS/contributors","subscribers_url":"https://api.github.com/repos/wordpress-mobile/WordPressCom-Stats-iOS/subscribers","subscription_url":"https://api.github.com/repos/wordpress-mobile/WordPressCom-Stats-iOS/subscription","commits_url":"https://api.github.com/repos/wordpress-mobile/WordPressCom-Stats-iOS/commits{/sha}","git_commits_url":"https://api.github.com/repos/wordpress-mobile/WordPressCom-Stats-iOS/git/commits{/sha}","comments_url":"https://api.github.com/repos/wordpress-mobile/WordPressCom-Stats-iOS/comments{/number}","issue_comment_url":"https://api.github.com/repos/wordpress-mobile/WordPressCom-Stats-iOS/issues/comments{/number}","contents_url":"https://api.github.com/repos/wordpress-mobile/WordPressCom-Stats-iOS/contents/{+path}","compare_url":"https://api.github.com/repos/wordpress-mobile/WordPressCom-Stats-iOS/compare/{base}...{head}","merges_url":"https://api.github.com/repos/wordpress-mobile/WordPressCom-Stats-iOS/merges","archive_url":"https://api.github.com/repos/wordpress-mobile/WordPressCom-Stats-iOS/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/wordpress-mobile/WordPressCom-Stats-iOS/downloads","issues_url":"https://api.github.com/repos/wordpress-mobile/WordPressCom-Stats-iOS/issues{/number}","pulls_url":"https://api.github.com/repos/wordpress-mobile/WordPressCom-Stats-iOS/pulls{/number}","milestones_url":"https://api.github.com/repos/wordpress-mobile/WordPressCom-Stats-iOS/milestones{/number}","notifications_url":"https://api.github.com/repos/wordpress-mobile/WordPressCom-Stats-iOS/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/wordpress-mobile/WordPressCom-Stats-iOS/labels{/name}","releases_url":"https://api.github.com/repos/wordpress-mobile/WordPressCom-Stats-iOS/releases{/id}","created_at":"2014-05-12T12:48:07Z","updated_at":"2015-09-15T10:08:31Z","pushed_at":"2015-09-22T03:51:20Z","git_url":"git://github.com/wordpress-mobile/WordPressCom-Stats-iOS.git","ssh_url":"git@github.com:wordpress-mobile/WordPressCom-Stats-iOS.git","clone_url":"https://github.com/wordpress-mobile/WordPressCom-Stats-iOS.git","svn_url":"https://github.com/wordpress-mobile/WordPressCom-Stats-iOS","homepage":null,"size":4138,"stargazers_count":8,"watchers_count":8,"language":"Objective-C","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":5,"mirror_url":null,"open_issues_count":42,"forks":5,"open_issues":42,"watchers":8,"default_branch":"develop"}},"base":{"label":"wordpress-mobile:develop","ref":"develop","sha":"701eab6281fe5e16d31a3ae5d5e4bad8d8e70d2f","user":{"login":"wordpress-mobile","id":1306301,"avatar_url":"https://avatars.githubusercontent.com/u/1306301?v=3","gravatar_id":"","url":"https://api.github.com/users/wordpress-mobile","html_url":"https://github.com/wordpress-mobile","followers_url":"https://api.github.com/users/wordpress-mobile/followers","following_url":"https://api.github.com/users/wordpress-mobile/following{/other_user}","gists_url":"https://api.github.com/users/wordpress-mobile/gists{/gist_id}","starred_url":"https://api.github.com/users/wordpress-mobile/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/wordpress-mobile/subscriptions","organizations_url":"https://api.github.com/users/wordpress-mobile/orgs","repos_url":"https://api.github.com/users/wordpress-mobile/repos","events_url":"https://api.github.com/users/wordpress-mobile/events{/privacy}","received_events_url":"https://api.github.com/users/wordpress-mobile/received_events","type":"Organization","site_admin":false},"repo":{"id":19698391,"name":"WordPressCom-Stats-iOS","full_name":"wordpress-mobile/WordPressCom-Stats-iOS","owner":{"login":"wordpress-mobile","id":1306301,"avatar_url":"https://avatars.githubusercontent.com/u/1306301?v=3","gravatar_id":"","url":"https://api.github.com/users/wordpress-mobile","html_url":"https://github.com/wordpress-mobile","followers_url":"https://api.github.com/users/wordpress-mobile/followers","following_url":"https://api.github.com/users/wordpress-mobile/following{/other_user}","gists_url":"https://api.github.com/users/wordpress-mobile/gists{/gist_id}","starred_url":"https://api.github.com/users/wordpress-mobile/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/wordpress-mobile/subscriptions","organizations_url":"https://api.github.com/users/wordpress-mobile/orgs","repos_url":"https://api.github.com/users/wordpress-mobile/repos","events_url":"https://api.github.com/users/wordpress-mobile/events{/privacy}","received_events_url":"https://api.github.com/users/wordpress-mobile/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/wordpress-mobile/WordPressCom-Stats-iOS","description":"Reusable component for displaying WordPress.com site stats in an iOS application","fork":false,"url":"https://api.github.com/repos/wordpress-mobile/WordPressCom-Stats-iOS","forks_url":"https://api.github.com/repos/wordpress-mobile/WordPressCom-Stats-iOS/forks","keys_url":"https://api.github.com/repos/wordpress-mobile/WordPressCom-Stats-iOS/keys{/key_id}","collaborators_url":"https://api.github.com/repos/wordpress-mobile/WordPressCom-Stats-iOS/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/wordpress-mobile/WordPressCom-Stats-iOS/teams","hooks_url":"https://api.github.com/repos/wordpress-mobile/WordPressCom-Stats-iOS/hooks","issue_events_url":"https://api.github.com/repos/wordpress-mobile/WordPressCom-Stats-iOS/issues/events{/number}","events_url":"https://api.github.com/repos/wordpress-mobile/WordPressCom-Stats-iOS/events","assignees_url":"https://api.github.com/repos/wordpress-mobile/WordPressCom-Stats-iOS/assignees{/user}","branches_url":"https://api.github.com/repos/wordpress-mobile/WordPressCom-Stats-iOS/branches{/branch}","tags_url":"https://api.github.com/repos/wordpress-mobile/WordPressCom-Stats-iOS/tags","blobs_url":"https://api.github.com/repos/wordpress-mobile/WordPressCom-Stats-iOS/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/wordpress-mobile/WordPressCom-Stats-iOS/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/wordpress-mobile/WordPressCom-Stats-iOS/git/refs{/sha}","trees_url":"https://api.github.com/repos/wordpress-mobile/WordPressCom-Stats-iOS/git/trees{/sha}","statuses_url":"https://api.github.com/repos/wordpress-mobile/WordPressCom-Stats-iOS/statuses/{sha}","languages_url":"https://api.github.com/repos/wordpress-mobile/WordPressCom-Stats-iOS/languages","stargazers_url":"https://api.github.com/repos/wordpress-mobile/WordPressCom-Stats-iOS/stargazers","contributors_url":"https://api.github.com/repos/wordpress-mobile/WordPressCom-Stats-iOS/contributors","subscribers_url":"https://api.github.com/repos/wordpress-mobile/WordPressCom-Stats-iOS/subscribers","subscription_url":"https://api.github.com/repos/wordpress-mobile/WordPressCom-Stats-iOS/subscription","commits_url":"https://api.github.com/repos/wordpress-mobile/WordPressCom-Stats-iOS/commits{/sha}","git_commits_url":"https://api.github.com/repos/wordpress-mobile/WordPressCom-Stats-iOS/git/commits{/sha}","comments_url":"https://api.github.com/repos/wordpress-mobile/WordPressCom-Stats-iOS/comments{/number}","issue_comment_url":"https://api.github.com/repos/wordpress-mobile/WordPressCom-Stats-iOS/issues/comments{/number}","contents_url":"https://api.github.com/repos/wordpress-mobile/WordPressCom-Stats-iOS/contents/{+path}","compare_url":"https://api.github.com/repos/wordpress-mobile/WordPressCom-Stats-iOS/compare/{base}...{head}","merges_url":"https://api.github.com/repos/wordpress-mobile/WordPressCom-Stats-iOS/merges","archive_url":"https://api.github.com/repos/wordpress-mobile/WordPressCom-Stats-iOS/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/wordpress-mobile/WordPressCom-Stats-iOS/downloads","issues_url":"https://api.github.com/repos/wordpress-mobile/WordPressCom-Stats-iOS/issues{/number}","pulls_url":"https://api.github.com/repos/wordpress-mobile/WordPressCom-Stats-iOS/pulls{/number}","milestones_url":"https://api.github.com/repos/wordpress-mobile/WordPressCom-Stats-iOS/milestones{/number}","notifications_url":"https://api.github.com/repos/wordpress-mobile/WordPressCom-Stats-iOS/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/wordpress-mobile/WordPressCom-Stats-iOS/labels{/name}","releases_url":"https://api.github.com/repos/wordpress-mobile/WordPressCom-Stats-iOS/releases{/id}","created_at":"2014-05-12T12:48:07Z","updated_at":"2015-09-15T10:08:31Z","pushed_at":"2015-09-22T03:51:20Z","git_url":"git://github.com/wordpress-mobile/WordPressCom-Stats-iOS.git","ssh_url":"git@github.com:wordpress-mobile/WordPressCom-Stats-iOS.git","clone_url":"https://github.com/wordpress-mobile/WordPressCom-Stats-iOS.git","svn_url":"https://github.com/wordpress-mobile/WordPressCom-Stats-iOS","homepage":null,"size":4138,"stargazers_count":8,"watchers_count":8,"language":"Objective-C","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":5,"mirror_url":null,"open_issues_count":42,"forks":5,"open_issues":42,"watchers":8,"default_branch":"develop"}},"_links":{"self":{"href":"https://api.github.com/repos/wordpress-mobile/WordPressCom-Stats-iOS/pulls/317"},"html":{"href":"https://github.com/wordpress-mobile/WordPressCom-Stats-iOS/pull/317"},"issue":{"href":"https://api.github.com/repos/wordpress-mobile/WordPressCom-Stats-iOS/issues/317"},"comments":{"href":"https://api.github.com/repos/wordpress-mobile/WordPressCom-Stats-iOS/issues/317/comments"},"review_comments":{"href":"https://api.github.com/repos/wordpress-mobile/WordPressCom-Stats-iOS/pulls/317/comments"},"review_comment":{"href":"https://api.github.com/repos/wordpress-mobile/WordPressCom-Stats-iOS/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/wordpress-mobile/WordPressCom-Stats-iOS/pulls/317/commits"},"statuses":{"href":"https://api.github.com/repos/wordpress-mobile/WordPressCom-Stats-iOS/statuses/4de0974c6adc96bc1da192eb48cdb2c321ef514e"}}}}