ynput / ayon-backend

Server codebase with API access to AYON
Apache License 2.0
22 stars 15 forks source link

Attributes: priority #313

Closed mkolar closed 2 weeks ago

mkolar commented 2 months ago

Story

As an artist I need to know the order I should process my tasks in. As a producer I need to prioritize tasks for for the team

Proposal

We need to add a priority attribute to tasks and questionable maybe to folders too. If the priority behaves like other attributes, the hierarchical nature could be super useful for bumping priority of the full sequence or a all tasks within a shot.

It should also be considered, that production might want to use other attributes in a similar fashion, so I'd propose creating a more generic attribute type, that could simply be used for the built-in priority, but be reused for anything else. I think the requirements for the attribute are essentially an expanded enumerator of strings by a few parameters.

For each enum item we would need:

Being able to add these parameters to string enums, we'd also open up doors to UI being able to handle many kinds of custom attribute usages like ratings and so on.

martastain commented 2 months ago

I like the idea of additional enum items metadata. We'll need a model for that, but it would also make enum resolvers more explicit. The key issue here will be the backwards compatibility.

martastain commented 2 months ago

Points to consider: