georchestra / mapstore2-georchestra

geOrchestra newest viewer
Other
6 stars 23 forks source link

[Context Manager ] Ability to import/export an application context #584

Closed catmorales closed 1 year ago

catmorales commented 1 year ago

Description

Ability to import/export an application context from the context manager UI The base URL can be changed in the import and in the export, Import specific : A control on the layers's, plugins and roles must be done and a message displayed if some components are missing in the destiny platform. Customized configurations of the plugins should be export too. In fact the entire context configuration which is stored in the database must be exported

Functionnality just for administrators. Use case : We have a test geOrchestra's instance (portail-test.sig.rennesmetropole.fr) and a production geOrchestra's instance (portail.sig.rennesmetropole.fr). Both have the same components (geoserver, mapstore,...) and the same layers published. When an application context is Ok in the test platform, we need to deploy it in the production platform, we need a tool to do it from the UI.

Note

Related MS issue https://github.com/geosolutions-it/MapStore2/issues/9248

catmorales commented 1 year ago

https://github.com/georchestra/mapstore2-georchestra/issues/295#issuecomment-748192654

landryb commented 1 year ago

having a directory in the datadir with maps/contexts made available by mapstore would also allow easily to migrate them from instance to instance, instead of having to export from the db via an api/import in another platform.

But yes, having an import/export button in the context manager saving a json file would be nice.

tdipisa commented 1 year ago

The implementation expects to improve the context manager UI to allow an export of each single context from the context card and provide a generic import button (the design aspects will be reviewed again before the implementation if needed). The context will be imported as it was exported.

landryb commented 1 year ago

The context will be imported as it was exported.

i'm not 100% sure that's the intent, to clarify:

sure, one could enforce relative urls (eg /geoserver/ows) in its contexts to make sure this doesnt happen, but:

@catmorales sounds right ?

dsuren1 commented 1 year ago

Mock added to MS issue