alphagov/transition — pull request #82 by jamiecobbett (2013-11-22 11:04:40+00:00)
Title: Import Whitehall URLs (mappings)

When a document is added to Whitehall, an Old URL can be associated it. Whitehall exposes a CSV of these old URLs and the new URLs to create/update mappings in redirector's "munge" process. This file is generated twice per day.

There are about 220,000 rows in that CSV, with about 43,000 published items with Old URLs.

This Pull Request is about mirroring that behaviour: as documents with Old URLs are added to Whitehall and then published, Transition will create or update mappings.

Not included in this:
* creating 410 mappings for content not yet published
* recording in Transition that something is being written for an Old URL