Skip to content
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

Project update to the latest MapStore 2024.02 #714

Closed
4 tasks done
tdipisa opened this issue Oct 10, 2024 · 3 comments · Fixed by #715 or #716
Closed
4 tasks done

Project update to the latest MapStore 2024.02 #714

tdipisa opened this issue Oct 10, 2024 · 3 comments · Fixed by #715 or #716

Comments

@tdipisa
Copy link
Collaborator

tdipisa commented Oct 10, 2024

Description

It is requested to update the project to the latest MapStore version. The MapStore revision need to be updated to the latest stable branch 2024.02.xx.

Checks

It is necessary to check if the existing customizations are properly working after the project update. Custom specific extensions that are involved as part of this update work are the following. These will be tested separately for:

Notes

The project need to be updated by following the official migration guidelines involved.

In particular in the master branch

  • update version in package.json to be aligned to the new release version
  • update version present in version.txt accordingly

Preliminary checks and tests for this update will be performed on https://georchestra.geo-solutions.it/

Release procedures to follow are reported in project README.

@tdipisa tdipisa added this to the MS2-Geor-2024.02 milestone Oct 10, 2024
@dsuren1 dsuren1 linked a pull request Oct 16, 2024 that will close this issue
tdipisa pushed a commit that referenced this issue Oct 22, 2024
* Update ms to latest

* version updated

* pom updated

* workflow update

* add missing theme variables

* fix build

* ms service to stable

* snapshot repo removed

* config updated

* Fixed dependencies

* Fixed missing file copy

* Update pom.xml

* Use mapstore services 1.8-SNAPSHOT

---------

Co-authored-by: Lorenzo Natali <[email protected]>
@ElenaGallo
Copy link
Collaborator

@tdipisa tests done, they are available here and here

@tdipisa
Copy link
Collaborator Author

tdipisa commented Oct 25, 2024

@dsuren1 From functional tests performed it seems you have missed to add/consider the following in default config:

Can you please raise a PR to provide what is missing? Thank you so much.

@dsuren1 dsuren1 linked a pull request Oct 25, 2024 that will close this issue
@landryb
Copy link
Member

landryb commented Oct 29, 2024

to the ones trying the upgrade path to 2024.02, some notes:

  • first i had error messages from hibernate telling me that the georchestra db user wasnt the owner of the tables in the mapstore schema, i fixed those:
[[local]:5432] postgres@georchestra=# alter SCHEMA mapstore owner to georchestra ;
[[local]:5432] postgres@georchestra=# alter table mapstore.gs_attribute owner to georchestra ;
[[local]:5432] postgres@georchestra=# alter table mapstore.gs_category owner to georchestra ;
[[local]:5432] postgres@georchestra=# alter table mapstore.gs_resource owner to georchestra ;
[[local]:5432] postgres@georchestra=# alter table mapstore.gs_security owner to georchestra ;
[[local]:5432] postgres@georchestra=# alter table mapstore.gs_stored_data owner to georchestra ;
[[local]:5432] postgres@georchestra=# alter table mapstore.gs_user owner to georchestra ;
[[local]:5432] postgres@georchestra=# alter table mapstore.gs_user_attribute owner to georchestra ;
[[local]:5432] postgres@georchestra=# alter table mapstore.gs_user_group_attribute owner to georchestra ;
[[local]:5432] postgres@georchestra=# alter table mapstore.gs_usergroup owner to georchestra ;
[[local]:5432] postgres@georchestra=# alter table mapstore.gs_usergroup_members owner to georchestra ;
geostoreEntityManagerFactory.jpaPropertyMap[hibernate.hbm2ddl.auto]=validate
  • so and accessing /mapstore/rest/geostore/extjs/search/category/MAP/***/thumbnail,details,featured triggered tracebacks in the log:
SqlExceptionHelper.logExceptions() - ERROR: column resource0_.advertised does not exist

so i followed https://docs.mapstore.geosolutionsgroup.com/en/latest/developer-guide/mapstore-migration-guide/#database-update, but had to manually adapt some bits

:/tmp $wget https://github.com/geosolutions-it/geostore/raw/refs/heads/master/doc/sql/migration/postgresql/postgresql-migration-from-v.2.0.0-to-v2.1.0.sql
:/tmp $sed -i -e 's/gs_resource/mapstore.gs_resource/' postgresql-migration-from-v.2.0.0-to-v2.1.0.sql
:/tmp $sed -i -e 's/geostore/mapstore/g' postgresql-migration-from-v.2.0.0-to-v2.1.0.sql
[localhost:5432] georchestra@georchestra=> \i /tmp/postgresql-migration-from-v.2.0.0-to-v2.1.0.sql
ALTER TABLE
Time: 29.472 ms
ALTER TABLE
Time: 0.681 ms
ALTER TABLE
Time: 11.099 ms
UPDATE 0
Time: 57.612 ms

with that done the db schema is updated, requests to the backend now succeed, and i see maps in the map loader/on /mapstore/#/home, and existing contexts on /mapstore/#/admin.

maybe geostoreEntityManagerFactory.jpaPropertyMap[hibernate.hbm2ddl.auto] should be set to update to ease upgrades ?

This was referenced Nov 12, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment