Ghost/ghost/members-api/lib/repositories
Simon Backx b916300ceb
Added aggregated click events (#15713)
fixes https://github.com/TryGhost/Team/issues/2175

- New event type `aggregated_click_event` that is disabled by default in all the existing activity feeds
- This returns click events, but only the first click events for each member/post combination.
- It includes the total count of unique link clicks for that member on that post combination
- Had to resort to some custom knex queries to make this work easily
- Requires `@tryghost/bookshelf-pagination@0.1.31`, included in `@tryghost/bookshelf-plugins@0.6.1` (this fixes an issue with custom selects breaking the total count query of pages)
- Went a bit overboard with the pagination tests to cover as much unknown edge cases as possible
2022-10-27 17:23:45 +02:00
..
event.js Added aggregated click events (#15713) 2022-10-27 17:23:45 +02:00
member.js Added linking between member and subscription created events (#15693) 2022-10-27 11:44:19 +02:00
product.js Added 'getDefaultProduct' convenience method to product repo 2022-10-20 17:19:52 +08:00