Task 3: remove config_file_service facade, update direct imports and tests
This commit is contained in:
@@ -283,8 +283,8 @@ class FilterConfig(BaseModel):
|
||||
|
||||
The ``active``, ``used_by_jails``, ``source_file``, and
|
||||
``has_local_override`` fields are populated by
|
||||
:func:`~app.services.config_file_service.list_filters` and
|
||||
:func:`~app.services.config_file_service.get_filter`. When the model is
|
||||
:func:`~app.services.filter_config_service.list_filters` and
|
||||
:func:`~app.services.filter_config_service.get_filter`. When the model is
|
||||
returned from the raw file-based endpoints (``/filters/{name}/parsed``),
|
||||
these fields carry their default values.
|
||||
"""
|
||||
@@ -326,7 +326,7 @@ class FilterConfig(BaseModel):
|
||||
default=None,
|
||||
description="Systemd journal match expression.",
|
||||
)
|
||||
# Active-status fields — populated by config_file_service.list_filters /
|
||||
# Active-status fields — populated by filter_config_service.list_filters /
|
||||
# get_filter; default to safe "inactive" values when not computed.
|
||||
active: bool = Field(
|
||||
default=False,
|
||||
@@ -512,7 +512,7 @@ class ActionConfig(BaseModel):
|
||||
default_factory=dict,
|
||||
description="Runtime parameters that can be overridden per jail.",
|
||||
)
|
||||
# Active-status fields — populated by config_file_service.list_actions /
|
||||
# Active-status fields — populated by action_config_service.list_actions /
|
||||
# get_action; default to safe "inactive" values when not computed.
|
||||
active: bool = Field(
|
||||
default=False,
|
||||
|
||||
Reference in New Issue
Block a user