0
Fork 0
mirror of https://github.com/TryGhost/Ghost.git synced 2025-01-20 22:42:53 -05:00
ghost/core/server/models
Simon Backx efdc42c257
Fixed bulk unsubscribe and updated member import tests (#14610)
refs https://github.com/TryGhost/Team/issues/1567

**Changes in members-api**
- Compare changes: https://github.com/TryGhost/Members/compare/%40tryghost/members-api%406.1.0...%40tryghost/members-api%406.2.2
- Fixed bulk unsubscribe
- Deletes the newsletter relations instead of setting subscribed to false

**Test fail fix**
refs https://github.com/TryGhost/Ghost/pull/14621
refs https://ghost.slack.com/archives/C02G9E68C/p1651126990299689?thread_ts=1651072733.859939&cid=C02G9E68C

- Events didn't always have the same created_at as created members
- This caused a test to fail randomly in the main repo

**Changes**
- Added required helpers for members-api package
- Version bumps of other packages are only tooling related

**Tests**
- Tests if member import still works with the legacy `subscribed` flag
- Updated member importer to use multipleNewsletters flag
- Dropped legacy members tests
2022-04-28 09:50:05 +02:00
..
base Added support for 'FOR UPDATE' lock (#14433) 2022-04-08 12:52:33 +01:00
relations
action.js
api-key.js
author.js
benefit.js
custom-theme-setting.js
email-batch.js
email-recipient.js
email.js Filtered member email recipients based on the newsletter subscriptions (#14489) 2022-04-26 12:31:34 +01:00
index.js
integration.js
invite.js
label.js Replaced white/black list terminology 2022-04-19 11:19:59 +01:00
member-analytic-event.js
member-cancel-event.js Added the MemberCancelEvent model 2022-03-11 21:50:06 +01:00
member-email-change-event.js
member-login-event.js
member-paid-subscription-event.js
member-payment-event.js
member-product-event.js
member-status-event.js
member-stripe-customer.js
member-subscribe-event.js Added newsletter relation to subscribe events (#14585) 2022-04-27 16:44:27 +02:00
member.js Fixed bulk unsubscribe and updated member import tests (#14610) 2022-04-28 09:50:05 +02:00
mobiledoc-revision.js
newsletter.js Updated emails to use newsletter settings (#14588) 2022-04-27 18:48:36 +01:00
offer-redemption.js
offer.js
permission.js
post.js Moved to using newsletter design settings in email serializer (#14562) 2022-04-26 12:31:34 +01:00
posts-meta.js
product.js
role.js Replaced white/black list terminology 2022-04-19 11:19:59 +01:00
session.js
settings.js
single-use-token.js
snippet.js
stripe-customer-subscription.js Added mrr column to subscriptions (#14448) 2022-04-12 11:02:18 +02:00
stripe-price.js
stripe-product.js
tag-public.js
tag.js Replaced white/black list terminology 2022-04-19 11:19:59 +01:00
user.js Replaced white/black list terminology 2022-04-19 11:19:59 +01:00
webhook.js