Closed andrew-nowak closed 1 month ago
TODO:
Seen on usage (merged by @andrew-nowak 7 minutes and 38 seconds ago) Please check your changes!
Seen on auth, metadata-editor, thrall, collections, media-api (merged by @andrew-nowak 7 minutes and 43 seconds ago) Please check your changes!
Seen on leases (merged by @andrew-nowak 7 minutes and 55 seconds ago) Please check your changes!
Seen on image-loader (merged by @andrew-nowak 8 minutes and 41 seconds ago) Please check your changes!
What does this change?
Adds a new metadata field named "image type" (or
imageType
in code responses), to designate an image as either "Photograph", "Illustration" or "Composite".This has been requested by the Guardian's picture desk, so we can designate images into one of these categories and have that value pull through automatically into the content publishing tools.
Requires a mapping update (no migration necessary) -- see instructions at https://github.com/guardian/grid/tree/main/scripts#updatemapping
Values are set in config, by adding a key eg.
imageTypes = ["Photograph", "Illustration", "Composite"]
Currently this value is only required by Kahuna, but I would recommend setting in common config, so that the values can be read by other services, in the case of future extensions of this feature.
How should a reviewer test this change?
Deploy to TEST, and try setting the value
How can success be measured?
Who should look at this?
Tested? Documented?