Questionnaire: deletion area (Recycle bin) for deleted/orphaned questions#401
Questionnaire: deletion area (Recycle bin) for deleted/orphaned questions#401hatuanem199801 wants to merge 2 commits intoPoetOS:MOODLE_404_STABLEfrom
Conversation
|
I apologize for the long delay in responding to this. This is an interesting idea. Does this utilize any of the core recycle bin functions? |
|
No, it doesn't. We are using the cron task functions to delete the question at the moment. |
5590d50 to
a5d3e3c
Compare
0735b93 to
a2c6142
Compare
|
This commit is rebased with MOODLE_401_STABLE |
|
Hi. This needs another rebasing, and conflict resolution. |
|
I have just rebased with MOODLE_401_STABLE |
6253d1a to
3309603
Compare
|
Sorry. The latest branch is the MOODLE_404_STABLE branch. This needs to be rebased against it. I am still trying to understand this. Is the goal to remove questions entirely from the database? In which case, I am not sure that a question that has been flagged as deleted can currently ever be recovered. It may make more sense to simply remove the question at deletion time. Unless there is somewhere that a question can be recovered? |
3cadb7b to
c36b66c
Compare
|
I still need to understand the workflow of this feature. At present, as far as I know, when a question is deleted, there is no way to actually recover it. It just gets tagged as deleted. Since there is no way to recover it, perhaps it should just be removed from the database at that time. Unless this feature is actually adding a function to recover it? |
|
Hi @mchurchward , I would like to share the ideal workflow for this request as below:
Note: The permanent deletion depends on the system’s cron job running as scheduled. Users should pay attention to the "Time of permanent deletion" label if they want to recover a question before it is lost. If you want us to explain more details note with some images/icons please let us know. |
|
Thanks for your workflow description. Does this change implement that entire workflow? Or is this intended to be one part of it? |
|
@mchurchward yes this change implement that entire workflow. |
|
Okay, great. I will review this in its entirety. |
|
@mchurchward I have just updated the version. Please review it. Thank you. |
There was a problem hiding this comment.
I have left some inline comments that need to get dealt with. I will continue the functional review as well.
When I upgrade from the previous version of questionnaire, and go to the "Question deletion area" of the edit questions function, the new icons are huge and not usable.
There is a failing Behat test.
|
I have rebased it and merged it in with pull request 676. |
We have to create a new feature the deletion question in mod questionnaire.
Please review this commit and inform for any issues.
Thanks.