xAPI-vle / moodle-logstore_xapi

A Moodle plugin to send xAPI statements to an LRS using events in the Moodle logstore.
GNU General Public License v3.0
75 stars 85 forks source link

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

Open gaganaw06 opened 4 years ago

gaganaw06 commented 4 years ago

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"

davidpesce commented 4 years ago

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

gaganaw06 commented 4 years ago

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

gordonmacqueen-lp commented 4 years ago

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

gaganaw06 commented 4 years ago

Hi @gordonmacqueen-lp @davidpesce

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

gordonmacqueen-lp commented 4 years ago

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.

gaganaw06 commented 4 years ago

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

gordonmacqueen-lp commented 4 years ago

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

gaganaw06 commented 4 years ago

@gordonmacqueen-lp in the plug in setting right

gaganaw06 commented 4 years ago

hi @gordonmacqueen-lp

Is there any way i can fix the issue

gordonmacqueen-lp commented 4 years ago

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

gaganaw06 commented 4 years ago

Hi @gordonmacqueen-lp ,

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

gaganaw06 commented 4 years ago

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

gordonmacqueen-lp commented 4 years ago

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

Version

Steps to reproduce the bug

  1. {{steps}}

Expected behaviour

Actual behaviour

Server information

Client information

Additional information