Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Add quick-cryptic crossword type #240

Merged
merged 1 commit into from
Mar 4, 2024
Merged

Add quick-cryptic crossword type #240

merged 1 commit into from
Mar 4, 2024

Conversation

andrew-nowak
Copy link
Member

Adds the upcoming Quick-Cryptic crossword type to the CAPI models. Required to have the crossword type correctly parsed from ES and returned in the Concierge response.

Tested as a local snapshot and confirmed working end-to-end through local Crosswordv2/Composer/CAPI

Before:

...
"crossword": {
  "type": "enum-unknown-crossword-type-1",
...

After:

...
"crossword": {
  "type": "quick-cryptic",
...

@andrew-nowak andrew-nowak requested a review from a team as a code owner February 29, 2024 16:49
Copy link
Contributor

@jonathonherbert jonathonherbert left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Seems reasonable. Who the heck is DIAN 😀

Point of interest – what maps QUICK_CRYPTIC to quick-cryptic? It doesn't look like it's scrooge fezziwig.

@andrew-nowak
Copy link
Member Author

yep, both those questions had me scratching my head, but since I was getting the answer I wanted I didn't question it too much -- now have gone back and traced it out and it looks like it's this thrift enum decoder in the json module https://github.com/guardian/content-api-models/blob/main/json/src/main/scala/com/gu/contentapi/json/CirceEncoders.scala#L20-L23

@andrew-nowak andrew-nowak merged commit 0c6f44a into main Mar 4, 2024
1 check passed
@andrew-nowak andrew-nowak deleted the an/quick-cryptic branch March 4, 2024 09:25
# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants