Ghost/test/unit/services
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
..
apps Updated var declarations to const/let and no lists 2020-04-29 16:51:13 +01:00
auth Removed global.Promise override (#12182) 2020-11-04 10:55:47 +00:00
mail Fixed "no-shadow" eslint warning in tests 2020-10-19 17:45:26 +13:00
members 🏗 Flattened members subscriptions data in API (#12581) 2021-02-02 16:12:53 +00:00
permissions Fixed "no-shadow" eslint warning in tests 2020-10-19 17:45:26 +13:00
routing Fixed "no-shadow" eslint warning in tests 2020-10-19 17:45:26 +13:00
rss Fixed posts_meta relation in test fixtures 2020-09-17 20:46:45 +12:00
settings Updated code to reflect js-yaml dependency changes 2021-02-10 11:39:30 +00:00
themes Updated links to ghost.org sites 2021-01-20 09:59:45 +13:00
url Moved core/server/lib/common/logging to core/shared/logging (#11857) 2020-05-28 19:30:23 +01:00
labs_spec.js Move tests from core to root (#11700) 2020-03-30 16:26:47 +01:00
slack_spec.js Refactored usage of the pre v4 "slack" setting 2021-02-15 15:25:54 +13:00
xmlrpc_spec.js Moved core/server/lib/common/logging to core/shared/logging (#11857) 2020-05-28 19:30:23 +01:00