Ghost/ghost/member-attribution/test
Simon Backx 74ecde73db
Moved attribution event handler to events service (#15379)
fixes https://github.com/TryGhost/Team/issues/1821

This change moves all the event storage logic to one new place: the event storage class in the MembersEventsService, which is initialised in a new members events service wrapper.

Apart from this, this includes some improvements:
- Removed DomainEvents from the constructor arguments to the subscribe method (to make it more clear where to subscribe to and decrease dependencies)
- LastSeenAtUpdater doesn't subscribe in the constructor any longer (removes unclear side effect)
- Moved LastSeenAtUpdater initialisation to new members events service wrapper
- Added missing tests to LastSeenAtUpdater to assure that the MembersEventsService package has 100% coverage.
2022-09-07 16:41:59 +02:00
..
utils Added member attribution events and storage (#15243) 2022-08-18 17:38:42 +02:00
.eslintrc.js Added member attribution events and storage (#15243) 2022-08-18 17:38:42 +02:00
attribution.test.js Removed out of date history items from UrlHistory 2022-08-25 16:09:34 -04:00
history.test.js Removed out of date history items from UrlHistory 2022-08-25 16:09:34 -04:00
service.test.js Added member attributions to activity feed (#15283) 2022-08-24 11:17:28 -04:00
url-translator.test.js Added member attributions to activity feed (#15283) 2022-08-24 11:17:28 -04:00