New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Switching collection from "Single Object" to normal breaks the collection display #7990
Comments
Just to add to discussion, it might be related to scaling the deployment to two instaces. I'm not sure why the inconsistency happens when using two separate instances connecting to the same DB. I'll investiage and post more details soon. |
@infomiho Are you using a shared provider for the cache? Like redis or memcached |
@rijkvanzanten Hey I've tried the same steps locally with running Docker and the same thing happens. I've disabled any form of caching. This is the env I'm using.
Also, switch back and forth between the types of collection, the previous data gets stuck. EDIT: One thing I discovered when I look at the response of But the |
This seems related to After inspecting the source code, it seems that schema cache is never cleared. Given that collection props like Prehaps calling |
This is not entirely true. The schema cache is cleared in various operations: directus/api/src/services/collections.ts Lines 440 to 442 in fa8ff60
That being said, it seems like it's not clearing it on update of a collection, which is an oversight 👍🏻 |
Thanks man! Sorry, I didn't mean to come off as saying you never cleared the cache, I just didn't find it with my primitive search, that's all 🙂 |
Preflight Checklist
Describe the Bug
Switching a collection from single object to normal collection breaks the API.
To Reproduce
Here is a video with repro as well https://youtu.be/1LTC2vPtrdw
What version of Directus are you using?
9.0.0-rc.92
What version of Node.js are you using?
v12.20.2
What database are you using?
Postgres 12
What browser are you using?
Chrome
What operating system are you using?
Linux
How are you deploying Directus?
Kubernetes
The text was updated successfully, but these errors were encountered: