-
Notifications
You must be signed in to change notification settings - Fork 49
Open
Description
The current_position field in the portfolios table exists and is queried in some places, but it's never updated with current portfolio values. This creates inconsistencies where classroom statistics may show outdated or incorrect portfolio totals, while the actual portfolio displays use real-time calculated values.
Where It's Used
- ClassroomsController (line 106): Sums
portfolios.current_positionfor classroom statistics - Admin Dashboard: Likely displayed in portfolio dashboard views
Fix
- Remove the field from database
- Update classroom statistics to calculate on-the-fly
- Update admin dashboard to use calculated values
We might experience a slight performance impact for classroom stats queries if that becomes a problem in the future we will address it then
Metadata
Metadata
Assignees
Labels
No labels
Type
Projects
Status
In Progress