wellcomecollection / content-api

📖 The API + ETL pipeline for searching the Wellcome Collection Prismic Repository.
MIT License
0 stars 0 forks source link

Add publishDate to articles graphQuery #128

Closed rcantin-w closed 6 months ago

rcantin-w commented 6 months ago

What does this change?

publishDate now gets fetched from articles in Prismic. We actually thought we already had it as it's being used elsewhere in the code, but it seems it was never there to start with (or maybe a too-thorough cleanup happened at some point).

How to test

Snapshots have been updated and a new article with a publishDate value was added to the mix.

How can we measure success?

Articles now use that field for ordering if it has a value

Have we considered potential risks?

It's just pulling an extra field so this should be a safe change.