alphagov/whitehall — pull request #182 by h-lame (2013-02-05 14:23:38+00:00)
Title: Import without dates

When importing we can leave date fields blank and the date will still be imported, but they won't be able to get out of the 'imported' state until we edit the documents to fill those blanks in.

This covers:

Publications: published_date
Consultations: opening_date, closing_date
News Article: first_published
Speeches: delivered_on

Note that the absence of the delivered_on in a speech import means that the importer will ignore any delivered_by information in the row. The importer links speeches to people through the appointment they held on the date the speech was given, without this date we can't find the correct appointment so we ignore it and the user has to fill in both details manually before they can convert the document to draft.

From a data point of view this means that there are now going to be editions that do not have a public_timestamp, or first_published_at because they don't have values for those fields yet. Although this data is only allowed to be missing when the documents are in the 'imported' state. It'll get set as soon as they become draft.