Ghost/test/regression/api/canary/admin
Fabien O'Carroll 8880cc82c7 Refactored usage of the pre v4 "slack" setting
refs https://github.com/TryGhost/Ghost/issues/10318

- Change/compatibility table for this changeset:

Importer

+ "slack_username"  import
- "slack_url" ignore
+ "slack.username" import
- "slack.url" ignore

v3 & canary/v4 Admin APIs
GET /settings/ (browse)

+ "slack_username" present in response
+ "slack_url" present in response
+ "slack" present in response

GET /settings/:settingName (read)

+ "slack_username" present in response
+ "slack_url" present in response
+ "slack" present in response

PUT /settings/ (edit)

+ "slack_username" updates setting
+ "slack_url" updates setting
+ "slack" !NOTE! updates setting unless "slack_username" or "slack_ur"l are set (updated keys take priority)

v2 Admin API
GET /settings/ (browse)

- "slack_username" NOT present in response
- "slack_url" NOT present in response
+ "slack" present in response

GET /settings/:settingName (read)

- "slack_username" ignored (404)
- "slack_url" ignored (404)
- "slack" present in response

PUT /settings/ (edit)

- "slack_username" ignored (no error)
- "slack_url" ignored (no error)
+ "slack" updates setting
2021-02-15 15:25:54 +13:00
..
authentication_spec.js Improved error messaging for password reset process 2020-09-22 15:45:19 +12:00
db_spec.js Added missing canary test present in v3 tests 2020-12-01 09:35:24 +00:00
identities_spec.js Fixed "no-shadow" eslint warning in tests 2020-10-19 17:45:26 +13:00
images_spec.js Moved config from server to shared (#11850) 2020-05-27 18:47:53 +01:00
labels_spec.js Added more specific error handling when adding duplicate labels 2020-06-05 00:23:10 +12:00
members_signin_url_spec.js Granted Admin users ability to impersonate member (#12132) 2020-08-18 14:17:56 +05:30
members_spec.js 🏗 Flattened members subscriptions data in API (#12581) 2021-02-02 16:12:53 +00:00
notifications_spec.js Moved config from server to shared (#11850) 2020-05-27 18:47:53 +01:00
pages_spec.js Moved config from server to shared (#11850) 2020-05-27 18:47:53 +01:00
posts_spec.js Added email.open_rate order option to posts api (#12439) 2020-12-03 20:13:37 +00:00
redirects_spec.js 🐛 Fixed redirects "to" query params forwarding (#12333) 2021-01-05 14:11:06 +13:00
schedules_spec.js Moved config from server to shared (#11850) 2020-05-27 18:47:53 +01:00
settings_spec.js Refactored usage of the pre v4 "slack" setting 2021-02-15 15:25:54 +13:00
slack_spec.js Removed final non-destructured imports of core/server/lib/common (#11858) 2020-05-28 17:54:18 +01:00
users_spec.js Moved config from server to shared (#11850) 2020-05-27 18:47:53 +01:00
utils.js 🏗 Altered slug unique constraint in posts table 2021-02-09 13:31:12 +13:00
webhooks_spec.js Fixed integration_id assignment for webhook when creating through API key auth 2020-08-04 16:43:24 +12:00