Skip to content

Commit

Permalink
Scope roster FF to the dashboard group
Browse files Browse the repository at this point in the history
  • Loading branch information
marcospri committed Nov 25, 2024
1 parent 25db53e commit 46802f5
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion lms/models/application_instance.py
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ class ApplicationSettings(JSONSettings):
JSONSetting("hypothesis", "lti_13_sourcedid_for_grading", asbool),
JSONSetting("hypothesis", "auto_grading_enabled", asbool),
JSONSetting("hypothesis", "auto_grading_sync_enabled", asbool),
JSONSetting("hypothesis", "dashboard_rosters", asbool),
JSONSetting("dashboard", "rosters", asbool),
JSONSetting("dashboard", "assignment_segments_filter_enabled", asbool),
)

Expand Down
2 changes: 1 addition & 1 deletion lms/services/dashboard.py
Original file line number Diff line number Diff line change
Expand Up @@ -182,7 +182,7 @@ def get_assignment_roster(
rosters_enabled = (
assignment.course
and assignment.course.application_instance.settings.get(
"hypothesis", "dashboard_rosters"
"dashboard", "rosters"
)
)
if rosters_enabled and self._roster_service.assignment_roster_exists(
Expand Down
2 changes: 1 addition & 1 deletion lms/templates/admin/application_instance/show.html.jinja2
Original file line number Diff line number Diff line change
Expand Up @@ -120,7 +120,7 @@
<fieldset class="box">
<legend class="label has-text-centered">Dashboard settings</legend>
{{ settings_checkbox("Enable segments filter in assignment view", "dashboard", "assignment_segments_filter_enabled", default=False) }}
{{ settings_checkbox("Enable roster data", "hypothesis", "dashboard_rosters", default=False) }}
{{ settings_checkbox("Enable roster data", "dashboard", "rosters", default=False) }}
</fieldset>
<fieldset class="box">
<legend class="label has-text-centered">Canvas settings</legend>
Expand Down
2 changes: 1 addition & 1 deletion tests/unit/lms/services/dashboard_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -240,7 +240,7 @@ def test_get_assignment_roster_with_roster_disabled(
def test_get_assignment_roster_with(
self, svc, application_instance, roster_service
):
application_instance.settings.set("hypothesis", "dashboard_rosters", True)
application_instance.settings.set("dashboard", "rosters", True)
assignment = factories.Assignment(
course=factories.Course(application_instance=application_instance)
)
Expand Down

0 comments on commit 46802f5

Please sign in to comment.