Closed mhrivnak closed 12 years ago
This applies to resume()
review()
and finish()
as well. Basically anything calling _get_next_questions()
@mhrivnak: You may want to review this changeset but it is otherwise good to go.
This code (not your changes, but the whole class in general) is particularly difficult to fully understand without spending substantial time digesting. Nothing stands out as objectionable, but I'm not going to invest that digestion time right now if you feel confident in the changes. If the return value has the same structure except for leaving out rejoinders when they shouldn't be present, and you feel good about the changes, then I give my blessing!
When calling ExamSessionManager.create() with fetch_all=True, the returned data structure includes the rejoinders. Rejoinders should not be sent to the user until after they have submitted a response.
With the current setup, if a user was watching traffic with something like FireBug, they could easily see the rejoinders before having to answer the question.