[Sprint 01] refactor: Update middleware and filtering with new import paths #20

Closed
opened 2026-02-03 22:45:16 +00:00 by lmiranda · 1 comment
Owner

Update middleware and filtering modules to use new package name. Middleware requires only import changes, filtering changes ValueError to warning.

Dependencies

Tasks

  • Update middleware/__init__.py imports
  • Update middleware/auth.py - imports only
  • Update filtering/__init__.py imports
  • Update filtering/filter.py:
    • Add logging import
    • Change line 29-32 ValueError to logger.warning
  • Verify imports work

Acceptance Criteria

  • Middleware imports from gitea_mcp_remote.middleware
  • Filtering imports from gitea_mcp_remote.filtering
  • ToolFilter logs warning instead of raising ValueError when both filter types specified
  • Can import both modules successfully

Implementation Reference

See docs/sprint-proposals/sprint-01-implementation-guide.md - Phase 2, Issues #3-4

Estimated Time: 1 hour

Update middleware and filtering modules to use new package name. Middleware requires only import changes, filtering changes ValueError to warning. ## Dependencies - Blocked by: #19 ## Tasks - [ ] Update `middleware/__init__.py` imports - [ ] Update `middleware/auth.py` - imports only - [ ] Update `filtering/__init__.py` imports - [ ] Update `filtering/filter.py`: - Add logging import - Change line 29-32 ValueError to logger.warning - [ ] Verify imports work ## Acceptance Criteria - Middleware imports from `gitea_mcp_remote.middleware` - Filtering imports from `gitea_mcp_remote.filtering` - ToolFilter logs warning instead of raising ValueError when both filter types specified - Can import both modules successfully ## Implementation Reference See `docs/sprint-proposals/sprint-01-implementation-guide.md` - Phase 2, Issues #3-4 **Estimated Time:** 1 hour
lmiranda added this to the Sprint 01: Core Architecture Correction milestone 2026-02-03 22:45:16 +00:00
lmiranda added the Size/SComponent/CoreType/RefactorPriority/High labels 2026-02-03 22:45:16 +00:00
Author
Owner

Work completed as part of #19 rename - import paths updated in middleware and filtering modules

Work completed as part of #19 rename - import paths updated in middleware and filtering modules
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: personal-projects/gitea-mcp-remote#20