-
Notifications
You must be signed in to change notification settings - Fork 1.1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Migration form Version 3.2 to 4 – map config is missing #9252
Comments
@t-book in theory the upgrade should work seamlessly since the migrations have the needed code to migrate maps data. |
Hi @t-book, @giohappy The PR is available here: GeoNode/geonode-mapstore-client#959
|
Is there any documentation on migrating from 3.3 / 3.2 to 4 available? |
@gannebamm in theory running the migrations should be enough. We have tried to make the transition as smooth as possible, without any manual intervention or custom commands to apply. |
Yes, @gannebamm - for me now, the core geonode migration "just worked". Just pull the new code & run migrations. If you're using geonode-project, I found the easiest thing to do was create a fresh 4.x project with the same name as my existing, and then merge my 3.2.x code into the fresh 4.x structure. It's a bit finicky but now I'm confident it's working well. I used the same strategy for geonode-mapstore plugins and no problems their either. |
@mattiagiupponi I have the case where the json string from geonode 3.2 mapstore_adapter is migrated as string in the resourcebase blob field (masked quotes). And hence cards to not work. |
Not sure this can help/ is relevant I share this work with you, i could migrate from 3 to 4 using this: Generate backup: Restore backup: I created this django/python command to re-assign properly permissions once the migration is done. The migration seems to be working properly on my side, except for thumbnails... I can bring some additionnal docs on *.sh files if you are interrested. |
Just as info, the discussion continues here -> GeoNode/geonode-mapstore-client#1148 |
@afabiani @giohappy did we oversee some already included migration or task?
When migrating a GeoNode 3.2 instance to GeoNode 4 (current master), the maps are not loading.
This as the blob coloumn in
resource_base
, which holds the map configuration is empty.The map definition in versions prior to 4 kept this data in
mapstore2_adapter_mapstoredata
.Further the new version of mapstore expects the existence of a
map
key/value, which might be missing in older map definitions.Describe the solution you'd like
A django migration that copy needed data and taking care of a correct json scheme.
In conversation with @davekennewell, Dave provided a migration that covers most of the work.
What is missing is some kind of validation and/or adding missing keys from ancient map definitions.
See
Hydrata@b1b275a
The text was updated successfully, but these errors were encountered: