ayon-backend
ayon-backend copied to clipboard
Do not return empty site root overrides
PR Checklist
- [x] This comment contains a description of changes
- [x] Referenced issue is linked
Description of changes
When using api/projects/{project_name}/roots endpoint (GET/PUT), empty values (nulls or empty strings)
are no longer returned. When no override is present, exclude that root (or site) from the result.
/roots endpoint is returning empty dict for no overrides/removed overrides correctly.
But I would expect siteRoots to pick values from Anatomy (for particular site) and it doesn't: