Extract file ingestion + parsing logic from project_locations router #41
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Title: Extract file ingestion + parsing logic from project_locations router
Problem:
project_locations.pycurrently handles routing, business logic, and file parsing/upload logic in a single module. This makes the file large, harder to maintain, and increases risk when modifying ingestion behavior. waaaayyy too much going on in here right now, this needs to be refactoredScope (targeted refactor):
Extract the following into a new service module:
_parse_rnh_parse_rnh_datetime_classify_fileCreate something like:
backend/services/file_ingest.pyGoal:
Non-goals:
Why:
Future follow-up (optional):
Priority: Low / Cleanup