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

Default Application Context Setting #5148

Open
tdipisa opened this issue Apr 17, 2020 · 2 comments
Open

Default Application Context Setting #5148

tdipisa opened this issue Apr 17, 2020 · 2 comments

Comments

@tdipisa
Copy link
Member

tdipisa commented Apr 17, 2020

Description

It must be possible to set up an application context as a default context for MS (the default context is always publicly readable). The default context will be used as default from MS home while a new map is created or for all contex's maps when a context is deleted (see #5149, point number 3).
This enhancement will allow to setup a default context from UI without using the standard one from local configuration file. As general constraint a default group must respect the following rules:

  • The save plugin must be present
  • The Catalog plugin must be present

The above constraints ensure to create a map from an existing context with a viewer that contains the needed plugins to add new contents (layers and backgrounds) and ovbiously to save the map itself.

A new checkbox could be included in the wizard step 1 of the context for this.

Other useful information

@tdipisa
Copy link
Member Author

tdipisa commented Apr 17, 2020

from @offtherailz

Suggested implementation (please @mbarto comment on this) :

  • allow to admin to edit a configuration that indicates the default context in localConfig.json (setting a property on the server, with new back-end functionalities).
  • when download localConfig.json, if this property is set, download the context.

@tdipisa
Copy link
Member Author

tdipisa commented Apr 17, 2020

From @mbarto

@offtherailz @tdipisa it should be possible to:

  • use the existing ConfigLoader service to inject the default context and store it on a separate properties file on the server (we need to add support for multiple override property files, currently we use the georchestra default.properties for this kind of things; we also need a service to set the default context from the UI); if we prefer to use a geostore resource instead of a property file, additional support is needed
  • eventually customize / improve the existing ConfigLoader service to automatically merge the standard localConfig.json with the default context json, instead of doing this on the client

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

1 participant