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

Proposal: Add feature for resetting user data #99

Open
abkoch opened this issue Apr 23, 2024 · 5 comments
Open

Proposal: Add feature for resetting user data #99

abkoch opened this issue Apr 23, 2024 · 5 comments
Labels
enhancement New feature or request

Comments

@abkoch
Copy link

abkoch commented Apr 23, 2024

Dear Stefan,

thanks for your great plugin. It would be great if user data could be deleted so that a learning map can be discovered from scratch.

This would be especially useful for testing purposes.

Best regards
Andreas

@sh-csg
Copy link
Contributor

sh-csg commented Apr 23, 2024

Hi Andreas,

thanks a lot for your feedback and your feature proposal!

User data is stored outside of mod_learningmap as it depends on course completion data from moodle core. For providing such a feature, it had to override course module completion of the modules used in the learning map as report_progress does.

I'll have to think a bit about that, I'm not really sure if this is what you want to have.

Best regards
Stefan

@abkoch
Copy link
Author

abkoch commented Apr 23, 2024

Dear Stefan,

thanks for your immediate response.

I noticed that you store user data in "[mdl_]course_modules_completion".

OK, you think about if if you have enough time. ;-)

Best regards
Andreas

@sh-csg
Copy link
Contributor

sh-csg commented Apr 23, 2024

Hi Andreas,

this is not user data created by mod_learningmap itself - Moodle core uses this table to store course module completion (which is used by mod_learningmap). If you look at the source code of mod_learningmap, you won't find any direct database access to this table.

Best regards
Stefan

@abkoch
Copy link
Author

abkoch commented Apr 23, 2024

Hi Stefan,

thanks for clarifying. I should have been more precise: "[mdl_]course_modules_completion" is used to display the learning progress on the map.

Best regards
Andreas

@PhMemmel
Copy link
Member

I suggest to convert this into a feature request like this:

  • Typical use case of a learningmap is that the students access the activites ONLY via the learningmap
  • So there is also the use case to reset all activity completion data of the activities which are linked in the learningmap
  • Learningmap therefore should have a "button" to reset all the activities' completion data
  • Of course before executing the teacher will have to be informed clearly about the consequences of this which is that all completion data of the activities are lost, not just in the context of the learningmap instance.

Note: Besides the fact that of course the completion data of the single activities are being cleared (including automatic completion data which could be a bit tricky to solve) this would also possibly influence other learningmap instances linking to the same activities.

@sh-csg sh-csg added the enhancement New feature or request label Nov 2, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

3 participants