Ghost/ghost/member-attribution
Simon Backx f124d142c9 Added member attributions to activity feed (#15283)
refs https://github.com/TryGhost/Team/issues/1833
refs https://github.com/TryGhost/Team/issues/1834

We've added the attribution property to subscription and signup events when the
flag is enabled. The attributions resource is fetched by creating multiple relations
on the model, rather than polymorphic as we ran into issues with that as they can't
be nullable/optional.

The parse-member-event structure has been updated to make it easier to work with,
specifically `getObject` is only used when the event is clickable, and there is now a 
join property which makes it easier to join the action and the object.
2022-08-24 11:17:28 -04:00
..
lib Added member attributions to activity feed (#15283) 2022-08-24 11:17:28 -04:00
test Added member attributions to activity feed (#15283) 2022-08-24 11:17:28 -04:00
.eslintrc.js Added member attribution events and storage (#15243) 2022-08-18 17:38:42 +02:00
index.js Improved dependency structure of member-attribution package 2022-08-22 11:36:24 +02:00
package.json Added member attribution events and storage (#15243) 2022-08-18 17:38:42 +02:00
README.md Added member attribution events and storage (#15243) 2022-08-18 17:38:42 +02:00

Member Attribution

Usage

Develop

This is a monorepo package.

Follow the instructions for the top-level repo.

  1. git clone this repo & cd into it as usual
  2. Run yarn to install top-level dependencies.

Test

  • yarn lint run just eslint
  • yarn test run lint and tests