IA-991: fix: align user-management endpoint path and improve model selection fallback
What changed
User Management API URL correction
Updated the endpoint used to fetch child user info across AssistantResolverService
and UserManagementServiceImpl from:
/children/{id} → /api/user-management/children/numeric-id/{id}
This aligns with the actual route exposed by the user-management service.
Model selection resilience (OpenAIService)
Improved getModelForAssistant() to handle external model API unavailability
gracefully. When the external API is down and returns no model, the service now
falls back to the model string configured directly on the assistant entity,
instead of throwing immediately.
Why
- Requests to fetch user info were failing due to incorrect endpoint path.
- Model selection was fragile: a temporary external API outage caused a hard failure even when a valid model was already configured on the assistant.