ayon-core
ayon-core copied to clipboard
Add "user" to workfile on "increment current file" during publish or other methods
Is there an existing issue for this?
- [X] I have searched the existing issues.
Please describe the feature you have in mind and explain what the current shortcomings are?
The Workfiles tool now is capable of showing the user who generated a workfile - however that data is lacking when doing incremental saves via other methods. E.g. When we publish and the scene "increments" the version during publishing those workfiles do not get the "author" stored with it.
It's lacking for any of:
- Any automatically incremented workfile versions on publishing do not have this data.
- "Version Up Workfile" in Maya does not have this author data.
- Custom saves do not have this data.
How would you imagine the implementation of the feature?
- Preferably we can intercept any save logic and always ensure the user is set for any workfile saved but this is impossible for all hosts
- Any call to
host.save_workfileshould at least default to also adding this data. So that when at least the saving occurs via registered host logic the data is included - likely the best option that works in a simple manner across all hosts? - Hook into host-specific 'save' callbacks so that e.g. also pressing CTRL+S in a DCC may embed/update the data - but this will quickly turn very integration specific.
Option 2) might be best?
Are there any labels you wish to add?
- [X] I have added the relevant labels to the enhancement request.
Describe alternatives you've considered:
No response
Additional context:
Also reported on Ynput Discord here
This ticket overlaps with AY-5999 -> https://github.com/ynput/ayon-core/issues/1015
I think this is now resolved with https://github.com/ynput/ayon-core/issues/1015 . Re-open if I'm wrong please.