Ghost/ghost/core
Kevin Ansfield e80fb5e20f
🐛 Fixed tiers not appearing on custom signup pages (#16828)
refs https://github.com/TryGhost/Team/issues/3248

- API queries for tiers are now using the TiersRepository with internal caching
- the repository had a bug with it's `toPrimitive()` method which meant the cached tier objects had very few properties
  - the Tier object has all properties as private getters except for standard `events` property which meant the spread operator didn't have anything to spread into the object resulting in all tiers having a shape like `{events: [], active: true, type: 'paid', id: 'abcd'}`
- the `getAll()` method uses nql to match against the cached tier objects but with them not being fully populated it wasn't able to match and so returned an empty array

---

- changing the spread to use `tier.toJSON()` means we're populating all of the tier data properly allowing filter matches to work
2023-05-18 18:13:20 +01:00
..
content 🎨 Updated Casper to v5.4.11 2023-05-12 15:02:19 +00:00
core 🐛 Fixed tiers not appearing on custom signup pages (#16828) 2023-05-18 18:13:20 +01:00
test 🐛 Fixed trailing slash and space in HTML metadata elements (#16778) 2023-05-17 08:51:32 +02:00
.c8rc.e2e.json Reduced coverage to accommodate Node 18 discrepancies 2023-03-22 09:59:55 +01:00
.c8rc.json Added eslint rule for file naming convention 2023-05-09 12:34:34 -04:00
.eslintignore Updated .eslintignore list for core 2022-10-10 15:12:52 +07:00
.eslintrc.js Added eslint rule for file naming convention 2023-05-09 12:34:34 -04:00
.npmignore Updated .npmignore with new files 2022-11-30 12:40:47 +07:00
config.development.json Converted Ghost repo into a monorepo 2022-07-20 16:41:05 +02:00
ghost.js Added browser-based testing framework 2022-11-22 14:12:34 +00:00
index.js Converted Ghost repo into a monorepo 2022-07-20 16:41:05 +02:00
jsconfig.json Deleted reference to core/admin 2022-08-03 16:28:41 +02:00
loggingrc.js Added version information to log lines 2023-01-20 13:18:44 +01:00
MigratorConfig.js Added eslint rule for file naming convention 2023-05-09 12:34:34 -04:00
package.json Updated kg dependencies 2023-05-17 15:58:51 +02:00
playwright.config.js Separated admin and portal tests to different projects 2023-03-16 18:35:09 +04:00