-
Notifications
You must be signed in to change notification settings - Fork 70
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
Don't delete misplaced items on final attempt #106
Conversation
Thanks for the pull request, @itsjeyd! It looks like you're a member of a company that does contract work for edX. If you're doing this work as part of a paid contract with edX, you should talk to edX about who will review this pull request. If this work is not part of a paid contract with edX, then you should ensure that there is an OSPR issue to track this work in JIRA, so that we don't lose track of your pull request. To automatically create an OSPR issue for this pull request, just visit this link: https://openedx-webhooks.herokuapp.com/github/process_pr?repo=edx-solutions%2Fxblock-drag-and-drop-v2&number=106 |
|
👍 Note that you have test failures though |
👍 Please correct failures before merging. |
Trying to reproduce the failure - I'll report back shortly. On Sep 29, 2016 12:39, "Albert (AJ) St. Aubin" notifications@github.com
|
479b8dd
to
b9ff188
Compare
@cahrens, @staubina, I ran the full integration test suite locally, and could not reproduce any of the errors. Looks like some Travis flakyness, as usual. In any case, I just squashed the last fixup, and pushed again. The code in place is exactly the same, but let's see if Travis behaves a little better this time around. |
@cahrens @staubina Thanks for reviewing! Looks like we got a green build. Thanks @arbrandes for investigating. @sstack22 Can I get you to have a quick look at this as well? Thanks! |
@arbrandes One more thing: To release this, we'll need to open a version bump PR against edx-platform. Could you update the version number in |
@arbrandes It looks like this is no longer a green build, can you investigate this? @sstack22 Let me know when you've reviewed this. I was asked to merge it. Thanks! |
@bdero, hey, long time no see! :) I cannot reproduce these failures locally. It seems, once more, these are due to Travis being flaky. I'm just going to try issuing a rebuild, if I can - if not, I'll just push a rebase. |
In assessment mode, don't delete misplaced items from the user's state when handling the final attempt. This is a server-side change to match what Javascript already does: upon submitting the final attempt, misplaced items are left on the board. However, since the corresponding state was deleted server-side, upon refreshing the page items were returned to the bank.
Thanks @arbrandes! @sstack22 The tests are passing here again so this is all ready for your review. :) |
@sstack22 To be able to plan for this, when would you be able to review? |
@antoviaque - thanks for the ping :) I'll review now. |
👍 ! |
@sstack22 Great, thank you : ) |
Description
In assessment mode, don't delete misplaced items from the user's state when handling the final attempt.
This is a server-side change to match what Javascript already did. In other words, upon submitting the final attempt, misplaced items were already left on the board. However, since the corresponding state was deleted server-side, upon refreshing the page the items were returned to the bank.
Author
@arbrandes
OpenCraft review via open-craft#13.
Dependencies
None
JIRA
None
Sandbox URLs
Latest commit
Testing instructions
staff@example.com
.Staff Debug Info
, andDelete Student State
for thestaff@example.com
user.Submit
twice, so that you only have one attempt left.Submit
.Screenshots
Wrongly placed item is still there after refreshing the page.
Reviewers
a11y:This is a bug fix that doesn't introduce new workflows (or alter existing ones).