All checks were successful
Deploy Development / deploy (push) Successful in 38s
Test Suite / pytest-backend (push) Successful in 36s
Test Suite / lint-backend (push) Successful in 0s
Test Suite / build-frontend (push) Successful in 12s
Test Suite / k6 /health Baseline (push) Successful in 33s
Test Suite / playwright-tests (push) Successful in 57s
- Bumped APP_VERSION to 0.8.118 and updated DB_SCHEMA_VERSION to 20260514062. - Enhanced the dashboard API with a new endpoint that consolidates training home data, allowing for a single request to retrieve upcoming training sessions, planned sessions with notes, and review pending items. - Updated the frontend Dashboard component to utilize the new API structure, improving data loading efficiency and user experience. - Added migration details and changelog entries to reflect the latest changes and improvements.
42 lines
1.2 KiB
SQL
42 lines
1.2 KiB
SQL
-- list_exercises mit skill_min_level / skill_max_level: EXISTS auf exercise_skills mit numerischem Stufen-Rang.
|
|
-- Ausdruck muss mit backend/routers/exercises.py _EXERCISE_SKILL_LEVEL_RANK_SQL (Alias „es“) übereinstimmen.
|
|
|
|
CREATE INDEX IF NOT EXISTS idx_exercise_skills_exercise_level_rank
|
|
ON exercise_skills (
|
|
exercise_id,
|
|
(CASE COALESCE(
|
|
NULLIF(TRIM(LOWER(target_level::text)), ''),
|
|
NULLIF(TRIM(LOWER(required_level::text)), '')
|
|
)
|
|
WHEN 'basis' THEN 1
|
|
WHEN 'grundlagen' THEN 2
|
|
WHEN 'aufbau' THEN 3
|
|
WHEN 'fortgeschritten' THEN 4
|
|
WHEN 'optimierung' THEN 5
|
|
WHEN 'einsteiger' THEN 1
|
|
WHEN 'experte' THEN 5
|
|
WHEN '1' THEN 1
|
|
WHEN '2' THEN 2
|
|
WHEN '3' THEN 3
|
|
WHEN '4' THEN 4
|
|
WHEN '5' THEN 5
|
|
ELSE NULL END)
|
|
)
|
|
WHERE (CASE COALESCE(
|
|
NULLIF(TRIM(LOWER(target_level::text)), ''),
|
|
NULLIF(TRIM(LOWER(required_level::text)), '')
|
|
)
|
|
WHEN 'basis' THEN 1
|
|
WHEN 'grundlagen' THEN 2
|
|
WHEN 'aufbau' THEN 3
|
|
WHEN 'fortgeschritten' THEN 4
|
|
WHEN 'optimierung' THEN 5
|
|
WHEN 'einsteiger' THEN 1
|
|
WHEN 'experte' THEN 5
|
|
WHEN '1' THEN 1
|
|
WHEN '2' THEN 2
|
|
WHEN '3' THEN 3
|
|
WHEN '4' THEN 4
|
|
WHEN '5' THEN 5
|
|
ELSE NULL END) IS NOT NULL;
|