Ghost/core/server/api/canary
Fabien 'egg' O'Carroll 6140a98351
Updated newsletter functionality to use email_recipient_filter (#12343)
no-issue

* Used email_recipient_filter in MEGA

This officially decouples the newsletter recipients from the post
visibility allowing us to send emails to free members only

* Supported enum for send_email_when_published in model

This allows us to migrate from the previously used boolean to an enum
when we eventually rename the email_recipient_filter column to
send_email_when_published

* Updated the posts API to handle email_recipient_filter

We now no longer rely on the send_email_when_published property to send
newsletters, meaning we can remove the column and start cleaning up the
new columns name

* Handled draft status changes when emails not sent

We want to reset any concept of sending an email when a post is
transition to the draft status, if and only if, and email has not
already been sent. If an email has been sent, we should leave the email
related fields as they were.

* Removed send_email_when_published from add method

This is not supported at the model layer

* Removed email_recipient_filter from v2&Content API

This should not be exposed on previous api versions, or publicly

* Removed reference to send_email_when_published

This allows us to move completely to the email_recipient_filter
property, keeping the code clean and allowing us to delete the
send_email_when_published column in the database. We plan to then
migrate _back_ to the send_email_when_published name at both the
database and api level.
2020-11-06 17:32:23 +00:00
..
utils Updated newsletter functionality to use email_recipient_filter (#12343) 2020-11-06 17:32:23 +00:00
actions.js Updated canary actions endpoint 2019-08-14 17:40:36 +08:00
authentication.js Moved config from server to shared (#11850) 2020-05-27 18:47:53 +01:00
authors-public.js Refactored common lib import to use destructuring (#11835) 2020-05-22 19:22:20 +01:00
config.js Enabled Portal (#12317) 2020-11-03 14:36:21 +05:30
db.js Refactored common lib import to use destructuring (#11835) 2020-05-22 19:22:20 +01:00
email-preview.js Refactor mega service to use stored email content and batch/recipient records 2020-09-29 17:17:54 +01:00
email.js Refactored common lib import to use destructuring (#11835) 2020-05-22 19:22:20 +01:00
identities.js Moved core/server/lib/url-utils to core/shared/url-utils (#11856) 2020-05-28 11:57:02 +01:00
images.js Removed global.Promise override (#12182) 2020-11-04 10:55:47 +00:00
index.js Added basic CRUD admin API for snippets 2020-10-16 18:02:58 +01:00
integrations.js Refactored common lib import to use destructuring (#11835) 2020-05-22 19:22:20 +01:00
invites.js Fixed "no-shadow" linting error in server modules (#12287) 2020-10-20 12:02:56 +13:00
labels.js Added more specific error handling when adding duplicate labels 2020-06-05 00:23:10 +12:00
mail.js Refactored common lib import to use destructuring (#11835) 2020-05-22 19:22:20 +01:00
members.js Allowed for comped field when creating a member through Members API (#12278) 2020-10-14 13:24:09 +13:00
memberSigninUrls.js Updated getMagicLink call to handle Promise return 2020-09-18 10:49:18 +01:00
membersStripeConnect.js Supported test mode in members_stripe_connect API 2020-06-10 14:06:57 +02:00
notifications.js Refactored common lib import to use destructuring (#11835) 2020-05-22 19:22:20 +01:00
oembed.js 🐛 Fixed broken embeds cards when pasting links to Wordpress sites (#12262) 2020-10-06 08:44:03 +01:00
pages-public.js Refactored common lib import to use destructuring (#11835) 2020-05-22 19:22:20 +01:00
pages.js Allowed ?formats param in Admin API post+page create/edit requests 2020-06-18 13:59:01 +01:00
posts-public.js Refactored common lib import to use destructuring (#11835) 2020-05-22 19:22:20 +01:00
posts.js Updated newsletter functionality to use email_recipient_filter (#12343) 2020-11-06 17:32:23 +00:00
preview.js Refactored common lib import to use destructuring (#11835) 2020-05-22 19:22:20 +01:00
redirects.js Added .yaml format support in redirects configuration (#12187) 2020-11-04 12:08:32 +13:00
roles.js 💡 Added canary api endpoint 2019-08-09 20:46:49 +05:30
schedules.js 🐛 Fixed scheduled post emails pointing at /404/ for the "view online" link 2020-10-08 10:26:49 +01:00
session.js Refactored common lib import to use destructuring (#11835) 2020-05-22 19:22:20 +01:00
settings-public.js Moved core/server/lib/url-utils to core/shared/url-utils (#11856) 2020-05-28 11:57:02 +01:00
settings.js 🐛 Fixed email verification mails not sent 2020-09-24 23:39:25 +05:30
site.js Enabled Portal (#12317) 2020-11-03 14:36:21 +05:30
slack.js Refactored common lib import to use destructuring (#11835) 2020-05-22 19:22:20 +01:00
slugs.js Refactored common lib import to use destructuring (#11835) 2020-05-22 19:22:20 +01:00
snippets.js Added basic CRUD admin API for snippets 2020-10-16 18:02:58 +01:00
tags-public.js Refactored common lib import to use destructuring (#11835) 2020-05-22 19:22:20 +01:00
tags.js Refactored common lib import to use destructuring (#11835) 2020-05-22 19:22:20 +01:00
themes.js Refactored common lib import to use destructuring (#11835) 2020-05-22 19:22:20 +01:00
users.js Refactored common lib import to use destructuring (#11835) 2020-05-22 19:22:20 +01:00
webhooks.js Added check for parent integration_id when creating a webhook 2020-09-24 15:09:51 +12:00