Skip to content

feat(DATAGO-125747): batch pending event lookup for outbox#1166

Open
mo-radwan1 wants to merge 1 commit intomainfrom
mradwan/DATAGO-125747-outbox-batch-query
Open

feat(DATAGO-125747): batch pending event lookup for outbox#1166
mo-radwan1 wants to merge 1 commit intomainfrom
mradwan/DATAGO-125747-outbox-batch-query

Conversation

@mo-radwan1
Copy link
Collaborator

Summary

  • Adds get_entity_ids_with_pending_events() to OutboxEventRepository — single IN (...) query returning entity IDs with pending events
  • Used by enterprise list endpoints to replace N per-entity has_pending_event() calls when computing autoUpgradePending
  • Eliminates N+1 query pattern for paginated agent/gateway/remote-agent lists

Test plan

  • Existing outbox repository tests pass
  • Enterprise integration tests pass with updated community package

…ository

Adds get_entity_ids_with_pending_events() for single-query batch lookups,
replacing N per-entity has_pending_event() calls in enterprise list endpoints.
@github-actions
Copy link

✅ FOSSA Guard: Licensing (SolaceLabs_solace-agent-mesh) • PASSED

Compared against main (b309d8fa9c11a9d2a5f27fdd8c32b55c5f08ced8) • 0 new, 8 total (8 in base)

Scan Report | View Details in FOSSA

@github-actions
Copy link

✅ FOSSA Guard: Vulnerability (SolaceLabs_solace-agent-mesh) • PASSED

Compared against main (b309d8fa9c11a9d2a5f27fdd8c32b55c5f08ced8) • 0 new, 5 total (5 in base)

Scan Report | View Details in FOSSA

@sonarqube-solacecloud
Copy link

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants