rage / mooc.fi

https://mooc.fi
5 stars 6 forks source link

Feat: add user course points consumer #1154

Closed mipyykko closed 1 year ago

mipyykko commented 1 year ago

Consume multiple user-points (ie. exercise completions) for one user for one course.

Consumer listens to user-course-points-batch topic; the message format is updated in the Kafka documentation.

codecov[bot] commented 1 year ago

Codecov Report

Merging #1154 (c9f73f5) into master (82e099d) will decrease coverage by 0.44%. The diff coverage is 65.82%.

@@            Coverage Diff             @@
##           master    #1154      +/-   ##
==========================================
- Coverage   67.34%   66.90%   -0.44%     
==========================================
  Files         120      122       +2     
  Lines        4756     4856     +100     
  Branches     1055     1069      +14     
==========================================
+ Hits         3203     3249      +46     
- Misses       1441     1492      +51     
- Partials      112      115       +3     
Flag Coverage Δ
backend 66.90% <65.82%> (-0.44%) :arrow_down:

Flags with carried forward coverage won't be shown. Click here to find out more.

Impacted Files Coverage Δ
...r/common/userPoints/exerciseCompletionFunctions.ts 55.47% <55.47%> (ø)
backend/util/result.ts 62.96% <70.00%> (-0.68%) :arrow_down:
...ackend/bin/kafkaConsumer/common/userPoints/util.ts 89.65% <89.65%> (ø)
...nd/bin/kafkaConsumer/common/userPoints/saveToDB.ts 94.73% <92.85%> (+6.70%) :arrow_up:
backend/bin/kafkaConsumer/common/userFunctions.ts 88.34% <100.00%> (ø)
backend/lib/errors.ts 57.89% <100.00%> (+3.87%) :arrow_up:

:mega: We’re building smart automated test selection to slash your CI/CD build times. Learn more