As you probably guessed, this error means that there is still some attribute in some app that refers to an icon in the lsw_icons app.
When the system works as it should, you cannot remove the dependency to an app (like lsw_icons) while there is one or more references to it.
In general, there can be 2 ways this situation can occur:
- We have a bug in our code and the dependency was not checked correctly when you tried to remove it as dependency. In this case, r3 should have complained until you removed the last reference.
- Changes were made to the
app schema outside of controlled application imports - either manually or via a bad DB recovery or migration. In this case, the dependency was removed, while the reference check was not done.
Without further troubleshooting, it´s hard to know the cause. You can however check live, what the references to icons from any attributes are with this SQL:
SELECT m.name module_name, r.name relation_name, a.name attribute_name, i.name icon_name
FROM app.attribute a
JOIN app.relation r on r.id = a.relation_id
JOIN app.module m on m.id = r.module_id
JOIN app.icon i on i.id = a.icon_id
WHERE i.module_id = (
SELECT id
FROM app.module
WHERE name = 'lsw_icons'
)
ORDER BY r.name, a.name, i.name