-
Notifications
You must be signed in to change notification settings - Fork 4.2k
jeff/feature-timer-between-quiz-attempts #1838
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
Conversation
|
Hey Jeff -- hmm, that's a pretty handy feature. Two things that jump out before I get to a detailed review:
|
|
I have two concerns with this PR.
@nparlante and @jaericson pls explain how this works, thanks. |
|
Re:1. The two failed tests on my original commit were from not realizing that there is a file I needed to add my additional problem setting (i.e. ones that show up when you click on a problem's settings in the EdX UI, like number of attempts and weight of problem) to... this doesn't look like a hard fix. The assertion failing was that "5 != 6" because there were only 5 setting options in that file, but I added a 6th. Re:2. I think capa problem does hold state in some database somewhere. For example, it does so to remember the last set of student answers or to remember if a problem is done or not. See the function |
|
@sefk As we chatted, I guess this Scope.user_state thing makes it happen magically. I grepped around it is used in a few places but that's all I know. last_submission_time = Date(help="Last submission time", scope=Scope.user_state) |
|
Capa does indeed store state--xblock fields are automagically saved in the db. |
|
I added in 12 test cases that should cover everything you mentioned in your above comment. Feel free to let me know if there's anything else I should add or that you want to test for. Thanks! |
|
Woohoo, passed! @sefk |
|
That's great thanks @jaericson |
|
Just rebased this branch so that commits from others aren't showing up anymore. Please checkout this branch anew if you want to test anything on it. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
As we talked about -- add an explanatory comment here about how this parallels the existing test.
|
Ok, I squished this down to a single commit, like you do. |
|
I'm going to close this one in favor of an umbrella PR of the shuffle feature and all of Jeff's stuff, staring with this: https://github.com/edx/edx-platform/pull/1995 |
@nparlante
Creating pull request for the "timer between quiz attempts" feature on any problem type.
This allows the author to specify how many seconds they want to lock out a student from submitting another attempt of the same quiz.
How do you enable this feature? For a problem, go to its settings in EdX (within a problem, click on the EDIT button and then click on the SETTINGS button). One of the settings listed should read
Timer Between Attempts. By default, there are 0 seconds a student must wait between submissions, but you can increase this.Note that a student can still start another attempt of the quiz, but will only be disallowed from submitting again until time has elapsed. This is to prevent students from rapidly submitting quiz attempts, particularly for quizzes that offer hundreds of allowed attempts.