rage / quizzes

Apache License 2.0
5 stars 5 forks source link

kafka_batch_publisher pushes points one user at a time #851

Closed mipyykko closed 1 year ago

mipyykko commented 1 year ago

Use the new user-course-points-batch topic to speed up syncing: push all the exercise completions for given user in one message. Also pushes not attempted exercises.

Uses the old user-points-batch if USE_USER_POINTS_BATCH env is set to true. Also changed that to push not attempted exercises.

codecov[bot] commented 1 year ago

Codecov Report

Merging #851 (34fb9e9) into master (f462779) will decrease coverage by 0.19%. The diff coverage is 90.00%.

@@            Coverage Diff             @@
##           master     #851      +/-   ##
==========================================
- Coverage   90.52%   90.34%   -0.19%     
==========================================
  Files          64       64              
  Lines        2058     2061       +3     
  Branches      276      276              
==========================================
- Hits         1863     1862       -1     
- Misses        187      192       +5     
+ Partials        8        7       -1     
Impacted Files Coverage Δ
packages/backendv2/src/services/kafka.ts 71.92% <90.00%> (-5.85%) :arrow_down:

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