ayon-core icon indicating copy to clipboard operation
ayon-core copied to clipboard

Add "user" to workfile on "increment current file" during publish or other methods

Open BigRoy opened this issue 1 year ago • 1 comments

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?

  1. 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
  2. Any call to host.save_workfile should 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?
  3. 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

BigRoy avatar Jun 18 '24 19:06 BigRoy

This ticket overlaps with AY-5999 -> https://github.com/ynput/ayon-core/issues/1015

BigRoy avatar May 28 '25 12:05 BigRoy

I think this is now resolved with https://github.com/ynput/ayon-core/issues/1015 . Re-open if I'm wrong please.

iLLiCiTiT avatar Sep 10 '25 14:09 iLLiCiTiT