From 8bf4d8eba23bd27bd1e1cc380ec499114a8ca537 Mon Sep 17 00:00:00 2001 From: Denys Fedoryshchenko Date: Fri, 29 Nov 2024 07:06:23 +0200 Subject: [PATCH] feat(models.py): Introduce processed_by_kcidb_bridge flag To make kcidb data transmission more reliable introduce processed_by_kcidb_bridge flag, which indicates if node was sent to kcidb (or intentionally ignored, but processed by kcidb bridge). Signed-off-by: Denys Fedoryshchenko --- kernelci/api/models.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/kernelci/api/models.py b/kernelci/api/models.py index f42833e252..32ec32bc82 100644 --- a/kernelci/api/models.py +++ b/kernelci/api/models.py @@ -262,6 +262,10 @@ class Node(DatabaseModel): default=[], description="User groups that are permitted to update node" ) + processed_by_kcidb_bridge: bool = Field( + description="Flag to indicate if the node was processed by KCIDB-Bridge", + default=False + ) OBJECT_ID_FIELDS: ClassVar[list] = ['parent'] TIMESTAMP_FIELDS: ClassVar[list] = ['created', 'updated', 'timeout', 'holdoff']