ivylabs / suitecrm-analytics

4 stars 4 forks source link

Add a "Development" mode to the Setup script #264

Closed harrisward closed 3 years ago

harrisward commented 3 years ago

Is your feature request related to a problem? Please describe. When the setup is run if generates and injects dynamic references (like the CGG endpoint) into reports, dashboards etc.

This means that if we intend to modify a report we would need to replace this dynamic values with the original values so that when the subsequent setup is run these values can be generated once again.

Describe the solution you'd like Add a property to the install.properties development_server=1 or mode=0 that dictates if the CGG GUID generation should be injected dynamically (for a production server) or if the standard value should be injected for development purposes so that it can be replaces on later setups

The script should be changes to read in the install.property mode and either use sed and the GUID to replace variables or skip the process entirely which would leave the static values in place