mirror of
https://github.com/paperless-ngx/paperless-ngx.git
synced 2026-08-19 01:03:18 +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:
co-authored by
Claude Fable 5
parent
171b0a6f77
commit
a418487f3c
@@ -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