Simon Backx
876c1024c9
Added liked property to comments
...
refs https://github.com/TryGhost/Team/issues/1664
2022-07-12 10:24:02 +02:00
Simon Backx
54e7a6cec3
Added default comment relations
...
refs https://github.com/TryGhost/Team/issues/1664
2022-07-12 10:24:02 +02:00
Hannah Wolfe
e5e05c292c
Added basic test fixture structure for comments
...
refs https://github.com/TryGhost/Team/issues/1664
- includes a comment and a reply for now
2022-07-12 10:24:02 +02:00
Hannah Wolfe
caef9d74e0
Added mapper for comments API
...
refs https://github.com/TryGhost/Team/issues/1664
- ensure that the comment API returns a minimal and clean set of data and doesn't expose member details
2022-07-12 10:24:02 +02:00
Simon Backx
e96ff3fa81
Added comments API like and unlike actions
...
refs https://github.com/TryGhost/Team/issues/1664
- Added comment-like model
- Added like endpoint
- Added unlike endpoint
- Added basic tests for liking and unliking comments
- Added permissions for liking and unliking
- Added migration for permissions
2022-07-12 10:24:02 +02:00
Kevin Ansfield
25c0b75426
Added comments API tests
...
refs https://github.com/TryGhost/Team/issues/1664
Note: we put it in the members-comments folder because some issue with test ordering
- refs https://ghost.slack.com/archives/C02G9E68C/p1657538586658649?thread_ts=1657522575.865029&cid=C02G9E68C
- There is something wrong with the url service reset when running multiple tests
- Currently we are doing a soft reset, this needs investigating
- Changing the order so that the comments API tests are executed after the content API tests, fixes the issue too.
Co-authored-by: Simon Backx <simon@ghost.org>
2022-07-12 10:24:02 +02:00