-
Notifications
You must be signed in to change notification settings - Fork 67
Add six into module blacklist for representation trait #1631
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
Add six into module blacklist for representation trait #1631
Conversation
I see no linked issue. What error? |
See the changelog. |
|
Is that the full traceback, or is it supposed to be longer? I'd have expected it to point further with the traceback to what code of ours generated the error. It feels weird that our logic even touches the Also, this Then all you'd need after is iterate these traits to find them by id? Instead of having to go over |
The idea behind this is that you can work with traits as with types. You can, ofc change it so every time you invoke trait related logic, you run "discover()" and interate over the result somehow. But I wanted to give it more pythonic feel - you import whatever you need and work with it. It is IMO more explicit than calling some discover function (that would have to import traits to global scope to make them available anyway). This logic is used only when you are deserializing traits from json (or something else) - at that point, you don't know what is what and the function is mapping trait ids to their classes. We could hold the traits in some smaller scope and look just there for example. Once the traits could be used by server, we will need to revisit this somehow anyway - we will need some mechanism for every addon to expose it's own representation traits via lightweight API so server could use it too. So far, it works with minor tweaks. With a little feedback I've got I am glad for every oportunity to discuss and change any decisions made. In this very specific case I think the issue is more about |
This was my biggest worry. Thanks. |
Changelog Description
This PR is to add
sixinto module blacklist for representation trait so that loading the asset with the trait won't hit the error with thesixmodule.Additional info
Discover the issue when testing ynput/ayon-marvelous-designer#2
Testing notes: