redbadger / website-next

DEPRECATED incarnation of Red Badger company site
https://redbadger.github.io/website-next/
6 stars 2 forks source link

Creating event with minimal data brings down the website #191

Open ranjith0 opened 8 years ago

ranjith0 commented 8 years ago

STAGING:

  1. Create a new event just completing the Title of event field
  2. Save and publish
  3. The website collapses in a heap of 💩
event catastrophe
jameshopkins commented 8 years ago

Whilst the issue itself is noticeable on website-next my suspicion is that we're not correctly handling unexpected types from Prismic. Unfortunately, Prismic has no concept of mandatory fields, which means we have to be extremely defensive with value setting i.e always provide a default value.

lpil commented 8 years ago

Prismic has no concept of mandatory fields

:( Ouch, was very much hoping that wasn't the case.