Closed jdjoshuadavison closed 1 year ago
Thanks for your message. I can’t reproduce your issue. Can you please upgrade Flexible Editor to the latest version and then provide a video or a more detailed description on how to reproduce?
We upgraded to the latest version this morning, we hadn't noticed the problem before then, but can't see definitively that it wasn't a problem before then. I just tested it on a different collection, and the problem isn't present there. So its only occurring on this one specific collection. I'll keep digging and see if I can work out what's different between the 2 collections.
OK, I will close this for now. Let me know if it is something that needs to be fixed.
I have spent the last 45 minutes doing tests. It is only occurring on this one collection. But there are no errors in browser console. Now errors in the docker logs. The config all looks correct and its working absolutely fine outside of the drawer.
Tomorrow I will take a backup of my database, then start removing things from the content model and see if we can find whats causing it.
Will keep you updated. But if you've got any wild theories, or suggestions on how to debug this, please let me know!
@formfcw Okay, so after a lot of trial and error, I started to think this was a timing issue. It was happening on this specific collection because the data model is the largest one we have. I tested the theory by using a much simpler content model and throttling my network connection (see video at the bottom of this message).
On complex models, or on slower network connections, when you open a related item in the drawer, some of the flexible editor fields (especially ones with related nodes), fail to render the content. This a significant problem because if a user saves the changes, it sets the field that field to render to null.
Github limit is 10MB, so this is a very quick video showing the issue.
Does it work with v1.1.0
?
We tested the below versions. There appears to have been a change with how Directus renders fields in the drawer with version 10.5.0. There's a visible difference to how all fields load in the drawer from 10.5.0, but Flexible Editor fields are the only ones that aren't working.
Directus 10.7.0-beta.0 ❌ Directus 10.6.1 ❌ Directus 10.6.0 ❌ Directus 10.5.0 ❌ Directus 10.4.3 ✅
Directus 10.6.1 ❌
Fixed with v1.1.5
Really appreciate your speed on this one! Thanks.
Describe the bug When you open a related item and it opens in a drawer, the flexible editor fields are always empty, even when there should be content.
To Reproduce
Flexible Editor Version: 1.1.3
Directus Version: 10.6.1