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
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
Fabien O'Carroll
00db1d385c
Added createUnsubscribeUrl fn to mega
...
no-issue
2019-11-06 18:08:11 +07:00
Rish
4db260f17e
Added authors to email preview template
2019-11-06 18:03:46 +07:00
Fabien O'Carroll
c64be968c1
Updated default values for post model
...
no-issue
2019-11-06 17:32:14 +07:00
Rish
90af59d15c
Fixed test preview mail for draft posts
2019-11-06 17:02:42 +07:00
Rish
30f8cfddb4
Added mail. api key to default setting
...
no issue
2019-11-06 16:24:22 +07:00
Peter Zimon
4bd5b1c435
Added unsubscribe URL
2019-11-06 16:19:21 +07:00
Peter Zimon
36f7a88b84
Added current year in email footer
2019-11-06 16:17:03 +07:00
Nazar Gargol
055fc6b09a
Added email record after mage service sends an email
2019-11-06 15:56:56 +07:00
Nazar Gargol
c1ba238450
Fixed typo in email permissions migration
2019-11-06 15:56:56 +07:00
Nazar Gargol
6bc8a1bb18
Added email resource permission
2019-11-06 15:56:56 +07:00
Nazar Gargol
0e822b4d54
Added field defaults
2019-11-06 15:56:56 +07:00
Nazar Gargol
ae14eb00f9
Implemented GET /emails/:id
endpoint
2019-11-06 15:56:56 +07:00
Nazar Gargol
c264a5d8c4
Added email model
2019-11-06 15:56:56 +07:00
Nazar Gargol
fc9e62b1a2
Added emails table migration
2019-11-06 15:56:56 +07:00
Nazar Gargol
f0c0ea2197
Added emails table schema definition
2019-11-06 15:56:56 +07:00
Peter Zimon
2c55b82be1
Refined email template
2019-11-06 15:47:20 +07:00
Peter Zimon
d6e8db28ab
Refined email template
2019-11-06 15:39:27 +07:00
Fabien O'Carroll
030819dc9e
Added eslint ignore comments for template
...
no-issue
2019-11-06 15:30:37 +07:00
Fabien O'Carroll
cd6de74010
Added migration to populate missing uuid fields
...
no-issue
This is to ensure that all members have a uuid
2019-11-06 15:30:37 +07:00
Fabien O'Carroll
f2709964ae
Added migration for members uuid column
...
no-issue
2019-11-06 15:30:37 +07:00
Fabien O'Carroll
354e59a795
Added defaults to member model
...
no-issue
2019-11-06 15:30:37 +07:00
Fabien O'Carroll
a7e7f74f8b
Wired up middleware to handle unsubscribing
...
no-issue
2019-11-06 15:30:37 +07:00
Fabien O'Carroll
73b00e77c2
Added unsubscribe handler to mega service
...
no-issue
2019-11-06 15:30:37 +07:00
Fabien O'Carroll
23964750a9
Allowed getting member by uuid
...
no-issue
2019-11-06 15:30:37 +07:00
Fabien O'Carroll
389b034875
Added uuid column to members table
...
no-issue
This will be used for unsubscribe links
2019-11-06 15:30:37 +07:00
Rish
45cd39c386
Fixed members settings cleanup for mailgun config
2019-11-06 15:21:46 +07:00
Rish
b3aba084ee
Fixed fixture for send test email
2019-11-06 15:21:46 +07:00
Hannah Wolfe
9a2719ac4f
Decoupled routing service and theme service
...
- This is a fairly temporary state
- It at least removes the themeService require from inside the routingService
- Requires us to pass the routingService the desired API Version...
- We're working towards having the entire frontend respect the theme API version by having it passed around everywhere
2019-11-06 15:20:13 +07:00
Hannah Wolfe
ca61e245e8
Updated syntax in labs service
...
- use consistent, simpler syntax
2019-11-06 14:53:53 +07:00
Peter Zimon
c2633b09ea
Refined post email template
2019-11-06 14:53:40 +07:00
Hannah Wolfe
7a36200e24
🐛 Ensure deprecated labs flags are unset
...
fixes #11343
- solves the case where themes depends on old labs flags that are now always false, but the DB still has the feature set to true
- add concept of deprecated labs flags to the labs service
- make sure that the labs service gets used in our theme middleware
- added tests and other small fixes
2019-11-06 14:42:39 +07:00
Rish
9018e64493
Fixed email preview auth for test mails
...
no issue
2019-11-06 13:15:14 +07:00