Skip to content

Commit ae8a877

Browse files
committed
适配datajuicer
1 parent 80df413 commit ae8a877

3 files changed

Lines changed: 5 additions & 4 deletions

File tree

frontend/src/pages/DataCleansing/Detail/components/LogsTable.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ export default function LogsTable({taskLog, fetchTaskLog, retryCount} : {taskLog
3030
))}
3131
</select>
3232
</div>
33-
<span className="text-s text-gray-500 px-2">{t("dataCleansing.detail.logTable.nthRun", { selectedLog: selectedLog })}</span>
33+
<span className="text-s text-gray-500 px-2">{t("dataCleansing.detail.logTable.nthRun", { num: selectedLog })}</span>
3434
</div>
3535
<div className="text-gray-300 p-4 border border-gray-700 bg-gray-800 rounded-lg">
3636
<div className="font-mono text-sm">

frontend/src/pages/DataCleansing/Home/components/TemplateList.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ export default function TemplateList() {
3939
},
4040
{
4141
key: "delete",
42-
label: t("dataCleansing.actions.deleteTemplate"),
42+
label: t("dataCleansing.actions.delete"),
4343
danger: true,
4444
icon: <DeleteOutlined />,
4545
onClick: deleteTemplate, // implement delete logic

runtime/datamate-python/app/module/cleaning/service/cleaning_task_validator.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22

33
from app.core.exception import BusinessError, ErrorCodes
44
from app.module.cleaning.schema import OperatorInstanceDto
5+
from app.module.operator.constants import CATEGORY_DATA_JUICER_ID, CATEGORY_DATAMATE_ID
56

67

78
class CleaningTaskValidator:
@@ -68,9 +69,9 @@ def check_and_get_executor_type(instances: list[OperatorInstanceDto]) -> str:
6869
for instance in instances:
6970
if instance.categories:
7071
for category in instance.categories:
71-
if "datajuicer" in category.lower():
72+
if CATEGORY_DATA_JUICER_ID in category.lower():
7273
executor_types.add("default")
73-
elif "datamate" in category.lower():
74+
elif CATEGORY_DATAMATE_ID in category.lower():
7475
executor_types.add("datamate")
7576

7677
if len(executor_types) > 1:

0 commit comments

Comments
 (0)