Ghost/test/regression/api/v3/admin
Kevin Ansfield b08b95085e
Added default email recipients settings (#12925)
refs https://github.com/TryGhost/Team/issues/496

We want to give more control over the default selection of email recipients when publishing a post, to do that we need somewhere to store those settings. These settings are site-wide and intended for use by admins to control the default editor behaviour for all staff users. They _do not_ control API behaviour, if you want to send email when publishing via the API it's still necessary to explicitly opt in to that using the `?email_recipients_filter=` query param.

- new `editor` settings group to indicate that these settings only affect the UI rather than the API
- `editor_default_email_recipients` controls overall behaviour, string/enum with these allowed values:
  - `'disabled'`: no option to send email is shown in the editor's publishing dropdown
  - `'visibility'`: (default) selected member segment is dynamic and matches the post visibility filter
  - `'filter'`: specific member filter defined in `editor_default_email_recipients_filter` setting
- `editor_default_email_recipients_filter` is an NQL string for selecting members, used when `editor_default_email_recipients` is set to `'filter'`
  - default value is `'all'`
  - the segment string can be any valid NQL filter with the additional special-case values of `'all'` and `'none'`
2021-05-07 09:30:57 +01:00
..
authentication_spec.js Added regression tests for the v3 endpoints 2021-01-22 16:32:03 +13:00
db_spec.js Expanded requires of lib/common i18n and events 2021-05-03 17:14:52 +01:00
identities_spec.js Updated tests to reflect jwks-rsa v2 changes 2021-04-16 09:58:47 +01:00
images_spec.js Added regression tests for the v3 endpoints 2021-01-22 16:32:03 +13:00
labels_spec.js Added regression tests for the v3 endpoints 2021-01-22 16:32:03 +13:00
members_signin_url_spec.js Added regression tests for the v3 endpoints 2021-01-22 16:32:03 +13:00
members_spec.js Fixed typo in test case name 2021-03-30 17:54:53 +13:00
notifications_spec.js Added regression tests for the v3 endpoints 2021-01-22 16:32:03 +13:00
pages_spec.js Added regression tests for the v3 endpoints 2021-01-22 16:32:03 +13:00
posts_spec.js Updated bson-objectid calls to match API change 2021-04-21 16:23:52 +01:00
redirects_spec.js Added regression tests for the v3 endpoints 2021-01-22 16:32:03 +13:00
schedules_spec.js Added regression tests for the v3 endpoints 2021-01-22 16:32:03 +13:00
settings_spec.js Added default email recipients settings (#12925) 2021-05-07 09:30:57 +01:00
site_spec.js Added regression tests for Admin API /site endpoints 2021-03-09 22:10:27 +13:00
slack_spec.js Expanded requires of lib/common i18n and events 2021-05-03 17:14:52 +01:00
users_spec.js Updated bson-objectid calls to match API change 2021-04-21 16:23:52 +01:00
utils.js Updated utils for site endpoint response checks 2021-03-09 22:12:05 +13:00
webhooks_spec.js Fixed fixture creation order in webhooks tests 2021-03-04 10:56:58 +01:00