Generate engagement tasks automatically and repair missing tasks
This commit is contained in:
@@ -33,6 +33,7 @@ from app.modules.services.client_services import (
|
||||
enforce_quality_gate_on_subscription,
|
||||
)
|
||||
from app.modules.services.due_dates import apply_due_date_rule_to_subscription, create_due_date_extension
|
||||
from app.modules.services.execution import generate_tasks_for_subscription_if_ready
|
||||
|
||||
TRUE_VALUES = {"1", "true", "yes", "y", "on"}
|
||||
FALSE_VALUES = {"0", "false", "no", "n", "off"}
|
||||
@@ -850,6 +851,11 @@ def import_client_service_assignments(
|
||||
apply_due_date_rule_to_subscription(db, sub, force=True)
|
||||
ensure_engagement_quality_workflow(db, subscription=sub, actor_user_id=current_user.id, create_declarations=False)
|
||||
enforce_quality_gate_on_subscription(sub)
|
||||
generate_tasks_for_subscription_if_ready(
|
||||
db,
|
||||
subscription=sub,
|
||||
user_id=current_user.id,
|
||||
)
|
||||
except Exception as exc:
|
||||
errors.append({"row": row_no, "message": str(exc)})
|
||||
|
||||
|
||||
Reference in New Issue
Block a user