fix(api): Admin PATCH endpoint must sync ServiceExpertise and Arrays #383
Notifications
Total Time Spent: 5 minutes
kincses
5 minutes
No due date set.
Dependencies
No dependencies set.
Reference: kincses/service-finder#383
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?
Mérföldkő: P0 Provider Taxonomy & 3D Filtering
Cél: Fix the PATCH /admin/providers/{id} endpoint to properly sync ServiceExpertise and save the new multi-dimensional arrays
🔗 Függőségek (Dependencies)
📝 Feladat részletei
▶️ Munka megkezdve: 2026-07-01 02:45:50
✅ Munka befejezve: 2026-07-01 02:51:31
Technikai Összefoglaló:
fix(api): Admin PATCH endpoint now syncs ServiceExpertise and multi-dimensional arrays (supported_vehicle_classes, specializations) to both ServiceProvider and ServiceProfile models. GET endpoint resolves category_ids from ServiceExpertise join table. Changes applied to admin_providers.py: imports added, update_provider() extracts arrays from payload and calls _sync_service_expertises() with ServiceProfile ID, get_provider_detail() resolves category_ids via ServiceProfile → ServiceExpertise lookup.
⏱️ Az idő rögzítve.