From 7f79fe79b4367763cf8a70f8f72cb50b84cdfba7 Mon Sep 17 00:00:00 2001 From: Jeny Sadadia Date: Wed, 4 Sep 2024 12:23:15 +0530 Subject: [PATCH] api.main: remove default `node.submitter` Remove the hack of setting `node.submitter` field. The pipeline service and `kci_maintainer` tool should set the field instead while submitting node. Signed-off-by: Jeny Sadadia --- api/main.py | 3 --- 1 file changed, 3 deletions(-) diff --git a/api/main.py b/api/main.py index fe6d16a8..ed98d67c 100644 --- a/api/main.py +++ b/api/main.py @@ -572,9 +572,6 @@ async def post_node(node: Node, await _verify_user_group_existence(node.user_groups) node.owner = current_user.username - # if node.submitter is not set, set it to "pipeline" - if not node.submitter: - node.submitter = "service:pipeline" # The node is handled as a generic Node by the DB, regardless of its # specific kind. The concrete Node submodel (Kbuild, Checkout, etc.)