Skip to content

Add tests for filtering on django-treebeard tree operations#91

Open
gasman wants to merge 2 commits intowagtail:mainfrom
gasman:feature/treebeard
Open

Add tests for filtering on django-treebeard tree operations#91
gasman wants to merge 2 commits intowagtail:mainfrom
gasman:feature/treebeard

Conversation

@gasman
Copy link
Copy Markdown
Contributor

@gasman gasman commented Mar 30, 2026

Description

Wanted to investigate what was needed to support searching querysets from django-treebeard operations such as get_descendants, and was pleasantly surprised to discover that they already worked :-) So, add unit tests to formalise that.

(The trickier part is to ensure that the path field stored in the Elasticsearch/OpenSearch index is kept in sync with the database, even after nodes have been updated with queryset.update - have opened django-treebeard/django-treebeard#381 to tackle that...)

AI usage

Github Copilot code completion for tests and fixtures.

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

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant