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

students do not see their own questions after saving #275

Closed
krueuw opened this issue Oct 11, 2020 · 7 comments
Closed

students do not see their own questions after saving #275

krueuw opened this issue Oct 11, 2020 · 7 comments
Labels
bug A defect affecting the current release

Comments

@krueuw
Copy link

krueuw commented Oct 11, 2020

We operate an instance of Moodle 3.8 which is hosted centrally by the German state, so we have no access to the database. A great tool so far. Since the update from 3.7 to 3.8 when creating a new StudentQuiz in version 4.3.2 (old variants from 3.7 no longer exist), students do not see their own questions after saving, regardless of the filter setting. Students can only edit it again after the teacher has confirmed the question and then changed it to changed.

The steps to understand:

1 Click as student “Create new question” and create any question,
2 Filling in the question, title test question,
3 Save,
4 List shows no entry for test question, regardless of the filter,
5 teacher sees new question test question and confirms and then changes to changed,
6 only then a student can edit his question.

However, the behavior as described in https://tube.switch.ch/videos/8194aa08 from 8:20 min is desirable. What can I do?
krueuw

@dionysius
Copy link
Member

dionysius commented Oct 13, 2020

While in all cases the student should be able to see his own question always, I'd like to know the following:

  • What state is the question before approval from the teacher? Is that row of the question greyed out (which would mean hidden)?
  • In the settings of StudentQuiz, what is the field "Question publishing" set to? If you change that to the other option as previously set, does it change the behaviour of the visibility for the student if he creates another question after that change?

@dionysius dionysius added the need more info Requires more info from the issuer or an external source to be further investigated label Oct 13, 2020
@krueuw
Copy link
Author

krueuw commented Oct 13, 2020

What state is the question before approval from the teacher?

It is invisible to the student and not included in the list. Immediately visible to the teacher with all editing options.

Is that row of the question greyed out (which would mean hidden)?
The text color for this line for the teacher is gray before anything is done.

In the settings of StudentQuiz, what is the field "Question publishing" set to?
I don't have a field with that name. The status of the question is "new" prior to approval. The icon is a rounded square.

If you change that to the other option as previously set, does it change the behaviour of the visibility for the student?
If I approve the question as a teacher, the view for student changes. The question is now listed, but cannot be edited, the gear is missing. Only after another change by the teacher to changed can the student also edit. For further questions, the behavior remains with the behavior.

If the status is set to changed by the teacher directly (without prior approval), the question remains invisible to the student.

@dionysius
Copy link
Member

dionysius commented Oct 13, 2020

Hmm.. In StudentQuiz v4.3.2 you really should have that option. It's right under the description. Allow me to ask you to have a look again, maybe you have missed it.

image

If not, then it is maybe not StudentQuiz v4.3.2. We'll have to start debugging from here.

The text color for this line for the teacher is gray before anything is done.

This is exactly what I expected. Until then let's see if you were able to find the setting "Question publishing" and played around with that. I have a little clue what I can check, if my bold assumption "students can always see their own question" is truly correct...

@dionysius
Copy link
Member

Yes, I could reproduce it and is indeed a bug. The student can't see his own question when the setting "Question publishing" is set to "Require approval before publishing". Under the hood it makes that question hidden, but it misses the exception, that the author should still be able to see it. Right on it.

@dionysius dionysius added bug A defect affecting the current release and removed need more info Requires more info from the issuer or an external source to be further investigated labels Oct 13, 2020
@dionysius
Copy link
Member

I've found and solved the bug. Students can now see their own question even if it is hidden. Unfortunately there is an overhaul needed in the affected area to keep the queries safe. It's tracked in #277. This issue is solved automatically once I've improved the section there.

@krueuw
Copy link
Author

krueuw commented Oct 13, 2020

Very well. What is the time horizon for the necessary further adjustments? It is a very good tool for exam preparation :-)

@dionysius
Copy link
Member

I've split the improvements in two parts. The first part containing the immediate fix for this issue has now been cherry-picked to master and is included in the next release.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug A defect affecting the current release
Projects
None yet
Development

No branches or pull requests

2 participants