elements-at / ProcessManager

Manage processes in Pimcore

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

feature: support deploying configurations

passioneight opened this issue · comments

When configuring the process manager (i.e., using the UI to add menu entries for the client), it would be nice if we could deploy the configuration, so we don't have to configure the same processes for every environment (i.e., dev, staging, prod).

Maybe we should create YAML files when adding a new configuration (and update them if the configuration changes).

If we introduce an additional flag to (multi-)select the environments as well, we could even have configurations based on the environment.

No selection would mean all environments, the selected ones otherwise.

Wdyt?

Well, i personally don't have the need for it because i just export/import the setting with HeidiSQL and most of the time the configurations are not identically, but i know that some guys would like to have the configurations in .yaml - others in the Database :-) .
So maybe the best way would be to make it configurabale.

Like Pimcore does it with the e.g. PIMCORE_WRITE_TARGET_DOCUMENT_TYPES / PIMCORE_CONFIG_STORAGE_DIR_DOCUMENT_TYPES .... https://github.com/pimcore/pimcore/blob/11.x/doc/Development_Documentation/21_Deployment/03_Configuration_Environments.md

e.g ELEMENTS_PROCESSMANAGER_WRITE_TARGET_CONFIGURATION / ELEMENTS_PROCESSMANAGER_STORAGE_DIR_CONFIG
could be used to configure it.

Best regards

@ctippler yes that makes sense. Can you provide a simple example of non-identical configurations, so, I can get a better idea of the available use cases?

Since one of the last releases Migrations for configurations can be generated for deployments https://github.com/elements-at/ProcessManager/blob/master/doc/configurationMigrations.md

This way it should be quite easy to deploy changes without a big effort.

Awesome, thanks, I'll have a look soon :-)