{"action":"created","issue":{"url":"https://api.github.com/repos/LearningLocker/Moodle-xAPI-Translator/issues/33","labels_url":"https://api.github.com/repos/LearningLocker/Moodle-xAPI-Translator/issues/33/labels{/name}","comments_url":"https://api.github.com/repos/LearningLocker/Moodle-xAPI-Translator/issues/33/comments","events_url":"https://api.github.com/repos/LearningLocker/Moodle-xAPI-Translator/issues/33/events","html_url":"https://github.com/LearningLocker/Moodle-xAPI-Translator/issues/33","id":128877429,"number":33,"title":"QuestionSubmitted is failing tests","user":{"login":"jlowe64","id":1077381,"avatar_url":"https://avatars.githubusercontent.com/u/1077381?v=3","gravatar_id":"","url":"https://api.github.com/users/jlowe64","html_url":"https://github.com/jlowe64","followers_url":"https://api.github.com/users/jlowe64/followers","following_url":"https://api.github.com/users/jlowe64/following{/other_user}","gists_url":"https://api.github.com/users/jlowe64/gists{/gist_id}","starred_url":"https://api.github.com/users/jlowe64/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jlowe64/subscriptions","organizations_url":"https://api.github.com/users/jlowe64/orgs","repos_url":"https://api.github.com/users/jlowe64/repos","events_url":"https://api.github.com/users/jlowe64/events{/privacy}","received_events_url":"https://api.github.com/users/jlowe64/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/LearningLocker/Moodle-xAPI-Translator/labels/priority:medium","name":"priority:medium","color":"eb6420"},{"url":"https://api.github.com/repos/LearningLocker/Moodle-xAPI-Translator/labels/status:confirmed","name":"status:confirmed","color":"e11d21"},{"url":"https://api.github.com/repos/LearningLocker/Moodle-xAPI-Translator/labels/type:bug","name":"type:bug","color":"e11d21"}],"state":"open","locked":false,"assignee":{"login":"jlowe64","id":1077381,"avatar_url":"https://avatars.githubusercontent.com/u/1077381?v=3","gravatar_id":"","url":"https://api.github.com/users/jlowe64","html_url":"https://github.com/jlowe64","followers_url":"https://api.github.com/users/jlowe64/followers","following_url":"https://api.github.com/users/jlowe64/following{/other_user}","gists_url":"https://api.github.com/users/jlowe64/gists{/gist_id}","starred_url":"https://api.github.com/users/jlowe64/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jlowe64/subscriptions","organizations_url":"https://api.github.com/users/jlowe64/orgs","repos_url":"https://api.github.com/users/jlowe64/repos","events_url":"https://api.github.com/users/jlowe64/events{/privacy}","received_events_url":"https://api.github.com/users/jlowe64/received_events","type":"User","site_admin":false},"milestone":null,"comments":10,"created_at":"2016-01-26T16:54:57Z","updated_at":"2016-01-26T23:22:22Z","closed_at":null,"body":"@garemoko QuestionsSubmitted is having issues. The basics are, I believe in the https://github.com/LearningLocker/Moodle-Log-Expander repo, the information from the test regarding questions is totally wrong. It simply repeats the test attempt information in the question area, and only tests if that information is present and in the correct number. However, when that information is being passed back to this repo, QuestionSubmitted.php needs to have certain fields in order to build the Translator Event, but it instead gets the following array repeated for every question:\r\n\r\n```\r\n(\r\n    [id] => 1\r\n    [username] => test_username\r\n    [lang] => en\r\n    [fullname] => test_fullname\r\n    [summary] => test_summary\r\n    [name] => test_name\r\n    [intro] => test_intro\r\n    [timestart] => 1433946701\r\n    [timefinish] => 1433946702\r\n    [state] => finished\r\n    [course] => 1\r\n    [sumgrades] => 1\r\n    [grade] => 2\r\n    [quiz] => 1\r\n    [assignment] => 1\r\n    [userid] => 1\r\n    [forum] => 1\r\n    [type] => object\r\n    [scorm] => 1\r\n    [grademax] => 5.00000\r\n    [grademin] => 0.00000\r\n    [gradepass] => 5.00000\r\n    [commenttext] => <p>test comment</p>\r\n    [questionid] => 1\r\n)\r\n```\r\n\r\nBecause this doesn't hold the relevant keys, `question->questiontext`, being one of them, it fails the test."},"comment":{"url":"https://api.github.com/repos/LearningLocker/Moodle-xAPI-Translator/issues/comments/175290043","html_url":"https://github.com/LearningLocker/Moodle-xAPI-Translator/issues/33#issuecomment-175290043","issue_url":"https://api.github.com/repos/LearningLocker/Moodle-xAPI-Translator/issues/33","id":175290043,"user":{"login":"jlowe64","id":1077381,"avatar_url":"https://avatars.githubusercontent.com/u/1077381?v=3","gravatar_id":"","url":"https://api.github.com/users/jlowe64","html_url":"https://github.com/jlowe64","followers_url":"https://api.github.com/users/jlowe64/followers","following_url":"https://api.github.com/users/jlowe64/following{/other_user}","gists_url":"https://api.github.com/users/jlowe64/gists{/gist_id}","starred_url":"https://api.github.com/users/jlowe64/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jlowe64/subscriptions","organizations_url":"https://api.github.com/users/jlowe64/orgs","repos_url":"https://api.github.com/users/jlowe64/repos","events_url":"https://api.github.com/users/jlowe64/events{/privacy}","received_events_url":"https://api.github.com/users/jlowe64/received_events","type":"User","site_admin":false},"created_at":"2016-01-26T23:22:22Z","updated_at":"2016-01-26T23:22:22Z","body":"@garemoko I'm on this tomorrow. "}}