Open mattporritt opened 3 years ago
@timhunt and @lucaboesch below is an initial thought I had. Can you share your thoughts, and clarify the requirement here if you can.
Should question comments follow the question or the question bank? Thinking about it it can go two ways:
For 1. this might be difficult with Moodles permission model. Questions don't exist in a context they are associated to a question bank. But I can see the usefulness of a global comment on a question that gives information about the question that you don't want students seeing. e.g. "3rd year students always have trouble with this topic area"
I think 2. is more likely in the spirit of the user story. But it might feel "weird" when a user has access to many questionabanks that share the same question and the comments on the question differs between banks
Actually, I know previously we discussed questions being immutable, so they could be referenced by several different question bank items, but acutally that does not work (at least not simply).
The problem is the that questions have fields like question text, feedback etc. which have embedded files. Therefore, each question can only exist in one context. Therefroe, re-using them probably causes more pain than it solves.
Anyway, I was expecting the comments to be attached to the question bank item. I never considered anything else.
Based on discussion with the team we are going to go with approach 2. Comments are attached to a question instance in a question bank.
We should also explore the existing Moodle comment API for this: https://docs.moodle.org/dev/Comment_API
As an initial feature all existing comments will be copied when a question with comments is added/copied to a new questionbank. I'll make an issue for a feature to make this a ui option.
I'll also make an issue for a feature so users can subscribe to question comments so they are notified when a question in a question bank is commented on
As also discussed in the meeting on 27th April, we have to clarify what happens to comments when exporting/importing or backing up/restoring questions from the same or another system. But this may be clarified later on.
I've created MDL-71642 for this issue. Please make a branch with the same name and make any pull requests against this branch
Hi, I've added the capabilities in this PR: https://github.com/catalyst/moodle-MDL-70329/pull/128 however were created as the other old capabilities have been created before for moodle/question:xxxx
but these can be changed if required. Thank you.
@guillogo PR #128 approved and merged
Hi @abonaccorso @timhunt @lucaboesch I have implemented the comments as a prototype in the previewquesiton plugin, please let me know your feedback and if you think it should be done as a different plugin, it can be done as well. Just one important note: I think the Close preview need to change and we should use redirect the page instead of a pop up if we are using the comments in the preview page as the base page needs reloading to show the correct number of comments,
Thanks
@safatshahin I had a look at the comments in qbank_previewquestion. I like
I added some user stories on page 10 here: https://docs.google.com/document/d/1JPBTqpCbtdRFTJuX-GIaxKyxtFLoUdPO/edit#. They are not yet complete and I am not sure if everyone agrees. You may find further information on WHERE the question may be used in the same document
And further information on permissions regarding comments in the above mentioned document
Here is the most important things I thought
Hi @safatshahin
https://github.com/catalyst/moodle-MDL-70329/pull/203 has been reviewed.
Thank you. Guillermo.
Hi @safatshahin the PR has been merged :) Thank you.
Just had a look at comments and found the following things that I think we should improve:
I would suggest to place comments directly below the line of buttons for the question preview and collapse all titles, including comments when opening the preview. One can then decide what to open and what to keep collapsed.
I like the fact, that comments can be deleted - also the ones made by others. And I also like the fact, that overlong comments without spaces are "restricted" in a box with scrollbar.
Having comments in the preview of a question is a good idea, I think - the more I think about it, the better I like it
Irregardless of comments, there is a small issue with the buttons for actions on the preview: spaces are missing. It would be nice if we could add them
Luca created a tracker issue (MDL-72216) for this and will fix it soon.
I created an issue and submitted a patch for this (the button spaces) in Moodle tracker https://tracker.moodle.org/browse/MDL-72216 but it may affect only the now supported versions and maybe has to be ported here.
Regarding my points 1. and 2. from above I realized that I misunderstood something (thanks @lucaboesch): "Collapse all" is the usual "Collapse all" hyperlink that is meant to collapse (or expand) all existing titles (as "Attempt options" and "Display options"), not the title for comments. So I think
Luca and I talked it through this morning and will present a wireframe tomorrow in our Catch up.
Regarding my point 4 - I reported this here https://tracker.moodle.org/browse/MDL-71642.
If I see comments in the question preview depends on where I opened the preview: If I open the preview of an already existing question with already existing comments, I CANNOT see comments if I open the preview via "edit question page".
How to reproduce
HI @safatshahin , can you please follow up with @abonaccorso comment. Also @abonaccorso I can't see your comment in MDL-71642, is it just me?
@mattporritt no it's no only you. I posted the wrong link. I reported it here (along with other things we declared out of scope for this project): https://tracker.moodle.org/browse/MDL-71935?focusedCommentId=866860&page=com.atlassian.jira.plugin.system.issuetabpanels%3Acomment-tabpanel#comment-866860 (and refered to MDL-71642). Sorry for the confusion!
Hi @mattporritt @abonaccorso My sincere apologies, I should have addressed this long ago but I think lost the notification with other ones. I believe this issue has been addressed but not yet pushed to the test site. I will do some cleanup and push everything on the test site. @abonaccorso will that be ok if I do a little data cleanup on the test site? like deleting the current courses and creating new ones? It won't affect the users. Thanks
@safatshahin sure, do the cleanup if needed. Please let me know once you pushed the fixes to the test site, so I can pass it on to my colleagues to have a look at.
To support:
Create a qbank plugin called qbank_comment that allows question makers to add comments on questions.
High level requirements/ TODO: