add library type to ContainersFilterResult#1908
Conversation
There was a problem hiding this comment.
I'd say this is straight up wrong.
If from a library, we should still check version status like any other.
What this should really be doing is check whether it's the latest taking into account the container's project name value to look it up in the right project. Personally to me the separate library category makes no sense to me.
Why is it being part of a library relevant to anything?
should we distinguish between
library_latestandlibrary_outdated?for the sake of simplicity I decided not to
should we distinguish between
libraryandfrom_other_project(products from another project where the source project is not a library)?I think the
not_foundcategory covers this well enough for now. I can't think of a use case where users would pull in assets from another project that is not a library
Not at all, it's just a version - it just belongs to another project. When we check whether it's outdated, we should just check if the version is... regardless of where it comes from.
The bug is that we're not checking apparently across projects whether it is of the right version?
|
I don't understand why not allowed for library project deserver own category in filtered options? It is just not valid... If it should not be used for library project then it should probably override But technically we can "reference" from libary projects, but the loaders are not storing the project name to container data, which is probably what is causing the I don't think we'll merge this PR, at least not in this state, we should rather focus on either fixing the loaders, or implement |
For us, a product belonging to another project vs. a project belonging to a library does have a different meaning. If an artist loads in products from another regular project, that would be considered wrong. Loading products from a library however is a very valid workflow (for us at least). One example where I was planning to use this would , for different node colors in nuke: https://github.com/ynput/ayon-nuke/pull/278/changes#diff-2b72fd20b424aa2837f801f8df5ae6fca06e7ea79c0d6b852c0cc72f65eb56daR632-R636
|
|
How would you feel if we'd split into the following categories:
if studio's want to they could set the colors of |
To me that's worse. The 'best' case is we just add the 'library' category, but admittedly - it's so overly specific that I really doubt we'd even add it. But preferably we don't go 'spreading out the categories'. Something is either latest, or not, or not found, etc. Want to know whether the container is of a different project? Use We're also not listing whether the container repre has tags, or the statuses -etc. ;) I feel like if you want more info, you'd need to query it for whatever use case you have. |
|
I've updated ynput/ayon-nuke#278 so that
I'm not 100% convinced yet that this the best way, as we'd likely have to reimplement the |
|
In my opinion you don't need I think |
|
PR to respect container's project name #1909 . |
Changelog Description
add
libraryas another possible category inContainersFilterResultAdditional info
filter_containersonly knows about products from the given project_name.this causes products imported from a library to be flagged as
not_found.Some hosts use the category to mark the loader nodes different. For example
nukeuses them to apply different colors in the node graph. This PR would allow us to apply a different color to nodes reading from the library, rather than them being colored asnot_foundTesting notes:
Open Questions:
for the sake of simplicity I decided not to
I think the
not_foundcategory covers this well enough for now. I can't think of a use case where users would pull in assets from another project that is not a library