feat(jobs): add new job qglobal-config-manager for qgis_global_settings.ini copy#781
feat(jobs): add new job qglobal-config-manager for qgis_global_settings.ini copy#781
qglobal-config-manager for qgis_global_settings.ini copy#781Conversation
Codecov Report❌ Patch coverage is @@ Coverage Diff @@
## main #781 +/- ##
==========================================
+ Coverage 71.96% 72.75% +0.78%
==========================================
Files 48 49 +1
Lines 3360 3479 +119
Branches 598 619 +21
==========================================
+ Hits 2418 2531 +113
- Misses 719 721 +2
- Partials 223 227 +4
Flags with carried forward coverage won't be shown. Click here to find out more.
... and 1 file with indirect coverage changes 🚀 New features to boost your workflow:
|
qglobal-config-manager for qgis_global_settings.ini copy
703c4f5 to
1bb727d
Compare
|
@Guts |
|
@jmkerloch can you add the corresponding JSON schema into https://github.com/qgis-deployment/qgis-deployment-toolbelt-cli/tree/feat/qglobal_config_manager/docs/schemas/scenario/jobs please? |
aa60943 to
cfac0c7
Compare
For sure 🕶️ I added a commit. |
- add option to check if file exists - use qgis application dir to use file from installation directory
…/dst - need to check if it exists for src - no need to dst
…eck_exists == False
- from qdt local working dir - from qdt downloaded repository
…rectory for copy fail
cfac0c7 to
5334868
Compare
QGIS global config manager
qgis_global_settings.inifile contains global settings for all QGIS profile.This PR introduce a new job
qglobal-config-managerthat can be added to a scenario to use a custom file during deployment :The job handles:
srcanddstfor environment variable usesrc.ini file if the input is an urlsrc.ini file to thedst.ini filesrc.iniQGIS_GLOBAL_SETTINGS_FILEuser environment variable withdst.ini file pathDefault values
If no value defined in jobs, default values are used. The value is defined with the same behavior as QGIS :
QGIS_GLOBAL_SETTINGS_FILE$HOME/.local/share/QGIS/QGIS3/C:\Users\<username>\%AppData%\Roaming\QGIS\QGIS3\$HOME/Library/Application Support/QGIS/QGIS3/your_QGIS_package_path/resources/qgis_global_settings.iniQDT_QGIS_EXE_PATHenvironment variableRelative
srcoptionsrccan be a relative path. In this case we check for .ini file related to:qprofiles-synchronizeris run, all profiles repository are stored in a local repositories folder :<qdt_working_folder>/respositories/<scenario_id>src:./myprofile/qgis_global_settings.iniQDT_LOCAL_WORK_DIRenvironment variable