Skip to content

Cannot select auto-grading behaviour during assignment creation #77

@Paul2708

Description

@Paul2708

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?

<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:

<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

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions