Repository navigation
Entity lists: Support advanced filters in get_entity_lists - #385
Merged
Merged
Conversation
Filter entity lists by exact label on server using 'filter' argument of 'entityLists' (AYON server 1.8.3+), with client side fallback for older servers. Empty 'labels' or 'list_ids' iterables return nothing.
BigRoy
commented
Nov 14, 2026
Pass advanced filters through to the 'filter' argument of 'entityLists', like other entity getters do, instead of a dedicated 'labels' argument. Callers can filter by any whitelisted column and the client side fallback for servers older than 1.8.3 is not needed.
BigRoy
marked this pull request as ready for review
November 18, 2026 12:57
iLLiCiTiT
approved these changes
Nov 18, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Changelog Description
Add a
filtersargument (advancedQueryFilter) toget_entity_lists, so entity lists can be filtered on the server, e.g. by label.Additional info
Finding a few lists by label meant fetching every list in the project and filtering on the client, 300 lists per GraphQL page. On projects with thousands of lists that takes many sequential requests, and the number of requests grows as more lists are created.
get_entity_lists(project_name, *, list_ids=None, active=None, filters=None, fields=None).filtersis passed to thefilterargument ofproject.entityLists, the same wayget_folders,get_tasksandget_versionshandle it. The server whitelistslabel,owner,entity_type,entity_list_type,created_at,updated_at,count,active,created_byandupdated_by.filtersis used.Expected to ship in ayon-python-api 1.2.29.
Testing notes:
pytest tests/test_entity_lists_filters.pychecks thatfiltersis sent to the server and that nothing is sent without it.pytest tests/test_review_tasks_lists_api.py -k entity_lists_filterscovers exact match on label, case sensitivity, quotes,%/_characters and unknown labels.filters=.