From f16f0820899d87ba4da3734c9fa374710c424716 Mon Sep 17 00:00:00 2001 From: Dominik Tuchyna Date: Tue, 4 May 2021 20:05:37 +0200 Subject: [PATCH 1/2] Add merge parameter --- thoth/common/openshift.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/thoth/common/openshift.py b/thoth/common/openshift.py index 2b38518c..da0ccce4 100644 --- a/thoth/common/openshift.py +++ b/thoth/common/openshift.py @@ -1510,6 +1510,7 @@ def schedule_mi_workflow( entities: Optional[str] = None, knowledge_path: Optional[str] = None, mi_used_for_thoth: bool = False, + mi_merge: bool = False, *, job_id: Optional[str] = None, ) -> Optional[str]: @@ -1526,6 +1527,7 @@ def schedule_mi_workflow( "ENTITIES": entities, "KNOWLEDGE_PATH": knowledge_path, "MI_THOTH": "1" if mi_used_for_thoth else "0", + "MI_MERGE": "1" if mi_merge else "0", } return self._schedule_workflow( From 9d9a52665d745e129dd4ec13ddfb505113126894 Mon Sep 17 00:00:00 2001 From: Dominik Tuchyna Date: Tue, 4 May 2021 20:06:30 +0200 Subject: [PATCH 2/2] Make every parameter optional --- thoth/common/openshift.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/thoth/common/openshift.py b/thoth/common/openshift.py index da0ccce4..c6aefc48 100644 --- a/thoth/common/openshift.py +++ b/thoth/common/openshift.py @@ -1506,11 +1506,11 @@ def schedule_qebhwt_workflow( def schedule_mi_workflow( self, - repository: str, + repository: Optional[str] = None, entities: Optional[str] = None, knowledge_path: Optional[str] = None, - mi_used_for_thoth: bool = False, - mi_merge: bool = False, + mi_used_for_thoth: Optional[bool] = False, + mi_merge: Optional[bool] = False, *, job_id: Optional[str] = None, ) -> Optional[str]: