[BUG](Collections): Items in one-to-many relationship (many-side) cannot be removed in certain scenarios #1330
Replies: 2 comments
-
This is a complexity that I need to figure out and will look deeper into. We started a branch that updates relationships on delete using a flag called "cascade" on the relationship. Next will be looking into the same behavior for publishing and drafts. One problem I'm anticipating is that if a related item is published, then unpublished, then published again, there is no way that republishing will restore it on the updated collections that related to that item. Where as the way it works now that ID is persisted and this workflow would maintain the relationship. Related work: #1209 |
Beta Was this translation helpful? Give feedback.
-
I'm moved this to a discussion since there isn't anything to "fix" right now. |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Bug Report
Let's say there are two collections:
Articles
andTags
.published
state.When a tag is attached to an article and that tag is either unpublished or deleted, it still leaves an ID behind, as shown in an
...cfb
item below. This should not happen.Expected Behavior
If there is a constraint when a tag is only readable after being
published
, it should disappear from the response when being marked asdraft
.The tag should also disappear after its deletion.
Current Behavior
Already shown above.
Possible Solution
N/a.
Steps to Reproduce
Detailed Description
Payload: v1.1.3
MongoDB: v6.0.1 Community
Beta Was this translation helpful? Give feedback.
All reactions