Prepare for using content_id for matching list items #2223
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.
What
Prepare for another PR which relates to using content_id instead of base_path for matching list items. This PR adds a new database column which will store content_id. After the database is migrated is it necessary to run the rake task which will fill in the new column.
Previously content_id was retrieved dynamically from publishing-api. The rake task uses exactly the same mechanism to retrieve and store new content ids.
The rake task can be removed after it does its job in all environments.
Why
Trello ticket