geosolutions-it / nexus-geonode

Nexus Platform
BSD 2-Clause "Simplified" License
0 stars 4 forks source link

Drop CuratedThumbnail and fix the metadata wizard thumbnail widget #546

Closed giohappy closed 2 years ago

giohappy commented 2 years ago

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

marthamareal commented 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

giohappy commented 2 years ago

yes @marthamareal

marthamareal commented 2 years ago

@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.

giohappy commented 2 years ago

@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