Skip to content

Sort folders by links count#683

Draft
martastain wants to merge 1 commit intodevelopfrom
graphql-sort-by-links-count
Draft

Sort folders by links count#683
martastain wants to merge 1 commit intodevelopfrom
graphql-sort-by-links-count

Conversation

@martastain
Copy link
Copy Markdown
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
Copy Markdown
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.

1 participant