Closed giohappy closed 2 years ago
NOTICE: the migration must take care of the existing curated thumbnails. When needed the resource thumbnail_url and link must be updated, and the image files must be moved out of the "curated" folder
@giohappy Do you mean having a management script that will
uploaded/thumbs
folder?CACHE/images/curated_thumbs
folder?yes @marthamareal
@giohappy Don't we need a separate issue for this command? Because we can not retrieve the curated thumbs from the same PR where we are removing the model.
@marthamareal can't you do it inside a migration with a PythonRun? The goal is to migrate curated thumbnails, both as data and image files. I suppose it can be done inside a migration, without a direct reference to the python class, cant'it? We did something similar in the past. Look at this for example
CuratedThumbnail is a concept that we're not using anymore. The new API (https://github.com/GeoNode/geonode/issues/8561) for setting thumbnails, and the resource manager, directly set the thumbnail (and the corresponding link) directly, without creating a curated thumbnail object.
We want to
NOTICE: the migration must take care of the existing curated thumbnails. When needed the resource thumbnail_url and link must be updated, and the image files must be moved out of the "curated" folder