Ghost/ghost/core/test/e2e-api/admin
Simon Backx 5235d67fed
Added comment events to activity feed (#15064)
refs https://github.com/TryGhost/Team/issues/1709

- New event type `comment_event` (comments and replies of a member in the activity feed)
- Includes member, post and parent relation by default
- Added new output mapper for ActivityFeed events

**Changes to `Comment` model:**
* **Only limit comment fetched to root comments when not authenticated as a user:** 
`enforcedFilters` is applied to all queries, which is a problem because for the activity feed we also need to fetch comments which have a parent_id that is not null (`Member x replied to a comment`). The current filter in the model is specifically for the members API, not the admin API (so checking the user should fix that, not sure if that is a good pattern but couldn’t find a better alternative).
* **Only set default relations for comments when withRelated is empty or not set:**
`defaultRelations`: Right now, for every fetch it would force all these relations. But we don’t need all those relations for the activity feed; So I updated the pattern to only set the default relations when it is empty (which we also do on a couple of other places and seems like a good pattern). I also updated the comments-ui frontend to not send ?include
2022-07-25 17:48:23 +02:00
..
__snapshots__ Added comment events to activity feed (#15064) 2022-07-25 17:48:23 +02:00
actions.test.js Converted Ghost repo into a monorepo 2022-07-20 16:41:05 +02:00
config.test.js Converted Ghost repo into a monorepo 2022-07-20 16:41:05 +02:00
custom-theme-settings.test.js Converted Ghost repo into a monorepo 2022-07-20 16:41:05 +02:00
db.test.js Converted Ghost repo into a monorepo 2022-07-20 16:41:05 +02:00
email-previews.test.js Converted Ghost repo into a monorepo 2022-07-20 16:41:05 +02:00
emails.test.js Converted Ghost repo into a monorepo 2022-07-20 16:41:05 +02:00
explore.test.js Converted Ghost repo into a monorepo 2022-07-20 16:41:05 +02:00
files.test.js Converted Ghost repo into a monorepo 2022-07-20 16:41:05 +02:00
images.test.js Converted Ghost repo into a monorepo 2022-07-20 16:41:05 +02:00
integrations.test.js Converted Ghost repo into a monorepo 2022-07-20 16:41:05 +02:00
invites.test.js Converted Ghost repo into a monorepo 2022-07-20 16:41:05 +02:00
key-authentication.test.js Converted Ghost repo into a monorepo 2022-07-20 16:41:05 +02:00
labels.test.js Converted Ghost repo into a monorepo 2022-07-20 16:41:05 +02:00
media.test.js Converted Ghost repo into a monorepo 2022-07-20 16:41:05 +02:00
members-exporter.test.js Converted Ghost repo into a monorepo 2022-07-20 16:41:05 +02:00
members-importer.test.js Converted Ghost repo into a monorepo 2022-07-20 16:41:05 +02:00
members-newsletters.test.js Converted Ghost repo into a monorepo 2022-07-20 16:41:05 +02:00
members-stripe-connect.test.js Converted Ghost repo into a monorepo 2022-07-20 16:41:05 +02:00
members.test.js Added comment events to activity feed (#15064) 2022-07-25 17:48:23 +02:00
newsletters.test.js Converted Ghost repo into a monorepo 2022-07-20 16:41:05 +02:00
notifications.test.js Converted Ghost repo into a monorepo 2022-07-20 16:41:05 +02:00
oembed.test.js Converted Ghost repo into a monorepo 2022-07-20 16:41:05 +02:00
offers.test.js Converted Ghost repo into a monorepo 2022-07-20 16:41:05 +02:00
pages.test.js Converted Ghost repo into a monorepo 2022-07-20 16:41:05 +02:00
posts.test.js Converted Ghost repo into a monorepo 2022-07-20 16:41:05 +02:00
redirects.test.js Converted Ghost repo into a monorepo 2022-07-20 16:41:05 +02:00
roles.test.js Converted Ghost repo into a monorepo 2022-07-20 16:41:05 +02:00
session.test.js Converted Ghost repo into a monorepo 2022-07-20 16:41:05 +02:00
settings-files.test.js Converted Ghost repo into a monorepo 2022-07-20 16:41:05 +02:00
settings.test.js Converted Ghost repo into a monorepo 2022-07-20 16:41:05 +02:00
site.test.js Converted Ghost repo into a monorepo 2022-07-20 16:41:05 +02:00
slugs.test.js Converted Ghost repo into a monorepo 2022-07-20 16:41:05 +02:00
snippets.test.js Converted Ghost repo into a monorepo 2022-07-20 16:41:05 +02:00
stats.test.js Converted Ghost repo into a monorepo 2022-07-20 16:41:05 +02:00
tags.test.js Converted Ghost repo into a monorepo 2022-07-20 16:41:05 +02:00
themes.test.js Converted Ghost repo into a monorepo 2022-07-20 16:41:05 +02:00
tiers.test.js Converted Ghost repo into a monorepo 2022-07-20 16:41:05 +02:00
users.test.js Converted Ghost repo into a monorepo 2022-07-20 16:41:05 +02:00
utils.js Converted Ghost repo into a monorepo 2022-07-20 16:41:05 +02:00
webhooks.test.js Converted Ghost repo into a monorepo 2022-07-20 16:41:05 +02:00