Skip to content

Wrong category used for overriding #163

@lainets

Description

@lainets

Submit and active element exercises both override using the "submit" category no matter what category was configured for them.

category = 'submit'
data.update({
'key': name,
'title': env.config.submit_title.format(
key_title=key_title, config_title=config_title
),
'category': 'active elements',
'max_submissions': self.options.get('submissions', data.get('max_submissions', env.config.ae_default_submissions)),
})
data.setdefault('status', self.options.get('status', 'unlisted'))
self.apply_override(data, category)

self.apply_override(data, category)

Fixing this will affect courses that rely on overriding using the "submit" category. Backwards compatibility is diffifult and cumbersome to implement. Fortunately, a-plus-rst-tools is updated separately for each course, so backwards compatibility isn't necessary. It isn't known how many if any courses rely on overriding with the "submit" category.

Fix this for:

  • active elements b5d005d
  • submit exercises

Metadata

Metadata

Assignees

No one assigned

    Labels

    area: configCourse configurationtype: bugThis is a bug which is critical for the correct operation of the system

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions