Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
E
edx-platform
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
edx
edx-platform
Commits
d19fbca1
Commit
d19fbca1
authored
Mar 27, 2017
by
sanfordstudent
Committed by
GitHub
Mar 27, 2017
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #14727 from edx/sstudent/upgrade-dnd
upgrade drag n drop
parents
059423d6
d2a131be
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
16 additions
and
8 deletions
+16
-8
lms/djangoapps/instructor_task/api_helper.py
+4
-1
lms/djangoapps/instructor_task/tasks.py
+1
-5
lms/djangoapps/instructor_task/tasks_helper.py
+9
-0
requirements/edx/github.txt
+2
-2
No files found.
lms/djangoapps/instructor_task/api_helper.py
View file @
d19fbca1
...
...
@@ -246,7 +246,10 @@ def check_arguments_for_rescoring(usage_key):
corresponding module doesn't support rescoring calls.
"""
descriptor
=
modulestore
()
.
get_item
(
usage_key
)
if
not
hasattr
(
descriptor
,
'module_class'
)
or
not
hasattr
(
descriptor
.
module_class
,
'rescore_problem'
):
# TODO: Clean this up as part of TNL-6594 when CAPA uses the ScorableXBlockMixin
if
(
not
hasattr
(
descriptor
,
'module_class'
)
or
not
hasattr
(
descriptor
.
module_class
,
'rescore_problem'
)
)
and
not
hasattr
(
descriptor
,
'rescore'
):
msg
=
"Specified module does not support rescoring."
raise
NotImplementedError
(
msg
)
...
...
lms/djangoapps/instructor_task/tasks.py
View file @
d19fbca1
...
...
@@ -75,11 +75,7 @@ def rescore_problem(entry_id, xmodule_instance_args):
action_name
=
ugettext_noop
(
'rescored'
)
update_fcn
=
partial
(
rescore_problem_module_state
,
xmodule_instance_args
)
def
filter_fcn
(
modules_to_update
):
"""Filter that matches problems which are marked as being done"""
return
modules_to_update
.
filter
(
state__contains
=
'"done": true'
)
visit_fcn
=
partial
(
perform_module_state_update
,
update_fcn
,
filter_fcn
)
visit_fcn
=
partial
(
perform_module_state_update
,
update_fcn
,
None
)
return
run_main_task
(
entry_id
,
visit_fcn
,
action_name
)
...
...
lms/djangoapps/instructor_task/tasks_helper.py
View file @
d19fbca1
...
...
@@ -536,6 +536,15 @@ def rescore_problem_module_state(xmodule_instance_args, module_descriptor, stude
msg
=
"Specified problem does not support rescoring."
raise
UpdateProblemModuleStateError
(
msg
)
# TODO: Remove the first part of this if-else with TNL-6594
# We check here to see if the problem has any submissions. If it does not, we don't want to rescore it
if
hasattr
(
instance
,
"done"
):
if
not
instance
.
done
:
return
UPDATE_STATUS_SKIPPED
else
:
if
instance
.
has_submitted_answer
():
return
UPDATE_STATUS_SKIPPED
# Set the tracking info before this call, because it makes downstream
# calls that create events. We retrieve and store the id here because
# the request cache will be erased during downstream calls.
...
...
requirements/edx/github.txt
View file @
d19fbca1
...
...
@@ -84,7 +84,7 @@ git+https://github.com/solashirai/crowdsourcehinter.git@518605f0a95190949fe77bd3
-e git+https://github.com/pmitros/RateXBlock.git@367e19c0f6eac8a5f002fd0f1559555f8e74bfff#egg=rate-xblock
-e git+https://github.com/pmitros/DoneXBlock.git@release-2016-08-10#egg=done-xblock
git+https://github.com/edx/edx-milestones.git@v0.1.10#egg=edx-milestones==0.1.10
git+https://github.com/edx/xblock-utils.git@v1.0.
3#egg=xblock-utils==1.0.3
git+https://github.com/edx/xblock-utils.git@v1.0.
4#egg=xblock-utils==1.0.4
-e git+https://github.com/edx-solutions/xblock-google-drive.git@138e6fa0bf3a2013e904a085b9fed77dab7f3f21#egg=xblock-google-drive
-e git+https://github.com/edx/edx-reverification-block.git@0.0.5#egg=edx-reverification-block==0.0.5
git+https://github.com/edx/edx-user-state-client.git@1.0.1#egg=edx-user-state-client==1.0.1
...
...
@@ -93,4 +93,4 @@ git+https://github.com/edx/edx-proctoring.git@0.18.0#egg=edx-proctoring==0.18.0
# Third Party XBlocks
git+https://github.com/open-craft/xblock-poll@v1.2.6#egg=xblock-poll==1.2.6
git+https://github.com/edx-solutions/xblock-drag-and-drop-v2@v2.0.1
5#egg=xblock-drag-and-drop-v2==2.0.15
git+https://github.com/edx-solutions/xblock-drag-and-drop-v2@v2.0.1
7#egg=xblock-drag-and-drop-v2==2.0.17
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment