App settings error after upgrading medic-conf to v3.6.0

Getting problems after upgrading medic-conf from 3.3.0 to 3.6.0, and when compiling a settings.

INFO Actions:
- compile-app-settings
- upload-app-settings
INFO Starting action: compile-app-settings…
WARN app_settings.json file should not be edited directly.
Please create a base_settings.json file in app_settings folder and move any manually defined configurations there.
INFO Packaging contact-summary
INFO Hash: 5535ce4628f638981791
Version: webpack 4.46.0
Child
Hash: 5535ce4628f638981791
Time: 3256ms
Built at: 03/02/2023 13:52:14
Asset Size Chunks Chunk Names
./contact-summary.js 107 KiB 0 [emitted] main
Entrypoint main = ./contact-summary.js
[0] ./node_modules/luxon/build/cjs-browser/luxon.js 239 KiB {0} [built]
[1] C:/Users/ICM/AppData/Roaming/npm/node_modules/medic-conf/src/contact-summary/lib.js 203 bytes {0} [built]
[2] ./contact-summary.templated.js 22.7 KiB {0} [built]
[3] ./contact-summary-extras.js 48.5 KiB {0} [built]
[4] C:/Users/ICM/AppData/Roaming/npm/node_modules/medic-conf/src/contact-summary/contact-summary-emitter.js 3.41 KiB {0} [built]
INFO Packaging nools
INFO Hash: 75d65b1787a9908a75a6
Version: webpack 4.46.0
Child
Hash: 75d65b1787a9908a75a6
Time: 1634ms
Built at: 03/02/2023 13:52:16
Asset Size Chunks Chunk Names
./nools.js 116 KiB 0 [emitted] main
Entrypoint main = ./nools.js
[0] ./node_modules/luxon/build/cjs-browser/luxon.js 239 KiB {0} [built]
[1] C:/Users/ICM/AppData/Roaming/npm/node_modules/medic-conf/src/nools/definition-preparation.js 1.36 KiB {0} [built]
[2] C:/Users/ICM/AppData/Roaming/npm/node_modules/medic-conf/src/nools/lib.js 328 bytes {0} [built]
[3] ./tasks.js 78.5 KiB {0} [built]
[4] ./nools-extras.js 11.5 KiB {0} [built]
[5] ./targets.js 20 bytes {0} [built]
[6] C:/Users/ICM/AppData/Roaming/npm/node_modules/medic-conf/src/nools/task-emitter.js 4.92 KiB {0} [built]
[7] C:/Users/ICM/AppData/Roaming/npm/node_modules/medic-conf/src/nools/target-emitter.js 2.77 KiB {0} [built]
INFO compile-app-settings complete.
INFO Starting action: upload-app-settings…
(node:21792) Warning: Setting the NODE_TLS_REJECT_UNAUTHORIZED environment variable to ‘0’ makes TLS connections and HTTPS requests insecure by disabling certificate verification.
(Use node --trace-warnings ... to show where the warning was created)
WARN generate_patient_id_on_people transition is deprecated since 3.8.x. Please use “generate_shortcode_on_contacts” transition instead.
INFO Settings not updated - no changes detected
INFO upload-app-settings complete.
INFO All actions completed.

There was an issue of creating separate file like base_settings.json?

But I can’t find any samples from github for this.

Can someone help me on this ?

Hi @Marcelo_De_Guzman

The logs do not show any errors as it shows following:

INFO Settings not updated - no changes detected
INFO upload-app-settings complete.
INFO All actions completed.

If you are looking for sample code for base_settings.json, you can look into source code YendaNafe CHT app by PIH in Malawi in GitHub.

1 Like