@sjcrh/proteinpaint-server 2.43.1 → 2.43.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -173,11 +173,17 @@ if (process.env.PP_MODE?.startsWith('container')) {
173
173
  }
174
174
 
175
175
  if (!serverconfig.features) {
176
- // default to having an empty object value for
177
- // examples of end-user-accessible features are:
178
- // mdjsonform: true, healthcheck_keys: ["w", "rs"], etc.
176
+ /*
177
+ default to having an empty object value for end-user-accessible features
178
+ necessary to ensure features{} object is set, as later when bootstraping a dataset, ds.serverconfigFeatures{} will be copied over
179
+ NOTE serverconfig.json settings takes highest priority!! these are instance-level setting, e.g. on your dev computer
180
+ and overwrites default values from ds.serverconfigFeatures{} to assist e.g. dev work
181
+ */
179
182
  serverconfig.features = {}
180
183
  }
184
+
185
+ // when a mandatory setting is not defined in any ds, declare its default here
186
+
181
187
  if (process.argv.find(a => a == 'validate')) {
182
188
  // issues in the GDC API (like its servers being under maintenance) should not affect
183
189
  // the ability of the PP server to launch itself, so skip GDC-caching during validation
@@ -210,5 +216,4 @@ if (fs.existsSync('./package.json')) {
210
216
  serverconfig.version = JSON.parse(pkg).version
211
217
  }
212
218
 
213
- //Object.freeze(serverconfig)
214
219
  module.exports = serverconfig