Closed duker33 closed 5 years ago
High-level pseudocode for the script
- pickle data to json
- take categories
- take all non-series categories with at least one product
- redirects
- take products
- group prods to options
- find parent categories over series
- bind them to tags and series
- redirects
- assert taken categories count: `before + to_take == after`
- assert taken products<->options count: `before + to_take == after`
i'll log it with astro-hours
1. Old DB to json
https://gist.github.com/duker33/c26b179d0aff1c054ebd513f59e9cafb
2. Import categories and products from json
https://gist.github.com/duker33/680082d893aba91995ad9082832e8ffe
launched the script on prod. Final output:
categories 191 -> 196
products 710 -> 818
options 12197 -> 14132
tags 4073 -> 5699
redirects 197 -> 560
spent 24 astro hours totally
At #670 we've found the lost categories and products data. Now take it to the prod DB