{"action":"created","issue":{"url":"https://api.github.com/repos/haystack/tipsy/issues/55","labels_url":"https://api.github.com/repos/haystack/tipsy/issues/55/labels{/name}","comments_url":"https://api.github.com/repos/haystack/tipsy/issues/55/comments","events_url":"https://api.github.com/repos/haystack/tipsy/issues/55/events","html_url":"https://github.com/haystack/tipsy/issues/55","id":55820043,"number":55,"title":"Debouncing visits into the log","user":{"login":"tbranyen","id":181635,"avatar_url":"https://avatars.githubusercontent.com/u/181635?v=3","gravatar_id":"","url":"https://api.github.com/users/tbranyen","html_url":"https://github.com/tbranyen","followers_url":"https://api.github.com/users/tbranyen/followers","following_url":"https://api.github.com/users/tbranyen/following{/other_user}","gists_url":"https://api.github.com/users/tbranyen/gists{/gist_id}","starred_url":"https://api.github.com/users/tbranyen/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tbranyen/subscriptions","organizations_url":"https://api.github.com/users/tbranyen/orgs","repos_url":"https://api.github.com/users/tbranyen/repos","events_url":"https://api.github.com/users/tbranyen/events{/privacy}","received_events_url":"https://api.github.com/users/tbranyen/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":3,"created_at":"2015-01-28T21:42:40Z","updated_at":"2015-01-29T01:43:43Z","closed_at":null,"body":"Currently any logging that results in an activity (start/stop triggers) adds a new entry into the visit log.  This works great for most use cases, especially since it's nice to know you were briefly viewing documentation and paging back and forth.  It lines up with usage.\r\n\r\n... however this breaks down when sites abuse the ability to autoreload for refreshing instead of opting for a more asynchronous approach via sockets or transparent polling.  What happens in this case is that a page will constantly refresh while it's open to sync new data in and will unintentionally flood the visit log with entries.\r\n\r\nWe should enable a debounce threshold to eliminate these occurrences.  One issue is knowing how long of a delay until inserting? If the refresh triggers every few minutes, but you keep the page open all day, we'll need to debounce at the minute level.  However, if you visit a page, wait a few minutes and then go back to that tab it will not log as a separate instance, even though minutes lasted in between.\r\n\r\n@schilippe do you have any feedback on how you would prefer to see this implemented?"},"comment":{"url":"https://api.github.com/repos/haystack/tipsy/issues/comments/71954144","html_url":"https://github.com/haystack/tipsy/issues/55#issuecomment-71954144","issue_url":"https://api.github.com/repos/haystack/tipsy/issues/55","id":71954144,"user":{"login":"schilippe","id":4085088,"avatar_url":"https://avatars.githubusercontent.com/u/4085088?v=3","gravatar_id":"","url":"https://api.github.com/users/schilippe","html_url":"https://github.com/schilippe","followers_url":"https://api.github.com/users/schilippe/followers","following_url":"https://api.github.com/users/schilippe/following{/other_user}","gists_url":"https://api.github.com/users/schilippe/gists{/gist_id}","starred_url":"https://api.github.com/users/schilippe/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/schilippe/subscriptions","organizations_url":"https://api.github.com/users/schilippe/orgs","repos_url":"https://api.github.com/users/schilippe/repos","events_url":"https://api.github.com/users/schilippe/events{/privacy}","received_events_url":"https://api.github.com/users/schilippe/received_events","type":"User","site_admin":false},"created_at":"2015-01-29T01:43:43Z","updated_at":"2015-01-29T01:43:43Z","body":"I will a \"days with a visit\" column that to the table and see what people think about it."}}