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

cannot reset course completion - using IOMAD current git version #149

Open
dallenk opened this issue Feb 16, 2024 · 5 comments
Open

cannot reset course completion - using IOMAD current git version #149

dallenk opened this issue Feb 16, 2024 · 5 comments

Comments

@dallenk
Copy link

dallenk commented Feb 16, 2024

Hi, I think this is exactly what I am looking for to reset all course completion for a student.. but perhaps I'm not understanding what it can and cannot do. I'm using the most current git of IOMAD for basically a multi-tenancy Moodle system. It seems Moodle, by default loves to hold onto old course data even after a student has been unenrolled.. (which IMO is really weird...)

I just can't seem to make this work, I followed the steps multiple times on setting the plugin and no matter what I do, even with 5 min tasks for recompletion.. manually running multiple times nothing is removed when a student is unenrolled from a course. I've tried self un-enrolling, unenrolling as a company manager, and the site admin. No matter what, it still shows 100% complete to student on the "Available course" block, and when the self-enroll, all previous activities still show completed.

I have each course set to "On Demand" and enabled the re-complete on unenroll
image

2nd issue, and perhaps because I'm using IOMAD..
the permissions in roles seem very broad.
for example..
image

The settings here don't allow the IOMAD Company Manager access to modify the completion settings (good, i don't want them too be able too) but it also hides the menu item "Modify course completion dates" which does allow the company manager to reset one or all of the students on that particular course.

is there a way to separate those permissions? perhaps a new item of "Reset others completion" so the IOMAD company manager can reset the completion, but not change settings (which seem to be global)

using the most current git of IOMAD
using the most current git of recompletion 401_STABLE (f8d86c8)

Am I just not understanding what the plugin can and cannot do??

@danmarsden
Copy link
Owner

on the edit course recompletion settings page - what are the other settings on the page set to? - you might need to expand the settings down the bottom to see them and decide what to do (archive/delete etc)

I haven't tested it with IOMAD, but allowing different permissions for reset completion and recompletion settings sounds like a good idea - can you please create a separate issue for that on it's own?

@dallenk
Copy link
Author

dallenk commented Feb 18, 2024

hi @danmarsden, I do have everything selected to delete and not archive anything.

admin/plugins/recompletion defaults are all set to delete and not archive

each course is:
image

If I unenroll as a student, or IOMAD company manager, or the site admin it seems nothing is removed. I just duplicated and sandboxed my production installation and am testing with everything updated to current, I have un-enrolled from courses and still showing 100% complete on the "my courses" block.

image

I will create a separate issue for the permissions. Thank you.

@danmarsden
Copy link
Owner

the enrolment deleted stuff is triggered off the Moodle event "user_enrolment_deleted" - it would be interesting to see if the process you are using to un-enrol the users is triggering that event or if it's something custom to IOMAD that is not triggering the user_enrolment_deleted on unerolment. (or there could also be a bug related to some of the recent changes that is preventing the unenrolment

@dallenk
Copy link
Author

dallenk commented Feb 19, 2024

Anything I can do to help test please let me know.. I'm not a coder, but I have a sandbox available to break/restore easily..

@danmarsden
Copy link
Owner

Thanks @sgvfr - I don't currently plan to look into this much further as a volunteer at the moment. (although if someone reports issues with this on a standard Moodle site I might be inclined to look into it a bit more.) feel free to reach out privately if you would like commercial level support to help diagnose this further - I work for the Moodle Partner Catalyst IT.

let me know if your IOMAD support provider manages to track something down too!

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

2 participants