ynput / ayon-core

Apache License 2.0
18 stars 30 forks source link

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

Open BigRoy opened 2 weeks ago

BigRoy commented 2 weeks ago

Is there an existing issue for this?

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:

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?

Describe alternatives you've considered:

No response

Additional context:

Also reported on Ynput Discord here