IAV-584/feat(agent-integration): add bulk fetch by UIDs endpoint and fix user integration create/retrieve
Summary
This MR introduces a new bulk-fetch endpoint for agent integrations and fixes two bugs affecting the user integration lifecycle.
Changes
✨ New Feature — Bulk Fetch by UIDs
- Added
GETendpointgetIntegrationByUIDsonAgentIntegrationController. - Accepts a
@RequestParamlist of UIDs (@NotEmptyvalidated). - Delegates to
agentIntegrationService.getIntegrationsByUIDs(UIDs). - Returns a
List<AgentIntegrationResponseDTO>. - Useful for batch-loading integrations without multiple individual calls.
🐛 Bug Fixes — User Integration
- Creation: Fixed an issue during user integration creation that caused incorrect or inconsistent state.
- Retrieval: Fixed an issue during user integration retrieval that returned unexpected or wrong results.
Testing
-
GET /agent-integrations?UIDs=uid1,uid2returns the correct list of integrations. -
Empty or missing UIDsparam returns a400 Bad Request. -
User integration creation works correctly end-to-end. -
User integration retrieval returns the expected result.