Skip to content

IAV-584/feat(agent-integration): add bulk fetch by UIDs endpoint and fix user integration create/retrieve

salaheddine zidani a demandé de fusionner feature/IAV-584 vers develop

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 GET endpoint getIntegrationByUIDs on AgentIntegrationController.
  • Accepts a @RequestParam list of UIDs (@NotEmpty validated).
  • 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,uid2 returns the correct list of integrations.
  • Empty or missing UIDs param returns a 400 Bad Request.
  • User integration creation works correctly end-to-end.
  • User integration retrieval returns the expected result.

Related

IAV-584

Rapports de requête de fusion