You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When an input is stopped either by the user or due to an error (deleted from the InputRegistry), an InputStopped event should be propagated by the EventBus.
When an input is deleted (deleted from the InputStateService), an InputDeleted event should be propagated by the EventBus
Current Behavior
Currently, an InputDeleted event is propagated by the EventBus in both cases (input stopped and input deleted). This makes it impossible for components to react to one event type but not the other.
Context
For a new Input with persistent state stored in MongoDB, I would like to delete the MongoDB record when the Input is deleted, but retain the MongoDB record when the input is stopped. This is currently impossible because both state transitions emit the same event type.
The text was updated successfully, but these errors were encountered:
This is a workaround for the problem described in #7812.
When we receive an "InputDeleted" event, check if the input still exists
in the database. If so, the input has only been stopped and we don't
want to delete our state.
Refs #7812
Expected Behavior
When an input is stopped either by the user or due to an error (deleted from the
InputRegistry
), anInputStopped
event should be propagated by the EventBus.When an input is deleted (deleted from the
InputStateService
), anInputDeleted
event should be propagated by the EventBusCurrent Behavior
Currently, an
InputDeleted
event is propagated by the EventBus in both cases (input stopped and input deleted). This makes it impossible for components to react to one event type but not the other.Context
For a new Input with persistent state stored in MongoDB, I would like to delete the MongoDB record when the Input is deleted, but retain the MongoDB record when the input is stopped. This is currently impossible because both state transitions emit the same event type.
The text was updated successfully, but these errors were encountered: