moodle-logstore_xapi
moodle-logstore_xapi copied to clipboard
Tracking creating a new assignment or a course module inside a course
in the current version of the plugin it doesn't track a teacher making a course module or a assignment or anything inside a course. i tried making on but it doesn't work. Is there a way to track making a course module. the event inside the moodle is "course_module_created"
Hi @gaganaw06,
Yup, it's possible to create a statement for "course_module_created" events (and any event within Moodle). It may be worthwhile to submit the code that you've worked on as a PR. It's possible we'd be able to leverage what you've done to bring it to the finish line (faster than us doing it alone).
Hi @davidpesce, plugin files.zip
These are the two files i have edited and i have put the "course_module_created.php" file inside "src\transformer\events\core" location. still when i install the plugin the events doesn't get track. Hope this can be fixed and track module creation
Hi @gaganaw06,
Can you submit a Pull Request, or even a link to a branch with your current workings https://docs.github.com/en/github/collaborating-with-issues-and-pull-requests/creating-a-pull-request
Hi @gordonmacqueen-lp @davidpesce
I have made an Pull Request with the changers i have made
Hi @gaganaw06
Thanks for the Pull Request #768 If you can provide some more detailed info on what you've tried and what happens we may be able to assist.
Hi @gordonmacqueen-lp ,
Thanks for helping, What i was trying to do were that in the current moodle plug in the activities much as teacher putting an assignment, quiz or a file to the course module doesn't get tracked but the plugin. There is an event in moodle for that. that is "course_module_created". This is the event that happening a the previous mentioned actives happens. but those are not tracked and xapi statements are not send for that event. So i was trying to make to track course_module_create events. to send xapi statements when a teacher adds a quiz, file or a assignment or any kind of course module item
Have you enabled the event in the config settings page @gaganaw06 ?
@gordonmacqueen-lp in the plug in setting right
hi @gordonmacqueen-lp
Is there any way i can fix the issue
Hi @gaganaw06 Can you give me some more info on what you are seeing happening? Is there any output, or any errors reported?
Hi @gordonmacqueen-lp ,
Doing these changers still there is no xapi statement going for this event
@gordonmacqueen-lp I made a test case also but when i run it. it says "Failed asserting that two strings are equal."
Hi @gaganaw06
I'm having trouble seeing your issue. Can you follow the New Issue template and provide as much information as possible please?
--
Description
- {{Brief description of your bug}}
Version
- {{branch}} at {{commit}} on {{version - found in your copy of the VERSION file}}
Steps to reproduce the bug
- {{steps}}
Expected behaviour
- {{feature}} should be {{expectedResult}} because {{reason}}.
Actual behaviour
- {{feature}} is {{actualResult}}.
Server information
- {{database}} with {{authentication}}.
Client information
- OS: {{operatingSystem}}
- Browser: {{browser}} {{version}}
Additional information
- {{additionalInfo}})