By Jonas BengtssonMay 03
Hi everyone! It's time to share some of the updates we've made to Dossier in April.
One of the main features we've added is the ability to detect invalid entities. Dossier is quite strict about saving and publishing entities that match the schema. But sometimes you might change the schema later, for example by changing a regular expression pattern. And then some of the entities that were valid before might become invalid.
That's why we've added an
info.valid property to every entity, which will be
false if that happens. You can also filter the entities by this property, so you can easily find and fix the invalid ones.
We've made this validation process run in the background, so it doesn't affect your performance. There's a standard plugin called
BackgroundEntityProcessorPlugin that you can use or modify to suit your needs. For instance, you can make it run only when the traffic is low.
We're still working on some improvements for this feature. For example, right now we only validate the latest version of each entity. But what if you published an older version that have since become invalid due to a schema change? We want to make sure you're aware of that too. We also want to make schema changes faster by validating fewer entities.
Another thing we've done is to optimize the fulltext search indexes when using SQLite. You can now use
Server.optimizeDatabase() to do that.
And of course, we've updated a bunch of dependencies to keep Dossier fresh :-)
That's all for now. Thanks for reading and stay tuned for more updates!