Skip to content

Assessment criteria order changes randomly after saving ([team] programming exercises) #12059

@rabeatwork

Description

@rabeatwork

Describe the bug

When editing the assessment criteria of a programming exercise, the order of criteria changes after saving. I enter the assessment criteria in a specific order, but after clicking 'Save', some items are rearranged seemingly at random. This affects both the order of categories and the order of individual assessment criteria within categories.

I noticed this especially when creating a larger number of assessment criteria. The reordering does not always happen in the same way, which makes it feel unpredictable.

To Reproduce

  1. Open an existing programming exercise (or create a new one).
  2. Edit the exercise.
  3. Add or edit the assessment criteria (including categories).
  4. Click Save.
  5. Go to Assessment Dashboard
  6. Observe that categories and/or criteria are rearranged.

Expected behavior

Assessment criteria (including categories and items within categories) should be rendered and stored in the exact order in which they were entered in the exercise editor.

Screenshots

No response

Which version of Artemis are you seeing the problem on?

8.7.4

What browsers are you seeing the problem on?

Chrome

Additional context

I can provide the Markdown and screenshots used for the criteria if needed. But didn't want to add them here.

Relevant log output

Metadata

Metadata

Assignees

No one assigned

    Labels

    assessmentPull requests that affect the corresponding modulebugexercisePull requests that affect the corresponding moduleprogrammingPull requests that affect the corresponding module

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions