ayon-core
ayon-core copied to clipboard
Tools: Ignore containers with invalid data/schema with a warning instead of error
Is there an existing issue for this?
- [X] I have searched the existing issues
Current Behavior:
When containers are returned by a host with invalid data, e.g. invalid representation id, or that data completely lacking or in any way mismatching with the container schema then the tools should not fail to work, but log a warning or error and continue listing those entries that it can resolve correctly.
Which results in empty loader:
Expected Behavior:
Log a warning or error and continue listing those entries that it can resolve correctly.
Version
1.0.0
What platform you are running on?
Windows
Steps To Reproduce:
Produce some invalid container results from a hosts get_containers()
implementation.
The exact data can be confirmed/tested with:
from ayon_core.pipeline import registered_host
import pprint
host = registered_host()
for container in host.get_containers():
pprint.pprint(container)
And e.g. invalid data is:
Because it should adhere to this schema: https://github.com/ynput/ayon-core/blob/develop/client/ayon_core/pipeline/schema/container-3.0.json
Are there any labels you wish to add?
- [X] I have added the relevant labels to the bug report.
Relevant log output:
No response