{"action":"created","issue":{"url":"https://api.github.com/repos/translate/pootle/issues/3974","labels_url":"https://api.github.com/repos/translate/pootle/issues/3974/labels{/name}","comments_url":"https://api.github.com/repos/translate/pootle/issues/3974/comments","events_url":"https://api.github.com/repos/translate/pootle/issues/3974/events","html_url":"https://github.com/translate/pootle/issues/3974","id":100967596,"number":3974,"title":"When uploading translation files, async worker is triggered before transaction completes (was: cache is invalidated before changes are applied)","user":{"login":"phlax","id":454682,"avatar_url":"https://avatars.githubusercontent.com/u/454682?v=3","gravatar_id":"","url":"https://api.github.com/users/phlax","html_url":"https://github.com/phlax","followers_url":"https://api.github.com/users/phlax/followers","following_url":"https://api.github.com/users/phlax/following{/other_user}","gists_url":"https://api.github.com/users/phlax/gists{/gist_id}","starred_url":"https://api.github.com/users/phlax/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/phlax/subscriptions","organizations_url":"https://api.github.com/users/phlax/orgs","repos_url":"https://api.github.com/users/phlax/repos","events_url":"https://api.github.com/users/phlax/events{/privacy}","received_events_url":"https://api.github.com/users/phlax/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":7,"created_at":"2015-08-14T09:08:06Z","updated_at":"2015-08-17T10:36:12Z","closed_at":null,"body":"To reproduce:\r\n\r\n- download translation file\r\n- make change (change 1)\r\n- upload file\r\n\r\nAt this point the stats/last activity does not show change 1\r\n\r\n- download translation file again\r\n- make change (change 2)\r\n- upload file\r\n\r\nAt this point the stats/last activity shows change 1 and not change 2\r\n"},"comment":{"url":"https://api.github.com/repos/translate/pootle/issues/comments/131772973","html_url":"https://github.com/translate/pootle/issues/3974#issuecomment-131772973","issue_url":"https://api.github.com/repos/translate/pootle/issues/3974","id":131772973,"user":{"login":"phlax","id":454682,"avatar_url":"https://avatars.githubusercontent.com/u/454682?v=3","gravatar_id":"","url":"https://api.github.com/users/phlax","html_url":"https://github.com/phlax","followers_url":"https://api.github.com/users/phlax/followers","following_url":"https://api.github.com/users/phlax/following{/other_user}","gists_url":"https://api.github.com/users/phlax/gists{/gist_id}","starred_url":"https://api.github.com/users/phlax/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/phlax/subscriptions","organizations_url":"https://api.github.com/users/phlax/orgs","repos_url":"https://api.github.com/users/phlax/repos","events_url":"https://api.github.com/users/phlax/events{/privacy}","received_events_url":"https://api.github.com/users/phlax/received_events","type":"User","site_admin":false},"created_at":"2015-08-17T10:36:11Z","updated_at":"2015-08-17T10:36:11Z","body":"making the upload async is not a bad idea - but the problem still remains (potentially) that updates are done to the db sync and then async code is triggered against the previous state of db.\r\n\r\nthis resolves that issue."}}