diff --git a/api/app.py b/api/app.py index aebc16ff8b..e907f80e6e 100644 --- a/api/app.py +++ b/api/app.py @@ -1,6 +1,6 @@ -import os from __future__ import annotations +import os import sys from typing import TYPE_CHECKING, cast diff --git a/api/controllers/console/workspace/account.py b/api/controllers/console/workspace/account.py index f7f38d98e5..4521d84aa6 100644 --- a/api/controllers/console/workspace/account.py +++ b/api/controllers/console/workspace/account.py @@ -4,6 +4,7 @@ from datetime import datetime from typing import Literal import pytz +from core.file import helpers as file_helpers from flask import request from flask_restx import Resource, fields, marshal_with from pydantic import BaseModel, Field, field_validator, model_validator @@ -37,7 +38,6 @@ from controllers.console.wraps import ( only_edition_cloud, setup_required, ) -from core.file import helpers as file_helpers from extensions.ext_database import db from fields.member_fields import Account as AccountResponse from libs.datetime_utils import naive_utc_now diff --git a/api/services/workflow_service.py b/api/services/workflow_service.py index 46f4a3748f..2a7f52472e 100644 --- a/api/services/workflow_service.py +++ b/api/services/workflow_service.py @@ -362,6 +362,7 @@ class WorkflowService: # commit db session changes db.session.commit() + def restore_published_workflow_to_draft( self, *, diff --git a/api/tests/unit_tests/services/test_workflow_service.py b/api/tests/unit_tests/services/test_workflow_service.py index 17949ba60d..aaa090a9aa 100644 --- a/api/tests/unit_tests/services/test_workflow_service.py +++ b/api/tests/unit_tests/services/test_workflow_service.py @@ -10,10 +10,9 @@ This test suite covers: """ import json -from unittest.mock import ANY, MagicMock, Mock, patch import uuid from typing import Any, cast - +from unittest.mock import ANY, MagicMock, Mock, patch import pytest from graphon.entities import WorkflowNodeExecution diff --git a/web/eslint-suppressions.json b/web/eslint-suppressions.json index 8e973822bb..40be03b7bc 100644 --- a/web/eslint-suppressions.json +++ b/web/eslint-suppressions.json @@ -584,9 +584,6 @@ }, "tailwindcss/enforce-consistent-class-order": { "count": 1 - }, - "ts/no-explicit-any": { - "count": 5 } }, "app/components/app/app-publisher/publish-with-multiple-model.tsx": { @@ -7926,11 +7923,6 @@ "count": 3 } }, - "app/components/workflow-app/components/workflow-main.tsx": { - "ts/no-explicit-any": { - "count": 2 - } - }, "app/components/workflow-app/components/workflow-onboarding-modal/index.tsx": { "tailwindcss/enforce-consistent-class-order": { "count": 3 @@ -8331,11 +8323,6 @@ "count": 1 } }, - "app/components/workflow/hooks-store/store.ts": { - "ts/no-explicit-any": { - "count": 6 - } - }, "app/components/workflow/hooks/__tests__/use-checklist.spec.ts": { "react/error-boundaries": { "count": 1 @@ -8414,7 +8401,7 @@ "count": 1 }, "ts/no-explicit-any": { - "count": 2 + "count": 1 } }, "app/components/workflow/nodes/_base/components/add-variable-popup-with-position.tsx": {