Ghost/ghost/admin/mirage/serializers
Thibaut Patel a47b61c1d4 Added canceled subscriptions in member detail screen (#2287)
refs https://github.com/TryGhost/Team/issues/1141

Showing canceled subscriptions provide a more complete picture of the activity of a member.

- Given there is no `member.product` object when a subscription is canceled, use the `member.subscriptions.price.product` objects instead of `member.products`.
- applied boy-scout rule for linter errors and and code formatting
- removed `multipleTiers` flag conditionals as it's now GA
- set up subscriptions as a separate mirage resource so they are easier to work with
    - updated `PUT /members/:id/` endpoint to match real API's complimentary subscription behaviour
    - modified mirage member serializer to match API output

Co-authored-by: Kevin Ansfield <kevin@lookingsideways.co.uk>
Co-authored-by: Peter Zimon <peter.zimon@gmail.com>
2022-03-18 16:15:42 +00:00
..
application.js Resolved ember-cli-mirage import deprecations 2022-03-08 11:32:01 +00:00
integration.js Added initial custom integrations UI (#1051) 2018-10-18 00:18:29 +01:00
label.js Added ability to bulk delete members by label or status (#1883) 2021-04-08 12:06:27 +01:00
member-activity-event.js Refactored member activity list components 2022-01-19 12:58:09 +00:00
member.js Added canceled subscriptions in member detail screen (#2287) 2022-03-18 16:15:42 +00:00
page.js Removed use of ?include=tags,authors,authors.roles query param on post/page requests 2019-02-25 21:55:55 +07:00
post.js Removed use of ?include=tags,authors,authors.roles query param on post/page requests 2019-02-25 21:55:55 +07:00
product-benefit.js Added non-Stripe members setting screen acceptance tests 2022-02-18 22:36:01 +00:00
product.js Added non-Stripe members setting screen acceptance tests 2022-02-18 22:36:01 +00:00
subscription.js Added canceled subscriptions in member detail screen (#2287) 2022-03-18 16:15:42 +00:00
tag.js Automatically update count.posts when serialising tags in mirage 2018-11-08 13:49:00 +00:00
user.js Resolved ember-cli-mirage import deprecations 2022-03-08 11:32:01 +00:00