[PR #214] [MERGED] Feat/soft delete #388

Closed
opened 2026-03-03 11:29:43 +03:00 by kerem · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/dflow-sh/dflow/pull/214
Author: @manikanta9176
Created: 6/6/2025
Status: Merged
Merged: 6/6/2025
Merged by: @manikanta9176

Base: mainHead: feat/soft-delete


📝 Commits (6)

  • d92b5f1 feat: integrate soft delete functionality across multiple collections
  • 4cbcbff feat: implement soft delete functionality for various actions by updating records with deletedAt timestamp
  • 462d870 fix: update server settings link to include organisation context
  • d354ceb feat: implement soft delete functionality with before operation hooks and configuration for multiple collections
  • 04402ab feat: enhance beforeOperation hook to check admin panel access and role for read operations
  • 3387989 fix: remove debug logging from beforeOperation hook in soft delete plugin

📊 Changes

20 files changed (+322 additions, -109 deletions)

View changed files

📝 package.json (+8 -7)
📝 pnpm-lock.yaml (+97 -71)
📝 src/actions/cloud/aws/index.ts (+4 -1)
📝 src/actions/cloud/dFlow/index.ts (+4 -1)
📝 src/actions/dockerRegistry/index.ts (+4 -1)
📝 src/actions/gitProviders/index.ts (+4 -1)
📝 src/actions/project/index.ts (+8 -2)
📝 src/actions/securityGroups/index.ts (+4 -1)
📝 src/actions/server/index.ts (+4 -1)
📝 src/actions/service/index.ts (+8 -2)
📝 src/actions/sshkeys/index.ts (+4 -1)
📝 src/actions/templates/index.ts (+4 -1)
📝 src/app/(frontend)/(dashboard)/[organisation]/dashboard/project/[id]/page.tsx (+1 -1)
📝 src/app/(payload)/payload-admin/importMap.js (+21 -1)
📝 src/payload-types.ts (+28 -0)
📝 src/payload.config.ts (+26 -15)
📝 src/payload/collections/Projects/index.ts (+17 -0)
📝 src/queues/database/backup/internalBackupDelete.ts (+4 -1)
📝 src/queues/database/destroy.ts (+4 -1)
src/soft-delete.ts (+68 -0)

📄 Description

  • For now every thing in the website will be soft delete only.

🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/dflow-sh/dflow/pull/214 **Author:** [@manikanta9176](https://github.com/manikanta9176) **Created:** 6/6/2025 **Status:** ✅ Merged **Merged:** 6/6/2025 **Merged by:** [@manikanta9176](https://github.com/manikanta9176) **Base:** `main` ← **Head:** `feat/soft-delete` --- ### 📝 Commits (6) - [`d92b5f1`](https://github.com/dflow-sh/dflow/commit/d92b5f14837243b6663a0429fe4279b4f061f362) feat: integrate soft delete functionality across multiple collections - [`4cbcbff`](https://github.com/dflow-sh/dflow/commit/4cbcbff191f750f1f12cd38cc77443d81d3335ab) feat: implement soft delete functionality for various actions by updating records with deletedAt timestamp - [`462d870`](https://github.com/dflow-sh/dflow/commit/462d8704345bcd10824c12a58e4ca6ced1716fe4) fix: update server settings link to include organisation context - [`d354ceb`](https://github.com/dflow-sh/dflow/commit/d354ceb1eaa868ed0451a88c55ae10a8e4f82944) feat: implement soft delete functionality with before operation hooks and configuration for multiple collections - [`04402ab`](https://github.com/dflow-sh/dflow/commit/04402ab9701a195d500bd9da78f855bf6d887f83) feat: enhance beforeOperation hook to check admin panel access and role for read operations - [`3387989`](https://github.com/dflow-sh/dflow/commit/33879899245d359310a88f8084f04e5f48650d76) fix: remove debug logging from beforeOperation hook in soft delete plugin ### 📊 Changes **20 files changed** (+322 additions, -109 deletions) <details> <summary>View changed files</summary> 📝 `package.json` (+8 -7) 📝 `pnpm-lock.yaml` (+97 -71) 📝 `src/actions/cloud/aws/index.ts` (+4 -1) 📝 `src/actions/cloud/dFlow/index.ts` (+4 -1) 📝 `src/actions/dockerRegistry/index.ts` (+4 -1) 📝 `src/actions/gitProviders/index.ts` (+4 -1) 📝 `src/actions/project/index.ts` (+8 -2) 📝 `src/actions/securityGroups/index.ts` (+4 -1) 📝 `src/actions/server/index.ts` (+4 -1) 📝 `src/actions/service/index.ts` (+8 -2) 📝 `src/actions/sshkeys/index.ts` (+4 -1) 📝 `src/actions/templates/index.ts` (+4 -1) 📝 `src/app/(frontend)/(dashboard)/[organisation]/dashboard/project/[id]/page.tsx` (+1 -1) 📝 `src/app/(payload)/payload-admin/importMap.js` (+21 -1) 📝 `src/payload-types.ts` (+28 -0) 📝 `src/payload.config.ts` (+26 -15) 📝 `src/payload/collections/Projects/index.ts` (+17 -0) 📝 `src/queues/database/backup/internalBackupDelete.ts` (+4 -1) 📝 `src/queues/database/destroy.ts` (+4 -1) ➕ `src/soft-delete.ts` (+68 -0) </details> ### 📄 Description - For now every thing in the website will be soft delete only. --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
kerem 2026-03-03 11:29:43 +03:00
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/dflow#388
No description provided.