Add slugs and YAML IDs to all videos.yml files#708
Closed
Conversation
Member
|
nice you might want keep the rake task |
Member
Author
|
@adrienpoly I actually tried to use the rake task but it wouldn't fetch all talks from production. It would only get ~4000 out of the 6000+ talks. |
Member
|
hum that is strange. Maybe there is a scope where it retrieves only the talks of a certain kind (with youtube video or something like that ???) |
Member
Author
|
I added the script and the Ruby script I used for dumping the slugs here: Lines 4 to 5 in 9c712de |
d35f39a to
ec30df0
Compare
Member
Author
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
This pull request adds the slugs from production to the YAML files so they are going to be fixed from now on.
Additionally, it adds an
idkey to make sure we are able to identify talks when are updating the video_id throughout the lifecycle of an event.For example, when a talk gets added as "scheduled" we don't have the final YouTube ID yet. But as soon as we get that talk recording on YouTube we would update the ID and therefore loose the identifier we are using to match the record in the database with the data in the static YAML file.
Alternative to #646