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

Questionnaire: option to auto-delete responses after X time #590

Open
wants to merge 1 commit into
base: MOODLE_404_STABLE
Choose a base branch
from

Conversation

toanlamt
Copy link
Contributor

@toanlamt toanlamt commented Aug 15, 2024

For the purpose of having a GDPR-friendly feature (disabled by default) for the Questionnaire, we are suggesting this pull request. The approach and purpose are potentially similar to the ticket for Quiz activity, MDL-69854, which you can refer to for details.
For easy visualization, here’s what we are proposing:
At the bottom of the current list for the Questionnaire setting, we are adding a new option called "Manage old responses." With this option, the system will automatically delete student responses after a specified amount of time has passed (including both partial and submitted attempts).

  • Value: Never remove; 1-36 months
  • Default value: Never remove

Depending on the value selected by the user, within the corresponding time frame, the system will automatically remove discussions if they haven't had any new replies for a certain length of time.
This helps free up memory by removing outdated data, potentially improving system performance slightly, while also reducing the amount of stored data to mitigate GDPR risks.

@mchurchward
Copy link
Contributor

I'm not sure I agree with this change. If I'm understanding correctly, it will delete responses automatically in the background if they are older than a specified time? What is the use case for this?

@mchurchward
Copy link
Contributor

This issue needs to describe what it is for, and how it provides the solution. Use cases / user stories would be helpful.
Does this type of functionality exist in any Moodle core activities?

@mchurchward mchurchward changed the base branch from MOODLE_401_STABLE to MOODLE_404_STABLE September 9, 2024 14:47
@mchurchward
Copy link
Contributor

I will accept this if a global questionnaire setting is added to enable/disable this new function. It should be defaulted to disabled, requiring any site to turn it on before it takes affect.
Also, there are new conflicts that need to be fixed.

@tailetan
Copy link
Contributor

I will update and get back to you soon. Thanks

@mchurchward
Copy link
Contributor

And one more requirement, sorry. Any specific questionnaire should be able to prevent it's responses from being deleted automatically. That is, if the automatic deletion is enabled for questionnaire globally, then any questionnaire can have a setting that prevents this. And, existing questionnaires should have that disabled by default to protect them.

@tailetan
Copy link
Contributor

I have just updated the commit based on the @mchurchward's requirement, please review again. Thanks

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

Successfully merging this pull request may close these issues.

3 participants