- π¬π§United Kingdom alexpott πͺπΊπ
This can introduce problems if a paragraph type is deleted during a configuration import because this can result in fields being deleted and then if a module is uninstalled that also results in a role change you will see the dreaded
In Role.php line 210: [RuntimeException] Adding non-existent permissions to a role is not allowed. The incorrect permissions are "view paragraph content products".
- π¬π§United Kingdom alexpott πͺπΊπ
I'm unsure of the need for a test beyond asserting that dependencies are being added. The update function is very basic. I've tested this against a site that was having trouble deploying a paragraph type deletion and it works great.