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
f691b7b6
Commit
f691b7b6
authored
Dec 07, 2015
by
Sarina Canelake
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Remove all references to open_ended and s3 interfaces (ORA1)
parent
d887c0fe
Hide whitespace changes
Inline
Side-by-side
Showing
8 changed files
with
0 additions
and
75 deletions
+0
-75
cms/envs/bok_choy.auth.json
+0
-8
common/lib/xmodule/xmodule/tests/__init__.py
+0
-11
common/lib/xmodule/xmodule/x_module.py
+0
-4
lms/djangoapps/courseware/module_render.py
+0
-27
lms/envs/aws.py
+0
-3
lms/envs/bok_choy.auth.json
+0
-8
lms/envs/bok_choy.py
+0
-3
lms/envs/dev.py
+0
-11
No files found.
cms/envs/bok_choy.auth.json
View file @
f691b7b6
...
...
@@ -81,14 +81,6 @@
}
}
},
"OPEN_ENDED_GRADING_INTERFACE"
:
{
"grading_controller"
:
"grading_controller"
,
"password"
:
"password"
,
"peer_grading"
:
"peer_grading"
,
"staff_grading"
:
"staff_grading"
,
"url"
:
"http://localhost:18060/"
,
"username"
:
"lms"
},
"DJFS"
:
{
"type"
:
"s3fs"
,
"bucket"
:
"test"
,
...
...
common/lib/xmodule/xmodule/tests/__init__.py
View file @
f691b7b6
...
...
@@ -41,16 +41,6 @@ MODULE_DIR = path(__file__).dirname()
DATA_DIR
=
MODULE_DIR
.
parent
.
parent
.
parent
.
parent
/
"test"
/
"data"
open_ended_grading_interface
=
{
'url'
:
'blah/'
,
'username'
:
'incorrect_user'
,
'password'
:
'incorrect_pass'
,
'staff_grading'
:
'staff_grading'
,
'peer_grading'
:
'peer_grading'
,
'grading_controller'
:
'grading_controller'
,
}
class
TestModuleSystem
(
ModuleSystem
):
# pylint: disable=abstract-method
"""
ModuleSystem for testing
...
...
@@ -150,7 +140,6 @@ def get_test_system(course_id=SlashSeparatedCourseKey('org', 'course', 'run')):
},
node_path
=
os
.
environ
.
get
(
"NODE_PATH"
,
"/usr/local/lib/node_modules"
),
anonymous_student_id
=
'student'
,
open_ended_grading_interface
=
open_ended_grading_interface
,
course_id
=
course_id
,
error_descriptor_class
=
ErrorDescriptor
,
get_user_role
=
Mock
(
name
=
'get_test_system.get_user_role'
,
is_staff
=
False
),
...
...
common/lib/xmodule/xmodule/x_module.py
View file @
f691b7b6
...
...
@@ -1583,7 +1583,6 @@ class ModuleSystem(MetricsMixin, ConfigurableFragmentWrapper, Runtime):
replace_urls
,
descriptor_runtime
,
user
=
None
,
filestore
=
None
,
debug
=
False
,
hostname
=
""
,
xqueue
=
None
,
publish
=
None
,
node_path
=
""
,
anonymous_student_id
=
''
,
course_id
=
None
,
open_ended_grading_interface
=
None
,
s3_interface
=
None
,
cache
=
None
,
can_execute_unsafe_code
=
None
,
replace_course_urls
=
None
,
replace_jump_to_id_urls
=
None
,
error_descriptor_class
=
None
,
get_real_user
=
None
,
field_data
=
None
,
get_user_role
=
None
,
rebind_noauth_module_to_user
=
None
,
...
...
@@ -1678,9 +1677,6 @@ class ModuleSystem(MetricsMixin, ConfigurableFragmentWrapper, Runtime):
if
publish
:
self
.
publish
=
publish
self
.
open_ended_grading_interface
=
open_ended_grading_interface
self
.
s3_interface
=
s3_interface
self
.
cache
=
cache
or
DoNothingCache
()
self
.
can_execute_unsafe_code
=
can_execute_unsafe_code
or
(
lambda
:
False
)
self
.
get_python_lib_zip
=
get_python_lib_zip
or
(
lambda
:
None
)
...
...
lms/djangoapps/courseware/module_render.py
View file @
f691b7b6
...
...
@@ -412,31 +412,6 @@ def get_module_system_for_user(user, student_data, # TODO # pylint: disable=to
'waittime'
:
settings
.
XQUEUE_WAITTIME_BETWEEN_REQUESTS
}
# This is a hacky way to pass settings to the combined open ended xmodule
# It needs an S3 interface to upload images to S3
# It needs the open ended grading interface in order to get peer grading to be done
# this first checks to see if the descriptor is the correct one, and only sends settings if it is
# Get descriptor metadata fields indicating needs for various settings
needs_open_ended_interface
=
getattr
(
descriptor
,
"needs_open_ended_interface"
,
False
)
needs_s3_interface
=
getattr
(
descriptor
,
"needs_s3_interface"
,
False
)
# Initialize interfaces to None
open_ended_grading_interface
=
None
s3_interface
=
None
# Create interfaces if needed
if
needs_open_ended_interface
:
open_ended_grading_interface
=
settings
.
OPEN_ENDED_GRADING_INTERFACE
open_ended_grading_interface
[
'mock_peer_grading'
]
=
settings
.
MOCK_PEER_GRADING
open_ended_grading_interface
[
'mock_staff_grading'
]
=
settings
.
MOCK_STAFF_GRADING
if
needs_s3_interface
:
s3_interface
=
{
'access_key'
:
getattr
(
settings
,
'AWS_ACCESS_KEY_ID'
,
''
),
'secret_access_key'
:
getattr
(
settings
,
'AWS_SECRET_ACCESS_KEY'
,
''
),
'storage_bucket_name'
:
getattr
(
settings
,
'AWS_STORAGE_BUCKET_NAME'
,
'openended'
)
}
def
inner_get_module
(
descriptor
):
"""
Delegate to get_module_for_descriptor_internal() with all values except `descriptor` set.
...
...
@@ -725,8 +700,6 @@ def get_module_system_for_user(user, student_data, # TODO # pylint: disable=to
publish
=
publish
,
anonymous_student_id
=
anonymous_student_id
,
course_id
=
course_id
,
open_ended_grading_interface
=
open_ended_grading_interface
,
s3_interface
=
s3_interface
,
cache
=
cache
,
can_execute_unsafe_code
=
(
lambda
:
can_execute_unsafe_code
(
course_id
)),
get_python_lib_zip
=
(
lambda
:
get_python_lib_zip
(
contentstore
,
course_id
)),
...
...
lms/envs/aws.py
View file @
f691b7b6
...
...
@@ -449,9 +449,6 @@ CONTENTSTORE = AUTH_TOKENS.get('CONTENTSTORE', CONTENTSTORE)
DOC_STORE_CONFIG
=
AUTH_TOKENS
.
get
(
'DOC_STORE_CONFIG'
,
DOC_STORE_CONFIG
)
MONGODB_LOG
=
AUTH_TOKENS
.
get
(
'MONGODB_LOG'
,
{})
OPEN_ENDED_GRADING_INTERFACE
=
AUTH_TOKENS
.
get
(
'OPEN_ENDED_GRADING_INTERFACE'
,
OPEN_ENDED_GRADING_INTERFACE
)
EMAIL_HOST_USER
=
AUTH_TOKENS
.
get
(
'EMAIL_HOST_USER'
,
''
)
# django default is ''
EMAIL_HOST_PASSWORD
=
AUTH_TOKENS
.
get
(
'EMAIL_HOST_PASSWORD'
,
''
)
# django default is ''
...
...
lms/envs/bok_choy.auth.json
View file @
f691b7b6
...
...
@@ -108,14 +108,6 @@
}
}
},
"OPEN_ENDED_GRADING_INTERFACE"
:
{
"grading_controller"
:
"grading_controller"
,
"password"
:
"password"
,
"peer_grading"
:
"peer_grading"
,
"staff_grading"
:
"staff_grading"
,
"url"
:
"** OVERRIDDEN **"
,
"username"
:
"lms"
},
"SECRET_KEY"
:
""
,
"DJFS"
:
{
"type"
:
"s3fs"
,
...
...
lms/envs/bok_choy.py
View file @
f691b7b6
...
...
@@ -87,9 +87,6 @@ GRADES_DOWNLOAD = {
# Configure the LMS to use our stub XQueue implementation
XQUEUE_INTERFACE
[
'url'
]
=
'http://localhost:8040'
# Configure the LMS to use our stub ORA implementation
OPEN_ENDED_GRADING_INTERFACE
[
'url'
]
=
'http://localhost:8041/'
# Configure the LMS to use our stub EdxNotes implementation
EDXNOTES_PUBLIC_API
=
'http://localhost:8042/api/v1'
EDXNOTES_INTERNAL_API
=
'http://localhost:8042/api/v1'
...
...
lms/envs/dev.py
View file @
f691b7b6
...
...
@@ -175,17 +175,6 @@ if os.path.isdir(DATA_DIR):
EDX_PLATFORM_VERSION_STRING
=
os
.
popen
(
'cd
%
s; git describe'
%
REPO_ROOT
)
.
read
()
.
strip
()
############################ Open ended grading config #####################
OPEN_ENDED_GRADING_INTERFACE
=
{
'url'
:
'http://127.0.0.1:3033/'
,
'username'
:
'lms'
,
'password'
:
'abcd'
,
'staff_grading'
:
'staff_grading'
,
'peer_grading'
:
'peer_grading'
,
'grading_controller'
:
'grading_controller'
}
############################## LMS Migration ##################################
FEATURES
[
'ENABLE_LMS_MIGRATION'
]
=
True
FEATURES
[
'XQA_SERVER'
]
=
'http://xqa:server@content-qa.edX.mit.edu/xqa'
...
...
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