mirror of
https://github.com/outbackdingo/firezone.git
synced 2026-01-27 10:18:54 +00:00
Now that the WAL consumer has been dry running in production for some time, we can begin moving events over to it. We start with a relatively simple case: the account `config_changed` event. Since side effects now happen decoupled from the actual record updates, testing is updated in this PR: - We don't expect broadcasts to happen in the `accounts_test.exs` - these context modules are now solely responsible for managing updates to records and will no longer need to worry about side effects (in the typical case) like subscribe and broadcast - The Event hooks module now contains all logic related to processing side effects for a particular account update. The net effect is that we now have dedicated module and tests for side effects, starting with `accounts`. Related: #6294 Related: #8187