mirror of
https://github.com/paperless-ngx/paperless-ngx.git
synced 2026-08-20 09:43:29 +00:00
test(search): replace stale docs reference in id-field fold docstring
The TestUnregisteredIdFieldFoldsToLiteralText docstring pointed readers at docs/usage.md's advanced-search note about the dropped *_id prefixes, which a later commit removed. State the rationale directly instead: the *_id fields were always internal index columns (v2 consumed them for permission filtering and its own criteria), and their queryability as search syntax was an accident of whoosh resolving any schema field name. Co-Authored-By: Claude Fable 5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01WMsn6DgzbvSqh1pwy66VVF
This commit is contained in:
committed by
stumpylog
co-authored by
Claude Fable 5
parent
bd87624b29
commit
98edd75220
@@ -337,10 +337,13 @@ class TestRfc3339TZDateRange:
|
||||
|
||||
class TestUnregisteredIdFieldFoldsToLiteralText:
|
||||
"""tag_id, owner_id, etc. are intentionally excluded from the
|
||||
FieldRegistry - whoosh-compat parity leniency folds them into a literal
|
||||
text search rather than raising a diagnostic/400 (see docs/usage.md's
|
||||
advanced-search section). Prove the fold is inert against real data, not
|
||||
just that parsing doesn't raise."""
|
||||
FieldRegistry: they were always internal index columns (v2 consumed
|
||||
them for permission filtering and its own criteria), and their
|
||||
queryability as search syntax was an accident of whoosh resolving any
|
||||
schema field name. whoosh-compat parity leniency folds them into a
|
||||
literal text search rather than raising a diagnostic/400. Prove the
|
||||
fold is inert against real data, not just that parsing doesn't
|
||||
raise."""
|
||||
|
||||
def test_tag_id_query_matches_nothing(
|
||||
self,
|
||||
|
||||
Reference in New Issue
Block a user