Report last_update field is now set when changing report name or tags

This commit is contained in:
clearml 2025-06-04 11:49:48 +03:00
parent 8a3fcacf5f
commit 1983b22157

View File

@ -99,9 +99,11 @@ def update_report(call: APICall, company_id: str, request: UpdateReportRequest):
) )
now = datetime.utcnow() now = datetime.utcnow()
more_updates = {"last_change": now, "last_changed_by": call.identity.user} more_updates = {
if not allowed_for_published: "last_change": now,
more_updates["last_update"] = now "last_changed_by": call.identity.user,
"last_update": now,
}
updated = task.update(upsert=False, **partial_update_dict, **more_updates) updated = task.update(upsert=False, **partial_update_dict, **more_updates)
if not updated: if not updated: