Skip to content

Implemented Soft delete#302

Merged
RUKAYAT-CODER merged 3 commits into
rinafcode:mainfrom
Chinonso-Peter:main
Apr 23, 2026
Merged

Implemented Soft delete#302
RUKAYAT-CODER merged 3 commits into
rinafcode:mainfrom
Chinonso-Peter:main

Conversation

@Chinonso-Peter
Copy link
Copy Markdown
Contributor

Implemented.

Soft delete is now wired into the audited delete flows by adding @DeleteDateColumn() to the affected entities and replacing hard deletes with softDelete/softRemove. The main behavior changes are in users.service (line 26), courses.service (line 185), tenancy.service (line 30), localization.service (line 151), automation.service (line 130), segmentation.service (line 123), and backup-queue.processor.ts (line 231). Parent deletes now also soft-delete dependent children where the old flow implied removal, like course modules/lessons, tenant-related records, automation actions/triggers, segment rules, campaign recipients, and assessment questions.

I also covered the main soft-delete edge cases: user and tenant uniqueness checks now look withDeleted to avoid ugly DB-level collisions, and localization create/import restores a previously deleted translation instead of failing on the unique key. npm run typecheck passed. I could not fully run lint:ci or format:check in this workspace because the local eslint/prettier CLIs are not available here, and npm ci is currently blocked by an out-of-sync lockfile.

closes #296

@drips-wave
Copy link
Copy Markdown

drips-wave Bot commented Apr 22, 2026

@Chinonso-Peter Great news! 🎉 Based on an automated assessment of this PR, the linked Wave issue(s) no longer count against your application limits.

You can now already apply to more issues while waiting for a review of this PR. Keep up the great work! 🚀

Learn more about application limits

@RUKAYAT-CODER
Copy link
Copy Markdown
Contributor

please fix CI
Kindly support the project with a star

@Chinonso-Peter
Copy link
Copy Markdown
Contributor Author

check @RUKAYAT-CODER and i'll be sure to support

@RUKAYAT-CODER RUKAYAT-CODER merged commit b4d746f into rinafcode:main Apr 23, 2026
6 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Soft Delete Implementation

2 participants