Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

What is the Global Centralized Configuration of the onesaitPlatformonesait Platform?


There is a module within the platform that is in charge of managing the global configuration parameters. Its name is onesaitplatform-config-resources.

...

  • Centralized swagger-ui endpoints: This service also centralizes all modules swagger-ui endpoints, which are loaded by the Controlpanel when you log in, and which you can see under  under 'APIs' at the top menu:



  • Centralized Global Configuration: There are some cases where you need global variables to be configurable by an Administrator and thus being hot-reloaded without the need to restart the modules. An example of this use is the following variable: 

The Quasar connector has a global variable for the operation timeoutm timeout, which is configurable and managed by config-resources service.

...

The config-resources service loads at startup star-tup the Global and Endpoints configurations with the active profile as environment.

NOTE: Remember that you need at least the 'default' Global OpenPlatform configuration in order for the Platform to startupstart up, otherwise it won'twill not start up. Anyway, do not worry, because basic configurations for default and docker profiles are created when you run the SystemConfigInit app.

...

Despite being only used for a few variables, you can extend it by following this these steps:


  • Step 1: Edit yaml configuration. Go to Configuration management inside the Control panel (/controlpanel/configurations/list) and edit you Global Configuration with profile you want.

...

Inject with @Autowired the IntegrationResourceService. Assign the value to your variable by accesing accessing the GlobalConfiguration of the platform:

...

If you want to add 'advice' to 'domain' node (which actually wouldn't would not make sense), you will have to update the Domain class in 'com.minsait.onesait.platform.config.components', and add the 'advice' attribute:

...