mitai-jinkendo/backend/routers
Lars e4f49c0351
All checks were successful
Deploy Development / deploy (push) Successful in 33s
Build Test / lint-backend (push) Successful in 0s
Build Test / build-frontend (push) Successful in 12s
fix: enable AI analysis history and correct pipeline scope
Fixes two critical bugs in AI analysis storage:

1. History now works - analyses are saved, not overwritten
   - Removed DELETE statements before INSERT in insights.py
   - All analyses are now preserved per scope
   - Displayed in descending order by creation date

2. Pipeline saves under correct scope 'pipeline' instead of 'gesamt'
   - Changed scope from 'gesamt' to 'pipeline' in pipeline endpoint
   - Pipeline results now appear under correct category in history

3. Fixed pipeline appearing twice in UI
   - Filter now excludes both 'pipeline_*' and 'pipeline' from individual list
   - Pipeline only appears in dedicated section at top

Changes:
- backend/routers/insights.py: Removed DELETE, changed scope to 'pipeline'
- frontend/src/pages/Analysis.jsx: Fixed filter to exclude 'pipeline'

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-03-20 15:35:33 +01:00
..
__init__.py refactor: modular backend architecture with 14 router modules 2026-03-19 11:15:35 +01:00
access_grants.py feat: add admin management routers for subscription system 2026-03-19 13:09:33 +01:00
activity.py ROLLBACK: complete removal of broken feature enforcement system 2026-03-20 15:19:56 +01:00
admin.py refactor: modular backend architecture with 14 router modules 2026-03-19 11:15:35 +01:00
auth.py refactor: modular backend architecture with 14 router modules 2026-03-19 11:15:35 +01:00
caliper.py refactor: modular backend architecture with 14 router modules 2026-03-19 11:15:35 +01:00
circumference.py refactor: modular backend architecture with 14 router modules 2026-03-19 11:15:35 +01:00
coupons.py feat: add coupon management and redemption 2026-03-19 13:07:09 +01:00
exportdata.py ROLLBACK: complete removal of broken feature enforcement system 2026-03-20 15:19:56 +01:00
features.py fix: add missing feature check endpoint and features 2026-03-20 12:57:29 +01:00
importdata.py ROLLBACK: complete removal of broken feature enforcement system 2026-03-20 15:19:56 +01:00
insights.py fix: enable AI analysis history and correct pipeline scope 2026-03-20 15:35:33 +01:00
nutrition.py ROLLBACK: complete removal of broken feature enforcement system 2026-03-20 15:19:56 +01:00
photos.py refactor: modular backend architecture with 14 router modules 2026-03-19 11:15:35 +01:00
profiles.py refactor: modular backend architecture with 14 router modules 2026-03-19 11:15:35 +01:00
prompts.py refactor: modular backend architecture with 14 router modules 2026-03-19 11:15:35 +01:00
stats.py refactor: modular backend architecture with 14 router modules 2026-03-19 11:15:35 +01:00
subscription.py feat: add user subscription info endpoints 2026-03-19 13:05:55 +01:00
tier_limits.py fix: show all tiers in admin matrix editor including selfhosted 2026-03-20 06:19:32 +01:00
tiers_mgmt.py feat: add admin management routers for subscription system 2026-03-19 13:09:33 +01:00
user_restrictions.py feat: add admin management routers for subscription system 2026-03-19 13:09:33 +01:00
weight.py refactor: modular backend architecture with 14 router modules 2026-03-19 11:15:35 +01:00