rage / mooc.fi

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

Refactor Prisma client extensions + add abbreviation to tag_translation #1203

Closed mipyykko closed 1 year ago

mipyykko commented 1 year ago

Simplify the code a bit by extending the Prisma client with some common use cases.

Also adds abbreviation to tag_translation -- not used anywhere for now.

codecov[bot] commented 1 year ago

Codecov Report

Merging #1203 (e5e1585) into master (ec6cce6) will decrease coverage by 0.19%. The diff coverage is 65.11%.

@@            Coverage Diff             @@
##           master    #1203      +/-   ##
==========================================
- Coverage   64.30%   64.11%   -0.19%     
==========================================
  Files         125      124       -1     
  Lines        5306     5309       +3     
  Branches     1238     1238              
==========================================
- Hits         3412     3404       -8     
- Misses       1767     1776       +9     
- Partials      127      129       +2     
Flag Coverage Δ
backend 64.11% <65.11%> (-0.19%) :arrow_down:

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

Impacted Files Coverage Δ
backend/api/routes/completions.ts 58.02% <0.00%> (ø)
backend/bin/syncTMCUsers.ts 86.88% <ø> (ø)
backend/graphql/CompletionRegistered.ts 46.66% <0.00%> (+1.35%) :arrow_up:
backend/graphql/Exercise.ts 63.04% <ø> (ø)
backend/graphql/OpenUniversityRegistrationLink.ts 68.33% <ø> (ø)
backend/graphql/Organization.ts 65.93% <ø> (ø)
backend/graphql/StudyModule/model.ts 55.55% <ø> (ø)
backend/graphql/StudyModule/queries.ts 23.91% <ø> (ø)
backend/graphql/User/model.ts 34.96% <0.00%> (-0.79%) :arrow_down:
backend/graphql/UserCourseProgress.ts 29.66% <0.00%> (-0.60%) :arrow_down:
... and 24 more

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