Ghost/core/server/data
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
..
db Added new, simpler, linear boot process 2021-02-08 11:56:44 +00:00
exporter Removed stripe keys and analytics data from export (#12573) 2021-01-28 14:55:54 +05:30
importer Refactored usage of the pre v4 "slack" setting 2021-02-15 15:25:54 +13:00
migrations Refactored usage of the pre v4 "slack" setting 2021-02-15 15:25:54 +13:00
schema 🏗 Updated "slack" setting into "slack_{url,username}" 2021-02-15 15:25:54 +13:00
validation Improved settings validation (#12048) 2020-07-15 17:11:27 +02:00