{"action":"created","issue":{"url":"https://api.github.com/repos/ndunand/moodle-tool_mergeusers/issues/117","repository_url":"https://api.github.com/repos/ndunand/moodle-tool_mergeusers","labels_url":"https://api.github.com/repos/ndunand/moodle-tool_mergeusers/issues/117/labels{/name}","comments_url":"https://api.github.com/repos/ndunand/moodle-tool_mergeusers/issues/117/comments","events_url":"https://api.github.com/repos/ndunand/moodle-tool_mergeusers/issues/117/events","html_url":"https://github.com/ndunand/moodle-tool_mergeusers/issues/117","id":178613156,"number":117,"title":"tool_mergeusers - Users that complete the same assignment cannot be merged ","user":{"login":"kirstymeredith","id":22369427,"avatar_url":"https://avatars.githubusercontent.com/u/22369427?v=3","gravatar_id":"","url":"https://api.github.com/users/kirstymeredith","html_url":"https://github.com/kirstymeredith","followers_url":"https://api.github.com/users/kirstymeredith/followers","following_url":"https://api.github.com/users/kirstymeredith/following{/other_user}","gists_url":"https://api.github.com/users/kirstymeredith/gists{/gist_id}","starred_url":"https://api.github.com/users/kirstymeredith/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kirstymeredith/subscriptions","organizations_url":"https://api.github.com/users/kirstymeredith/orgs","repos_url":"https://api.github.com/users/kirstymeredith/repos","events_url":"https://api.github.com/users/kirstymeredith/events{/privacy}","received_events_url":"https://api.github.com/users/kirstymeredith/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":3,"created_at":"2016-09-22T13:42:09Z","updated_at":"2016-10-05T14:33:38Z","closed_at":null,"body":"Hi,\r\n\r\nTwo users who complete and get graded on the same assignment cannot be merged together:\r\n\r\nMerge user accounts\r\n1. Choose users to merge / ► 2. Confirm users to merge / ► 3. Merging results and log\r\n\r\nMerged «caitmeredith» (user ID = 7) into «aaronmeredith» (user ID = 6)\r\n\r\nFor further reference, these results are recorded in the log id 3.\r\nSome error occurred:\r\n\r\nException thrown when merging: 'Error writing to database\".\r\nDuplicate entry '4-6-0-0' for key 'mdl_assisubm_assusegroatt_uix'\r\nTrace:\r\n#0 /u0/webroot/virtual/planinternational.dev.synergy-learning.com/www/lib/dml/mysqli_native_moodle_database.php(982): moodle_database->query_end(false)\r\n#1 /u0/webroot/virtual/planinternational.dev.synergy-learning.com/www/admin/tool/mergeusers/lib/table/generictablemerger.php(225): mysqli_native_moodle_database->execute('UPDATE mdl_assi...')\r\n#2 /u0/webroot/virtual/planinternational.dev.synergy-learning.com/www/admin/tool/mergeusers/lib/table/generictablemerger.php(80): GenericTableMerger->updateRecords(Array, Array, 'userid', Array, Array)\r\n#3 /u0/webroot/virtual/planinternational.dev.synergy-learning.com/www/admin/tool/mergeusers/lib/mergeusertool.php(281): GenericTableMerger->merge(Array, Array, Array)\r\n#4 /u0/webroot/virtual/planinternational.dev.synergy-learning.com/www/admin/tool/mergeusers/lib/mergeusertool.php(216): MergeUserTool->_merge('6', '7')\r\n#5 /u0/webroot/virtual/planinternational.dev.synergy-learning.com/www/admin/tool/mergeusers/index.php(135): MergeUserTool->merge('6', '7')\r\n#6 {main}\r\n\r\n\r\n×\r\nMerge failed! \r\nYour database engine supports transactions. Therefore, the whole current transaction has been rolled back and no modification has been made to your database.\r\n\r\nPlease investigate.\r\n\r\nThanks!\r\n\r\nKirsty\r\n![unable_to_merge_2_users_same_assignment](https://cloud.githubusercontent.com/assets/22369427/18750363/bb24e0c2-80d2-11e6-9673-c50bca1e74c0.png)\r\n"},"comment":{"url":"https://api.github.com/repos/ndunand/moodle-tool_mergeusers/issues/comments/251692555","html_url":"https://github.com/ndunand/moodle-tool_mergeusers/issues/117#issuecomment-251692555","issue_url":"https://api.github.com/repos/ndunand/moodle-tool_mergeusers/issues/117","id":251692555,"user":{"login":"ndunand","id":762972,"avatar_url":"https://avatars.githubusercontent.com/u/762972?v=3","gravatar_id":"","url":"https://api.github.com/users/ndunand","html_url":"https://github.com/ndunand","followers_url":"https://api.github.com/users/ndunand/followers","following_url":"https://api.github.com/users/ndunand/following{/other_user}","gists_url":"https://api.github.com/users/ndunand/gists{/gist_id}","starred_url":"https://api.github.com/users/ndunand/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ndunand/subscriptions","organizations_url":"https://api.github.com/users/ndunand/orgs","repos_url":"https://api.github.com/users/ndunand/repos","events_url":"https://api.github.com/users/ndunand/events{/privacy}","received_events_url":"https://api.github.com/users/ndunand/received_events","type":"User","site_admin":false},"created_at":"2016-10-05T14:33:38Z","updated_at":"2016-10-05T14:33:38Z","body":"@kirstymeredith could you report back about this? Did the suggested solution solve this problem?"}}
{"actor":{"display_login":"ndunand"}}