0
Fork 0
mirror of https://github.com/TryGhost/Ghost.git synced 2025-02-03 23:00:14 -05:00
ghost/test/unit
Kevin Ansfield 1bc57b584a
Added posts_meta.feature_image_{alt,caption} columns (#13030)
refs https://github.com/TryGhost/Team/issues/770

We want post feature image functionality to better match what's available inside the editor, to do that we'll need somewhere to store alt and caption meta data. `posts_meta` chosen because even though we want to make this generic for other tables in the future those tables also have a `feature_image` (or closely related) field.

- updated schema with new columns
- added migration to create columns
- cleaned new columns from API output
  - not output on v2/v3
  - conditionally output on v4/canary output based on labs flag
- bumped `@tryghost/admin-api-schema` to allow new columns through in canary API requests
  - silently clean properties from input when labs flag is disabled
  - updated acceptance tests so they fail if `admin-api-schema` is not letting the new fields through
2021-06-10 20:35:56 +01:00
..
adapters Refactored scheduling index files into class/initializer pattern 2021-05-25 22:32:41 +04:00
api Added support for gating content by member labels and products (#12946) 2021-05-10 19:32:11 +01:00
apps Moved active theme to new theme engine service 2021-04-23 15:28:50 +01:00
data Added posts_meta.feature_image_{alt,caption} columns (#13030) 2021-06-10 20:35:56 +01:00
helpers Added initial match helper 2021-06-07 21:15:05 +01:00
lib Extracted package-json lib to Utils 2021-05-07 12:35:06 +01:00
models Expanded requires of lib/common i18n and events 2021-05-03 17:14:52 +01:00
server Expanded requires of lib/common i18n and events 2021-05-03 17:14:52 +01:00
services Enabled all labs flags when testing (#13036) 2021-06-10 12:54:34 +01:00
shared Added fake logging to i18n tests 2021-05-06 19:38:01 +01:00
web Fixed broken require path (bridge in tests) 2021-04-26 15:01:10 +01:00