Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
gaganaw06 opened this issue Jul 20, 2020 · 13 comments
Open

Comments

@gaganaw06
Copy link

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
Copy link
Collaborator

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
Copy link
Author

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
Copy link
Contributor

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
Copy link
Author

Hi @gordonmacqueen-lp @davidpesce

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

@gordonmacqueen-lp
Copy link
Contributor

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
Copy link
Author

gaganaw06 commented Jul 28, 2020

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
Copy link
Contributor

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

@gaganaw06
Copy link
Author

@gordonmacqueen-lp in the plug in setting right

@gaganaw06
Copy link
Author

hi @gordonmacqueen-lp

Is there any way i can fix the issue

@gordonmacqueen-lp
Copy link
Contributor

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

@gaganaw06
Copy link
Author

Hi @gordonmacqueen-lp ,

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

@gaganaw06
Copy link
Author

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

@gordonmacqueen-lp
Copy link
Contributor

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants