Skip to content

Commit

Permalink
Feature flag for auto-grading
Browse files Browse the repository at this point in the history
  • Loading branch information
marcospri committed Sep 3, 2024
1 parent acf7f16 commit 9c57166
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 1 deletion.
2 changes: 1 addition & 1 deletion lms/models/application_instance.py
Original file line number Diff line number Diff line change
Expand Up @@ -54,8 +54,8 @@ class ApplicationSettings(JSONSettings):
name="Auto Assigned To Organisation",
),
JSONSetting("hypothesis", "instructor_email_digests_enabled", asbool),
JSONSetting("hypothesis", "instructor_dashboard", asbool),
JSONSetting("hypothesis", "lti_13_sourcedid_for_grading", asbool),
JSONSetting("hypothesis", "auto_grading_enabled", asbool),
)


Expand Down
3 changes: 3 additions & 0 deletions lms/resources/_js_config/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -361,6 +361,9 @@ def enable_file_picker_mode( # noqa: PLR0913
"formAction": form_action,
"formFields": form_fields,
"promptForTitle": prompt_for_title,
"autoGradingEnabled": self._application_instance.settings.get(
"auto_grading_enabled", False
),
# The "content item selection" that we submit to Canvas's
# content_item_return_url is actually an LTI launch URL with
# the selected document URL or file_id as a query parameter. To
Expand Down
1 change: 1 addition & 0 deletions lms/static/scripts/frontend_apps/config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -83,6 +83,7 @@ export type FilePickerConfig = {
formAction: string;
formFields: Record<string, string>;
promptForTitle: boolean;
autoGradingEnabled: boolean;
deepLinkingAPI?: APICallInfo;
ltiLaunchUrl: string;
blackboard: {
Expand Down
1 change: 1 addition & 0 deletions lms/templates/admin/application_instance/show.html.jinja2
Original file line number Diff line number Diff line change
Expand Up @@ -114,6 +114,7 @@
<legend class="label has-text-centered">General settings</legend>
{{ settings_checkbox('Enable instructor email digests', 'hypothesis', 'instructor_email_digests_enabled') }}
{{ settings_checkbox("Use alternative parameter for LTI1.3 grading", "hypothesis", "lti_13_sourcedid_for_grading", default=False) }}
{{ settings_checkbox("Enable auto-grading", "hypothesis", "auto_grading_enabled", default=False) }}
</fieldset>
<fieldset class="box">
<legend class="label has-text-centered">Canvas settings</legend>
Expand Down

0 comments on commit 9c57166

Please sign in to comment.