-
Notifications
You must be signed in to change notification settings - Fork 2
Open
Description
Describe the bug
It's not possible to switch the default auto-grading behavior while creating a new assignment.
To Reproduce
Aufzeichnung.2025-09-15.120658.mp4
Additional context
That's the responsible code for the dialog. Maybe it's due to the oddly-looking id?
grader-labextension/src/components/util/dialog.tsx
Lines 571 to 584 in 1dfec6e
<TextField | |
select | |
id="auto-grade=ing-type-select" | |
value={formik.values.autograde_type} | |
label="Auto-Grading Behaviour" | |
placeholder="Grading" | |
onChange={e => { | |
formik.setFieldValue('automatic_grading', e.target.value); | |
}} | |
> | |
<MenuItem value={'unassisted'}>No Automatic Grading</MenuItem> | |
<MenuItem value={'auto'}>Automatic Grading</MenuItem> | |
<MenuItem value={'full_auto'}>Fully Automatic Grading</MenuItem> | |
</TextField> |
However, changing the auto-grading behavior in the assignment settings just works fine:
grader-labextension/src/components/coursemanage/settings/settings.tsx
Lines 299 to 312 in 1dfec6e
<TextField | |
select | |
id="auto-grading-type-select" | |
value={formik.values.settings.autograde_type} | |
label="Auto-Grading Behaviour" | |
placeholder="Grading" | |
onChange={(e) => { | |
formik.setFieldValue('settings.autograde_type', e.target.value); | |
}} | |
> | |
<MenuItem value="auto">Automatic Grading</MenuItem> | |
<MenuItem value="full_auto">Fully Automatic Grading</MenuItem> | |
<MenuItem value="unassisted">No Automatic Grading</MenuItem> | |
</TextField> |
Metadata
Metadata
Assignees
Labels
No labels