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

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

Closed
catmorales opened this issue Dec 20, 2022 · 5 comments
Closed

Comments

@catmorales
Copy link
Collaborator

catmorales commented Dec 20, 2022

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 geosolutions-it/MapStore2#9248

@catmorales
Copy link
Collaborator Author

#295 (comment)

@landryb
Copy link
Member

landryb commented Dec 21, 2022

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
Copy link
Collaborator

tdipisa commented Jan 31, 2023

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
Copy link
Member

landryb commented Feb 10, 2023

The context will be imported as it was exported.

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

  • one wants to export a context from dev to production (eg needs to be admin on both)
  • this context/map might contain layers from the "local" gs (with its full url ? eg https://dev.fqdn/geoserver/ows) and from other sources external to the platform
  • to me the intent is to "remap" the urls from the "local" gs to make sure they exist on the destination gs and are taken from it, first to avoid CORS issues and to make sure the "right" layer is used.

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

  • i dunno if mapstore "expands" automatically the domain when saving the map/context
  • there will be existing contexts with full urls
  • an option might be to drop the domain from the url when exporting (if found to be the same as mapstore) ?

@catmorales sounds right ?

@dsuren1
Copy link
Collaborator

dsuren1 commented Jun 28, 2023

Mock added to MS issue

dsuren1 added a commit to dsuren1/mapstore2-georchestra that referenced this issue Jul 3, 2023
dsuren1 added a commit to dsuren1/mapstore2-georchestra that referenced this issue Jul 3, 2023
…context

* commit 'bafa39ef26882233c009a2a5424ccc1f062de7ba':
  georchestra#584 - Feature grid enabled in context-creator (georchestra#630)
@ElenaGallo ElenaGallo self-assigned this Aug 3, 2023
@tdipisa tdipisa closed this as completed Aug 7, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

5 participants