{"action":"created","issue":{"url":"https://api.github.com/repos/mozilla/firefox-ios/issues/762","labels_url":"https://api.github.com/repos/mozilla/firefox-ios/issues/762/labels{/name}","comments_url":"https://api.github.com/repos/mozilla/firefox-ios/issues/762/comments","events_url":"https://api.github.com/repos/mozilla/firefox-ios/issues/762/events","html_url":"https://github.com/mozilla/firefox-ios/pull/762","id":95553627,"number":762,"title":"Bug 1184767 - Upweight local visits in top sites.","user":{"login":"rnewman","id":91722,"avatar_url":"https://avatars.githubusercontent.com/u/91722?v=3","gravatar_id":"","url":"https://api.github.com/users/rnewman","html_url":"https://github.com/rnewman","followers_url":"https://api.github.com/users/rnewman/followers","following_url":"https://api.github.com/users/rnewman/following{/other_user}","gists_url":"https://api.github.com/users/rnewman/gists{/gist_id}","starred_url":"https://api.github.com/users/rnewman/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rnewman/subscriptions","organizations_url":"https://api.github.com/users/rnewman/orgs","repos_url":"https://api.github.com/users/rnewman/repos","events_url":"https://api.github.com/users/rnewman/events{/privacy}","received_events_url":"https://api.github.com/users/rnewman/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2015-07-16T23:38:50Z","updated_at":"2015-07-21T16:03:32Z","closed_at":"2015-07-21T16:03:32Z","pull_request":{"url":"https://api.github.com/repos/mozilla/firefox-ios/pulls/762","html_url":"https://github.com/mozilla/firefox-ios/pull/762","diff_url":"https://github.com/mozilla/firefox-ios/pull/762.diff","patch_url":"https://github.com/mozilla/firefox-ios/pull/762.patch"},"body":"This patch does the following:\r\n\r\n• Returns separate counts and last visit dates for local and remote visits. We do this the hard way, with a `case` in a `sum`.\r\n• Computes two sub-frecencies using these two values, using the combination of the two as an aggregate frecency. We effectively multiply our local visit count by 5. This is linear, but because Sync only transfers visits in batches of 20, it takes a lot of visits to win. We can tweak this easily.\r\n• Adds a test to ensure that records with no remote, no local, and a mix of visits are returned, and in the right order."},"comment":{"url":"https://api.github.com/repos/mozilla/firefox-ios/issues/comments/123385790","html_url":"https://github.com/mozilla/firefox-ios/pull/762#issuecomment-123385790","issue_url":"https://api.github.com/repos/mozilla/firefox-ios/issues/762","id":123385790,"user":{"login":"rnewman","id":91722,"avatar_url":"https://avatars.githubusercontent.com/u/91722?v=3","gravatar_id":"","url":"https://api.github.com/users/rnewman","html_url":"https://github.com/rnewman","followers_url":"https://api.github.com/users/rnewman/followers","following_url":"https://api.github.com/users/rnewman/following{/other_user}","gists_url":"https://api.github.com/users/rnewman/gists{/gist_id}","starred_url":"https://api.github.com/users/rnewman/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rnewman/subscriptions","organizations_url":"https://api.github.com/users/rnewman/orgs","repos_url":"https://api.github.com/users/rnewman/repos","events_url":"https://api.github.com/users/rnewman/events{/privacy}","received_events_url":"https://api.github.com/users/rnewman/received_events","type":"User","site_admin":false},"created_at":"2015-07-21T16:03:32Z","updated_at":"2015-07-21T16:03:32Z","body":"Landed."}}