Skip to content

Commit acd8d46

Browse files
authored
feat: update ora settings course app for clarity (#35550)
1 parent 3415372 commit acd8d46

File tree

1 file changed

+6
-5
lines changed

1 file changed

+6
-5
lines changed

lms/djangoapps/courseware/plugins.py

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -264,12 +264,12 @@ def legacy_link(course_key: CourseKey):
264264

265265
class ORASettingsApp(CourseApp):
266266
"""
267-
Course App config for ORA app.
267+
Course App config for Flexible Peer Grading ORA app.
268268
"""
269269

270270
app_id = "ora_settings"
271-
name = _("Open Response Assessment Settings")
272-
description = _("Course level settings for Open Response Assessment.")
271+
name = _("Flexible Peer Grading for ORAs")
272+
description = _("Course level settings for Flexible Peer Grading Open Response Assessments.")
273273
documentation_links = {
274274
"learn_more_configuration": settings.ORA_SETTINGS_HELP_URL,
275275
}
@@ -287,14 +287,15 @@ def is_enabled(cls, course_key: CourseKey) -> bool:
287287
"""
288288
Get open response enabled status from course overview model.
289289
"""
290-
return True
290+
course = get_course_by_id(course_key)
291+
return course.force_on_flexible_peer_openassessments
291292

292293
@classmethod
293294
def set_enabled(cls, course_key: CourseKey, enabled: bool, user: 'User') -> bool:
294295
"""
295296
Update open response enabled status in modulestore. Always enable to avoid confusion that user can disable ora.
296297
"""
297-
return True
298+
raise ValueError("Flexible Peer Grading cannot be enabled/disabled via this API.")
298299

299300
@classmethod
300301
def get_allowed_operations(cls, course_key: CourseKey, user: Optional[User] = None) -> Dict[str, bool]:

0 commit comments

Comments
 (0)