I have updated the collection within my CMS but the API link does not show the changes I have made to the data. I have cleared the server cache but still no updates to the content. I am new to the software so I expect it will be something obvious.
Please provide some more info like Cockpit version, installed addons, SQLite or MongoDB. Otherwise it’s very hard to guess, what your issue might be.
I am using version: 0.11.2
I am running no modifications of plugins, its purely out of the box. I created a collection with a series of text fields and 100 records. Database will be the default one for php.
Did you change an entry and the api doesn’t recognize the change?
Or did you change the field definitions, e. g. a field name?
If 1, my only guess would have been the moderation addon.
If 2, see some related issues:
I noticed that the api is returning data from deleted fields. In the example below, I created a field called DELETE_TEST_DATA, updated it, then deleted the field. I’m curious if there is a way to remove the data once the field is removed. This could be a security issue.
Edit: This also happens if you rename a field. Is there a way to prune the collections to only store the active fields?
Renaming or deleting a field of a collection doesn’t change existing entries and their values get fetched with each api call. There are a few issues (
#775, #843 and #821) and a support question about this topic.
I thought about it again and I think I found a solution.
Revisions for collections would be a nice feature, but it would still work without revisions.
Each field just needs a unique id and we need a trigger before the collection is updated here
If not 1 or 2, please provide some steps to reproduce.