Enhancement: password removal workflow action

This commit is contained in:
shamoon
2025-12-28 20:05:46 -08:00
parent 10db1e6405
commit 1aaf128bcb
9 changed files with 233 additions and 0 deletions

View File

@@ -46,6 +46,7 @@ from documents.permissions import get_objects_for_user_owner_aware
from documents.templating.utils import convert_format_str_to_template_format
from documents.workflows.actions import build_workflow_action_context
from documents.workflows.actions import execute_email_action
from documents.workflows.actions import execute_password_removal_action
from documents.workflows.actions import execute_webhook_action
from documents.workflows.mutations import apply_assignment_to_document
from documents.workflows.mutations import apply_assignment_to_overrides
@@ -792,6 +793,14 @@ def run_workflows(
logging_group,
original_file,
)
elif action.type == WorkflowAction.WorkflowActionType.PASSWORD_REMOVAL:
if use_overrides:
logger.info(
"Skipping password removal action during consumption workflow",
extra={"group": logging_group},
)
continue
execute_password_removal_action(action, document, logging_group)
if not use_overrides:
# limit title to 128 characters