Open tobiasiv opened 1 month ago
Hey @tobiasiv,
I was able to reproduce your issue. However, in order to reproduce this issue, you have to disable the drafts: { autosave: <number> }
setting in the collection configuration.
In the process of reproducing your issue I stumbled upon two other issues that seem related to the creation of documents from the "Join" type Drawer component.
This relationship field has the following invalid relationships: {Id} 0
, where {Id} is the numerical id of the relation objectI'm attaching two videos to show these issues in practice.
https://github.com/user-attachments/assets/b418aa26-8f6e-4dff-8bb3-fc255ab42f2b
The above video shows a reproduction of this issue, as well as the issue mentioned in (1).
https://github.com/user-attachments/assets/c259f707-ec5a-4534-85ff-480ac7f8801d
This second video shows (2), and requires you have autosave enabled. In the video, I have an autosave interval of 100. No errors were generated.
Hey @DanRibbens - It seems this issue might have been missed. Could you please take a look? I’d really appreciate it!
Link to reproduction
No response
Environment Info
Describe the Bug
I'm working with Postgres and using numeric IDs. When adding a new entry to a join-field-table, the parent relationship should be automatically set for the new entry. However, the parent is not being set correctly. When I attempt to save the newly created record, I get the following error: "This relationship field has the following invalid relationships: 1 0." This issue might be related to the ID type, I've experienced a similar error in the past.
Reproduction Steps
pages
collectionusers
collectionAdapters and Plugins
No response