Skip to content

Add validation for the "type" of AssessmentItem objects #4877

Closed

Description

@rtibbles

Desired behavior

A choice option added to the AssessmentItem class type field to ensure that the types are limited to those that are acceptable and understood by Studio and Kolibri.

The choices can simply be set to the question_choices value set in le_utils: https://github.com/learningequality/le-utils/blob/main/le_utils/constants/exercises.py#L40

Current behavior

There is no validation on the type of AssessmentItem objects.

Activity

  1. drona-gyawali commented on Jan 29, 2025

    @drona-gyawali
    Contributor

    Hey, @rtibbles could you please assign me this problem to solve?

  2. rtibbles commented on Jan 29, 2025

    @rtibbles
    MemberAuthor

    Yes - this should be fine for community contribution.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions