{"action":"created","issue":{"url":"https://api.github.com/repos/KnowSheet/Alohalytics/issues/28","labels_url":"https://api.github.com/repos/KnowSheet/Alohalytics/issues/28/labels{/name}","comments_url":"https://api.github.com/repos/KnowSheet/Alohalytics/issues/28/comments","events_url":"https://api.github.com/repos/KnowSheet/Alohalytics/issues/28/events","html_url":"https://github.com/KnowSheet/Alohalytics/pull/28","id":62027764,"number":28,"title":"Always force uploading of the current data.","user":{"login":"deathbaba","id":170263,"avatar_url":"https://avatars.githubusercontent.com/u/170263?v=3","gravatar_id":"","url":"https://api.github.com/users/deathbaba","html_url":"https://github.com/deathbaba","followers_url":"https://api.github.com/users/deathbaba/followers","following_url":"https://api.github.com/users/deathbaba/following{/other_user}","gists_url":"https://api.github.com/users/deathbaba/gists{/gist_id}","starred_url":"https://api.github.com/users/deathbaba/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/deathbaba/subscriptions","organizations_url":"https://api.github.com/users/deathbaba/orgs","repos_url":"https://api.github.com/users/deathbaba/repos","events_url":"https://api.github.com/users/deathbaba/events{/privacy}","received_events_url":"https://api.github.com/users/deathbaba/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":{"login":"dkorolev","id":2159447,"avatar_url":"https://avatars.githubusercontent.com/u/2159447?v=3","gravatar_id":"","url":"https://api.github.com/users/dkorolev","html_url":"https://github.com/dkorolev","followers_url":"https://api.github.com/users/dkorolev/followers","following_url":"https://api.github.com/users/dkorolev/following{/other_user}","gists_url":"https://api.github.com/users/dkorolev/gists{/gist_id}","starred_url":"https://api.github.com/users/dkorolev/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dkorolev/subscriptions","organizations_url":"https://api.github.com/users/dkorolev/orgs","repos_url":"https://api.github.com/users/dkorolev/repos","events_url":"https://api.github.com/users/dkorolev/events{/privacy}","received_events_url":"https://api.github.com/users/dkorolev/received_events","type":"User","site_admin":false},"milestone":null,"comments":3,"created_at":"2015-03-16T09:46:03Z","updated_at":"2015-03-16T09:54:06Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/KnowSheet/Alohalytics/pulls/28","html_url":"https://github.com/KnowSheet/Alohalytics/pull/28","diff_url":"https://github.com/KnowSheet/Alohalytics/pull/28.diff","patch_url":"https://github.com/KnowSheet/Alohalytics/pull/28.patch"},"body":"It worked previously only in the cases when no any finalized statistics files were stored in the queue."},"comment":{"url":"https://api.github.com/repos/KnowSheet/Alohalytics/issues/comments/81549929","html_url":"https://github.com/KnowSheet/Alohalytics/pull/28#issuecomment-81549929","issue_url":"https://api.github.com/repos/KnowSheet/Alohalytics/issues/28","id":81549929,"user":{"login":"dkorolev","id":2159447,"avatar_url":"https://avatars.githubusercontent.com/u/2159447?v=3","gravatar_id":"","url":"https://api.github.com/users/dkorolev","html_url":"https://github.com/dkorolev","followers_url":"https://api.github.com/users/dkorolev/followers","following_url":"https://api.github.com/users/dkorolev/following{/other_user}","gists_url":"https://api.github.com/users/dkorolev/gists{/gist_id}","starred_url":"https://api.github.com/users/dkorolev/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dkorolev/subscriptions","organizations_url":"https://api.github.com/users/dkorolev/orgs","repos_url":"https://api.github.com/users/dkorolev/repos","events_url":"https://api.github.com/users/dkorolev/events{/privacy}","received_events_url":"https://api.github.com/users/dkorolev/received_events","type":"User","site_admin":false},"created_at":"2015-03-16T09:54:06Z","updated_at":"2015-03-16T09:54:06Z","body":"Didn't we agree that there is only one event -- first install -- that\nrequires `ForceUpload(true)`?\n\nThanks,\nDima\n\nhttp://dimakorolev.com/ | http://www.linkedin.com/in/dimakorolev |\ndmitry.korolev@gmail.com | +1 (312) 593 2783\n\n\nOn Mon, Mar 16, 2015 at 2:52 AM, Alex Zolotarev <notifications@github.com>\nwrote:\n\n> Our business logic _needs_ this case - to log first user launch, before he\n> decide to uninstall the app.\n>\n> The worst bug issue in the FSQ with it’s current architecture is\n> demonstrated below:\n> ```\n> Alohalytics::LogEvent(“userHasInstalledTheApp”);\n> Alohalytics::ForceUpload();\n> ```\n> These 2 lines of code, if second goes immediately after the first, does\n> not guarantee that this even will be delivered to the server (it can be\n> still in the memory queue).\n>\n> The only solution I can think about to resolve this case is to use queue\n> itself for passing “ForceUpload” events - we were discussing it in\n> December’14.\n>\n>\n> > On Mar 16, 2015, at 12:47, Dima <notifications@github.com> wrote:\n> >\n> > Didn't we discuss it previously that this is a bad idea?\n> >\n> > —\n> > Reply to this email directly or view it on GitHub <\n> https://github.com/KnowSheet/Alohalytics/pull/28#issuecomment-81544324>.\n>\n> >\n>\n> —\n> Reply to this email directly or view it on GitHub\n> <https://github.com/KnowSheet/Alohalytics/pull/28#issuecomment-81548201>.\n>\n"}}