Join GitHub today
GitHub is home to over 20 million developers working together to host and review code, manage projects, and build software together.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
Already on GitHub? Sign in to your account
AO3-5125 Map Open Doors temp site URLs to original site URLs #3016
Conversation
elzj
added some commits
Aug 27, 2017
| @@ -0,0 +1,19 @@ | ||
| +namespace :opendoors do |
| @@ -0,0 +1,19 @@ | ||
| +namespace :opendoors do | ||
| + desc "Map import urls based on spreadsheet data" | ||
| + task(:import_url_mapping => :environment) do |
| + work.save! | ||
| + end | ||
| + rescue | ||
| + puts "Could not update work from #{row["Original URL"]}" |
sarken
added
the
Awaiting review
label
Aug 30, 2017
sarken
requested a review
from
ariana-paris
Sep 12, 2017
ariana-paris
approved these changes
Sep 12, 2017
This will come in handy for the outstanding archives we promised to do redirects for (though the general sentiment in OD is that maybe they'll stop making these rash promises to save us all some trouble)
ariana-paris
changed the title from
AO3-5125: Opendoors mapping
to
AO3-5125 Map Open Doors temp site URLs to original site URLs
Sep 12, 2017
sarken
added
Reviewed: Ready to Merge
and removed
Awaiting review
labels
Sep 15, 2017
sarken
merged commit b446eb2
into
otwcode:master
Oct 5, 2017
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
elzj commentedAug 30, 2017
Issue
https://otwarchive.atlassian.net/browse/AO3-5125
Purpose
Adds a task to map Open Doors imports to their original urls via csv files
Testing
Will work with Ariana to test this - I believe you'll be able to see the updated import urls on the admin backend