fix: remove unused waffle switch for optimizing learner retrieval (#37513)

This commit is contained in:
Tarun Tak
2025-10-23 05:23:07 +05:30
committed by GitHub
parent f05fb639c8
commit 067ca72ed0

View File

@@ -3,18 +3,11 @@ This module contains various configuration settings via
waffle switches for the instructor_task app.
"""
from edx_toggles.toggles import WaffleSwitch
from openedx.core.djangoapps.waffle_utils import CourseWaffleFlag
WAFFLE_NAMESPACE = 'instructor_task'
# Waffle switches
OPTIMIZE_GET_LEARNERS_FOR_COURSE = WaffleSwitch( # lint-amnesty, pylint: disable=toggle-missing-annotation
f'{WAFFLE_NAMESPACE}.optimize_get_learners_for_course', __name__
)
# Course override flags
GENERATE_PROBLEM_GRADE_REPORT_VERIFIED_ONLY = CourseWaffleFlag( # lint-amnesty, pylint: disable=toggle-missing-annotation
f'{WAFFLE_NAMESPACE}.generate_problem_grade_report_verified_only', __name__
@@ -37,13 +30,6 @@ USE_ON_DISK_GRADE_REPORTING = CourseWaffleFlag(
)
def optimize_get_learners_switch_enabled():
"""
Returns True if optimize get learner switch is enabled, otherwise False.
"""
return OPTIMIZE_GET_LEARNERS_FOR_COURSE.is_enabled()
def problem_grade_report_verified_only(course_id):
"""
Returns True if problem grade reports should only