You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
feat(rankings): add Top Contributors ranking for open source contributions (#29)
Add a first-class "Top Contributors" ranking, on par with the existing
rankings (Top Performers, Guiding Stars, etc.), for points earned by
contributing to Codam's open source projects.
- Add a dedicated `contribution` fixed point type (variable amount,
decided per contribution by staff).
- Add the `Top Contributors` ranking definition (slug `top_contributors`,
title `Top Contributor %login`) fed by the `contribution` fixed type, so
it automatically gets season-end snapshots and title awards like the others.
- Add an admin form (and assign route) to award contribution points, tagging
them with the `contribution` fixed type so they count towards the ranking.
- Add dev script: migrate_contribution_scores.ts
(tag pre-existing custom contribution scores with the new fixed type).
awaitcreateRanking('Top Endeavors','Based on points gained through logtime','Top Endeavor %login',16800,['logtime','idle_logout']);
31
31
awaitcreateRanking('Philanthropists','Based on points gained through donating evaluation points to the pool','Philanthropist %login',16800,['point_donated']);
32
32
awaitcreateRanking('Community Leaders','Based on points gained through organizing events','Community Leader %login',12600,['event_private','event_basic','event_intermediate','event_advanced']);
33
+
awaitcreateRanking('Top Contributors','Based on points gained through contributing to Codam\'s open source projects','Top Contributor %login',0,['contribution']);
desc: "Bonus points awarded hourly during the final week of a season to top ranking users. This value is not used directly, as the actual points awarded depend on the ranking settings.",
90
90
points: 0,// not used directly
91
+
},
92
+
{
93
+
type: "contribution",
94
+
desc: "Points awarded for contributing to Codam's open source projects (e.g. the coalition system). The amount is decided per contribution by staff.",
95
+
points: 0,// variable; the amount is entered manually per contribution
<p>Use this form to award points to students who <b>contributed to Codam's open source projects</b> (for example the coalition system, CodamHero or the internal clustermap). These points count towards the <ahref="/rankings/top_contributors">Top Contributors</a> ranking.</p>
15
+
<pclass="mb-0">The amount of points is decided per contribution, depending on its size and impact.</p>
0 commit comments