boostercloud / booster

Booster Framework

Home Page:https://www.boosterframework.com

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Event Handlers Not Triggered for Entities Without Associated Read Models in Local Debugging Server

javiertoledo opened this issue · comments

Bug Report

Current Behavior

When an entity is not linked to a read model, it's observed that the events associated with such entity do not trigger the event handlers on the local debugging server. This hampers the local development and testing processes as the event handlers do not respond as anticipated.

Expected behavior

Event handlers should be triggered by the associated events of an entity, regardless of whether the entity is connected to a read model or not, ensuring consistent behavior across all provider implementations.

Possible Solution

Implement unit/integration tests that reproduce the issue and check that the issue is not present in other implementations apart of the local provider. Review the event handling mechanism on the local debugging server, especially focusing on the linkage between entities, read models, and event triggers.

Additional information

Environment

  • Booster version: 1.19.0
  • Node/npm version: node 16
  • OS: OSX

Comments

This issue has been reported by a user facing difficulties in local debugging due to event handlers not being triggered as expected when an entity is not associated with a read model. Addressing this issue could significantly improve the local development experience by ensuring reliable event handling.