DoSomething/dosomething — pull request #3537 by mshmsh5000 (2014-11-24 23:01:24+00:00)
Title: Fixes #3414: Script to populate Legacy/Beta alias/canonical path matrix

#### What's this PR do?

Creates a script to populate a CSV of legacy and beta redirects, correlating aliases and canonical paths.

More detail available in the block comments of the script comment itself.

#### Where should the reviewer start?

Take a look at the [redirect CSV](https://docs.google.com/a/dosomething.org/spreadsheet/ccc?key=0ApfENCbpVZv9dGNhQ2VMNnU5Ynh5Y3cwVlJhSTdHVUE&usp=sharing) and the original issue (#3414).

#### How should this be manually tested?

You can run against a [sample of redirects](https://gist.github.com/mshmsh5000/23f284dc3a2b3d2565eb), but you'll need [access to a legacy and a beta database](https://gist.github.com/mshmsh5000/b763c566ca66662c505b).

Then, from the Drupal root, you should be able to run

`drush --script-path=../scripts/ php-script 3414-redirect-reconciliation.php`

and find the output in `../scripts/redirects.processed.csv`.

#### Any background context you want to provide?

Nein

#### What are the relevant tickets?

#3414