Fix Flask app module-level initialization #110
Labels
No labels
Closed As
Duplicate
Closed As
Fixed
Closed As
Invalid
easyfix
enhancement
ai-review-please
Backlog Status
Needs Review
Backlog Status
Ready
chore
documentation
points
01
points
02
points
03
points
05
points
08
points
13
Priority
Critical
Priority
High
Priority
Low
Priority
Medium
Sprint Status
Blocked
Sprint Status
Done
Sprint Status
In Progress
Sprint Status
Review
Sprint Status
To Do
Technical Debt
Work Item
Bug
Work Item
Epic
Work Item
Spike
Work Item
Task
Work Item
User Story
No milestone
No project
1 participant
Notifications
Due date
No due date set.
Blocks
Depends on
#108 Explore MCP Server Implementation
quality/testdays-web
#111 Refactor app to use application factory pattern
quality/testdays-web
Reference
quality/testdays-web#110
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
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?
The app in its present state gets initialized when any code does
import testdaysorfrom testdays import ....This creates tight module coupling and introduces various problems preventing selective imports, overcomplicating external consumers or testing harnesses.
The app should be refactored using Flask recommended application factory pattern which would unblock clean model reuse (for MCP server, CLI scripts etc.) and testing.