moodle-logstore_xapi icon indicating copy to clipboard operation
moodle-logstore_xapi copied to clipboard

Tracking creating a new assignment or a course module inside a course

Open gaganaw06 opened this issue 4 years ago • 13 comments

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"

gaganaw06 avatar Jul 20 '20 04:07 gaganaw06

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).

davidpesce avatar Jul 21 '20 15:07 davidpesce

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

gaganaw06 avatar Jul 21 '20 17:07 gaganaw06

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

gordonmacqueen-lp avatar Jul 27 '20 14:07 gordonmacqueen-lp

Hi @gordonmacqueen-lp @davidpesce

I have made an Pull Request with the changers i have made

gaganaw06 avatar Jul 28 '20 12:07 gaganaw06

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.

gordonmacqueen-lp avatar Jul 28 '20 15:07 gordonmacqueen-lp

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

gaganaw06 avatar Jul 28 '20 17:07 gaganaw06

Have you enabled the event in the config settings page @gaganaw06 ?

gordonmacqueen-lp avatar Jul 28 '20 18:07 gordonmacqueen-lp

@gordonmacqueen-lp in the plug in setting right

gaganaw06 avatar Jul 28 '20 18:07 gaganaw06

hi @gordonmacqueen-lp

Is there any way i can fix the issue

gaganaw06 avatar Jul 29 '20 17:07 gaganaw06

Hi @gaganaw06 Can you give me some more info on what you are seeing happening? Is there any output, or any errors reported?

gordonmacqueen-lp avatar Jul 29 '20 18:07 gordonmacqueen-lp

Hi @gordonmacqueen-lp ,

Doing these changers still there is no xapi statement going for this event

gaganaw06 avatar Jul 29 '20 18:07 gaganaw06

@gordonmacqueen-lp I made a test case also but when i run it. it says "Failed asserting that two strings are equal."

gaganaw06 avatar Jul 29 '20 18:07 gaganaw06

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

  1. {{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}})

gordonmacqueen-lp avatar Jul 29 '20 18:07 gordonmacqueen-lp