ayon-core icon indicating copy to clipboard operation
ayon-core copied to clipboard

Tools: Ignore containers with invalid data/schema with a warning instead of error

Open BigRoy opened this issue 7 months ago • 0 comments

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.

error

Which results in empty loader:

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: invalid_data

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

Additional context:

See issue reported on Discord here

BigRoy avatar Jul 19 '24 13:07 BigRoy