diff --git a/0001-update-model-name-length-limit-to-50.patch b/0001-update-model-name-length-limit-to-50.patch new file mode 100644 index 0000000..bf1b66f --- /dev/null +++ b/0001-update-model-name-length-limit-to-50.patch @@ -0,0 +1,25 @@ +From 45d36577d0006175f3a4669f2e1308e18e687e38 Mon Sep 17 00:00:00 2001 +From: root +Date: Fri, 2 Dec 2022 20:21:42 +0800 +Subject: [PATCH] update model name length limit to 50 + +--- + diana/database/factory/table.py | 2 +- + 1 file changed, 1 insertion(+), 1 deletion(-) + +diff --git a/diana/database/factory/table.py b/diana/database/factory/table.py +index ef827f1..dbb7a49 100644 +--- a/diana/database/factory/table.py ++++ b/diana/database/factory/table.py +@@ -77,7 +77,7 @@ class Model(Base, MyBase): + __tablename__ = "model" + + model_id = Column(String(32), primary_key=True, nullable=False) +- model_name = Column(String(20), nullable=False) ++ model_name = Column(String(50), nullable=False) + tag = Column(String(255), nullable=True) + algo_id = Column(String(32), ForeignKey( + 'algorithm.algo_id'), nullable=False) +-- +2.33.0 + diff --git a/aops-diana.spec b/aops-diana.spec index 40b64f2..bf823a7 100644 --- a/aops-diana.spec +++ b/aops-diana.spec @@ -1,10 +1,11 @@ Name: aops-diana Version: v1.1.1 -Release: 1 +Release: 2 Summary: An intelligent abnormal detection framework of aops License: MulanPSL2 URL: https://gitee.com/openeuler/%{name} Source0: %{name}-%{version}.tar.gz +Patch0001: 0001-update-model-name-length-limit-to-50.patch BuildRequires: python3-setuptools Requires: aops-vulcanus >= v1.0.0 @@ -21,7 +22,7 @@ An intelligent abnormal detection framework of aops %prep -%autosetup -n %{name}-%{version} +%autosetup -n %{name}-%{version} -p1 # build for aops-diana @@ -49,6 +50,9 @@ An intelligent abnormal detection framework of aops %changelog +* Fri Dec 2 2022 zhuyuncheng - v1.1.1-2 +- Add patch to change model name length limit from 20 to 50 in mysql table + * Fri Dec 2 2022 zhuyuncheng - v1.1.1-1 - Fix wrong model config path