Skip to content

Latest commit

 

History

History
34 lines (28 loc) · 1.39 KB

TODO.md

File metadata and controls

34 lines (28 loc) · 1.39 KB

TODOs

  • check on all occurencies of /* istanbul ignore ... */ for missing tests, or better syntax

  • Eventstore asserts refactored

  • messageBus instance is mandatory

  • factor out validators to own module

  • check to also emit state to views (is state current state?) => no should not be emited

  • are sagas sequenced? => Yes, with locks they are

  • shouldn't we keep multiple snapshot versions? => Yes, and we do :)

  • check for restore option/method

  • add a view event to listen for completion?

  • restore from snapshot

  • recheck for any eslint disable

  • remove unused files

  • remove unused code

  • './utils/validators' => './utils'

  • restore -> redux?, https://medium.com/@sderosiaux/cqrs-what-why-how-945543482313 (We often have a function to replay everything at once, sometimes called a calculator, reducer, replayer:)

  • rename some methods to align with semantics cqrs.nu

  • recheck TODOs

  • recheck /* istanbul ignore and add appropiate unit/regeression tests

  • refactor/review busses

  • refactor/review EventStore (ie. publish() async/await sequence vs. parallel)

next interation

  • refactor/review di/Container
  • clearly document in variants of declaring handles!
  • make EventStream a real stream

Epic: Saga

  • maybe better rename saga.enqueue to somthing command related
  • review & refactor Saga implementation