From 4f451204665ab9102c56546d1f802c9093773359 Mon Sep 17 00:00:00 2001 From: hanshuaikang <1758504262@qq.com> Date: Mon, 27 Nov 2023 21:40:37 +0800 Subject: [PATCH 1/2] =?UTF-8?q?minor:=20apigw=20=E5=88=9D=E5=A7=8B?= =?UTF-8?q?=E5=8C=96=E6=96=B0=E5=A2=9E=E4=B8=BB=E5=8A=A8=E6=8E=88=E6=9D=83?= =?UTF-8?q?=E7=9A=84=E9=85=8D=E7=BD=AE?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- itsm/openapi/management/commands/data/api-definition.yaml | 3 +++ 1 file changed, 3 insertions(+) diff --git a/itsm/openapi/management/commands/data/api-definition.yaml b/itsm/openapi/management/commands/data/api-definition.yaml index 94ef72698..9590c2116 100644 --- a/itsm/openapi/management/commands/data/api-definition.yaml +++ b/itsm/openapi/management/commands/data/api-definition.yaml @@ -27,3 +27,6 @@ stage: release: version: {{ settings.STATIC_VERSION }}+{{ settings.DEPLOY_DATETIME }} comment: "auto release by bk-sops" + +grant_permissions: + - bk_app_code: bk-audit From 51921473aef1c4d6ca9845caf89918f23620c7f8 Mon Sep 17 00:00:00 2001 From: hanshuaikang <1758504262@qq.com> Date: Wed, 6 Dec 2023 19:57:20 +0800 Subject: [PATCH 2/2] =?UTF-8?q?bugfix:=20=E4=BF=AE=E5=A4=8D=E6=A0=87?= =?UTF-8?q?=E5=87=86=E8=BF=90=E7=BB=B4=E8=8A=82=E7=82=B9=E5=BC=95=E7=94=A8?= =?UTF-8?q?=20display=20=E5=8F=98=E9=87=8F=E5=A4=B1=E6=95=88=E7=9A=84?= =?UTF-8?q?=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- itsm/pipeline_plugins/components/collections/bk_sops.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/itsm/pipeline_plugins/components/collections/bk_sops.py b/itsm/pipeline_plugins/components/collections/bk_sops.py index 7283da3c4..cdfa347a7 100644 --- a/itsm/pipeline_plugins/components/collections/bk_sops.py +++ b/itsm/pipeline_plugins/components/collections/bk_sops.py @@ -41,7 +41,7 @@ class BkOpsService(ItsmBaseService): interval = StaticIntervalGenerator(3) def prepare_task_params(self, state, ticket, sops_info): - values = ticket.get_output_fields(return_format="dict") + values = ticket.get_output_fields(return_format="dict", need_display=True) if sops_info["bk_biz_id"]["value_type"] == "variable": bk_biz_id = values.get(sops_info["bk_biz_id"]["value"], 0) else: