Ghost/core/server
Kevin Ansfield c1d66f0b01
Added email_recipients include option to members API read endpoint (#12471)
refs https://github.com/TryGhost/Ghost-Admin/pull/1796

We want to be able to display an email activity timeline in Ghost-Admin for each member. The quickest way to achieve that right now is to provide access to the `email_recipient` data for the member when fetching, this will allow clients to build up a timeline based on the event timestamps included with each email_recipient/email pair.

- sets up `email_recipients` relationship in `Member` model
- updates members API read endpoint to accept an `email_recipients` include parameter
  - appends `email_recipients.email` to the `withRelated` array when `email_recipients` is included so that we have data available for email subject and html/plaintext for previews
- updates members API output serializer to include the email_recipients object in the output
2020-12-10 10:04:05 +00:00
..
adapters Fixed malformatted JSDoc {Object} parameters 2020-11-30 17:18:13 +13:00
api Added email_recipients include option to members API read endpoint (#12471) 2020-12-10 10:04:05 +00:00
data Added members.email_{count,opened_count} column migrations (#12470) 2020-12-09 12:21:56 +00:00
lib Refactored core/server/lib/image for Dependency Injection (#12463) 2020-12-09 13:19:22 +01:00
models Added email_recipients include option to members API read endpoint (#12471) 2020-12-10 10:04:05 +00:00
public Enabled Portal (#12317) 2020-11-03 14:36:21 +05:30
services Fixed sqlite storing member email open rate as floats 2020-12-10 10:00:25 +00:00
translations Updated redirect error message 2020-11-04 12:26:22 +13:00
views Updated head to only output custom favicons (#11949) 2020-06-30 15:07:08 +01:00
web Removed Members CSV import validation endpoint 2020-12-09 19:25:57 +00:00
analytics-events.js Moved config from server to shared (#11850) 2020-05-27 18:47:53 +01:00
ghost-server.js Improved job queue logging 2020-11-25 13:28:13 +13:00
index.js Prevented scheduling of recurring analytics jobs when not using emails (#12441) 2020-12-02 08:17:44 +00:00
overrides.js Improved threading performance on non-SQLite clients 2020-11-30 13:27:40 +13:00
update-check.js Moved core/server/lib/common/logging to core/shared/logging (#11857) 2020-05-28 19:30:23 +01:00