mirror of
https://github.com/ynput/ayon-core.git
synced 2025-12-24 12:54:40 +01:00
added option to filter crashed files
This commit is contained in:
parent
7fa5b39ef6
commit
3f72115a5e
2 changed files with 90 additions and 0 deletions
|
|
@ -34,6 +34,28 @@ class ValidateBaseModel(BaseSettingsModel):
|
|||
active: bool = SettingsField(True, title="Active")
|
||||
|
||||
|
||||
class DiscoverValidationModel(BaseSettingsModel):
|
||||
"""Strictly validate publish plugins discovery.
|
||||
|
||||
Artist won't be able to publish if path to publish plugin fails to be
|
||||
imported.
|
||||
|
||||
"""
|
||||
_isGroup = True
|
||||
enabled: bool = SettingsField(
|
||||
False,
|
||||
description="Enable strict mode of plugins discovery",
|
||||
)
|
||||
ignore_paths: list[str] = SettingsField(
|
||||
default_factory=list,
|
||||
title="Ignored paths (regex)",
|
||||
description=(
|
||||
"Paths that do match regex will be skipped in validation."
|
||||
),
|
||||
)
|
||||
|
||||
|
||||
|
||||
class CollectAnatomyInstanceDataModel(BaseSettingsModel):
|
||||
_isGroup = True
|
||||
follow_workfile_version: bool = SettingsField(
|
||||
|
|
@ -1188,6 +1210,11 @@ class CleanUpFarmModel(BaseSettingsModel):
|
|||
|
||||
|
||||
class PublishPuginsModel(BaseSettingsModel):
|
||||
discover_validation: DiscoverValidationModel = SettingsField(
|
||||
default_factory=DiscoverValidationModel,
|
||||
title="Validate plugins discovery",
|
||||
)
|
||||
|
||||
CollectAnatomyInstanceData: CollectAnatomyInstanceDataModel = (
|
||||
SettingsField(
|
||||
default_factory=CollectAnatomyInstanceDataModel,
|
||||
|
|
@ -1308,6 +1335,10 @@ class PublishPuginsModel(BaseSettingsModel):
|
|||
|
||||
|
||||
DEFAULT_PUBLISH_VALUES = {
|
||||
"discover_validation": {
|
||||
"enabled": False,
|
||||
"ignore_paths": [],
|
||||
},
|
||||
"CollectAnatomyInstanceData": {
|
||||
"follow_workfile_version": False
|
||||
},
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue