-
Notifications
You must be signed in to change notification settings - Fork 37
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
Don't use legacy io #8
Conversation
It publishes to farm as usual. I got an error on farm with the ayon pubish job.
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It's good to note that there have been (and I think still are) where you want to run something in a session that is not the current context session. So there are reasons to have an operating environment or session that you can pass along that is not the global environment. As such, for those cases - we'd need to maintain the possibility to pass in the custom environments/contexts. Not saying that it's currently broken in the code - haven't looked to deep, sorry. But just wanted to remark that those might be special cases that need testing? |
I'm not aware of anything we have in any of our addons. If you know about anything, please write it here as soon as possible. But I do agree we have to implement a way how to pass custom environments, or data, to the job, just because |
I'd assume it's things like Library Loader that load from a different context than current project, or the Save As dialog for the Workfiles tool when browsing into another work directory than the current asset. So I'd say:
I think most of these areas are already implemented to receive a session argument of context class instance or I mean Anyway, hope this helps. To be completely clear, I'm not aware of situations where I was merely referring to the fact that using a custom context at runtime, separate from the global context, would be a use case. |
Both tools do not use session since their ayon variants, so that's covered for a long time.
I worked very hard to make it redundant 🙂 . |
Changelog Description
Reduced usage of
legacy_io
in the codebase.Additional info
This change affected heavily few parts of the code.
AVALON_WORKDIR
environment variable to env keys to avoid possible issues which was only missing key.AVALON_WORKDIR
was was at all places read fromlegacy_io.Session
. This was changed to use environment variable. This is something to change in future as the environment variable may not be always up to date, especially in DCCs like TVPaint or Photoshop where is possible to change workdir without being acknowledged.AssetsWidget
does not expectdbcon
and was modified to be operational. Was marked as deprecated, we need to createSimpleFoldersWidget
as replacement.TasksWidget
was modified and moved to publisher, which was the only remaining tool using the widget.AVALON_PROJECT
on host install. The validation didn't make sense as the keys were always filled withNone
in past. Needed to remove the validation because of traypublisher which can change project live. Something to reconsider.Testing notes: