Rish
b3aba084ee
Fixed fixture for send test email
2019-11-06 15:21:46 +07:00
Peter Zimon
c2633b09ea
Refined post email template
2019-11-06 14:53:40 +07:00
Rish
9018e64493
Fixed email preview auth for test mails
...
no issue
2019-11-06 13:15:14 +07:00
Rish
3e331fcf86
Fixed lint
2019-11-06 12:15:03 +07:00
Rish
cc514f1776
Fixed permission for test email API
2019-11-06 12:09:55 +07:00
Rish
686e0143c7
Added date formatting for email post data
...
no issue
2019-11-06 12:06:24 +07:00
Rish
3023619ac9
Allowed status data for email preview API
...
no issue
2019-11-06 11:57:46 +07:00
Naz Gargol
69bd4bdd4e
Added post email preview permissions migrations ( #11345 )
2019-11-06 11:38:30 +07:00
Peter Zimon
7f3a1e93ae
Working on email template
2019-11-06 10:21:58 +07:00
Nazar Gargol
d47100168b
Removed post only fields from pages
...
- As we introduced email_subject and send_email_when_published for post responses we don't want to return them for pages
2019-11-05 18:42:31 +07:00
Rish
d5aa38464b
Added mail provider api key setting migration
...
no issue
2019-11-05 18:35:07 +07:00
Rish
78a9463243
Updated members setting serializer for mail config
2019-11-05 18:23:23 +07:00
Nazar Gargol
bb223f9f4d
Allowed editing subscribed field for members
2019-11-05 18:03:19 +07:00
Nazar Gargol
d0bf6e8579
Filtered out members which are unsubscribed in mailing service
2019-11-05 17:00:21 +07:00
Nazar Gargol
1ef015da10
Added subscribed
column to members
table
...
no issue
- Needed for unsubscribe functionality
2019-11-05 17:00:21 +07:00
Peter Zimon
b2f86315c0
Updated post email template
2019-11-05 16:37:12 +07:00
Rish
4a53184d7f
Added send preview email API
...
no issue
2019-11-05 16:09:18 +07:00
Nazar Gargol
5d76ceef8b
Added plaintext field to email preview response
2019-11-05 15:04:48 +07:00
Fabien O'Carroll
d1812281f7
Updated serialisation to use current attributes
...
no-issue
We were getting some funny behaviour before this because some previous
attributes were just the defaults, when a post was new
2019-11-05 12:53:14 +07:00
Fabien O'Carroll
84300747a9
Added content gating to the mega service
...
no-issue
2019-11-05 12:53:14 +07:00
Fabien O'Carroll
15ffae211d
Refactored members content gating check
...
no-issue
2019-11-05 12:53:14 +07:00
Fabien O'Carroll
6c97db2c22
Added content-gating module to members service
...
no-issue
This should be used as the central place to manage permissions to
members content
2019-11-05 12:53:14 +07:00
Fabien O'Carroll
0689ae9657
Fixed JSDoc comments for bulk emailer
...
no-issue
2019-11-05 12:53:14 +07:00
Nazar Gargol
a527a08cb0
Fixed linter error
2019-11-05 12:24:28 +07:00
Nazar Gargol
9daed773c9
Added email preview output serializer
2019-11-05 12:15:50 +07:00
Nazar Gargol
c913b0cbbf
Extracted post email serializer from mega service
2019-11-05 12:15:50 +07:00
Nazar Gargol
8a7bf353d4
Added email preview controller
2019-11-05 12:15:50 +07:00
Nazar Gargol
61af0e08ae
Added email preview endpoint to Admin API
2019-11-05 12:15:50 +07:00
Nazar Gargol
60fd91b839
Added preview permissions
2019-11-05 12:15:50 +07:00
Fabien O'Carroll
3b11d25170
Fixed check for send_email_when_published
...
no-issue
2019-11-05 11:28:16 +07:00
Peter Zimon
5aaee4e8b2
Fixed post serialisation
2019-11-05 11:20:03 +07:00
Naz Gargol
977298b6e1
Added basic HTML template support to MEGA ( #11336 )
...
no issue
- Sends formatted email to members
- Added css inlining support for MEGA template
- Migrated MEGA service to use API serializers
- Service needs to be compliant with the API to be able to serve absolute URLs for resources like images
- Fixed send email check for previously sent mails
2019-11-04 17:53:42 +07:00
Rish
424e3aea7c
Added restriction to not send mail for published posts
...
no issue
2019-11-04 16:07:33 +07:00
Rish
5b438d3df9
Added action for post email delievery
...
no issue
2019-11-04 15:42:00 +07:00
Nazar Gargol
fb88c541be
Fixed custom subjects for mega emails
2019-11-04 15:24:20 +07:00
Naz Gargol
74f2145e81
Added MEGA service ( #11333 )
...
no issue
- This services listens to 'post.publish' event, assemples email data and calls bulk mailer
2019-11-04 14:38:40 +07:00
Fabien O'Carroll
39688cef07
Fixed bulk-email service loop
...
no-issue
2019-11-04 13:23:49 +07:00
Rish
2ac2975178
Added migrations for email settings
...
no issue
2019-11-04 13:22:03 +07:00
Rishabh Garg
f2f9073edd
Added email subject post meta field ( #11335 )
...
no issue
2019-11-04 13:15:23 +07:00
Fabien O'Carroll
8503105b39
Improved bulk email service
...
no-issue
Used proper logging
2019-11-04 13:01:58 +07:00
Kevin Ansfield
e63083cd32
Added "send_email_when_published" migration
2019-11-04 12:58:42 +07:00
Fabien O'Carroll
5b071d08de
Made send_email_when_published nullable
...
no-issue
2019-11-04 12:53:08 +07:00
Fabien O'Carroll
20ce0c313c
Added initial bulk-email service
...
no-issue
This is a simple wrapper around the current ghost mailer service for now
2019-11-04 12:36:12 +07:00
Fabien O'Carroll
a30caa5c66
Added send_email_when_published to post input schema
...
no-issue
This is required to allow us to send the flag into the api
2019-11-04 12:03:24 +07:00
Fabien O'Carroll
3fc3c52dd3
Added flag for sending email when post is published
...
no-issue
2019-11-04 11:56:46 +07:00
Kevin Ansfield
6b420d0cbd
✨ Added member.edited
webhook
...
no issue
- member model emits a `member.edited` event on update
- webhooks service listens for `member.edited` event and will trigger any registered hooks
2019-10-31 14:34:50 +00:00
Kevin Ansfield
a339a838b3
Removed /api/v2/members/ endpoints ( #11308 )
...
no issue
- this was a hangover from earlier members betas
- members is only available on `v3` and `canary` APIs
2019-10-31 11:11:46 +00:00
Naz Gargol
0c3b90283a
Renamed members to post-gating for better context ( #11309 )
...
no issue
- Using members.js naming for the file was a bad choice and lead to some false signals when doing a cleanup. `post-gating` is more explicit and to the point of what the module is responsible for
2019-10-31 10:33:37 +01:00
Kevin Ansfield
1fd7014c45
Fixed member.deleted webhook having an empty payload
...
no issue
- the members output serializer was passing model objects through on `frame.response` but the webhooks serializer doesn't know how to deal with those
- adjusting the output serializer to use a mapper as per the other serializers means that POJOs are being passed through which allows the webhook serializer to correctly pick out the changed attributes
2019-10-31 15:19:45 +07:00
Naz Gargol
9b347d6d95
🐛 Fixed 3.0 migration on SQLite with many posts ( #11302 )
...
refs https://github.com/TryGhost/Ghost/pull/11270
- Fixed 3.0/11-update-posts-html migration which failed in scenario when more than 999 posts with posts_meta relation were present
- The issue was originally spotted here: https://github.com/TryGhost/Ghost/pull/11270#issuecomment-546248308
- The main problem is in the `SELECT` statement which is generated for `findAll` method in Bookshelf which creates `WHERE IN(post_ids_here)` statement with all posts in the database
- Using knex directly as that's a preferred way to write migrations (does not depend on the model layer)
2019-10-29 12:16:47 +00:00