Ghost/test
Rishabh Garg eeafc8603b
Added pivot table to store tiers on post (#14038)
refs https://github.com/TryGhost/Team/issues/1071

We used `posts.visibility` originally to store visibility as `free|paid` with a character limit of 50. This same field was repurposed to store an NQL filter when member tiers is enabled. The NQL filter uses the slug of the tier name, which can easily create a filter longer than 50 characters, adding an unwanted limitation on number of tiers that can be added to post's visibility.
Going forward, we'd like to store the visibility of posts for tiers in a separate pivot table and instead store the value of `visibility` as `tiers` when restricting post access to specific tiers. This change -

- adds a new pivot table fixture for storing relation between posts and tiers
- adds a migration for creating the new table
- updates tests
2022-01-31 15:33:58 +05:30
..
e2e-api Removed ancient Casper fixture 2022-01-24 12:24:51 +00:00
e2e-frontend Updated casper test fixture to latest version 2022-01-25 14:10:53 +00:00
e2e-server Fixed ETag header for admin templates not changing between versions (#13680) 2021-10-22 14:25:58 +01:00
integration Added pivot table to store tiers on post (#14038) 2022-01-31 15:33:58 +05:30
regression Updated casper test fixture to latest version 2022-01-25 14:10:53 +00:00
unit Added pivot table to store tiers on post (#14038) 2022-01-31 15:33:58 +05:30
utils Updated casper test fixture to latest version 2022-01-25 14:10:53 +00:00
.eslintignore Updated casper test fixture to latest version 2022-01-25 14:10:53 +00:00
.eslintrc.js Upgraded no-skipped-test rule to error 2021-05-26 14:57:43 +01:00
.jshintrc Move tests from core to root (#11700) 2020-03-30 16:26:47 +01:00