chore(version): update version and changelog for release 0.8.123
Deploy Development / deploy (push) Successful in 41s
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 1m2s
Test Suite / pytest-backend (pull_request) Successful in 34s
Test Suite / lint-backend (pull_request) Successful in 0s
Test Suite / build-frontend (pull_request) Successful in 12s
Test Suite / k6 /health Baseline (pull_request) Successful in 33s
Test Suite / playwright-tests (pull_request) Successful in 1m1s
Deploy Development / deploy (push) Successful in 41s
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 1m2s
Test Suite / pytest-backend (pull_request) Successful in 34s
Test Suite / lint-backend (pull_request) Successful in 0s
Test Suite / build-frontend (pull_request) Successful in 12s
Test Suite / k6 /health Baseline (pull_request) Successful in 33s
Test Suite / playwright-tests (pull_request) Successful in 1m1s
- Bumped APP_VERSION to 0.8.123 and updated the changelog to reflect recent changes. - Fixed internal calls in GET /api/dashboard/kpis to use unwrap_query_default, preventing 500 errors due to FastAPI query defaults. - Enhanced list_exercises and list_training_units functions to utilize unwrap_query_default for improved query handling. - Added unit tests for unwrap_query_default to ensure correct behavior in various scenarios.
This commit is contained in:
1 parent
4235246cd7
commit
2e105a99b8
5 files changed
+55
-2
No files matched your search
@@ -10,6 +10,8 @@ from typing import Any, Dict, List, Optional, Tuple
|
||||
from fastapi import APIRouter, Depends, HTTPException, Query
|
||||
from psycopg2.extras import Json as PsycopgJson
|
||||
|
||||
from fastapi_param_unwrap import unwrap_query_default
|
||||
|
||||
from db import get_db, get_cursor, r2d
|
||||
from tenant_context import TenantContext, get_tenant_context, library_content_visibility_sql
|
||||
from club_tenancy import (
|
||||
@@ -1341,6 +1343,19 @@ def list_training_units(
|
||||
),
|
||||
tenant: TenantContext = Depends(get_tenant_context),
|
||||
):
|
||||
group_id = unwrap_query_default(group_id)
|
||||
club_id = unwrap_query_default(club_id)
|
||||
start_date = unwrap_query_default(start_date)
|
||||
end_date = unwrap_query_default(end_date)
|
||||
status = unwrap_query_default(status)
|
||||
assigned_to_me = unwrap_query_default(assigned_to_me)
|
||||
debrief_pending = unwrap_query_default(debrief_pending)
|
||||
sort = unwrap_query_default(sort)
|
||||
limit = unwrap_query_default(limit)
|
||||
cursor_planned_date = unwrap_query_default(cursor_planned_date)
|
||||
cursor_planned_time = unwrap_query_default(cursor_planned_time)
|
||||
cursor_id = unwrap_query_default(cursor_id)
|
||||
|
||||
profile_id = tenant.profile_id
|
||||
role = tenant.global_role
|
||||
|
||||
|
||||
Reference in new issue
Block a user