From 6b64c43582d2fde09f03d6a72ef2f26f53cd6d0e Mon Sep 17 00:00:00 2001 From: Benjamin Labrecque Date: Thu, 9 Jul 2026 14:59:48 +0200 Subject: [PATCH] chore: update ui service manager of new service --- cli/src/core/git.py | 13 ++++--------- cli/src/core/service_creator.py | 1 + 2 files changed, 5 insertions(+), 9 deletions(-) diff --git a/cli/src/core/git.py b/cli/src/core/git.py index b253c1e..a886dd6 100644 --- a/cli/src/core/git.py +++ b/cli/src/core/git.py @@ -13,26 +13,21 @@ def git_push_changes( master_hla_names_rel_path: str, master_ioc_subs_rel_path: str, iocs_overview_rel_path: str, + service_manager_ui_rel_path: str, commit_msg: str, ): """ Push newly created service to Gitea """ - logger.info( - "Staging files inside: " - f"{service_dir_rel_path}, " - f"{registry_file_rel_path}, " - f"{master_hla_names_rel_path}, " - f"{master_ioc_subs_rel_path}..." - f"{iocs_overview_rel_path}..." - ) files_to_stage = [ service_dir_rel_path, registry_file_rel_path, master_hla_names_rel_path, master_ioc_subs_rel_path, iocs_overview_rel_path, + service_manager_ui_rel_path, ] + logger.info(f"Staging files inside: {files_to_stage}") repo.index.add(files_to_stage) # Check if there are changes to avoid empty commit crashes @@ -66,7 +61,7 @@ def git_push_changes( # TODO: we could also force push... need to think about workflow though. raise RuntimeError( - f"Failed to push to git due to: {e}.\nDoes the branch already exist in Gitea? If yes, it needs to be deleted first" + f"Failed to push to git due to: {e}.\nDoes the branch already exist in Gitea? If yes, it needs to be deleted first." ) logger.info("Successfully pushed!") diff --git a/cli/src/core/service_creator.py b/cli/src/core/service_creator.py index 15d2607..8180ab2 100644 --- a/cli/src/core/service_creator.py +++ b/cli/src/core/service_creator.py @@ -89,6 +89,7 @@ class ServiceCreator: master_hla_names_rel_path="services/master/current/app/config/hla_names.yml", master_ioc_subs_rel_path="services/master/current/ioc/AGEBD-CPCL-MASTER_main.subs", iocs_overview_rel_path="docs/ioc/ioc_overview.md", + service_manager_ui_rel_path="qt/A_BD_ServiceManager.ui", commit_msg=f"feature: add new service {service.name_lower}", ) switch_branch(repo, original_branch)