hpi-schul-cloud / gamification

A reusable microservice for gamification.
GNU Affero General Public License v3.0
45 stars 18 forks source link

Support "first" and "last" attribute for conditions #47

Closed sebastiankliem closed 6 years ago

sebastiankliem commented 6 years ago

Example: Badge "Be the first who submits a homework"

How can this be configured in the YAML?

corinnaj commented 6 years ago

I think we can do this by giving the badge only once in the scope of a course. The next time a SubmittedHomework event is triggered for the same courses, maxAwarded (which is implicitly 1) has already been reached.

cmfcmf commented 6 years ago

Closing this, because @corinnaj explained how it can be done. Feel free to reopen this if you have further questions.