[BOUNTY] feat: Goal-based savings tracking & milestones#912
Open
ZackaryShen wants to merge 5 commits intorohitdash08:mainfrom
Open
[BOUNTY] feat: Goal-based savings tracking & milestones#912ZackaryShen wants to merge 5 commits intorohitdash08:mainfrom
ZackaryShen wants to merge 5 commits intorohitdash08:mainfrom
Conversation
Author
PR Comparison: Production-Ready vs In-Memoryvs competitor PR #908:
Key wins: Real DB survives restarts, row locks prevent financial race conditions, full auth coverage, 12 test cases. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Implements Goal-based savings tracking & milestones feature for FinMind - Issue #133
Features
Core Functionality
API Endpoints
/savings/goals/savings/goals/{id}/savings/goals/savings/goals/{id}/savings/goals/{id}/savings/goals/{id}/contributions/savings/goals/{id}/contributions/savings/goals/{id}/milestones/savings/goals/{id}/cancelChanges
Backend
packages/backend/app/models.py- AddedGoalStatus,SavingsGoal,SavingsContribution,SavingsMilestonemodelspackages/backend/app/routes/savings.py- New API blueprint with all endpointspackages/backend/app/routes/__init__.py- Registered savings blueprintpackages/backend/app/db/savings_schema.sql- Database migration schemaTests
packages/backend/tests/test_savings.py- Unit tests for models and contributionsTechnical Details
Models
Security
user_idto prevent unauthorized accessSELECT FOR UPDATErow locking for contribution updatesPerformance
(user_id, status),(user_id, deadline),(goal_id, created_at)Testing
Unit tests cover:
Acceptance Criteria
Bounty: #133
Author: ZackaryShen