Update Version and Enhance Club Creation Request Management
Deploy Development / deploy (push) Successful in 42s
Test Suite / pytest-backend (push) Successful in 39s
Test Suite / lint-backend (push) Successful in 0s
Test Suite / build-frontend (push) Successful in 13s
Test Suite / k6 /health Baseline (push) Successful in 33s
Test Suite / playwright-tests (push) Successful in 1m20s
Deploy Development / deploy (push) Successful in 42s
Test Suite / pytest-backend (push) Successful in 39s
Test Suite / lint-backend (push) Successful in 0s
Test Suite / build-frontend (push) Successful in 13s
Test Suite / k6 /health Baseline (push) Successful in 33s
Test Suite / playwright-tests (push) Successful in 1m20s
- Incremented application version to 0.8.192 and database schema version to 20260606081. - Updated club module versions for 'clubs' and 'club_creation_requests' to reflect recent changes. - Implemented logic to mark approved club creation requests as 'superseded' when the associated club is deleted. - Refactored frontend components to clear session storage for coach-related keys upon logout and during login checks. - Enhanced onboarding page to accurately display the status of club creation requests based on their validity.
This commit is contained in:
1 parent
37785135b1
commit
fa10450315
9 files changed
+71
-13
No files matched your search
@@ -336,6 +336,16 @@ def delete_club(club_id: int, tenant: TenantContext = Depends(get_tenant_context
|
||||
if not cur.fetchone():
|
||||
raise HTTPException(404, "Verein nicht gefunden")
|
||||
|
||||
# Gründungsanträge: Freigabe verliert Gültigkeit wenn Verein entfernt wird
|
||||
cur.execute(
|
||||
"""
|
||||
UPDATE club_creation_requests
|
||||
SET status = 'superseded', updated_at = NOW()
|
||||
WHERE created_club_id = %s AND status = 'approved'
|
||||
""",
|
||||
(club_id,),
|
||||
)
|
||||
|
||||
# Delete (CASCADE handles divisions and groups)
|
||||
cur.execute("DELETE FROM clubs WHERE id = %s", (club_id,))
|
||||
conn.commit()
|
||||
|
||||
Reference in new issue
Block a user