Ghost/ghost/admin/tests/acceptance
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
..
members Added "Name" and "Email" filters to members screen 2022-03-10 16:45:24 +00:00
settings Resolved ember-cli-mirage import deprecations 2022-03-08 11:32:01 +00:00
authentication-test.js 🎨 Redesigned user authentication pages (#2286) 2022-03-08 17:30:46 +00:00
content-test.js Contributors updates (#2235) 2022-02-01 18:59:20 +01:00
custom-post-templates-test.js Updated for breaking changes in ember-cli-mirage@1.0.0 2019-05-27 09:58:33 +01:00
dashboard-test.js Fixed linter error for unused variable in dashboard-test.js 2022-03-08 19:23:03 +00:00
editor-test.js 🐛 Fixed "Must be in the past" error when closing and re-opening publish menu whilst scheduling 2022-03-11 10:13:08 +00:00
error-handling-test.js Resolved ember-cli-mirage import deprecations 2022-03-08 11:32:01 +00:00
launch-flow-test.js Fixed unauthed access to launch wizard and updated test to use Owner user 2021-02-04 17:45:16 +00:00
members-activity-test.js Added initial setup of members activity feed 2022-01-17 18:06:12 +00:00
members-test.js 🐛 Fixed slow loading and high memory usage of members list screen 2022-03-15 18:26:24 +00:00
offers-test.js Added non-Stripe members setting screen acceptance tests 2022-02-18 22:36:01 +00:00
password-reset-test.js Updated for breaking changes in ember-cli-mirage@1.0.0 2019-05-27 09:58:33 +01:00
setup-test.js Fixed test 2022-03-11 12:52:30 +00:00
signin-test.js Resolved ember-cli-mirage import deprecations 2022-03-08 11:32:01 +00:00
signup-test.js 🎨 Redesigned user authentication pages (#2286) 2022-03-08 17:30:46 +00:00
staff-test.js Resolved ember-cli-mirage import deprecations 2022-03-08 11:32:01 +00:00