Ghost/ghost/admin/app/models
Kevin Ansfield fcb27507d3 🐛 Fixed slow loading and high memory usage of members list screen
refs https://github.com/TryGhost/Team/issues/1423

- problem:
  - all members requests were automatically adding `?include=email_recipients` as the email recipients relationship was set up to be always embedded
  - embedded email_recipient records also embed the whole email record
  - on the members index screen this meant for each of the 50 members loaded on a page we were also loading every email they have ever received resulting in a huge API response
  - this was not a problem previously because the API was ignoring the `include` parameter on the browse endpoint and Admin wasn't formatting the include properly in snake_case
- solution:
  - the only place we need associated email recipients is on the member details screen where they are used to show the email activity feed
  - removing the `{embedded: 'always'}` option for the `member.emailRecipients` association stops `?include=email_recipients` being added automatically to every members request
  - the member details screen explicitly adds `?include=email_recipients` so no further changes are needed
  - activity feed will be changing to use proper event objects in the future and further optimisation can be made
2022-03-15 18:26:24 +00:00
..
action.js Upgraded eslint-plugin-ghost and fixed new linter errors 2020-01-16 17:01:12 +00:00
api-key.js Upgraded eslint-plugin-ghost and fixed new linter errors 2020-01-16 17:01:12 +00:00
base.js updated to use new model._meta 2020-02-10 12:41:35 +00:00
custom-theme-setting-list.js Added customThemeSettings service with all-records-in-one save request 2021-09-28 16:50:28 +01:00
custom-theme-setting.js Added support for boolean custom theme settings 2021-10-13 17:55:17 +01:00
email-recipient.js Added activity feed to member details screen (#1796) 2020-12-10 11:38:38 +00:00
email.js Added email open rate to posts list in admin (#1772) 2020-11-26 17:19:05 +00:00
integration.js Upgraded eslint-plugin-ghost and fixed new linter errors 2020-01-16 17:01:12 +00:00
invite.js Ran ember-cli-update --run-codemods (#2219) 2022-01-21 19:25:47 +00:00
label.js Added labels for Members (#1477) 2020-02-14 15:04:01 +05:30
member-product.js Wired up Member details screen to Custom Products 2021-04-26 17:28:39 +01:00
member-subscription.js Updated member model to use new subscriptions structure 2019-10-03 23:10:42 +05:30
member.js 🐛 Fixed slow loading and high memory usage of members list screen 2022-03-15 18:26:24 +00:00
navigation-item.js Ran ember-cli-update --run-codemods (#2219) 2022-01-21 19:25:47 +00:00
notification.js Upgraded eslint-plugin-ghost and fixed new linter errors 2020-01-16 17:01:12 +00:00
offer.js Updated default offer duration as once 2021-10-19 00:19:32 +05:30
page.js 🎨 Separated post and page list screens (#1101) 2019-02-22 10:17:33 +07:00
post.js Updated specific tier visibility handling for posts/pages (#2233) 2022-02-01 12:24:06 +05:30
product-benefit-item.js Ran ember-cli-update --run-codemods (#2219) 2022-01-21 19:25:47 +00:00
product.js Added default visibility to new tiers 2022-03-08 14:20:24 +05:30
role.js Upgraded eslint-plugin-ghost and fixed new linter errors 2020-01-16 17:01:12 +00:00
setting.js Updated specific tier handling for default post access setting (#2246) 2022-02-04 21:00:59 +05:30
slack-integration.js Ran ember-cli-update --run-codemods (#2219) 2022-01-21 19:25:47 +00:00
snippet.js Renamed snippet.title to snippet.name for consistency 2020-10-16 10:15:07 +01:00
stripe-price.js Updated price description to sentence case 2021-05-10 18:48:39 +05:30
tag.js Added UI for setting tag metadata (#1632) 2020-07-13 14:58:13 +02:00
theme.js Upgraded eslint-plugin-ghost and fixed new linter errors 2020-01-16 17:01:12 +00:00
user.js Renamed isAdmin/isOwner/isAdminOrOwner to reduce confusion 2021-07-12 14:55:56 +02:00
webhook.js Upgraded eslint-plugin-ghost and fixed new linter errors 2020-01-16 17:01:12 +00:00