Prevent deletion of linked docs #1

Open
opened 2024-06-19 16:49:17 +00:00 by tma · 1 comment
Owner

If a document is linked to by another doc, prevent the deletion of the doc until all linked docs are no longer linking to it.

Alternatively, just warn the user what they're doing will break stuff

This really ought to be part of the standard payload spec IMO

If a document is linked to by another doc, prevent the deletion of the doc until all linked docs are no longer linking to it. **Alternatively, just warn the user what they're doing will break stuff** *This really ought to be part of the standard payload spec IMO*
tma added the
backend
label 2024-06-19 16:54:53 +00:00
Author
Owner

I'm thankfully not the first to identify this problem:

In fact, it is coming as an official feature in the future.

In the meantime careful typechecking on the frontend will have to suffice

I'm thankfully not the first to identify this problem: - https://github.com/iamacup/payload-relationship-enhancer - https://github.com/w41x/payload-bidirectional-relationships-plugin - https://gist.github.com/DanRibbens/438a64157553c5d954e3da3d579f0808 In fact, it is coming as an official feature in the future. In the meantime careful typechecking on the frontend will have to suffice
Sign in to join this conversation.
No Milestone
No project
No Assignees
1 Participants
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: autonomic-cooperative/nextload#1
No description provided.