Skip to content

Commit

Permalink
Spotless Apply
Browse files Browse the repository at this point in the history
  • Loading branch information
Zzm0809 authored and github-actions[bot] committed Dec 17, 2024
1 parent f5f833f commit 6e9ab0d
Show file tree
Hide file tree
Showing 2 changed files with 20 additions and 11 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ import { InitPushDolphinParams } from '@/types/Studio/init.d';
import { Button, Form, Tag } from 'antd';
import { DefaultOptionType } from 'antd/es/select';
import React, { useEffect } from 'react';
import {TaskState} from "@/pages/DataStudio/type";
import { TaskState } from '@/pages/DataStudio/type';

type PushDolphinProps = {
onCancel: () => void;
Expand Down
29 changes: 19 additions & 10 deletions dinky-web/src/pages/DataStudio/CenterTabContent/SqlTask/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,12 @@ import {
import { l } from '@/utils/intl';
import { editor } from 'monaco-editor';
import { DataStudioActionType } from '@/pages/DataStudio/data.d';
import {getDataByParams, handleOption, handlePutDataJson, queryDataByParams} from '@/services/BusinessCrud';
import {
getDataByParams,
handleOption,
handlePutDataJson,
queryDataByParams
} from '@/services/BusinessCrud';
import { API_CONSTANTS } from '@/services/endpoints';
import { Jobs, LineageDetailInfo } from '@/types/DevOps/data';
import { lockTask, matchLanguage } from '@/pages/DataStudio/function';
Expand All @@ -98,8 +103,12 @@ import { ResourceInfo } from '@/types/RegCenter/data';
import { buildResourceTreeDataAtTreeForm } from '@/pages/RegCenter/Resource/components/FileTree/function';
import { ProFormDependency } from '@ant-design/pro-form';
import { SavePoint } from '@/pages/DataStudio/CenterTabContent/SqlTask/SavePoint';
import {DolphinTaskDefinition, DolphinTaskGroupInfo, DolphinTaskMinInfo} from "@/types/Studio/data";
import PushDolphin from "@/pages/DataStudio/CenterTabContent/SqlTask/PushDolphin";
import {
DolphinTaskDefinition,
DolphinTaskGroupInfo,
DolphinTaskMinInfo
} from '@/types/Studio/data';
import PushDolphin from '@/pages/DataStudio/CenterTabContent/SqlTask/PushDolphin';

export type FlinkSqlProps = {
showDesc: boolean;
Expand Down Expand Up @@ -663,15 +672,15 @@ export const SqlTask = memo((props: FlinkSqlProps & any) => {
);

let dolphinTaskGroup: DolphinTaskGroupInfo[] | undefined = undefined;
if (dolphinTaskDefinition?.projectCode){
dolphinTaskGroup = await queryDataByParams<
DolphinTaskGroupInfo[]
>(API_CONSTANTS.SCHEDULER_QUERY_TASK_GROUP, {
projectCode: dolphinTaskDefinition?.projectCode || undefined
});
if (dolphinTaskDefinition?.projectCode) {
dolphinTaskGroup = await queryDataByParams<DolphinTaskGroupInfo[]>(
API_CONSTANTS.SCHEDULER_QUERY_TASK_GROUP,
{
projectCode: dolphinTaskDefinition?.projectCode || undefined
}
);
}


const formValuesInfo = dolphinTaskDefinition
? JSON.parse(JSON.stringify(dolphinTaskDefinition))
: {};
Expand Down

0 comments on commit 6e9ab0d

Please sign in to comment.