• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

GEWIS / sudosos-backend / 21352444260
90%

Build:
DEFAULT BRANCH: develop
Ran 26 Jan 2026 09:27AM UTC
Jobs 1
Files 253
Run time 1min
Badge
Embed ▾
README BADGES
x

If you need to use a raster PNG badge, change the '.svg' to '.png' in the link

Markdown

Textile

RDoc

HTML

Rst

26 Jan 2026 09:21AM UTC coverage: 89.574% (-0.05%) from 89.623%
21352444260

push

github

web-flow
feat: change user type (#724)

* feat: add user type updated email notifications

Adds 2 new email notifications. Both of the notifications notify the user of the
change of the type of their account. One of them contains a password reset link,
this is needed for accounts that get changed from MEMBER to LOCAL_USER.

* feat: add PATCH /users/{id}/usertype endpoint

This endpoint is used to update the type of a user from MEMBER to LOCAL_USER
or vice versa.

A notification is sent to the user via email to notify them of the change and
to allow them to set a password.

* feat: implicitly convert LOCAL_USER to MEMBER upon gewisweb login

If a LOCAL_USER logs in through gewisweb, the account is implicitly converted to
a MEMBER account.

* feat: reset local password when LOCAL_USER is converted to MEMBER

When an account is converted to a MEMBER account they should from that point on
log in through gewisweb, so their local password can be reset.

* test: add unit tests

* feat: only allow update to MEMBER if user has memberId

It is only allowed to update from LOCAL_USER to MEMBER if there is already a
 memberId present for the user (Read: If the user previously was a member user)

1706 of 2056 branches covered (82.98%)

Branch coverage included in aggregate %.

82 of 96 new or added lines in 10 files covered. (85.42%)

8810 of 9684 relevant lines covered (90.97%)

1000.85 hits per line

New Missed Lines in Diff

Lines Coverage ∆ File
2
83.33
src/mailer/messages/user-type-updated.ts
6
85.81
-0.37% src/controller/user-controller.ts
6
64.71
src/mailer/messages/user-type-updated-with-reset.ts
Jobs
ID Job ID Ran Files Coverage
1 21352444260.1 26 Jan 2026 09:27AM UTC 253
89.57
GitHub Action Run
Source Files on build 21352444260
  • Tree
  • List 253
  • Changed 10
  • Source Changed 9
  • Coverage Changed 10
Coverage ∆ File Lines Relevant Covered Missed Hits/Line Branch Hits Branch Misses
  • Back to Repo
  • Github Actions Build #21352444260
  • 908d9cc7 on github
  • Prev Build on develop (#21316841385)
  • Next Build on develop (#21352998320)
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc