Rish
572e56f90a
Removed redundant bulk email settings migration
...
no issue
2019-11-13 22:29:31 +05:30
Rish
e540f36a9a
Added new top-level bulk email settings
...
no issue
2019-11-13 22:29:31 +05:30
Peter Zimon
06afa4c042
Refined mail design
2019-11-13 14:11:54 +01:00
Rish
af43c0872c
Fixed mailgun not sending test emails due to empty recipient variables
...
no issue
Mailgun expects `recipient-variables` to be a json object and fails to attempt sending the message in case its undefined, which is the case for test emails as they don't have member `uuid` or `unsubscribe` url. This sets a default empty object for `recipent-variables` in case of no data.
2019-11-13 17:02:56 +05:30
Fabien O'Carroll
d4ab151fce
Removed basic email validation
...
no-issue
This was rubbish anyway, and we should just rely on the input having `type=email`
2019-11-13 18:18:49 +07:00
Naz Gargol
f5479e1473
Added batching support for bulk email service ( #11388 )
...
no issue
- The limitation on Mailgun side of API seems to be 1000 emails per message.
- The only place where I could find a hard limit of 1000 emails per
batch was this PHP SDK issue: https://github.com/mailgun/mailgun-php/issues/469
- To store ids of sent messages introduce a mega column on the emails table. They can be synced with stats or other metrics during even pooling in the future
- Removed redundant `join(',')` statement.The SDK accepts an array of emails as well. Less code - better code :)
2019-11-13 17:52:23 +07:00
Naz Gargol
208b710677
Added tagging support to bul email service ( #11390 )
...
no issue
- Tagging needs to be added to be able to group/filter sent messages for various reasons. An example use case is when multiple Ghost instances use the same mailgun account
- Tag value can be provided as a part of config.json file under
`bulkEmail.mailgun.tag` key
2019-11-13 17:36:19 +07:00
Nazar Gargol
c9bd4a6c97
Updated Ghost-Admin to 3.0.3
2019-11-11 18:55:36 +07:00
Naz Gargol
45253cfe5f
🐛 Fixed 3.0 SQLite subscribers migration ( #11383 )
...
closes #11349
- The main reason for failure was SQLite's 999 variable limit
- More details here https://github.com/TryGhost/Ghost/pull/11270
2019-11-11 18:20:38 +07:00
Nazar Gargol
ae5eb4802c
Reverted support to only data.post
in meta layer
...
no issue
- It was partially removed in https://github.com/TryGhost/Ghost/pull/11080/files but didn't take into account hardcoded value in format response stage
2019-11-11 17:49:36 +07:00
Nazar Gargol
6345684556
🐛 Fixed twitter meta description for pages
...
closes https://github.com/TryGhost/Ghost/issues/11317
refs https://github.com/TryGhost/Ghost/issues/10042
- Introduced with f69f04ae8d
- Description and possible solution available in https://github.com/TryGhost/Ghost/issues/10042#issuecomment-551467666
2019-11-11 17:49:03 +07:00
Hannah Wolfe
6c921bf2ef
Fix typo in regression test
2019-11-08 17:28:07 +07:00
Fabien O'Carroll
0a47adac88
Updated name of bulk email service config
...
no-issue
2019-11-08 17:26:05 +07:00
Hannah Wolfe
551e552928
Add a fallback API version, allows tests to pass
...
- 😏
- this shouldn't really be a thing, but it's better than updating 52 tests...
2019-11-08 17:24:10 +07:00
Fabien O'Carroll
11d0eff863
Converted bulk email service to use mailgun
...
no-issue
2019-11-08 17:21:20 +07:00
Fabien O'Carroll
00da426a02
Added unique_id to the recipient data
...
no-issue
This will be required by mailgun
2019-11-08 17:21:20 +07:00
Fabien O'Carroll
2b285c5fd3
Set from adress in the mega service
...
no-issue
2019-11-08 17:21:20 +07:00
Fabien O'Carroll
cc39786958
Updated members service to use config module
...
no-issue
2019-11-08 17:21:20 +07:00
Fabien O'Carroll
90d582c5f6
Added config module to members service
...
no-issue
This is for a central place to retrive member related settings from
2019-11-08 17:21:20 +07:00
Nazar Gargol
93b22af899
Added default stats object to email model
...
- The serialized object is meant to serve as a placeholder for future email related stats pooled from mail service provider
2019-11-08 17:11:54 +07:00
Naz Gargol
3f88e7de63
🐛 Fixed incorrect html title appearing on 'pages' pages ( #11358 )
...
closes #11357
- Change that introduced a bug was made in cbca480b97
- The condition could be removed once https://github.com/TryGhost/Ghost/issues/10042 is resolved. It is currently not dependent on the API version rather the object form used in the frontend.
2019-11-08 12:58:11 +07:00
Rish
0a17f5d3c0
Renamed migrations in correct sequence
2019-11-08 12:25:26 +07:00
Naz Gargol
b48f1f4b2c
Updated defaults handling for email property in posts ( #11355 )
...
no issue
- Fixed default email property output when the empty value is returned
- This is needed for consistency with other endpoint properties like primary_tag which are null when there is no value assigned
- Updated acceptance tests to handle email property
- Schema had to be updated to not use reference so that the information about email can be independent of the post - can still exist if the post is deleted
2019-11-08 11:40:49 +07:00
Nazar Gargol
13a0108aac
Moved email preview spec to acceptance tests
...
- Tests here are baseline usecases which should be always in check
- More edge case scenarios might go into regression suite in the future
2019-11-08 11:38:06 +07:00
Peter Zimon
ed2f9e499c
Fixed gallery image height
2019-11-07 17:17:34 +07:00
Nazar Gargol
3ca25886eb
Removed redundant context passing
...
- Context object is not needed when model is used directly
2019-11-07 17:09:30 +07:00
Rish
d7d06653df
Fixed email not returned in put object on post publish
2019-11-07 17:03:23 +07:00
Nazar Gargol
cc581c66ce
Inlined context use so it matches convention used in most of the codebase
2019-11-07 16:45:53 +07:00
Peter Zimon
47bc7c400c
Fixed pre style for email template
2019-11-07 16:31:48 +07:00
Nazar Gargol
fdba1cb95b
Updated status handling
...
- We need to distinguish 2 stages before and after attempted sending of the email
2019-11-07 16:26:34 +07:00
Nazar Gargol
92dc86f0a5
Changed existing email status handling according to chenges in schema
2019-11-07 16:26:34 +07:00
Nazar Gargol
d0e8561b03
Changed email model statuses in schema
...
- Renames were done as that suits how emails would be handled by the bulk email handler
- These statuses are only for internal representation of the state and don't represent what happens to emails delivery-wise
- There is no need for 'sent' status as emails are "never done" and stats wold be checked for stats field would be used to check on details of the status
2019-11-07 16:26:34 +07:00
Rishabh Garg
b1d436e2ee
Added input validation to strip email object on post ( #11351 )
...
no issue
Removes post email relation from edit/add requests as we don't want to edit email object directly as part of post
2019-11-07 16:11:37 +07:00
Nazar Gargol
b364fc5e35
Not creating email record when there is nobody to send it to
2019-11-07 16:00:18 +07:00
Rish
7e0da18f85
Fixed typo on email relation in model
2019-11-07 15:52:01 +07:00
Kevin Ansfield
2421516aa6
Made email
a default include on posts API in v3/canary
2019-11-07 12:47:07 +07:00
Nazar Gargol
3b792a075a
Fixed serializer unit tests
2019-11-07 12:27:02 +07:00
Nazar Gargol
640f7155fc
Fixed linter
2019-11-07 11:47:15 +07:00
Nazar Gargol
f34f4a7b8d
Added comment to addEmail method
2019-11-07 11:47:15 +07:00
Nazar Gargol
eca129c18d
Hooked mega service to listen to email.added event
...
- This was needed because we switched to synchronous request handling (to allow including email data with post.publish event)
2019-11-07 11:47:15 +07:00
Nazar Gargol
4e1caa8b08
Added email relation to post and allowed include for /posts
endpoint
2019-11-07 11:47:15 +07:00
Rish
97e2af9a06
Added mailgun domain to members subscription settings
...
no issue
- Delete api key and domain setting if its in the config to hide it in admin
2019-11-07 11:28:42 +07:00
Rish
86d6fc8578
Serialized post html for email
...
no issue
2019-11-07 11:15:16 +07:00
Rish
898c354644
Added [Test] for preview email subject
2019-11-06 19:20:12 +07:00
Rish
7b89cd445a
Fixed unsubscribe url for preview email
2019-11-06 18:36:27 +07:00
Peter Zimon
4b24780ebd
Refined figcaption size in emails
2019-11-06 18:35:03 +07:00
Rish
6357d0c79b
Fixed custom subject in email preview
2019-11-06 18:32:11 +07:00
Rish
77daa77e04
Added status=all by default to preview api
2019-11-06 18:18:44 +07:00
Fabien O'Carroll
81b9018526
Passed unsubscribeUrl template variable to bulk email
...
no-issue
2019-11-06 18:08:11 +07:00
Fabien O'Carroll
509682cd6a
Supported unsubscribe_url template variable for bulk email
...
no-issue
2019-11-06 18:08:11 +07:00