0
Fork 0
mirror of https://github.com/TryGhost/Ghost.git synced 2025-02-10 23:36:14 -05:00
ghost/test/unit
Rishabh 3e9a23355f Handled visibility filter in post/page API
refs https://github.com/TryGhost/Team/issues/849

As part of work for segmented post access with multiple products, the custom filter for post access is stored in `visibility` field on posts but passed with `visibility_filter` property on API. This change -

- updates input serializer of posts to transform `visibility` and `visibility_filter` properties correctly
- updates output serializer for canary to transform and send `visibility_filter` attribute with filter value
- updates output serializer for v3 to ignore any custom filter on visibility and return `paid` instead as v3 didn't have a concept of custom filter
2021-07-05 17:10:45 +05:30
..
adapters Refactored scheduling index files into class/initializer pattern 2021-05-25 22:32:41 +04:00
api Handled visibility filter in post/page API 2021-07-05 17:10:45 +05:30
apps Moved settings/cache to shared/settings-cache 2021-06-30 15:49:10 +01:00
data Added webp image support (#13105) 2021-07-02 09:37:54 +01:00
helpers Fixed feature_image_caption needing triple-curlies in themes (#13107) 2021-07-01 17:55:44 +01:00
lib Added webp image support (#13105) 2021-07-02 09:37:54 +01:00
meta Fixed missing renames getExcerpt -> generateExcerpt 2021-07-02 09:44:18 +01:00
models Moved settings/cache to shared/settings-cache 2021-06-30 15:49:10 +01:00
server Removed unused reinit function 2021-06-30 12:44:32 +01:00
services Fixed lint error 2021-07-01 21:02:06 +04:00
shared Moved settings/cache to shared/settings-cache 2021-06-30 15:49:10 +01:00
web Moved settings/cache to shared/settings-cache 2021-06-30 15:49:10 +01:00