refactor(handlers): extract QueryParams + IngestParams to reduce complexity

query_handler refactored:
- Extract QueryParams struct with validation
- Extract SearchMethod enum
- Extract build_search_response helper
- Extract apply_rbac_filter helper
- Extract execute_hybrid_search helper
- Complexity: 14 → 6

ingest_handler helpers:
- Extract IngestParams struct with validation
- Extract IngestParamsError with responses
- Extract IngestResponse builder

New tests (18 total):
- QueryParams validation (10 tests)
- IngestParams validation (8 tests)

Total tests: 688 (was 670)
This commit is contained in:
2026-09-03 09:12:38 -07:00
parent bf0405f47d
commit 43778f730f
5 changed files with 512 additions and 159 deletions
+10
View File
@@ -0,0 +1,10 @@
/// HTTP Handler Helpers
///
/// Extracted from http_server.rs to reduce complexity.
/// Each handler has its own params struct with validation.
pub mod query;
pub mod ingest;
pub use query::*;
pub use ingest::*;