Skip to content

Conversation

@martastain
Copy link
Member

This pull request adds support for sorting folders by the count of related links in the get_folders resolver. The main change introduces logic to handle sorting by link counts, including updates to SQL common table expressions, joins, and ordering.

Sorting enhancements:

  • Added support for sorting folders by the count of links of a specific type and direction in the get_folders resolver in ayon_server/graphql/resolvers/folders.py. This includes constructing a SQL CTE to count links, joining the results, and updating the order and group by clauses accordingly.
image

@martastain martastain added the type: enhancement Improvement of existing functionality or minor addition label Aug 22, 2025
@martastain
Copy link
Member Author

This is now on hold. The feature can be expanded to tasks and versions when @Innders specifies, if that's needed.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

type: enhancement Improvement of existing functionality or minor addition

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants