Open herbdool opened 3 months ago
Yes, this was brought up in a PM with the Rules maintainers. Rules stores the plugin object as serialized string in database exactly as you see it. Changing this would require a lot more tweaking at the Rules plugin class level (not the entity controller).
There are two issues with making this into a json encoded string:
__sleep()
method for all these classes, pruning unwanted properties. Reproducing this when encoding as json requires extra coding So, switching to json encoded strings should ideally be done both with the "normal" database storage, and the CMI storage. Otherwise we'll end up with a lot of extended plugin classes that act differently depending on the storage location.
If you can think of an easier way, I'm all ears!
I cannot think of an easier way. The Internet seems to know of ways to do it but from what I saw it didn't seem as easy as this.
It seems odd to have the main data still stored as serialized which includes the
\u0000
control character.