Skip to content

Allow xblocks to clear state - #11371

Closed
efischer19 wants to merge 1 commit into
masterfrom
efischer/delete_student_state
Closed

Allow xblocks to clear state#11371
efischer19 wants to merge 1 commit into
masterfrom
efischer/delete_student_state

Conversation

@efischer19

Copy link
Copy Markdown
Contributor

My original task was to fix clear state specifically for ORA2 problems.
As I dug in, I noticed that the reset_student_attempts code was aware
of edx-submissions, but not openassessment.

Rather than adding another IDA for edx-platform to concern itself with,
I elected to make a way for any xblock to clear its state as a part
of this method, as that seems like a general problem.

As a nice side bonus, this edx-platform code no longer needs to know
about anything in edx-submissions, as openassessment will pass through
to get any submissions data removed as part of its clear method.

Sibling change to openedx/edx-ora2#862 and openedx/edx-submissions#33

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This block was causing scary-looking 400 errors in testing sometimes, I figured that since the above comments say it's possible for a score to exist even if no student module exists., it's okay to just log the lookup failure and continue here.

@efischer19

Copy link
Copy Markdown
Contributor Author

Note to reviewers: The automated jenkins tests (save some of the quality test, that's on me) are failing because jenkins doesn't know about the edx-submissions API changes. We'll have to release a new version of that IDA and then either merge the upgrade into master and rebase this PR, or include the upgrade as a part of this PR.

In either case, the failures are not unexpected and can be easily resolved.

My original task was to fix clear state specifically for ORA2 problems.
As I dug in, I noticed that the reset_student_attempts code was aware
of edx-submissions, but not openassessment.

Rather than adding another IDA for edx-platform to concern itself with,
I elected to make a way for *any* xblock to clear its state as a part
of this method, as that seems like a general problem.

As a nice side bonus, this edx-platform code no longer needs to know
about anything in edx-submissions, as openassessment will pass through
to get any submissions data removed as part of its clear method.
@efischer19
efischer19 force-pushed the efischer/delete_student_state branch from 6fe1d79 to de7fa90 Compare February 3, 2016 21:12
@efischer19 efischer19 changed the title Delete Student State ORA fix (Proof-of-concept) Allow xblocks to clear state Feb 3, 2016
@efischer19 efischer19 closed this Feb 24, 2016
@efischer19
efischer19 deleted the efischer/delete_student_state branch February 25, 2016 20:42
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant