1.2-A: Backend subscription_service.py + SUBSCRIPTION_FEATURES config #239
Notifications
Total Time Spent: 10 minutes
kincses
10 minutes
No due date set.
Dependencies
No dependencies set.
Reference: kincses/service-finder#239
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?
Merfoldko: Frontend Architektura 2.0 & Dinamikus Megjelenitesi Rendszer
Cel: Feature flag rendszer kiepitese a subscription plan-ok alapjan a backend-ben.
Fuggosegek (Dependencies)
Implementacios Reszletek
SUBSCRIPTION_FEATURES konfiguracio (backend/app/core/config.py)
FREE: max_vehicles=3, allow_custom_skin=False, allow_advanced_animations=False, allow_team_members=False
BASIC: max_vehicles=10, allow_custom_skin=True, allow_advanced_animations=False, allow_team_members=True
PREMIUM: max_vehicles=999, allow_custom_skin=True, allow_advanced_animations=True, allow_team_members=True
subscription_service.py (backend/app/services/subscription_service.py)
API vegpont - GET /api/v1/users/me/features - visszaadja a user szamara elerheto feature flag-okat
Erintett fajlok
▶️ Munka megkezdve: 2026-06-24 22:14:48
✅ Munka befejezve: 2026-06-24 22:24:55
Technikai Összefoglaló:
Implementáltam a subscription_service.py-t valódi 3-szintű tier feloldással (UserSubscription → OrganizationSubscription → User.subscription_plan). Létrehoztam 3 új API végpontot: GET /subscriptions/my, GET /subscriptions/feature-flags, GET /subscriptions/check/{feature_key}. Javítottam a core_logic.py modell hiányzó tier relationship-jeit (OrganizationSubscription és UserSubscription). 25 feature flag támogatásával. Mind a 6 E2E tesztlépés PASS.
⏱️ Az idő rögzítve.