Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Loader & Scene inventory: Ignore containers with invalid representation id #1037

Conversation

iLLiCiTiT
Copy link
Member

Changelog Description

Loader and scene inventory should not cause issues when container in scene contains invalid representation id.

Additional info

Capture all possible errors when validating representation ids. In case of Loader tool, we really need only the representation ids and we don't care about anything else. In scene inventory already happens some validation of the data. The validation does not fully preserve issues, but that probably should not be job of the tool.

Partially resolves #788 . The issue is more aboud full validation of container data, which might be actually production breaking change at this moment as we don't enforce container schema now. And it might be more work than a simple capture of unhandled exceptions. We do miss a lot of load related api, which is epic on it's own.

Testing notes:

  1. Container with invalid representation id (for example being None) does not break tools.

@iLLiCiTiT iLLiCiTiT added the type: bug Something isn't working label Dec 5, 2024
@ynbot ynbot added the size/XS label Dec 5, 2024
@iLLiCiTiT iLLiCiTiT self-assigned this Dec 5, 2024
@iLLiCiTiT iLLiCiTiT requested review from BigRoy and antirotor December 5, 2024 13:55
Copy link
Member

@antirotor antirotor left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

looks like my local patch!

…nvalid-dataschema-with-a-warning-instead-of-error
@iLLiCiTiT iLLiCiTiT merged commit 0be5c62 into develop Dec 6, 2024
1 check passed
@iLLiCiTiT iLLiCiTiT deleted the bugfix/788-tools-ignore-containers-with-invalid-dataschema-with-a-warning-instead-of-error branch December 6, 2024 11:31
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
size/XS type: bug Something isn't working
Projects
None yet
Development

Successfully merging this pull request may close these issues.

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