Enhancement: Outdated containers dialog optional and shortcut to manage#131
Enhancement: Outdated containers dialog optional and shortcut to manage#131Tilix4 wants to merge 2 commits into
Conversation
| return "nothing" | ||
|
|
||
|
|
||
| def prompt_outdated_containers(): |
There was a problem hiding this comment.
I would move this to pipeline.py. It is the only place using this function, and I can't imagine being used elsewhere.
Co-authored-by: Jakub Trllo <43494761+iLLiCiTiT@users.noreply.github.com>
To me a 'setting' doesn't sound like the best fix for that. Because you may want your regular production to get the validation, but your automation not to. Sounds more like you'd need something like Similar to how we'd do a headless check in many DCCs to skip validating/showing the dialog then here we'd maybe also skip on if the session is explicitly marked as running in some 'automation' mode. Which could just be an env var really? |
That was my first lead, but I didn't want to introduce a new dedicated env var which is not really headless but not fully UI... and as you can run your automation under different settings than the production, I thought it'd fit. |
|
Related to automations, could that be just check of |
I'm not sure about what this mode covers exactly, but if it is running DCCs without GUI, therefore it'll be very restricted. Harmony's CLI is limited and we may want to process automated operations in GUI (using ayon-launch-scripts for example), this is why this pop-up is blocking in this case. |
The point is that it should not show UI in headless mode, which is usually used for automations. |
So I think we cannot rely on this for contextually disabling this pop-up to fit my use case |
Ok, but it still should be checked... |
Changelog Description
Change Harmony warning dialog when there are outdated containers in scene to a python Qt one with a button to directly open
Manage. Also add a setting to disable it.Additional review information
Disabling it might be useful when you want to automate operations on workfiles in UI mode with Harmony. For example, if you want to run a script to actually automatically update the containers, the existing dialog will block you.
The new
Managebutton makes easier for the artist to deal with outdated containers.Testing notes: