@@ -280,15 +280,6 @@ class ApplicationSettings(BaseCustomSettings, MixinLoggingSettings):
280280 WEBSERVER_REMOTE_DEBUG : bool = True
281281 WEBSERVER_SOCKETIO : bool = True
282282 WEBSERVER_TAGS : bool = True
283- WEBSERVER_TRASH : Annotated [
284- bool ,
285- Field (
286- description = "Currently only used to enable/disable front-end" ,
287- validation_alias = AliasChoices (
288- "WEBSERVER_TRASH" , "WEBSERVER_DEV_FEATURES_ENABLED"
289- ),
290- ),
291- ] = False
292283 WEBSERVER_VERSION_CONTROL : bool = True
293284 WEBSERVER_WALLETS : bool = True
294285 WEBSERVER_WORKSPACES : bool = True
@@ -302,7 +293,7 @@ class ApplicationSettings(BaseCustomSettings, MixinLoggingSettings):
302293
303294 @model_validator (mode = "before" )
304295 @classmethod
305- def build_vcs_release_url_if_unset (cls , values ):
296+ def _build_vcs_release_url_if_unset (cls , values ):
306297 release_url = values .get ("SIMCORE_VCS_RELEASE_URL" )
307298
308299 if release_url is None and (
@@ -323,12 +314,11 @@ def build_vcs_release_url_if_unset(cls, values):
323314 # TODO: consider mark as dev-feature in field extras of Config attr.
324315 # Then they can be automtically advertised
325316 "WEBSERVER_META_MODELING" ,
326- "WEBSERVER_TRASH" ,
327317 "WEBSERVER_VERSION_CONTROL" ,
328318 mode = "before" ,
329319 )
330320 @classmethod
331- def enable_only_if_dev_features_allowed (cls , v , info : ValidationInfo ):
321+ def _enable_only_if_dev_features_allowed (cls , v , info : ValidationInfo ):
332322 """Ensures that plugins 'under development' get programatically
333323 disabled if WEBSERVER_DEV_FEATURES_ENABLED=False
334324 """
@@ -345,19 +335,14 @@ def enable_only_if_dev_features_allowed(cls, v, info: ValidationInfo):
345335 else False
346336 )
347337
348- @cached_property
349- def log_level (self ) -> int :
350- level : int = getattr (logging , self .WEBSERVER_LOGLEVEL .upper ())
351- return level
352-
353338 @field_validator ("WEBSERVER_LOGLEVEL" )
354339 @classmethod
355- def valid_log_level (cls , value ):
340+ def _valid_log_level (cls , value ):
356341 return cls .validate_log_level (value )
357342
358343 @field_validator ("SC_HEALTHCHECK_TIMEOUT" , mode = "before" )
359344 @classmethod
360- def get_healthcheck_timeout_in_seconds (cls , v ):
345+ def _get_healthcheck_timeout_in_seconds (cls , v ):
361346 # Ex. HEALTHCHECK --interval=5m --timeout=3s
362347 if isinstance (v , str ):
363348 factor = 1 # defaults on s
@@ -371,6 +356,11 @@ def get_healthcheck_timeout_in_seconds(cls, v):
371356
372357 # HELPERS --------------------------------------------------------
373358
359+ @cached_property
360+ def log_level (self ) -> int :
361+ level : int = getattr (logging , self .WEBSERVER_LOGLEVEL .upper ())
362+ return level
363+
374364 def is_enabled (self , field_name : str ) -> bool :
375365 return bool (getattr (self , field_name , None ))
376366
@@ -386,7 +376,6 @@ def _get_disabled_public_plugins(self) -> list[str]:
386376 "WEBSERVER_META_MODELING" ,
387377 "WEBSERVER_PAYMENTS" ,
388378 "WEBSERVER_SCICRUNCH" ,
389- "WEBSERVER_TRASH" ,
390379 "WEBSERVER_VERSION_CONTROL" ,
391380 }
392381 return [_ for _ in public_plugin_candidates if not self .is_enabled (_ )]
0 commit comments