{"action":"created","issue":{"url":"https://api.github.com/repos/WeblateOrg/weblate/issues/1157","repository_url":"https://api.github.com/repos/WeblateOrg/weblate","labels_url":"https://api.github.com/repos/WeblateOrg/weblate/issues/1157/labels{/name}","comments_url":"https://api.github.com/repos/WeblateOrg/weblate/issues/1157/comments","events_url":"https://api.github.com/repos/WeblateOrg/weblate/issues/1157/events","html_url":"https://github.com/WeblateOrg/weblate/issues/1157","id":162865080,"number":1157,"title":"Commit translations per author","user":{"login":"rvanlaak","id":2707563,"avatar_url":"https://avatars0.githubusercontent.com/u/2707563?v=4","gravatar_id":"","url":"https://api.github.com/users/rvanlaak","html_url":"https://github.com/rvanlaak","followers_url":"https://api.github.com/users/rvanlaak/followers","following_url":"https://api.github.com/users/rvanlaak/following{/other_user}","gists_url":"https://api.github.com/users/rvanlaak/gists{/gist_id}","starred_url":"https://api.github.com/users/rvanlaak/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rvanlaak/subscriptions","organizations_url":"https://api.github.com/users/rvanlaak/orgs","repos_url":"https://api.github.com/users/rvanlaak/repos","events_url":"https://api.github.com/users/rvanlaak/events{/privacy}","received_events_url":"https://api.github.com/users/rvanlaak/received_events","type":"User","site_admin":false},"labels":[{"id":363998,"url":"https://api.github.com/repos/WeblateOrg/weblate/labels/enhancement","name":"enhancement","color":"84b6eb","default":true}],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":5,"created_at":"2016-06-29T08:09:52Z","updated_at":"2018-02-22T15:45:10Z","closed_at":null,"author_association":"CONTRIBUTOR","body":"### Actual behaviour\n\nIf you are translating with multiple people and execute the Weblate commits manually, you will get lots of commits. Especially if you have one file that needs translating by multiple users.\n### Expected behaviour\n\nIf I'm correct there was an option to make one commit of all translations, but what I'd like to see is having one commit per user. So, when 5 translators are translating at the same time this then would only result in 5 commits at most.\n## \n\r\n\r\n<bountysource-plugin>\r\n\r\n---\r\nWant to back this issue? **[Post a bounty on it!](https://www.bountysource.com/issues/35590887-commit-translations-per-author?utm_campaign=plugin&utm_content=tracker%2F253393&utm_medium=issues&utm_source=github)** We accept bounties via [Bountysource](https://www.bountysource.com/?utm_campaign=plugin&utm_content=tracker%2F253393&utm_medium=issues&utm_source=github).\r\n</bountysource-plugin>"},"comment":{"url":"https://api.github.com/repos/WeblateOrg/weblate/issues/comments/367722443","html_url":"https://github.com/WeblateOrg/weblate/issues/1157#issuecomment-367722443","issue_url":"https://api.github.com/repos/WeblateOrg/weblate/issues/1157","id":367722443,"user":{"login":"nijel","id":212189,"avatar_url":"https://avatars0.githubusercontent.com/u/212189?v=4","gravatar_id":"","url":"https://api.github.com/users/nijel","html_url":"https://github.com/nijel","followers_url":"https://api.github.com/users/nijel/followers","following_url":"https://api.github.com/users/nijel/following{/other_user}","gists_url":"https://api.github.com/users/nijel/gists{/gist_id}","starred_url":"https://api.github.com/users/nijel/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/nijel/subscriptions","organizations_url":"https://api.github.com/users/nijel/orgs","repos_url":"https://api.github.com/users/nijel/repos","events_url":"https://api.github.com/users/nijel/events{/privacy}","received_events_url":"https://api.github.com/users/nijel/received_events","type":"User","site_admin":false},"created_at":"2018-02-22T15:45:10Z","updated_at":"2018-02-22T15:45:10Z","author_association":"OWNER","body":"What I think should be doable with current code:\r\n\r\n- do not force commit when other user starts translating\r\n- on editing ensure that pending flag is not present, otherwise force commit of pending changes (at least for this author, but it's probably cheaper to commit everything in this case)\r\n- the commit would go though all pending units, group them by author and sort by last edit date, then it would create separate commits for each author (the author and timestamp are already available in the changes model)\r\n- what needs to be decided is how to handle committing of pending changes as current approach might lead to quite huge amount of pending translations with this reordering in place"}}
{"actor":{"display_login":"nijel"}}