refactor(handlers): extract QueryParams + IngestParams to reduce complexity
Build and Push / Test (push) Successful in 12m2s
Build and Push / Build and push image (push) Successful in 10m14s

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 7c6731c5eb
commit 0db6b20300
5 changed files with 512 additions and 159 deletions
+1
View File
@@ -1,4 +1,5 @@
pub mod endpoints;
pub mod handlers;
pub mod http_server;
pub mod ingest_worker;
pub mod query_worker;