Skip to content

Participation rate wrongly calculated #11517

@ValentinHerrmann

Description

@ValentinHerrmann

Describe the bug

The participation rate of an exercise seems to consider the instructors for the participation amount, but not the overall. For an example, see section 'screenshots'.

To Reproduce

  1. Go to a course that has at least one instructor and two students
  2. Create an exercise (I noticed it on a modeling exercise, but this should be independent)
  3. Participate in the exercise with one student and one instructor account.
  4. See error on exercise overview in instructor view: '2 of 2 participated' (instead of 1 of 2 (better) or 2of 3)

Expected behavior

I expect the participation rate to either

  1. Do not count instructors as participants and exclude them from the '100%'.
  2. Count instructor participations to

I consider 1. the better solution, as instructors will usually not participate and are not relevant to the statistics if you, e.g., want to see if everyone participated in an exercise.

Screenshots

27 of 27 participated
Image

But the first two of the participants are instructors, while only 25 students participated.
(would expect to see 25 of 27)
Image

Which version of Artemis are you seeing the problem on?

8.4.3

What browsers are you seeing the problem on?

Chrome

Additional context

No response

Relevant log output

Metadata

Metadata

Assignees

Labels

bugcorePull requests that affect the corresponding moduleexamPull requests that affect the corresponding moduleexercisePull requests that affect the corresponding modulelecturePull requests that affect the corresponding modulemodelingPull 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