From 9a83518756e8ffe0beff97d104bbc838854322fd Mon Sep 17 00:00:00 2001 From: benero Date: Thu, 18 Jul 2024 22:15:50 +0800 Subject: [PATCH] =?UTF-8?q?bugfix:=20=E3=80=91=E4=BF=AE=E5=A4=8D=20API=20?= =?UTF-8?q?=E8=8A=82=E7=82=B9=E6=89=8B=E5=8A=A8=E9=87=8D=E8=AF=95=E5=8F=96?= =?UTF-8?q?=E5=80=BC=E5=BC=82=E5=B8=B8=E7=9A=84=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- docs/RELEASE.md | 3 ++- docs/RELEASE_EN.md | 4 +++- itsm/pipeline_plugins/components/collections/itsm_auto.py | 3 ++- 3 files changed, 7 insertions(+), 3 deletions(-) diff --git a/docs/RELEASE.md b/docs/RELEASE.md index fb4fa7f5..2ed7c47a 100644 --- a/docs/RELEASE.md +++ b/docs/RELEASE.md @@ -1,5 +1,5 @@ # Changelog -## [Version: 2.6.24] - 2024-07-12 +## [Version: 2.6.24] - 2024-07-18 【优化】通知模板列表搜索优化 【修复】新建服务校验失败信息收敛 【修复】引用公共触发器弹窗增加非空校验 @@ -7,6 +7,7 @@ 【修复】编辑数据字典侧滑面板挂载到body 【修复】修复全局配置favicon不生效的问题 【修复】修复获取 role 信息时, desc 为空导致的异常问题 +【修复】修复 API 节点手动重试取值异常的问题 ## [Version: 2.6.23] - 2024-07-03 【优化】服务表单左侧字段控件搜索支持清空操作 diff --git a/docs/RELEASE_EN.md b/docs/RELEASE_EN.md index 803d2dbb..8a95ec0a 100644 --- a/docs/RELEASE_EN.md +++ b/docs/RELEASE_EN.md @@ -1,5 +1,5 @@ # Changelog -## [Version: 2.6.24] - 2024-07-12 +## [Version: 2.6.24] - 2024-07-18 【Improved】Optimized the search functionality for the notification template list. 【Fixed】Consolidated validation failure messages when creating a new service. 【Fixed】Added non-empty validation to the pop-up for referencing common triggers. @@ -7,6 +7,8 @@ 【Fixed】Mounted the data dictionary edit side panel to the body. 【Fixed】Fixed the issue where the global configuration favicon was not being applied. 【Fixed】Resolved the issue causing an exception when desc is empty while fetching role information. +【Fixed】Fix the issue with the abnormal value retrieval during manual retry of the API node. + ## [Version: 2.6.23] - 2024-07-03 【Improved】Enabled support for clearing the search operation on the left-side field controls of the service form. diff --git a/itsm/pipeline_plugins/components/collections/itsm_auto.py b/itsm/pipeline_plugins/components/collections/itsm_auto.py index 79a97b7f..6691217d 100644 --- a/itsm/pipeline_plugins/components/collections/itsm_auto.py +++ b/itsm/pipeline_plugins/components/collections/itsm_auto.py @@ -29,6 +29,7 @@ import re from datetime import datetime, timedelta +import jmespath import jsonschema from django.core.cache import cache from django.db import transaction @@ -93,7 +94,7 @@ def update_variables(self, rsp, ticket_id, variables, data=None): for variable in variables: TicketGlobalVariable.objects.filter( ticket_id=ticket_id, key=variable["key"] - ).update(value=rsp.get(variable["ref_path"], "")) + ).update(value=jmespath.search(variable["ref_path"], rsp) or "") return variables @staticmethod