{"action":"created","issue":{"url":"https://api.github.com/repos/WeblateOrg/weblate/issues/1857","repository_url":"https://api.github.com/repos/WeblateOrg/weblate","labels_url":"https://api.github.com/repos/WeblateOrg/weblate/issues/1857/labels{/name}","comments_url":"https://api.github.com/repos/WeblateOrg/weblate/issues/1857/comments","events_url":"https://api.github.com/repos/WeblateOrg/weblate/issues/1857/events","html_url":"https://github.com/WeblateOrg/weblate/issues/1857","id":297381511,"number":1857,"title":"Is \"commit_pending\" broken in 2.18?","user":{"login":"BhaaLseN","id":826052,"avatar_url":"https://avatars1.githubusercontent.com/u/826052?v=4","gravatar_id":"","url":"https://api.github.com/users/BhaaLseN","html_url":"https://github.com/BhaaLseN","followers_url":"https://api.github.com/users/BhaaLseN/followers","following_url":"https://api.github.com/users/BhaaLseN/following{/other_user}","gists_url":"https://api.github.com/users/BhaaLseN/gists{/gist_id}","starred_url":"https://api.github.com/users/BhaaLseN/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/BhaaLseN/subscriptions","organizations_url":"https://api.github.com/users/BhaaLseN/orgs","repos_url":"https://api.github.com/users/BhaaLseN/repos","events_url":"https://api.github.com/users/BhaaLseN/events{/privacy}","received_events_url":"https://api.github.com/users/BhaaLseN/received_events","type":"User","site_admin":false},"labels":[{"id":364000,"url":"https://api.github.com/repos/WeblateOrg/weblate/labels/question","name":"question","color":"cc317c","default":true}],"state":"open","locked":false,"assignee":{"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},"assignees":[{"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}],"milestone":null,"comments":8,"created_at":"2018-02-15T09:42:26Z","updated_at":"2018-02-15T14:00:20Z","closed_at":null,"author_association":"NONE","body":"### Steps to reproduce\r\n1. Configure a Component to do \"Push on commit\"\r\n2. Leave \"Age of changes to commit\" as default; or change it to 0 or 1 (doesn't seem to matter in my case; especially since I want to use a cronjob with an explicit age of 0 to commit everything at the hour)\r\n3. Make a change and verify that Manage > Repository Maintenance reads \"There are some uncommitted changes!\"\r\n4. Wait for the hourly cronjob to run `../bin/python ./manage.py commit_pending --all --age=0 --verbosity=0` in the weblate directory; or run the command by hand as `www-data`\r\n\r\n### Actual behaviour\r\nNothing happens. No entry in syslog, nothing printed on command line; not even with `--verbosity=3`.\r\nUsing Repository Maintenence > Commit works as expected though.\r\n\r\n### Expected behaviour\r\nAny change is committed and then pushed to the remote Git repository.\r\n\r\n### Server configuration\r\nWeblate 2.18 from Git (checked out the tag `weblate-2.18`) running on Debian 9.3 with a Python 3 virtualenv (hence the prefixing of `../bin/python` above/below to use the virtualenv executable instead of the global one)\r\n```\r\n$ ../bin/python ./manage.py list_versions\r\n * Weblate weblate-2.18\r\n * Python 3.5.3\r\n * Django 2.0.2\r\n * six 1.11.0\r\n * social-auth-core 1.6.0\r\n * social-auth-app-django 2.1.0\r\n * django-appconf 1.0.2\r\n * Translate Toolkit 2.2.5\r\n * Whoosh 2.7.4\r\n * defusedxml 0.5.0\r\n * Git 2.11.0\r\n * Pillow (PIL) 1.1.7\r\n * dateutil 2.6.1\r\n * lxml 4.1.1\r\n * django-crispy-forms 1.7.0\r\n * compressor 2.2\r\n * djangorestframework 3.7.7\r\n * pytz 2018.3\r\n * pyuca N/A\r\n * python-bidi 0.4.0\r\n * PyYAML 3.12\r\n * Database backends: django.db.backends.mysql\r\n```\r\n\r\nThat database was migrated from an old system (to be retired) which ran 2.15 under Python 2 by transferring a DB dump over, then migrating it. DATA_DIR was copied over as-is (except for `whoosh`, which was regenerated by running `update_index`/ `rebuild_index`), everything seems to be correct there.\r\n\r\nOther cronjobs (such as 5-minute `update_index` and hourly `updategit`) run correctly. The only thing that Commits the changes at this point is using Repository Maintenence.\r\n\r\nI don't see anything in the logs, so I have no idea on how to debug this issue.\r\n\r\nPS: I just noticed the `commitgit` command in the docs; I didn't try this one (yet) - but since the maintenance tasks section still uses `commit_pending` I didn't assume I should be using anything else here."},"comment":{"url":"https://api.github.com/repos/WeblateOrg/weblate/issues/comments/365935179","html_url":"https://github.com/WeblateOrg/weblate/issues/1857#issuecomment-365935179","issue_url":"https://api.github.com/repos/WeblateOrg/weblate/issues/1857","id":365935179,"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-15T14:00:20Z","updated_at":"2018-02-15T14:00:20Z","author_association":"OWNER","body":"No it can't be outdated as it's not cached so it just does query the database (unless you're using django-cache-machine or something similar, what is definitely not supported)."}}
{"actor":{"display_login":"nijel"}}