Skip to content

Grader does not see exercise status enrollment from the index.yaml during grading #118

Description

@markkuriekkinen

If the exercise status is set to "enrollment" by using the append_content variable in conf.py, then the grader code in the form feedback does not know that the exercise is for enrollment. The feedback contains the "correct/incorrect" lines that have been removed in enrollment exercises. In other words, the is_enrollment_exercise only sees the status defined in the exercise config.yaml and it is unaware of the exercise status in index.yaml. (Using append_content adds the status only in index.yaml.)

def is_enrollment_exercise(self):
return self.exercise.get('status', '') in ('enrollment', 'enrollment_ext')

If the status "enrollment" is added in the questionnaire RST directive or manually in the exercise config.yaml, then it works.

Activity

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    area: configRelated to course configurationarea: grading quizzesQuiz featureeffort: daysSolving this issue could take days. Starting with the creation of a new branch to the mergingexperience: moderaterequired knowledge estimatepriority: lowrequester: Aalto teacherThe issue is raised by a teacher from Aalto Universitytype: bugThis is a bug.

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions