Skip to content

Feature/permanent delete person (#579) #289

Feature/permanent delete person (#579)

Feature/permanent delete person (#579) #289

Triggered via push December 10, 2023 13:40
Status Success
Total duration 2d 23h 59m 5s
Artifacts

release.yml

on: push
Build API docker image
4m 17s
Build API docker image
Build migrations docker image
1m 7s
Build migrations docker image
Scan k8s manifests
19s
Scan k8s manifests
Build seed docker image
3m 39s
Build seed docker image
Release to dev
11s
Release to dev
Github release
2s
Github release
Release to prod
19s
Release to prod
Fit to window
Zoom out
Zoom in

Deployment protection rules

Reviewers, timers, and other rules protecting deployments in this run
Event Environments Comment
slavcho
approved Dec 13, 2023
prod

Annotations

1 warning
Release to prod
embed field value must be shorter than 1024, got 1175 [`3a41008`](https://github.com/podkrepi-bg/api/commit/3a41008a4f40714ca2a188e062a403715b94a570) Feature/permanent delete person (#579) * FEAT: created permanent delete methods in account.service.ts & auth.service.ts. * CHORE: DB entities * FEAT: refactor permanentDeleteUser. Add exception handling. * FEAT: change permanentDeleteUser in auth.service.ts logic so when the promise returned from the keycloak client is rejected, the prisma service will not be called to delete the user in the db. Also, some reformatting the code as per prettier conf. * FEAT: improved the permanentDeleteUser promise chain and write some tests * FEAT: added safeguard to ensure that the deleted person is not corporate. Also, the tests ware updated. * FEAT: fix if to check the array length and adjust tests. * FIX: wrong .env commit * FIX: wrong .env commit #2 * CHORE: reformat. * Run yarn format * FIX: check for corporate profile to use companyId. * FIX: return organizer in the if statement & adjust tests * CHORE: update comment * FIX: made if in deleteUser() more readable --------- Co-authored-by: Alexander Petkov <[email protected]>