0
Fork 0
mirror of https://github.com/TryGhost/Ghost.git synced 2025-02-10 23:36:14 -05:00
ghost/test
Rishabh eac732f620 Added tiers data for posts with non tiers visibility
refs https://github.com/TryGhost/Team/issues/1004

The `tiers` column for a post/page only contained data if its visibility is set to `tiers`, otherwise its empty. This is because originally the purpose of `tiers` column on `post` was to capture specific tiers with access to post.
The best way to ensure a consistent behavior for `tiers` column data on post is to update it to always contain list of all `tiers` that have access to post, and not just when the visibility is `tiers`. This means the value is set to all tiers when visibility is one of public|members, and only paid tiers when visibility is `paid`.  This change also allows on frontend to get all relevant `tiers` information for a post locally within post context instead of relying on additional information from outside.

This change -

- updates the output serializer for post/page to add all desired tiers manually in case of visibility is not `tiers`
- updates tests
2022-03-04 18:22:59 +05:30
..
e2e-api Added tiers data for posts with non tiers visibility 2022-03-04 18:22:59 +05:30
e2e-browser Added note about installing the E2E browsers 2022-02-22 10:20:40 +01:00
e2e-frontend Added the last_seen_at update on member page view 2022-03-02 13:58:26 +01:00
e2e-server
integration Updated tests to handle visibility tier 2022-02-01 11:13:51 +05:30
regression Fixed use of anyDate matcher 2022-03-03 12:06:40 +07:00
unit Added tiers data for posts with non tiers visibility 2022-03-04 18:22:59 +05:30
utils Renamed e2e framework date matchers 2022-03-01 18:17:13 +07:00
.eslintignore Updated casper test fixture to latest version 2022-01-25 14:10:53 +00:00
.eslintrc.js
.jshintrc