status
stringclasses 1
value | repo_name
stringclasses 31
values | repo_url
stringclasses 31
values | issue_id
int64 1
104k
| title
stringlengths 4
369
| body
stringlengths 0
254k
⌀ | issue_url
stringlengths 37
56
| pull_url
stringlengths 37
54
| before_fix_sha
stringlengths 40
40
| after_fix_sha
stringlengths 40
40
| report_datetime
timestamp[us, tz=UTC] | language
stringclasses 5
values | commit_datetime
timestamp[us, tz=UTC] | updated_file
stringlengths 4
188
| file_content
stringlengths 0
5.12M
|
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
closed
|
apache/dolphinscheduler
|
https://github.com/apache/dolphinscheduler
| 8,801 |
[Bug][UI Next][V1.0.0-Alpha] The instructions button always links to shell in task editor modal.
|
### Search before asking
- [X] I had searched in the [issues](https://github.com/apache/dolphinscheduler/issues?q=is%3Aissue) and found no similar issues.
### What happened
The instructions button always links to shell in task editor modal.
### What you expected to happen
Links to the current task type instructions.
### How to reproduce
1. Open the task definition page
2. Click the create task button
3. Click the instructions button
<img width="1781" alt="image" src="https://user-images.githubusercontent.com/97265214/157600308-84c744ea-1a86-4b4b-aefe-02b944bff5e5.png">
### Anything else
_No response_
### Version
dev
### Are you willing to submit PR?
- [X] Yes I am willing to submit a PR!
### Code of Conduct
- [X] I agree to follow this project's [Code of Conduct](https://www.apache.org/foundation/policies/conduct)
|
https://github.com/apache/dolphinscheduler/issues/8801
|
https://github.com/apache/dolphinscheduler/pull/8924
|
b1f7f788fda60d1f50bc4a398ede5c2b31246884
|
e17c2bb56a0c844cd9760518ef3fe2505d0491c0
| 2022-03-10T06:20:54Z |
java
| 2022-03-16T06:17:00Z |
dolphinscheduler-ui-next/src/views/projects/task/components/node/detail-modal.tsx
|
/*
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership.
* The ASF licenses this file to You under the Apache License, Version 2.0
* (the "License"); you may not use this file except in compliance with
* the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
import {
defineComponent,
PropType,
ref,
watch,
nextTick,
provide,
computed,
h
} from 'vue'
import { useI18n } from 'vue-i18n'
import Modal from '@/components/modal'
import Detail from './detail'
import { formatModel } from './format-data'
import type { ITaskData, ITaskType } from './types'
import {
HistoryOutlined,
ProfileOutlined,
QuestionCircleTwotone
} from '@vicons/antd'
import { NIcon } from 'naive-ui'
import { Router, useRouter } from 'vue-router'
import { IWorkflowTaskInstance } from '@/views/projects/workflow/components/dag/types'
const props = {
show: {
type: Boolean as PropType<boolean>,
default: false
},
data: {
type: Object as PropType<ITaskData>,
default: { code: 0, taskType: 'SHELL', name: '' }
},
projectCode: {
type: Number as PropType<number>,
required: true
},
readonly: {
type: Boolean as PropType<boolean>,
default: false
},
from: {
type: Number as PropType<number>,
default: 0
},
definition: {
type: Object as PropType<any>
},
processInstance: {
type: Object as PropType<any>
},
taskInstance: {
type: Object as PropType<IWorkflowTaskInstance>
},
saving: {
type: Boolean,
default: false
}
}
const NodeDetailModal = defineComponent({
name: 'NodeDetailModal',
props,
emits: ['cancel', 'submit', 'viewLog'],
setup(props, { emit }) {
const { t, locale } = useI18n()
const router: Router = useRouter()
const renderIcon = (icon: any) => {
return () => h(NIcon, null, { default: () => h(icon) })
}
const detailRef = ref()
const onConfirm = async () => {
await detailRef.value.value.validate()
emit('submit', { data: detailRef.value.value.getValues() })
}
const onCancel = () => {
emit('cancel')
}
const headerLinks = ref([] as any)
const handleViewLog = () => {
if (props.taskInstance) {
emit('viewLog', props.taskInstance.id, props.taskInstance.taskType)
}
}
const initHeaderLinks = (
processInstance: any,
taskType: ITaskType | undefined
) => {
headerLinks.value = [
{
text: t('project.node.instructions'),
show: taskType ? true : false,
action: () => {
const helpUrl =
'https://dolphinscheduler.apache.org/' +
locale.value.toLowerCase().replace('_', '-') +
'/docs/latest/user_doc/guide/task/' +
taskType?.toLowerCase() +
'.html'
window.open(helpUrl)
},
icon: renderIcon(QuestionCircleTwotone)
},
{
text: t('project.node.view_history'),
show: props.taskInstance ? true : false,
action: () => {
router.push({
name: 'task-instance',
params: { processInstanceId: processInstance.id }
})
},
icon: renderIcon(HistoryOutlined)
},
{
text: t('project.node.view_log'),
show: props.taskInstance ? true : false,
action: () => {
handleViewLog()
},
icon: renderIcon(ProfileOutlined)
}
]
}
const onTaskTypeChange = (taskType: ITaskType) => {
// eslint-disable-next-line vue/no-mutating-props
props.data.taskType = taskType
}
provide(
'data',
computed(() => ({
projectCode: props.projectCode,
data: props.data,
from: props.from,
readonly: props.readonly,
definition: props.definition
}))
)
watch(
() => [props.show, props.data],
async () => {
if (!props.show) return
initHeaderLinks(props.processInstance, props.data.taskType)
await nextTick()
detailRef.value.value.setValues(formatModel(props.data))
}
)
return () => (
<Modal
show={props.show}
title={`${t('project.node.current_node_settings')}`}
onConfirm={onConfirm}
confirmLoading={props.saving}
confirmDisabled={props.readonly}
onCancel={onCancel}
headerLinks={headerLinks}
>
<Detail
ref={detailRef}
onTaskTypeChange={onTaskTypeChange}
key={props.data.taskType}
/>
</Modal>
)
}
})
export default NodeDetailModal
|
closed
|
apache/dolphinscheduler
|
https://github.com/apache/dolphinscheduler
| 8,801 |
[Bug][UI Next][V1.0.0-Alpha] The instructions button always links to shell in task editor modal.
|
### Search before asking
- [X] I had searched in the [issues](https://github.com/apache/dolphinscheduler/issues?q=is%3Aissue) and found no similar issues.
### What happened
The instructions button always links to shell in task editor modal.
### What you expected to happen
Links to the current task type instructions.
### How to reproduce
1. Open the task definition page
2. Click the create task button
3. Click the instructions button
<img width="1781" alt="image" src="https://user-images.githubusercontent.com/97265214/157600308-84c744ea-1a86-4b4b-aefe-02b944bff5e5.png">
### Anything else
_No response_
### Version
dev
### Are you willing to submit PR?
- [X] Yes I am willing to submit a PR!
### Code of Conduct
- [X] I agree to follow this project's [Code of Conduct](https://www.apache.org/foundation/policies/conduct)
|
https://github.com/apache/dolphinscheduler/issues/8801
|
https://github.com/apache/dolphinscheduler/pull/8924
|
b1f7f788fda60d1f50bc4a398ede5c2b31246884
|
e17c2bb56a0c844cd9760518ef3fe2505d0491c0
| 2022-03-10T06:20:54Z |
java
| 2022-03-16T06:17:00Z |
dolphinscheduler-ui-next/src/views/projects/task/constants/task-type.ts
|
/*
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership.
* The ASF licenses this file to You under the Apache License, Version 2.0
* (the "License"); you may not use this file except in compliance with
* the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
export const TASK_TYPES_MAP = {
SHELL: {
alias: 'SHELL'
},
SUB_PROCESS: {
alias: 'SUB_PROCESS'
},
PROCEDURE: {
alias: 'PROCEDURE'
},
SQL: {
alias: 'SQL'
},
SPARK: {
alias: 'SPARK'
},
FLINK: {
alias: 'FLINK'
},
MR: {
alias: 'MapReduce'
},
PYTHON: {
alias: 'PYTHON'
},
DEPENDENT: {
alias: 'DEPENDENT'
},
HTTP: {
alias: 'HTTP'
},
DATAX: {
alias: 'DataX'
},
PIGEON: {
alias: 'PIGEON'
},
SQOOP: {
alias: 'SQOOP'
},
CONDITIONS: {
alias: 'CONDITIONS'
},
DATA_QUALITY: {
alias: 'DATA_QUALITY'
},
SWITCH: {
alias: 'SWITCH'
},
SEATUNNEL: {
alias: 'WATERDROP'
},
EMR: {
alias: 'AmazonEMR'
}
}
export type TaskType = keyof typeof TASK_TYPES_MAP
|
closed
|
apache/dolphinscheduler
|
https://github.com/apache/dolphinscheduler
| 8,882 |
[Bug][UI Next][V1.0.0-Alpha] save workflow in workflow instance detail page no response
|
### Search before asking
- [X] I had searched in the [issues](https://github.com/apache/dolphinscheduler/issues?q=is%3Aissue) and found no similar issues.
### What happened

### What you expected to happen
above.
### How to reproduce
above.
### Anything else
_No response_
### Version
dev
### Are you willing to submit PR?
- [ ] Yes I am willing to submit a PR!
### Code of Conduct
- [X] I agree to follow this project's [Code of Conduct](https://www.apache.org/foundation/policies/conduct)
|
https://github.com/apache/dolphinscheduler/issues/8882
|
https://github.com/apache/dolphinscheduler/pull/8926
|
e17c2bb56a0c844cd9760518ef3fe2505d0491c0
|
276a68a23e791eac08626febfed14e1ef2c01dd9
| 2022-03-14T11:07:00Z |
java
| 2022-03-16T06:18:35Z |
dolphinscheduler-ui-next/src/locales/modules/en_US.ts
|
/*
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership.
* The ASF licenses this file to You under the Apache License, Version 2.0
* (the "License"); you may not use this file except in compliance with
* the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
const login = {
test: 'Test',
userName: 'Username',
userName_tips: 'Please enter your username',
userPassword: 'Password',
userPassword_tips: 'Please enter your password',
login: 'Login'
}
const modal = {
cancel: 'Cancel',
confirm: 'Confirm'
}
const theme = {
light: 'Light',
dark: 'Dark'
}
const userDropdown = {
profile: 'Profile',
password: 'Password',
logout: 'Logout'
}
const menu = {
home: 'Home',
project: 'Project',
resources: 'Resources',
datasource: 'Datasource',
monitor: 'Monitor',
security: 'Security',
project_overview: 'Project Overview',
workflow_relation: 'Workflow Relation',
workflow: 'Workflow',
workflow_definition: 'Workflow Definition',
workflow_instance: 'Workflow Instance',
task: 'Task',
task_instance: 'Task Instance',
task_definition: 'Task Definition',
file_manage: 'File Manage',
udf_manage: 'UDF Manage',
resource_manage: 'Resource Manage',
function_manage: 'Function Manage',
service_manage: 'Service Manage',
master: 'Master',
worker: 'Worker',
db: 'DB',
statistical_manage: 'Statistical Manage',
statistics: 'Statistics',
audit_log: 'Audit Log',
tenant_manage: 'Tenant Manage',
user_manage: 'User Manage',
alarm_group_manage: 'Alarm Group Manage',
alarm_instance_manage: 'Alarm Instance Manage',
worker_group_manage: 'Worker Group Manage',
yarn_queue_manage: 'Yarn Queue Manage',
environment_manage: 'Environment Manage',
k8s_namespace_manage: 'K8S Namespace Manage',
token_manage: 'Token Manage',
task_group_manage: 'Task Group Manage',
task_group_option: 'Task Group Option',
task_group_queue: 'Task Group Queue',
data_quality: 'Data Quality',
task_result: 'Task Result',
rule: 'Rule management'
}
const home = {
task_state_statistics: 'Task State Statistics',
process_state_statistics: 'Process State Statistics',
process_definition_statistics: 'Process Definition Statistics',
number: 'Number',
state: 'State',
submitted_success: 'SUBMITTED_SUCCESS',
running_execution: 'RUNNING_EXECUTION',
ready_pause: 'READY_PAUSE',
pause: 'PAUSE',
ready_stop: 'READY_STOP',
stop: 'STOP',
failure: 'FAILURE',
success: 'SUCCESS',
need_fault_tolerance: 'NEED_FAULT_TOLERANCE',
kill: 'KILL',
waiting_thread: 'WAITING_THREAD',
waiting_depend: 'WAITING_DEPEND',
delay_execution: 'DELAY_EXECUTION',
forced_success: 'FORCED_SUCCESS',
serial_wait: 'SERIAL_WAIT'
}
const password = {
edit_password: 'Edit Password',
password: 'Password',
confirm_password: 'Confirm Password',
password_tips: 'Please enter your password',
confirm_password_tips: 'Please enter your confirm password',
two_password_entries_are_inconsistent:
'Two password entries are inconsistent',
submit: 'Submit'
}
const profile = {
profile: 'Profile',
edit: 'Edit',
username: 'Username',
email: 'Email',
phone: 'Phone',
state: 'State',
permission: 'Permission',
create_time: 'Create Time',
update_time: 'Update Time',
administrator: 'Administrator',
ordinary_user: 'Ordinary User',
edit_profile: 'Edit Profile',
username_tips: 'Please enter your username',
email_tips: 'Please enter your email',
email_correct_tips: 'Please enter your email in the correct format',
phone_tips: 'Please enter your phone',
state_tips: 'Please choose your state',
enable: 'Enable',
disable: 'Disable',
timezone_success: 'Time zone updated successful',
please_select_timezone: 'Choose timeZone'
}
const monitor = {
master: {
cpu_usage: 'CPU Usage',
memory_usage: 'Memory Usage',
load_average: 'Load Average',
create_time: 'Create Time',
last_heartbeat_time: 'Last Heartbeat Time',
directory_detail: 'Directory Detail',
host: 'Host',
directory: 'Directory'
},
worker: {
cpu_usage: 'CPU Usage',
memory_usage: 'Memory Usage',
load_average: 'Load Average',
create_time: 'Create Time',
last_heartbeat_time: 'Last Heartbeat Time',
directory_detail: 'Directory Detail',
host: 'Host',
directory: 'Directory'
},
db: {
health_state: 'Health State',
max_connections: 'Max Connections',
threads_connections: 'Threads Connections',
threads_running_connections: 'Threads Running Connections'
},
statistics: {
command_number_of_waiting_for_running:
'Command Number Of Waiting For Running',
failure_command_number: 'Failure Command Number',
tasks_number_of_waiting_running: 'Tasks Number Of Waiting Running',
task_number_of_ready_to_kill: 'Task Number Of Ready To Kill'
},
audit_log: {
user_name: 'User Name',
resource_type: 'Resource Type',
project_name: 'Project Name',
operation_type: 'Operation Type',
create_time: 'Create Time',
start_time: 'Start Time',
end_time: 'End Time',
user_audit: 'User Audit',
project_audit: 'Project Audit',
create: 'Create',
update: 'Update',
delete: 'Delete',
read: 'Read'
}
}
const resource = {
file: {
file_manage: 'File Manage',
create_folder: 'Create Folder',
create_file: 'Create File',
upload_files: 'Upload Files',
enter_keyword_tips: 'Please enter keyword',
name: 'Name',
user_name: 'Resource userName',
whether_directory: 'Whether directory',
file_name: 'File Name',
description: 'Description',
size: 'Size',
update_time: 'Update Time',
operation: 'Operation',
edit: 'Edit',
rename: 'Rename',
download: 'Download',
delete: 'Delete',
yes: 'Yes',
no: 'No',
folder_name: 'Folder Name',
enter_name_tips: 'Please enter name',
enter_description_tips: 'Please enter description',
enter_content_tips: 'Please enter the resource content',
file_format: 'File Format',
file_content: 'File Content',
delete_confirm: 'Delete?',
confirm: 'Confirm',
cancel: 'Cancel',
success: 'Success',
file_details: 'File Details',
return: 'Return',
save: 'Save'
},
udf: {
udf_resources: 'UDF resources',
create_folder: 'Create Folder',
upload_udf_resources: 'Upload UDF Resources',
udf_source_name: 'UDF Resource Name',
whether_directory: 'Whether directory',
file_name: 'File Name',
file_size: 'File Size',
description: 'Description',
create_time: 'Create Time',
update_time: 'Update Time',
operation: 'Operation',
yes: 'Yes',
no: 'No',
edit: 'Edit',
download: 'Download',
delete: 'Delete',
delete_confirm: 'Delete?',
success: 'Success',
folder_name: 'Folder Name',
upload: 'Upload',
upload_files: 'Upload Files',
file_upload: 'File Upload',
enter_keyword_tips: 'Please enter keyword',
enter_name_tips: 'Please enter name',
enter_description_tips: 'Please enter description'
},
function: {
udf_function: 'UDF Function',
create_udf_function: 'Create UDF Function',
edit_udf_function: 'Create UDF Function',
udf_function_name: 'UDF Function Name',
class_name: 'Class Name',
type: 'Type',
description: 'Description',
jar_package: 'Jar Package',
update_time: 'Update Time',
operation: 'Operation',
rename: 'Rename',
edit: 'Edit',
delete: 'Delete',
success: 'Success',
package_name: 'Package Name',
udf_resources: 'UDF Resources',
instructions: 'Instructions',
upload_resources: 'Upload Resources',
udf_resources_directory: 'UDF resources directory',
delete_confirm: 'Delete?',
enter_keyword_tips: 'Please enter keyword',
enter_udf_unction_name_tips: 'Please enter a UDF function name',
enter_package_name_tips: 'Please enter a Package name',
enter_select_udf_resources_tips: 'Please select UDF resources',
enter_select_udf_resources_directory_tips:
'Please select UDF resources directory',
enter_instructions_tips: 'Please enter a instructions',
enter_name_tips: 'Please enter name',
enter_description_tips: 'Please enter description'
},
task_group_option: {
manage: 'Task group manage',
option: 'Task group option',
create: 'Create task group',
edit: 'Edit task group',
delete: 'Delete task group',
view_queue: 'View the queue of the task group',
switch_status: 'Switch status',
code: 'Task group code',
name: 'Task group name',
project_name: 'Project name',
resource_pool_size: 'Resource pool size',
resource_pool_size_be_a_number:
'The size of the task group resource pool should be more than 1',
resource_used_pool_size: 'Used resource',
desc: 'Task group desc',
status: 'Task group status',
enable_status: 'Enable',
disable_status: 'Disable',
please_enter_name: 'Please enter task group name',
please_enter_desc: 'Please enter task group description',
please_enter_resource_pool_size:
'Please enter task group resource pool size',
please_select_project: 'Please select a project',
create_time: 'Create time',
update_time: 'Update time',
actions: 'Actions',
please_enter_keywords: 'Please enter keywords'
},
task_group_queue: {
actions: 'Actions',
task_name: 'Task name',
task_group_name: 'Task group name',
project_name: 'Project name',
process_name: 'Process name',
process_instance_name: 'Process instance',
queue: 'Task group queue',
priority: 'Priority',
priority_be_a_number:
'The priority of the task group queue should be a positive number',
force_starting_status: 'Starting status',
in_queue: 'In queue',
task_status: 'Task status',
view: 'View task group queue',
the_status_of_waiting: 'Waiting into the queue',
the_status_of_queuing: 'Queuing',
the_status_of_releasing: 'Released',
modify_priority: 'Edit the priority',
start_task: 'Start the task',
priority_not_empty: 'The value of priority can not be empty',
priority_must_be_number: 'The value of priority should be number',
please_select_task_name: 'Please select a task name',
create_time: 'Create time',
update_time: 'Update time',
edit_priority: 'Edit the task priority'
}
}
const project = {
list: {
create_project: 'Create Project',
edit_project: 'Edit Project',
project_list: 'Project List',
project_tips: 'Please enter your project',
description_tips: 'Please enter your description',
username_tips: 'Please enter your username',
project_name: 'Project Name',
project_description: 'Project Description',
owned_users: 'Owned Users',
workflow_define_count: 'Workflow Define Count',
process_instance_running_count: 'Process Instance Running Count',
description: 'Description',
create_time: 'Create Time',
update_time: 'Update Time',
operation: 'Operation',
edit: 'Edit',
delete: 'Delete',
confirm: 'Confirm',
cancel: 'Cancel',
delete_confirm: 'Delete?'
},
workflow: {
workflow_relation: 'Workflow Relation',
create_workflow: 'Create Workflow',
import_workflow: 'Import Workflow',
workflow_name: 'Workflow Name',
current_selection: 'Current Selection',
online: 'Online',
offline: 'Offline',
refresh: 'Refresh',
show_hide_label: 'Show / Hide Label',
workflow_offline: 'Workflow Offline',
schedule_offline: 'Schedule Offline',
schedule_start_time: 'Schedule Start Time',
schedule_end_time: 'Schedule End Time',
crontab_expression: 'Crontab',
workflow_publish_status: 'Workflow Publish Status',
schedule_publish_status: 'Schedule Publish Status',
workflow_definition: 'Workflow Definition',
workflow_instance: 'Workflow Instance',
status: 'Status',
create_time: 'Create Time',
update_time: 'Update Time',
description: 'Description',
create_user: 'Create User',
modify_user: 'Modify User',
operation: 'Operation',
edit: 'Edit',
start: 'Start',
timing: 'Timing',
timezone: 'Timezone',
up_line: 'Online',
down_line: 'Offline',
copy_workflow: 'Copy Workflow',
cron_manage: 'Cron manage',
delete: 'Delete',
tree_view: 'Tree View',
tree_limit: 'Limit Size',
export: 'Export',
version_info: 'Version Info',
version: 'Version',
file_upload: 'File Upload',
upload_file: 'Upload File',
upload: 'Upload',
file_name: 'File Name',
success: 'Success',
set_parameters_before_starting: 'Please set the parameters before starting',
set_parameters_before_timing: 'Set parameters before timing',
start_and_stop_time: 'Start and stop time',
next_five_execution_times: 'Next five execution times',
execute_time: 'Execute time',
failure_strategy: 'Failure Strategy',
notification_strategy: 'Notification Strategy',
workflow_priority: 'Workflow Priority',
worker_group: 'Worker Group',
environment_name: 'Environment Name',
alarm_group: 'Alarm Group',
complement_data: 'Complement Data',
startup_parameter: 'Startup Parameter',
whether_dry_run: 'Whether Dry-Run',
continue: 'Continue',
end: 'End',
none_send: 'None',
success_send: 'Success',
failure_send: 'Failure',
all_send: 'All',
whether_complement_data: 'Whether it is a complement process?',
schedule_date: 'Schedule date',
mode_of_execution: 'Mode of execution',
serial_execution: 'Serial execution',
parallel_execution: 'Parallel execution',
parallelism: 'Parallelism',
custom_parallelism: 'Custom Parallelism',
please_enter_parallelism: 'Please enter Parallelism',
please_choose: 'Please Choose',
start_time: 'Start Time',
end_time: 'End Time',
crontab: 'Crontab',
delete_confirm: 'Delete?',
enter_name_tips: 'Please enter name',
switch_version: 'Switch To This Version',
confirm_switch_version: 'Confirm Switch To This Version?',
current_version: 'Current Version',
run_type: 'Run Type',
scheduling_time: 'Scheduling Time',
duration: 'Duration',
run_times: 'Run Times',
fault_tolerant_sign: 'Fault-tolerant Sign',
dry_run_flag: 'Dry-run Flag',
executor: 'Executor',
host: 'Host',
start_process: 'Start Process',
execute_from_the_current_node: 'Execute from the current node',
recover_tolerance_fault_process: 'Recover tolerance fault process',
resume_the_suspension_process: 'Resume the suspension process',
execute_from_the_failed_nodes: 'Execute from the failed nodes',
scheduling_execution: 'Scheduling execution',
rerun: 'Rerun',
stop: 'Stop',
pause: 'Pause',
recovery_waiting_thread: 'Recovery waiting thread',
recover_serial_wait: 'Recover serial wait',
recovery_suspend: 'Recovery Suspend',
recovery_failed: 'Recovery Failed',
gantt: 'Gantt',
name: 'Name',
all_status: 'AllStatus',
submit_success: 'Submitted successfully',
running: 'Running',
ready_to_pause: 'Ready to pause',
ready_to_stop: 'Ready to stop',
failed: 'Failed',
need_fault_tolerance: 'Need fault tolerance',
kill: 'Kill',
waiting_for_thread: 'Waiting for thread',
waiting_for_dependence: 'Waiting for dependence',
waiting_for_dependency_to_complete: 'Waiting for dependency to complete',
delay_execution: 'Delay execution',
forced_success: 'Forced success',
serial_wait: 'Serial wait',
executing: 'Executing',
startup_type: 'Startup Type',
complement_range: 'Complement Range',
parameters_variables: 'Parameters variables',
global_parameters: 'Global parameters',
local_parameters: 'Local parameters',
type: 'Type',
retry_count: 'Retry Count',
submit_time: 'Submit Time',
refresh_status_succeeded: 'Refresh status succeeded',
view_log: 'View log',
update_log_success: 'Update log success',
no_more_log: 'No more logs',
no_log: 'No log',
loading_log: 'Loading Log...',
close: 'Close',
download_log: 'Download Log',
refresh_log: 'Refresh Log',
enter_full_screen: 'Enter full screen',
cancel_full_screen: 'Cancel full screen',
task_state: 'Task status',
mode_of_dependent: 'Mode of dependent',
open: 'Open'
},
task: {
task_name: 'Task Name',
task_type: 'Task Type',
create_task: 'Create Task',
workflow_instance: 'Workflow Instance',
workflow_name: 'Workflow Name',
workflow_name_tips: 'Please select workflow name',
workflow_state: 'Workflow State',
version: 'Version',
current_version: 'Current Version',
switch_version: 'Switch To This Version',
confirm_switch_version: 'Confirm Switch To This Version?',
description: 'Description',
move: 'Move',
upstream_tasks: 'Upstream Tasks',
executor: 'Executor',
node_type: 'Node Type',
state: 'State',
submit_time: 'Submit Time',
start_time: 'Start Time',
create_time: 'Create Time',
update_time: 'Update Time',
end_time: 'End Time',
duration: 'Duration',
retry_count: 'Retry Count',
dry_run_flag: 'Dry Run Flag',
host: 'Host',
operation: 'Operation',
edit: 'Edit',
delete: 'Delete',
delete_confirm: 'Delete?',
submitted_success: 'Submitted Success',
running_execution: 'Running Execution',
ready_pause: 'Ready Pause',
pause: 'Pause',
ready_stop: 'Ready Stop',
stop: 'Stop',
failure: 'Failure',
success: 'Success',
need_fault_tolerance: 'Need Fault Tolerance',
kill: 'Kill',
waiting_thread: 'Waiting Thread',
waiting_depend: 'Waiting Depend',
delay_execution: 'Delay Execution',
forced_success: 'Forced Success',
view_log: 'View Log',
download_log: 'Download Log',
refresh: 'Refresh'
},
dag: {
create: 'Create Workflow',
search: 'Search',
download_png: 'Download PNG',
fullscreen_open: 'Open Fullscreen',
fullscreen_close: 'Close Fullscreen',
save: 'Save',
close: 'Close',
format: 'Format',
refresh_dag_status: 'Refresh DAG status',
layout_type: 'Layout Type',
grid_layout: 'Grid',
dagre_layout: 'Dagre',
rows: 'Rows',
cols: 'Cols',
copy_success: 'Copy Success',
workflow_name: 'Workflow Name',
description: 'Description',
tenant: 'Tenant',
timeout_alert: 'Timeout Alert',
global_variables: 'Global Variables',
basic_info: 'Basic Information',
minute: 'Minute',
key: 'Key',
value: 'Value',
success: 'Success',
delete_cell: 'Delete selected edges and nodes',
online_directly: 'Whether to go online the process definition',
dag_name_empty: 'DAG graph name cannot be empty',
positive_integer: 'Please enter a positive integer greater than 0',
prop_empty: 'prop is empty',
prop_repeat: 'prop is repeat',
node_not_created: 'Failed to save node not created',
copy_name: 'Copy Name',
view_variables: 'View Variables',
startup_parameter: 'Startup Parameter'
},
node: {
current_node_settings: 'Current node settings',
instructions: 'Instructions',
view_history: 'View history',
view_log: 'View log',
enter_this_child_node: 'Enter this child node',
name: 'Node name',
name_tips: 'Please enter name (required)',
task_type: 'Task Type',
task_type_tips: 'Please select a task type (required)',
process_name: 'Process Name',
process_name_tips: 'Please select a process (required)',
child_node: 'Child Node',
enter_child_node: 'Enter child node',
run_flag: 'Run flag',
normal: 'Normal',
prohibition_execution: 'Prohibition execution',
description: 'Description',
description_tips: 'Please enter description',
task_priority: 'Task priority',
worker_group: 'Worker group',
worker_group_tips:
'The Worker group no longer exists, please select the correct Worker group!',
environment_name: 'Environment Name',
task_group_name: 'Task group name',
task_group_queue_priority: 'Priority',
number_of_failed_retries: 'Number of failed retries',
times: 'Times',
failed_retry_interval: 'Failed retry interval',
minute: 'Minute',
delay_execution_time: 'Delay execution time',
state: 'State',
branch_flow: 'Branch flow',
cancel: 'Cancel',
loading: 'Loading...',
confirm: 'Confirm',
success: 'Success',
failed: 'Failed',
backfill_tips:
'The newly created sub-Process has not yet been executed and cannot enter the sub-Process',
task_instance_tips:
'The task has not been executed and cannot enter the sub-Process',
branch_tips:
'Cannot select the same node for successful branch flow and failed branch flow',
timeout_alarm: 'Timeout alarm',
timeout_strategy: 'Timeout strategy',
timeout_strategy_tips: 'Timeout strategy must be selected',
timeout_failure: 'Timeout failure',
timeout_period: 'Timeout period',
timeout_period_tips: 'Timeout must be a positive integer',
script: 'Script',
script_tips: 'Please enter script(required)',
resources: 'Resources',
resources_tips: 'Please select resources',
non_resources_tips: 'Please delete all non-existent resources',
useless_resources_tips: 'Unauthorized or deleted resources',
custom_parameters: 'Custom Parameters',
copy_success: 'Copy success',
copy_failed: 'The browser does not support automatic copying',
prop_tips: 'prop(required)',
prop_repeat: 'prop is repeat',
value_tips: 'value(optional)',
value_required_tips: 'value(required)',
pre_tasks: 'Pre tasks',
program_type: 'Program Type',
spark_version: 'Spark Version',
main_class: 'Main Class',
main_class_tips: 'Please enter main class',
main_package: 'Main Package',
main_package_tips: 'Please enter main package',
deploy_mode: 'Deploy Mode',
app_name: 'App Name',
app_name_tips: 'Please enter app name(optional)',
driver_cores: 'Driver Cores',
driver_cores_tips: 'Please enter Driver cores',
driver_memory: 'Driver Memory',
driver_memory_tips: 'Please enter Driver memory',
executor_number: 'Executor Number',
executor_number_tips: 'Please enter Executor number',
executor_memory: 'Executor Memory',
executor_memory_tips: 'Please enter Executor memory',
executor_cores: 'Executor Cores',
executor_cores_tips: 'Please enter Executor cores',
main_arguments: 'Main Arguments',
main_arguments_tips: 'Please enter main arguments',
option_parameters: 'Option Parameters',
option_parameters_tips: 'Please enter option parameters',
positive_integer_tips: 'should be a positive integer',
flink_version: 'Flink Version',
job_manager_memory: 'JobManager Memory',
job_manager_memory_tips: 'Please enter JobManager memory',
task_manager_memory: 'TaskManager Memory',
task_manager_memory_tips: 'Please enter TaskManager memory',
slot_number: 'Slot Number',
slot_number_tips: 'Please enter Slot number',
parallelism: 'Parallelism',
custom_parallelism: 'Configure parallelism',
parallelism_tips: 'Please enter Parallelism',
parallelism_number_tips: 'Parallelism number should be positive integer',
parallelism_complement_tips:
'If there are a large number of tasks requiring complement, you can use the custom parallelism to ' +
'set the complement task thread to a reasonable value to avoid too large impact on the server.',
task_manager_number: 'TaskManager Number',
task_manager_number_tips: 'Please enter TaskManager number',
http_url: 'Http Url',
http_url_tips: 'Please Enter Http Url',
http_method: 'Http Method',
http_parameters: 'Http Parameters',
http_check_condition: 'Http Check Condition',
http_condition: 'Http Condition',
http_condition_tips: 'Please Enter Http Condition',
timeout_settings: 'Timeout Settings',
connect_timeout: 'Connect Timeout',
ms: 'ms',
socket_timeout: 'Socket Timeout',
status_code_default: 'Default response code 200',
status_code_custom: 'Custom response code',
body_contains: 'Content includes',
body_not_contains: 'Content does not contain',
http_parameters_position: 'Http Parameters Position',
target_task_name: 'Target Task Name',
target_task_name_tips: 'Please enter the Pigeon task name',
datasource_type: 'Datasource types',
datasource_instances: 'Datasource instances',
sql_type: 'SQL Type',
sql_type_query: 'Query',
sql_type_non_query: 'Non Query',
sql_statement: 'SQL Statement',
pre_sql_statement: 'Pre SQL Statement',
post_sql_statement: 'Post SQL Statement',
sql_input_placeholder: 'Please enter non-query sql.',
sql_empty_tips: 'The sql can not be empty.',
procedure_method: 'SQL Statement',
procedure_method_tips: 'Please enter the procedure script',
procedure_method_snippet:
'--Please enter the procedure script \n\n--call procedure:call <procedure-name>[(<arg1>,<arg2>, ...)]\n\n--call function:?= call <procedure-name>[(<arg1>,<arg2>, ...)]',
start: 'Start',
edit: 'Edit',
copy: 'Copy',
delete: 'Delete',
custom_job: 'Custom Job',
custom_script: 'Custom Script',
sqoop_job_name: 'Job Name',
sqoop_job_name_tips: 'Please enter Job Name(required)',
direct: 'Direct',
hadoop_custom_params: 'Hadoop Params',
sqoop_advanced_parameters: 'Sqoop Advanced Parameters',
data_source: 'Data Source',
type: 'Type',
datasource: 'Datasource',
datasource_tips: 'Please select the datasource',
model_type: 'ModelType',
form: 'Form',
table: 'Table',
table_tips: 'Please enter Mysql Table(required)',
column_type: 'ColumnType',
all_columns: 'All Columns',
some_columns: 'Some Columns',
column: 'Column',
column_tips: 'Please enter Columns (Comma separated)',
database: 'Database',
database_tips: 'Please enter Hive Database(required)',
hive_table_tips: 'Please enter Hive Table(required)',
hive_partition_keys: 'Hive partition Keys',
hive_partition_keys_tips: 'Please enter Hive Partition Keys',
hive_partition_values: 'Hive partition Values',
hive_partition_values_tips: 'Please enter Hive Partition Values',
export_dir: 'Export Dir',
export_dir_tips: 'Please enter Export Dir(required)',
sql_statement_tips: 'SQL Statement(required)',
map_column_hive: 'Map Column Hive',
map_column_java: 'Map Column Java',
data_target: 'Data Target',
create_hive_table: 'CreateHiveTable',
drop_delimiter: 'DropDelimiter',
over_write_src: 'OverWriteSrc',
hive_target_dir: 'Hive Target Dir',
hive_target_dir_tips: 'Please enter hive target dir',
replace_delimiter: 'ReplaceDelimiter',
replace_delimiter_tips: 'Please enter Replace Delimiter',
target_dir: 'Target Dir',
target_dir_tips: 'Please enter Target Dir(required)',
delete_target_dir: 'DeleteTargetDir',
compression_codec: 'CompressionCodec',
file_type: 'FileType',
fields_terminated: 'FieldsTerminated',
fields_terminated_tips: 'Please enter Fields Terminated',
lines_terminated: 'LinesTerminated',
lines_terminated_tips: 'Please enter Lines Terminated',
is_update: 'IsUpdate',
update_key: 'UpdateKey',
update_key_tips: 'Please enter Update Key',
update_mode: 'UpdateMode',
only_update: 'OnlyUpdate',
allow_insert: 'AllowInsert',
concurrency: 'Concurrency',
concurrency_tips: 'Please enter Concurrency',
sea_tunnel_master: 'Master',
sea_tunnel_master_url: 'Master URL',
sea_tunnel_queue: 'Queue',
sea_tunnel_master_url_tips:
'Please enter the master url, e.g., 127.0.0.1:7077',
switch_condition: 'Condition',
switch_branch_flow: 'Branch Flow',
and: 'and',
or: 'or',
datax_custom_template: 'Custom Template Switch',
datax_json_template: 'JSON',
datax_target_datasource_type: 'Target Datasource Type',
datax_target_database: 'Target Database',
datax_target_table: 'Target Table',
datax_target_table_tips: 'Please enter the name of the target table',
datax_target_database_pre_sql: 'Pre SQL Statement',
datax_target_database_post_sql: 'Post SQL Statement',
datax_non_query_sql_tips: 'Please enter the non-query sql statement',
datax_job_speed_byte: 'Speed(Byte count)',
datax_job_speed_byte_info: '(0 means unlimited)',
datax_job_speed_record: 'Speed(Record count)',
datax_job_speed_record_info: '(0 means unlimited)',
datax_job_runtime_memory: 'Runtime Memory Limits',
datax_job_runtime_memory_xms: 'Low Limit Value',
datax_job_runtime_memory_xmx: 'High Limit Value',
datax_job_runtime_memory_unit: 'G',
current_hour: 'CurrentHour',
last_1_hour: 'Last1Hour',
last_2_hour: 'Last2Hours',
last_3_hour: 'Last3Hours',
last_24_hour: 'Last24Hours',
today: 'today',
last_1_days: 'Last1Days',
last_2_days: 'Last2Days',
last_3_days: 'Last3Days',
last_7_days: 'Last7Days',
this_week: 'ThisWeek',
last_week: 'LastWeek',
last_monday: 'LastMonday',
last_tuesday: 'LastTuesday',
last_wednesday: 'LastWednesday',
last_thursday: 'LastThursday',
last_friday: 'LastFriday',
last_saturday: 'LastSaturday',
last_sunday: 'LastSunday',
this_month: 'ThisMonth',
last_month: 'LastMonth',
last_month_begin: 'LastMonthBegin',
last_month_end: 'LastMonthEnd',
month: 'month',
week: 'week',
day: 'day',
hour: 'hour',
add_dependency: 'Add dependency',
waiting_dependent_start: 'Waiting Dependent start',
check_interval: 'Check interval',
waiting_dependent_complete: 'Waiting Dependent complete',
rule_name: 'Rule Name',
null_check: 'NullCheck',
custom_sql: 'CustomSql',
multi_table_accuracy: 'MulTableAccuracy',
multi_table_value_comparison: 'MulTableCompare',
field_length_check: 'FieldLengthCheck',
uniqueness_check: 'UniquenessCheck',
regexp_check: 'RegexpCheck',
timeliness_check: 'TimelinessCheck',
enumeration_check: 'EnumerationCheck',
table_count_check: 'TableCountCheck',
src_connector_type: 'SrcConnType',
src_datasource_id: 'SrcSource',
src_table: 'SrcTable',
src_filter: 'SrcFilter',
src_field: 'SrcField',
statistics_name: 'ActualValName',
check_type: 'CheckType',
operator: 'Operator',
threshold: 'Threshold',
failure_strategy: 'FailureStrategy',
target_connector_type: 'TargetConnType',
target_datasource_id: 'TargetSourceId',
target_table: 'TargetTable',
target_filter: 'TargetFilter',
mapping_columns: 'OnClause',
statistics_execute_sql: 'ActualValExecSql',
comparison_name: 'ExceptedValName',
comparison_execute_sql: 'ExceptedValExecSql',
comparison_type: 'ExceptedValType',
writer_connector_type: 'WriterConnType',
writer_datasource_id: 'WriterSourceId',
target_field: 'TargetField',
field_length: 'FieldLength',
logic_operator: 'LogicOperator',
regexp_pattern: 'RegexpPattern',
deadline: 'Deadline',
datetime_format: 'DatetimeFormat',
enum_list: 'EnumList',
begin_time: 'BeginTime',
fix_value: 'FixValue',
required: 'required',
emr_flow_define_json: 'jobFlowDefineJson',
emr_flow_define_json_tips: 'Please enter the definition of the job flow.'
}
}
const security = {
tenant: {
tenant_manage: 'Tenant Manage',
create_tenant: 'Create Tenant',
search_tips: 'Please enter keywords',
tenant_code: 'Operating System Tenant',
description: 'Description',
queue_name: 'QueueName',
create_time: 'Create Time',
update_time: 'Update Time',
actions: 'Operation',
edit_tenant: 'Edit Tenant',
tenant_code_tips: 'Please enter the operating system tenant',
queue_name_tips: 'Please select queue',
description_tips: 'Please enter a description',
delete_confirm: 'Delete?',
edit: 'Edit',
delete: 'Delete'
},
alarm_group: {
create_alarm_group: 'Create Alarm Group',
edit_alarm_group: 'Edit Alarm Group',
search_tips: 'Please enter keywords',
alert_group_name_tips: 'Please enter your alert group name',
alarm_plugin_instance: 'Alarm Plugin Instance',
alarm_plugin_instance_tips: 'Please select alert plugin instance',
alarm_group_description_tips: 'Please enter your alarm group description',
alert_group_name: 'Alert Group Name',
alarm_group_description: 'Alarm Group Description',
create_time: 'Create Time',
update_time: 'Update Time',
operation: 'Operation',
delete_confirm: 'Delete?',
edit: 'Edit',
delete: 'Delete'
},
worker_group: {
create_worker_group: 'Create Worker Group',
edit_worker_group: 'Edit Worker Group',
search_tips: 'Please enter keywords',
operation: 'Operation',
delete_confirm: 'Delete?',
edit: 'Edit',
delete: 'Delete',
group_name: 'Group Name',
group_name_tips: 'Please enter your group name',
worker_addresses: 'Worker Addresses',
worker_addresses_tips: 'Please select worker addresses',
create_time: 'Create Time',
update_time: 'Update Time'
},
yarn_queue: {
create_queue: 'Create Queue',
edit_queue: 'Edit Queue',
search_tips: 'Please enter keywords',
queue_name: 'Queue Name',
queue_value: 'Queue Value',
create_time: 'Create Time',
update_time: 'Update Time',
operation: 'Operation',
edit: 'Edit',
queue_name_tips: 'Please enter your queue name',
queue_value_tips: 'Please enter your queue value'
},
environment: {
create_environment: 'Create Environment',
edit_environment: 'Edit Environment',
search_tips: 'Please enter keywords',
edit: 'Edit',
delete: 'Delete',
environment_name: 'Environment Name',
environment_config: 'Environment Config',
environment_desc: 'Environment Desc',
worker_groups: 'Worker Groups',
create_time: 'Create Time',
update_time: 'Update Time',
operation: 'Operation',
delete_confirm: 'Delete?',
environment_name_tips: 'Please enter your environment name',
environment_config_tips: 'Please enter your environment config',
environment_description_tips: 'Please enter your environment description',
worker_group_tips: 'Please select worker group'
},
token: {
create_token: 'Create Token',
edit_token: 'Edit Token',
search_tips: 'Please enter keywords',
user: 'User',
user_tips: 'Please select user',
token: 'Token',
token_tips: 'Please enter your token',
expiration_time: 'Expiration Time',
expiration_time_tips: 'Please select expiration time',
create_time: 'Create Time',
update_time: 'Update Time',
operation: 'Operation',
edit: 'Edit',
delete: 'Delete',
delete_confirm: 'Delete?'
},
user: {
user_manage: 'User Manage',
create_user: 'Create User',
update_user: 'Update User',
delete_user: 'Delete User',
delete_confirm: 'Are you sure to delete?',
delete_confirm_tip:
'Deleting user is a dangerous operation,please be careful',
project: 'Project',
resource: 'Resource',
file_resource: 'File Resource',
udf_resource: 'UDF Resource',
datasource: 'Datasource',
udf: 'UDF Function',
authorize_project: 'Project Authorize',
authorize_resource: 'Resource Authorize',
authorize_datasource: 'Datasource Authorize',
authorize_udf: 'UDF Function Authorize',
username: 'Username',
username_exists: 'The username already exists',
username_tips: 'Please enter username',
user_password: 'Password',
user_password_tips:
'Please enter a password containing letters and numbers with a length between 6 and 20',
user_type: 'User Type',
ordinary_user: 'Ordinary users',
administrator: 'Administrator',
tenant_code: 'Tenant',
tenant_id_tips: 'Please select tenant',
queue: 'Queue',
queue_tips: 'Please select a queue',
email: 'Email',
email_empty_tips: 'Please enter email',
emial_correct_tips: 'Please enter the correct email format',
phone: 'Phone',
phone_empty_tips: 'Please enter phone number',
phone_correct_tips: 'Please enter the correct mobile phone format',
state: 'State',
state_enabled: 'Enabled',
state_disabled: 'Disabled',
create_time: 'Create Time',
update_time: 'Update Time',
operation: 'Operation',
edit: 'Edit',
delete: 'Delete',
authorize: 'Authorize',
save_error_msg: 'Failed to save, please retry',
delete_error_msg: 'Failed to delete, please retry',
auth_error_msg: 'Failed to authorize, please retry',
auth_success_msg: 'Authorize succeeded',
enable: 'Enable',
disable: 'Disable'
},
alarm_instance: {
search_input_tips: 'Please input the keywords',
alarm_instance_manage: 'Alarm instance manage',
alarm_instance: 'Alarm Instance',
alarm_instance_name: 'Alarm instance name',
alarm_instance_name_tips: 'Please enter alarm plugin instance name',
alarm_plugin_name: 'Alarm plugin name',
create_time: 'Create Time',
update_time: 'Update Time',
operation: 'Operation',
edit: 'Edit',
delete: 'Delete',
confirm: 'Confirm',
cancel: 'Cancel',
submit: 'Submit',
create: 'Create',
select_plugin: 'Select plugin',
select_plugin_tips: 'Select Alarm plugin',
instance_parameter_exception: 'Instance parameter exception',
WebHook: 'WebHook',
webHook: 'WebHook',
IsEnableProxy: 'Enable Proxy',
Proxy: 'Proxy',
Port: 'Port',
User: 'User',
corpId: 'CorpId',
secret: 'Secret',
Secret: 'Secret',
users: 'Users',
userSendMsg: 'UserSendMsg',
agentId: 'AgentId',
showType: 'Show Type',
receivers: 'Receivers',
receiverCcs: 'ReceiverCcs',
serverHost: 'SMTP Host',
serverPort: 'SMTP Port',
sender: 'Sender',
enableSmtpAuth: 'SMTP Auth',
Password: 'Password',
starttlsEnable: 'SMTP STARTTLS Enable',
sslEnable: 'SMTP SSL Enable',
smtpSslTrust: 'SMTP SSL Trust',
url: 'URL',
requestType: 'Request Type',
headerParams: 'Headers',
bodyParams: 'Body',
contentField: 'Content Field',
Keyword: 'Keyword',
userParams: 'User Params',
path: 'Script Path',
type: 'Type',
sendType: 'Send Type',
username: 'Username',
botToken: 'Bot Token',
chatId: 'Channel Chat Id',
parseMode: 'Parse Mode'
},
k8s_namespace: {
create_namespace: 'Create Namespace',
edit_namespace: 'Edit Namespace',
search_tips: 'Please enter keywords',
k8s_namespace: 'K8S Namespace',
k8s_namespace_tips: 'Please enter k8s namespace',
k8s_cluster: 'K8S Cluster',
k8s_cluster_tips: 'Please enter k8s cluster',
owner: 'Owner',
owner_tips: 'Please enter owner',
tag: 'Tag',
tag_tips: 'Please enter tag',
limit_cpu: 'Limit CPU',
limit_cpu_tips: 'Please enter limit CPU',
limit_memory: 'Limit Memory',
limit_memory_tips: 'Please enter limit memory',
create_time: 'Create Time',
update_time: 'Update Time',
operation: 'Operation',
edit: 'Edit',
delete: 'Delete',
delete_confirm: 'Delete?'
}
}
const datasource = {
datasource: 'DataSource',
create_datasource: 'Create DataSource',
search_input_tips: 'Please input the keywords',
datasource_name: 'Datasource Name',
datasource_name_tips: 'Please enter datasource name',
datasource_user_name: 'Owner',
datasource_type: 'Datasource Type',
datasource_parameter: 'Datasource Parameter',
description: 'Description',
description_tips: 'Please enter description',
create_time: 'Create Time',
update_time: 'Update Time',
operation: 'Operation',
click_to_view: 'Click to view',
delete: 'Delete',
confirm: 'Confirm',
cancel: 'Cancel',
create: 'Create',
edit: 'Edit',
success: 'Success',
test_connect: 'Test Connect',
ip: 'IP',
ip_tips: 'Please enter IP',
port: 'Port',
port_tips: 'Please enter port',
database_name: 'Database Name',
database_name_tips: 'Please enter database name',
oracle_connect_type: 'ServiceName or SID',
oracle_connect_type_tips: 'Please select serviceName or SID',
oracle_service_name: 'ServiceName',
oracle_sid: 'SID',
jdbc_connect_parameters: 'jdbc connect parameters',
principal_tips: 'Please enter Principal',
krb5_conf_tips:
'Please enter the kerberos authentication parameter java.security.krb5.conf',
keytab_username_tips:
'Please enter the kerberos authentication parameter login.user.keytab.username',
keytab_path_tips:
'Please enter the kerberos authentication parameter login.user.keytab.path',
format_tips: 'Please enter format',
connection_parameter: 'connection parameter',
user_name: 'User Name',
user_name_tips: 'Please enter your username',
user_password: 'Password',
user_password_tips: 'Please enter your password'
}
const data_quality = {
task_result: {
task_name: 'Task Name',
workflow_instance: 'Workflow Instance',
rule_type: 'Rule Type',
rule_name: 'Rule Name',
state: 'State',
actual_value: 'Actual Value',
excepted_value: 'Excepted Value',
check_type: 'Check Type',
operator: 'Operator',
threshold: 'Threshold',
failure_strategy: 'Failure Strategy',
excepted_value_type: 'Excepted Value Type',
error_output_path: 'Error Output Path',
username: 'Username',
create_time: 'Create Time',
update_time: 'Update Time',
undone: 'Undone',
success: 'Success',
failure: 'Failure',
single_table: 'Single Table',
single_table_custom_sql: 'Single Table Custom Sql',
multi_table_accuracy: 'Multi Table Accuracy',
multi_table_comparison: 'Multi Table Comparison',
expected_and_actual_or_expected: '(Expected - Actual) / Expected x 100%',
expected_and_actual: 'Expected - Actual',
actual_and_expected: 'Actual - Expected',
actual_or_expected: 'Actual / Expected x 100%'
},
rule: {
actions: 'Actions',
name: 'Rule Name',
type: 'Rule Type',
username: 'User Name',
create_time: 'Create Time',
update_time: 'Update Time',
input_item: 'Rule input item',
view_input_item: 'View input items',
input_item_title: 'Input item title',
input_item_placeholder: 'Input item placeholder',
input_item_type: 'Input item type',
src_connector_type: 'SrcConnType',
src_datasource_id: 'SrcSource',
src_table: 'SrcTable',
src_filter: 'SrcFilter',
src_field: 'SrcField',
statistics_name: 'ActualValName',
check_type: 'CheckType',
operator: 'Operator',
threshold: 'Threshold',
failure_strategy: 'FailureStrategy',
target_connector_type: 'TargetConnType',
target_datasource_id: 'TargetSourceId',
target_table: 'TargetTable',
target_filter: 'TargetFilter',
mapping_columns: 'OnClause',
statistics_execute_sql: 'ActualValExecSql',
comparison_name: 'ExceptedValName',
comparison_execute_sql: 'ExceptedValExecSql',
comparison_type: 'ExceptedValType',
writer_connector_type: 'WriterConnType',
writer_datasource_id: 'WriterSourceId',
target_field: 'TargetField',
field_length: 'FieldLength',
logic_operator: 'LogicOperator',
regexp_pattern: 'RegexpPattern',
deadline: 'Deadline',
datetime_format: 'DatetimeFormat',
enum_list: 'EnumList',
begin_time: 'BeginTime',
fix_value: 'FixValue',
null_check: 'NullCheck',
custom_sql: 'Custom Sql',
single_table: 'Single Table',
single_table_custom_sql: 'Single Table Custom Sql',
multi_table_accuracy: 'Multi Table Accuracy',
multi_table_value_comparison: 'Multi Table Compare',
field_length_check: 'FieldLengthCheck',
uniqueness_check: 'UniquenessCheck',
regexp_check: 'RegexpCheck',
timeliness_check: 'TimelinessCheck',
enumeration_check: 'EnumerationCheck',
table_count_check: 'TableCountCheck',
All: 'All',
FixValue: 'FixValue',
DailyAvg: 'DailyAvg',
WeeklyAvg: 'WeeklyAvg',
MonthlyAvg: 'MonthlyAvg',
Last7DayAvg: 'Last7DayAvg',
Last30DayAvg: 'Last30DayAvg',
SrcTableTotalRows: 'SrcTableTotalRows',
TargetTableTotalRows: 'TargetTableTotalRows'
}
}
const crontab = {
second: 'second',
minute: 'minute',
hour: 'hour',
day: 'day',
month: 'month',
year: 'year',
monday: 'Monday',
tuesday: 'Tuesday',
wednesday: 'Wednesday',
thursday: 'Thursday',
friday: 'Friday',
saturday: 'Saturday',
sunday: 'Sunday',
every_second: 'Every second',
every: 'Every',
second_carried_out: 'second carried out',
second_start: 'Start',
specific_second: 'Specific second(multiple)',
specific_second_tip: 'Please enter a specific second',
cycle_from: 'Cycle from',
to: 'to',
every_minute: 'Every minute',
minute_carried_out: 'minute carried out',
minute_start: 'Start',
specific_minute: 'Specific minute(multiple)',
specific_minute_tip: 'Please enter a specific minute',
every_hour: 'Every hour',
hour_carried_out: 'hour carried out',
hour_start: 'Start',
specific_hour: 'Specific hour(multiple)',
specific_hour_tip: 'Please enter a specific hour',
every_day: 'Every day',
week_carried_out: 'week carried out',
start: 'Start',
day_carried_out: 'day carried out',
day_start: 'Start',
specific_week: 'Specific day of the week(multiple)',
specific_week_tip: 'Please enter a specific week',
specific_day: 'Specific days(multiple)',
specific_day_tip: 'Please enter a days',
last_day_of_month: 'On the last day of the month',
last_work_day_of_month: 'On the last working day of the month',
last_of_month: 'At the last of this month',
before_end_of_month: 'Before the end of this month',
recent_business_day_to_month:
'The most recent business day (Monday to Friday) to this month',
in_this_months: 'In this months',
every_month: 'Every month',
month_carried_out: 'month carried out',
month_start: 'Start',
specific_month: 'Specific months(multiple)',
specific_month_tip: 'Please enter a months',
every_year: 'Every year',
year_carried_out: 'year carried out',
year_start: 'Start',
specific_year: 'Specific year(multiple)',
specific_year_tip: 'Please enter a year',
one_hour: 'hour',
one_day: 'day'
}
export default {
login,
modal,
theme,
userDropdown,
menu,
home,
password,
profile,
monitor,
resource,
project,
security,
datasource,
data_quality,
crontab
}
|
closed
|
apache/dolphinscheduler
|
https://github.com/apache/dolphinscheduler
| 8,882 |
[Bug][UI Next][V1.0.0-Alpha] save workflow in workflow instance detail page no response
|
### Search before asking
- [X] I had searched in the [issues](https://github.com/apache/dolphinscheduler/issues?q=is%3Aissue) and found no similar issues.
### What happened

### What you expected to happen
above.
### How to reproduce
above.
### Anything else
_No response_
### Version
dev
### Are you willing to submit PR?
- [ ] Yes I am willing to submit a PR!
### Code of Conduct
- [X] I agree to follow this project's [Code of Conduct](https://www.apache.org/foundation/policies/conduct)
|
https://github.com/apache/dolphinscheduler/issues/8882
|
https://github.com/apache/dolphinscheduler/pull/8926
|
e17c2bb56a0c844cd9760518ef3fe2505d0491c0
|
276a68a23e791eac08626febfed14e1ef2c01dd9
| 2022-03-14T11:07:00Z |
java
| 2022-03-16T06:18:35Z |
dolphinscheduler-ui-next/src/locales/modules/zh_CN.ts
|
/*
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership.
* The ASF licenses this file to You under the Apache License, Version 2.0
* (the "License"); you may not use this file except in compliance with
* the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
const login = {
test: '测试',
userName: '用户名',
userName_tips: '请输入用户名',
userPassword: '密码',
userPassword_tips: '请输入密码',
login: '登录'
}
const modal = {
cancel: '取消',
confirm: '确定'
}
const theme = {
light: '浅色',
dark: '深色'
}
const userDropdown = {
profile: '用户信息',
password: '密码管理',
logout: '退出登录'
}
const menu = {
home: '首页',
project: '项目管理',
resources: '资源中心',
datasource: '数据源中心',
monitor: '监控中心',
security: '安全中心',
project_overview: '项目概览',
workflow_relation: '工作流关系',
workflow: '工作流',
workflow_definition: '工作流定义',
workflow_instance: '工作流实例',
task: '任务',
task_instance: '任务实例',
task_definition: '任务定义',
file_manage: '文件管理',
udf_manage: 'UDF管理',
resource_manage: '资源管理',
function_manage: '函数管理',
service_manage: '服务管理',
master: 'Master',
worker: 'Worker',
db: 'DB',
statistical_manage: '统计管理',
statistics: 'Statistics',
audit_log: '审计日志',
tenant_manage: '租户管理',
user_manage: '用户管理',
alarm_group_manage: '告警组管理',
alarm_instance_manage: '告警实例管理',
worker_group_manage: 'Worker分组管理',
yarn_queue_manage: 'Yarn队列管理',
environment_manage: '环境管理',
k8s_namespace_manage: 'K8S命名空间管理',
token_manage: '令牌管理',
task_group_manage: '任务组管理',
task_group_option: '任务组配置',
task_group_queue: '任务组队列',
data_quality: '数据质量',
task_result: '任务结果',
rule: '规则管理'
}
const home = {
task_state_statistics: '任务状态统计',
process_state_statistics: '流程状态统计',
process_definition_statistics: '流程定义统计',
number: '数量',
state: '状态',
submitted_success: '提交成功',
running_execution: '正在运行',
ready_pause: '准备暂停',
pause: '暂停',
ready_stop: '准备停止',
stop: '停止',
failure: '失败',
success: '成功',
need_fault_tolerance: '需要容错',
kill: 'KILL',
waiting_thread: '等待线程',
waiting_depend: '等待依赖完成',
delay_execution: '延时执行',
forced_success: '强制成功',
serial_wait: '串行等待'
}
const password = {
edit_password: '修改密码',
password: '密码',
confirm_password: '确认密码',
password_tips: '请输入密码',
confirm_password_tips: '请输入确认密码',
two_password_entries_are_inconsistent: '两次密码输入不一致',
submit: '提交'
}
const profile = {
profile: '用户信息',
edit: '编辑',
username: '用户名',
email: '邮箱',
phone: '手机',
state: '状态',
permission: '权限',
create_time: '创建时间',
update_time: '更新时间',
administrator: '管理员',
ordinary_user: '普通用户',
edit_profile: '编辑用户',
username_tips: '请输入用户名',
email_tips: '请输入邮箱',
email_correct_tips: '请输入正确格式的邮箱',
phone_tips: '请输入手机号',
state_tips: '请选择状态',
enable: '启用',
disable: '禁用',
timezone_success: '时区更新成功',
please_select_timezone: '请选择时区'
}
const monitor = {
master: {
cpu_usage: '处理器使用量',
memory_usage: '内存使用量',
load_average: '平均负载量',
create_time: '创建时间',
last_heartbeat_time: '最后心跳时间',
directory_detail: '目录详情',
host: '主机',
directory: '注册目录'
},
worker: {
cpu_usage: '处理器使用量',
memory_usage: '内存使用量',
load_average: '平均负载量',
create_time: '创建时间',
last_heartbeat_time: '最后心跳时间',
directory_detail: '目录详情',
host: '主机',
directory: '注册目录'
},
db: {
health_state: '健康状态',
max_connections: '最大连接数',
threads_connections: '当前连接数',
threads_running_connections: '数据库当前活跃连接数'
},
statistics: {
command_number_of_waiting_for_running: '待执行的命令数',
failure_command_number: '执行失败的命令数',
tasks_number_of_waiting_running: '待运行任务数',
task_number_of_ready_to_kill: '待杀死任务数'
},
audit_log: {
user_name: '用户名称',
resource_type: '资源类型',
project_name: '项目名称',
operation_type: '操作类型',
create_time: '创建时间',
start_time: '开始时间',
end_time: '结束时间',
user_audit: '用户管理审计',
project_audit: '项目管理审计',
create: '创建',
update: '更新',
delete: '删除',
read: '读取'
}
}
const resource = {
file: {
file_manage: '文件管理',
create_folder: '创建文件夹',
create_file: '创建文件',
upload_files: '上传文件',
enter_keyword_tips: '请输入关键词',
name: '名称',
user_name: '所属用户',
whether_directory: '是否文件夹',
file_name: '文件名称',
description: '描述',
size: '大小',
update_time: '更新时间',
operation: '操作',
edit: '编辑',
rename: '重命名',
download: '下载',
delete: '删除',
yes: '是',
no: '否',
folder_name: '文件夹名称',
enter_name_tips: '请输入名称',
enter_description_tips: '请输入描述',
enter_content_tips: '请输入资源内容',
enter_suffix_tips: '请输入文件后缀',
file_format: '文件格式',
file_content: '文件内容',
delete_confirm: '确定删除吗?',
confirm: '确定',
cancel: '取消',
success: '成功',
file_details: '文件详情',
return: '返回',
save: '保存'
},
udf: {
udf_resources: 'UDF资源',
create_folder: '创建文件夹',
upload_udf_resources: '上传UDF资源',
udf_source_name: 'UDF资源名称',
whether_directory: '是否文件夹',
file_name: '文件名称',
file_size: '文件大小',
description: '描述',
create_time: '创建时间',
update_time: '更新时间',
operation: '操作',
yes: '是',
no: '否',
edit: '编辑',
download: '下载',
delete: '删除',
success: '成功',
folder_name: '文件夹名称',
upload: '上传',
upload_files: '上传文件',
file_upload: '文件上传',
delete_confirm: '确定删除吗?',
enter_keyword_tips: '请输入关键词',
enter_name_tips: '请输入名称',
enter_description_tips: '请输入描述'
},
function: {
udf_function: 'UDF函数',
create_udf_function: '创建UDF函数',
edit_udf_function: '编辑UDF函数',
udf_function_name: 'UDF函数名称',
class_name: '类名',
type: '类型',
description: '描述',
jar_package: 'jar包',
update_time: '更新时间',
operation: '操作',
rename: '重命名',
edit: '编辑',
delete: '删除',
success: '成功',
package_name: '包名类名',
udf_resources: 'UDF资源',
instructions: '使用说明',
upload_resources: '上传资源',
udf_resources_directory: 'UDF资源目录',
delete_confirm: '确定删除吗?',
enter_keyword_tips: '请输入关键词',
enter_udf_unction_name_tips: '请输入UDF函数名称',
enter_package_name_tips: '请输入包名类名',
enter_select_udf_resources_tips: '请选择UDF资源',
enter_select_udf_resources_directory_tips: '请选择UDF资源目录',
enter_instructions_tips: '请输入使用说明',
enter_name_tips: '请输入名称',
enter_description_tips: '请输入描述'
},
task_group_option: {
manage: '任务组管理',
option: '任务组配置',
create: '创建任务组',
edit: '编辑任务组',
delete: '删除任务组',
view_queue: '查看任务组队列',
switch_status: '切换任务组状态',
code: '任务组编号',
name: '任务组名称',
project_name: '项目名称',
resource_pool_size: '资源容量',
resource_used_pool_size: '已用资源',
desc: '描述信息',
status: '任务组状态',
enable_status: '启用',
disable_status: '不可用',
please_enter_name: '请输入任务组名称',
please_enter_desc: '请输入任务组描述',
please_enter_resource_pool_size: '请输入资源容量大小',
resource_pool_size_be_a_number: '资源容量大小必须大于等于1的数值',
please_select_project: '请选择项目',
create_time: '创建时间',
update_time: '更新时间',
actions: '操作',
please_enter_keywords: '请输入搜索关键词'
},
task_group_queue: {
actions: '操作',
task_name: '任务名称',
task_group_name: '任务组名称',
project_name: '项目名称',
process_name: '工作流名称',
process_instance_name: '工作流实例',
queue: '任务组队列',
priority: '组内优先级',
priority_be_a_number: '优先级必须是大于等于0的数值',
force_starting_status: '是否强制启动',
in_queue: '是否排队中',
task_status: '任务状态',
view_task_group_queue: '查看任务组队列',
the_status_of_waiting: '等待入队',
the_status_of_queuing: '排队中',
the_status_of_releasing: '已释放',
modify_priority: '修改优先级',
start_task: '强制启动',
priority_not_empty: '优先级不能为空',
priority_must_be_number: '优先级必须是数值',
please_select_task_name: '请选择节点名称',
create_time: '创建时间',
update_time: '更新时间',
edit_priority: '修改优先级'
}
}
const project = {
list: {
create_project: '创建项目',
edit_project: '编辑项目',
project_list: '项目列表',
project_tips: '请输入项目名称',
description_tips: '请输入项目描述',
username_tips: '请输入所属用户',
project_name: '项目名称',
project_description: '项目描述',
owned_users: '所属用户',
workflow_define_count: '工作流定义数',
process_instance_running_count: '正在运行的流程数',
description: '描述',
create_time: '创建时间',
update_time: '更新时间',
operation: '操作',
edit: '编辑',
delete: '删除',
confirm: '确定',
cancel: '取消',
delete_confirm: '确定删除吗?'
},
workflow: {
workflow_relation: '工作流关系',
create_workflow: '创建工作流',
import_workflow: '导入工作流',
workflow_name: '工作流名称',
current_selection: '当前选择',
online: '已上线',
offline: '已下线',
refresh: '刷新',
show_hide_label: '显示 / 隐藏标签',
workflow_offline: '工作流下线',
schedule_offline: '调度下线',
schedule_start_time: '定时开始时间',
schedule_end_time: '定时结束时间',
crontab_expression: 'Crontab',
workflow_publish_status: '工作流上线状态',
schedule_publish_status: '定时状态',
workflow_definition: '工作流定义',
workflow_instance: '工作流实例',
status: '状态',
create_time: '创建时间',
update_time: '更新时间',
description: '描述',
create_user: '创建用户',
modify_user: '修改用户',
operation: '操作',
edit: '编辑',
confirm: '确定',
cancel: '取消',
start: '运行',
timing: '定时',
timezone: '时区',
up_line: '上线',
down_line: '下线',
copy_workflow: '复制工作流',
cron_manage: '定时管理',
delete: '删除',
tree_view: '工作流树形图',
tree_limit: '限制大小',
export: '导出',
version_info: '版本信息',
version: '版本',
file_upload: '文件上传',
upload_file: '上传文件',
upload: '上传',
file_name: '文件名称',
success: '成功',
set_parameters_before_starting: '启动前请先设置参数',
set_parameters_before_timing: '定时前请先设置参数',
start_and_stop_time: '起止时间',
next_five_execution_times: '接下来五次执行时间',
execute_time: '执行时间',
failure_strategy: '失败策略',
notification_strategy: '通知策略',
workflow_priority: '流程优先级',
worker_group: 'Worker分组',
environment_name: '环境名称',
alarm_group: '告警组',
complement_data: '补数',
startup_parameter: '启动参数',
whether_dry_run: '是否空跑',
continue: '继续',
end: '结束',
none_send: '都不发',
success_send: '成功发',
failure_send: '失败发',
all_send: '成功或失败都发',
whether_complement_data: '是否是补数',
schedule_date: '调度日期',
mode_of_execution: '执行方式',
serial_execution: '串行执行',
parallel_execution: '并行执行',
parallelism: '并行度',
custom_parallelism: '自定义并行度',
please_enter_parallelism: '请输入并行度',
please_choose: '请选择',
start_time: '开始时间',
end_time: '结束时间',
crontab: 'Crontab',
delete_confirm: '确定删除吗?',
enter_name_tips: '请输入名称',
switch_version: '切换到该版本',
confirm_switch_version: '确定切换到该版本吗?',
current_version: '当前版本',
run_type: '运行类型',
scheduling_time: '调度时间',
duration: '运行时长',
run_times: '运行次数',
fault_tolerant_sign: '容错标识',
dry_run_flag: '空跑标识',
executor: '执行用户',
host: 'Host',
start_process: '启动工作流',
execute_from_the_current_node: '从当前节点开始执行',
recover_tolerance_fault_process: '恢复被容错的工作流',
resume_the_suspension_process: '恢复运行流程',
execute_from_the_failed_nodes: '从失败节点开始执行',
scheduling_execution: '调度执行',
rerun: '重跑',
stop: '停止',
pause: '暂停',
recovery_waiting_thread: '恢复等待线程',
recover_serial_wait: '串行恢复',
recovery_suspend: '恢复运行',
recovery_failed: '恢复失败',
gantt: '甘特图',
name: '名称',
all_status: '全部状态',
submit_success: '提交成功',
running: '正在运行',
ready_to_pause: '准备暂停',
ready_to_stop: '准备停止',
failed: '失败',
need_fault_tolerance: '需要容错',
kill: 'Kill',
waiting_for_thread: '等待线程',
waiting_for_dependence: '等待依赖',
waiting_for_dependency_to_complete: '等待依赖完成',
delay_execution: '延时执行',
forced_success: '强制成功',
serial_wait: '串行等待',
executing: '正在执行',
startup_type: '启动类型',
complement_range: '补数范围',
parameters_variables: '参数变量',
global_parameters: '全局参数',
local_parameters: '局部参数',
type: '类型',
retry_count: '重试次数',
submit_time: '提交时间',
refresh_status_succeeded: '刷新状态成功',
view_log: '查看日志',
update_log_success: '更新日志成功',
no_more_log: '暂无更多日志',
no_log: '暂无日志',
loading_log: '正在努力请求日志中...',
close: '关闭',
download_log: '下载日志',
refresh_log: '刷新日志',
enter_full_screen: '进入全屏',
cancel_full_screen: '取消全屏',
task_state: '任务状态',
mode_of_dependent: '依赖模式',
open: '打开'
},
task: {
task_name: '任务名称',
task_type: '任务类型',
create_task: '创建任务',
workflow_instance: '工作流实例',
workflow_name: '工作流名称',
workflow_name_tips: '请选择工作流名称',
workflow_state: '工作流状态',
version: '版本',
current_version: '当前版本',
switch_version: '切换到该版本',
confirm_switch_version: '确定切换到该版本吗?',
description: '描述',
move: '移动',
upstream_tasks: '上游任务',
executor: '执行用户',
node_type: '节点类型',
state: '状态',
submit_time: '提交时间',
start_time: '开始时间',
create_time: '创建时间',
update_time: '更新时间',
end_time: '结束时间',
duration: '运行时间',
retry_count: '重试次数',
dry_run_flag: '空跑标识',
host: '主机',
operation: '操作',
edit: '编辑',
delete: '删除',
delete_confirm: '确定删除吗?',
submitted_success: '提交成功',
running_execution: '正在运行',
ready_pause: '准备暂停',
pause: '暂停',
ready_stop: '准备停止',
stop: '停止',
failure: '失败',
success: '成功',
need_fault_tolerance: '需要容错',
kill: 'KILL',
waiting_thread: '等待线程',
waiting_depend: '等待依赖完成',
delay_execution: '延时执行',
forced_success: '强制成功',
view_log: '查看日志',
download_log: '下载日志',
refresh: '刷新'
},
dag: {
create: '创建工作流',
search: '搜索',
download_png: '下载工作流图片',
fullscreen_open: '全屏',
fullscreen_close: '退出全屏',
save: '保存',
close: '关闭',
format: '格式化',
refresh_dag_status: '刷新DAG状态',
layout_type: '布局类型',
grid_layout: '网格布局',
dagre_layout: '层次布局',
rows: '行数',
cols: '列数',
copy_success: '复制成功',
workflow_name: '工作流名称',
description: '描述',
tenant: '租户',
timeout_alert: '超时告警',
global_variables: '全局变量',
basic_info: '基本信息',
minute: '分',
key: '键',
value: '值',
success: '成功',
delete_cell: '删除选中的线或节点',
online_directly: '是否上线流程定义',
dag_name_empty: 'DAG图名称不能为空',
positive_integer: '请输入大于 0 的正整数',
prop_empty: '自定义参数prop不能为空',
prop_repeat: 'prop中有重复',
node_not_created: '未创建节点保存失败',
copy_name: '复制名称',
view_variables: '查看变量',
startup_parameter: '启动参数'
},
node: {
current_node_settings: '当前节点设置',
instructions: '使用说明',
view_history: '查看历史',
view_log: '查看日志',
enter_this_child_node: '进入该子节点',
name: '节点名称',
name_tips: '请输入名称(必填)',
task_type: '任务类型',
task_type_tips: '请选择任务类型(必选)',
process_name: '工作流名称',
process_name_tips: '请选择工作流(必选)',
child_node: '子节点',
enter_child_node: '进入该子节点',
run_flag: '运行标志',
normal: '正常',
prohibition_execution: '禁止执行',
description: '描述',
description_tips: '请输入描述',
task_priority: '任务优先级',
worker_group: 'Worker分组',
worker_group_tips: '该Worker分组已经不存在,请选择正确的Worker分组!',
environment_name: '环境名称',
task_group_name: '任务组名称',
task_group_queue_priority: '组内优先级',
number_of_failed_retries: '失败重试次数',
times: '次',
failed_retry_interval: '失败重试间隔',
minute: '分',
delay_execution_time: '延时执行时间',
state: '状态',
branch_flow: '分支流转',
cancel: '取消',
loading: '正在努力加载中...',
confirm: '确定',
success: '成功',
failed: '失败',
backfill_tips: '新创建子工作流还未执行,不能进入子工作流',
task_instance_tips: '该任务还未执行,不能进入子工作流',
branch_tips: '成功分支流转和失败分支流转不能选择同一个节点',
timeout_alarm: '超时告警',
timeout_strategy: '超时策略',
timeout_strategy_tips: '超时策略必须选一个',
timeout_failure: '超时失败',
timeout_period: '超时时长',
timeout_period_tips: '超时时长必须为正整数',
script: '脚本',
script_tips: '请输入脚本(必填)',
resources: '资源',
resources_tips: '请选择资源',
no_resources_tips: '请删除所有未授权或已删除资源',
useless_resources_tips: '未授权或已删除资源',
custom_parameters: '自定义参数',
copy_failed: '该浏览器不支持自动复制',
prop_tips: 'prop(必填)',
prop_repeat: 'prop中有重复',
value_tips: 'value(选填)',
value_required_tips: 'value(必填)',
pre_tasks: '前置任务',
program_type: '程序类型',
spark_version: 'Spark版本',
main_class: '主函数的Class',
main_class_tips: '请填写主函数的Class',
main_package: '主程序包',
main_package_tips: '请选择主程序包',
deploy_mode: '部署方式',
app_name: '任务名称',
app_name_tips: '请输入任务名称(选填)',
driver_cores: 'Driver核心数',
driver_cores_tips: '请输入Driver核心数',
driver_memory: 'Driver内存数',
driver_memory_tips: '请输入Driver内存数',
executor_number: 'Executor数量',
executor_number_tips: '请输入Executor数量',
executor_memory: 'Executor内存数',
executor_memory_tips: '请输入Executor内存数',
executor_cores: 'Executor核心数',
executor_cores_tips: '请输入Executor核心数',
main_arguments: '主程序参数',
main_arguments_tips: '请输入主程序参数',
option_parameters: '选项参数',
option_parameters_tips: '请输入选项参数',
positive_integer_tips: '应为正整数',
flink_version: 'Flink版本',
job_manager_memory: 'JobManager内存数',
job_manager_memory_tips: '请输入JobManager内存数',
task_manager_memory: 'TaskManager内存数',
task_manager_memory_tips: '请输入TaskManager内存数',
slot_number: 'Slot数量',
slot_number_tips: '请输入Slot数量',
parallelism: '并行度',
custom_parallelism: '自定义并行度',
parallelism_tips: '请输入并行度',
parallelism_number_tips: '并行度必须为正整数',
parallelism_complement_tips:
'如果存在大量任务需要补数时,可以利用自定义并行度将补数的任务线程设置成合理的数值,避免对服务器造成过大的影响',
task_manager_number: 'TaskManager数量',
task_manager_number_tips: '请输入TaskManager数量',
http_url: '请求地址',
http_url_tips: '请填写请求地址(必填)',
http_method: '请求类型',
http_parameters: '请求参数',
http_check_condition: '校验条件',
http_condition: '校验内容',
http_condition_tips: '请填写校验内容',
timeout_settings: '超时设置',
connect_timeout: '连接超时',
ms: '毫秒',
socket_timeout: 'Socket超时',
status_code_default: '默认响应码200',
status_code_custom: '自定义响应码',
body_contains: '内容包含',
body_not_contains: '内容不包含',
http_parameters_position: '参数位置',
target_task_name: '目标任务名',
target_task_name_tips: '请输入Pigeon任务名',
datasource_type: '数据源类型',
datasource_instances: '数据源实例',
sql_type: 'SQL类型',
sql_type_query: '查询',
sql_type_non_query: '非查询',
sql_statement: 'SQL语句',
pre_sql_statement: '前置SQL语句',
post_sql_statement: '后置SQL语句',
sql_input_placeholder: '请输入非查询SQL语句',
sql_empty_tips: '语句不能为空',
procedure_method: 'SQL语句',
procedure_method_tips: '请输入存储脚本',
procedure_method_snippet:
'--请输入存储脚本 \n\n--调用存储过程: call <procedure-name>[(<arg1>,<arg2>, ...)] \n\n--调用存储函数:?= call <procedure-name>[(<arg1>,<arg2>, ...)]',
start: '运行',
edit: '编辑',
copy: '复制节点',
delete: '删除',
custom_job: '自定义任务',
custom_script: '自定义脚本',
sqoop_job_name: '任务名称',
sqoop_job_name_tips: '请输入任务名称(必填)',
direct: '流向',
hadoop_custom_params: 'Hadoop参数',
sqoop_advanced_parameters: 'Sqoop参数',
data_source: '数据来源',
type: '类型',
datasource: '数据源',
datasource_tips: '请选择数据源',
model_type: '模式',
form: '表单',
table: '表名',
table_tips: '请输入Mysql表名(必填)',
column_type: '列类型',
all_columns: '全表导入',
some_columns: '选择列',
column: '列',
column_tips: '请输入列名,用 , 隔开',
database: '数据库',
database_tips: '请输入Hive数据库(必填)',
hive_table_tips: '请输入Hive表名(必填)',
hive_partition_keys: 'Hive 分区键',
hive_partition_keys_tips: '请输入分区键',
hive_partition_values: 'Hive 分区值',
hive_partition_values_tips: '请输入分区值',
export_dir: '数据源路径',
export_dir_tips: '请输入数据源路径(必填)',
sql_statement_tips: 'SQL语句(必填)',
map_column_hive: 'Hive类型映射',
map_column_java: 'Java类型映射',
data_target: '数据目的',
create_hive_table: '是否创建新表',
drop_delimiter: '是否删除分隔符',
over_write_src: '是否覆盖数据源',
hive_target_dir: 'Hive目标路径',
hive_target_dir_tips: '请输入Hive临时目录',
replace_delimiter: '替换分隔符',
replace_delimiter_tips: '请输入替换分隔符',
target_dir: '目标路径',
target_dir_tips: '请输入目标路径(必填)',
delete_target_dir: '是否删除目录',
compression_codec: '压缩类型',
file_type: '保存格式',
fields_terminated: '列分隔符',
fields_terminated_tips: '请输入列分隔符',
lines_terminated: '行分隔符',
lines_terminated_tips: '请输入行分隔符',
is_update: '是否更新',
update_key: '更新列',
update_key_tips: '请输入更新列',
update_mode: '更新类型',
only_update: '只更新',
allow_insert: '无更新便插入',
concurrency: '并发度',
concurrency_tips: '请输入并发度',
sea_tunnel_master: 'Master',
sea_tunnel_master_url: 'Master URL',
sea_tunnel_queue: '队列',
sea_tunnel_master_url_tips: '请直接填写地址,例如:127.0.0.1:7077',
switch_condition: '条件',
switch_branch_flow: '分支流转',
and: '且',
or: '或',
datax_custom_template: '自定义模板',
datax_json_template: 'JSON',
datax_target_datasource_type: '目标源类型',
datax_target_database: '目标源实例',
datax_target_table: '目标表',
datax_target_table_tips: '请输入目标表名',
datax_target_database_pre_sql: '目标库前置SQL',
datax_target_database_post_sql: '目标库后置SQL',
datax_non_query_sql_tips: '请输入非查询SQL语句',
datax_job_speed_byte: '限流(字节数)',
datax_job_speed_byte_info: '(KB,0代表不限制)',
datax_job_speed_record: '限流(记录数)',
datax_job_speed_record_info: '(0代表不限制)',
datax_job_runtime_memory: '运行内存',
datax_job_runtime_memory_xms: '最小内存',
datax_job_runtime_memory_xmx: '最大内存',
datax_job_runtime_memory_unit: 'G',
current_hour: '当前小时',
last_1_hour: '前1小时',
last_2_hour: '前2小时',
last_3_hour: '前3小时',
last_24_hour: '前24小时',
today: '今天',
last_1_days: '昨天',
last_2_days: '前两天',
last_3_days: '前三天',
last_7_days: '前七天',
this_week: '本周',
last_week: '上周',
last_monday: '上周一',
last_tuesday: '上周二',
last_wednesday: '上周三',
last_thursday: '上周四',
last_friday: '上周五',
last_saturday: '上周六',
last_sunday: '上周日',
this_month: '本月',
last_month: '上月',
last_month_begin: '上月初',
last_month_end: '上月末',
month: '月',
week: '周',
day: '日',
hour: '时',
add_dependency: '添加依赖',
waiting_dependent_start: '等待依赖启动',
check_interval: '检查间隔',
waiting_dependent_complete: '等待依赖完成',
rule_name: '规则名称',
null_check: '空值检测',
custom_sql: '自定义SQL',
multi_table_accuracy: '多表准确性',
multi_table_value_comparison: '两表值比对',
field_length_check: '字段长度校验',
uniqueness_check: '唯一性校验',
regexp_check: '正则表达式',
timeliness_check: '及时性校验',
enumeration_check: '枚举值校验',
table_count_check: '表行数校验',
src_connector_type: '源数据类型',
src_datasource_id: '源数据源',
src_table: '源数据表',
src_filter: '源表过滤条件',
src_field: '源表检测列',
statistics_name: '实际值名',
check_type: '校验方式',
operator: '校验操作符',
threshold: '阈值',
failure_strategy: '失败策略',
target_connector_type: '目标数据类型',
target_datasource_id: '目标数据源',
target_table: '目标数据表',
target_filter: '目标表过滤条件',
mapping_columns: 'ON语句',
statistics_execute_sql: '实际值计算SQL',
comparison_name: '期望值名',
comparison_execute_sql: '期望值计算SQL',
comparison_type: '期望值类型',
writer_connector_type: '输出数据类型',
writer_datasource_id: '输出数据源',
target_field: '目标表检测列',
field_length: '字段长度限制',
logic_operator: '逻辑操作符',
regexp_pattern: '正则表达式',
deadline: '截止时间',
datetime_format: '时间格式',
enum_list: '枚举值列表',
begin_time: '起始时间',
fix_value: '固定值',
required: '必填',
emr_flow_define_json: 'jobFlowDefineJson',
emr_flow_define_json_tips: '请输入工作流定义'
}
}
const security = {
tenant: {
tenant_manage: '租户管理',
create_tenant: '创建租户',
search_tips: '请输入关键词',
tenant_code: '操作系统租户',
description: '描述',
queue_name: '队列',
create_time: '创建时间',
update_time: '更新时间',
actions: '操作',
edit_tenant: '编辑租户',
tenant_code_tips: '请输入操作系统租户',
queue_name_tips: '请选择队列',
description_tips: '请输入描述',
delete_confirm: '确定删除吗?',
edit: '编辑',
delete: '删除'
},
alarm_group: {
create_alarm_group: '创建告警组',
edit_alarm_group: '编辑告警组',
search_tips: '请输入关键词',
alert_group_name_tips: '请输入告警组名称',
alarm_plugin_instance: '告警组实例',
alarm_plugin_instance_tips: '请选择告警组实例',
alarm_group_description_tips: '请输入告警组描述',
alert_group_name: '告警组名称',
alarm_group_description: '告警组描述',
create_time: '创建时间',
update_time: '更新时间',
operation: '操作',
delete_confirm: '确定删除吗?',
edit: '编辑',
delete: '删除'
},
worker_group: {
create_worker_group: '创建Worker分组',
edit_worker_group: '编辑Worker分组',
search_tips: '请输入关键词',
operation: '操作',
delete_confirm: '确定删除吗?',
edit: '编辑',
delete: '删除',
group_name: '分组名称',
group_name_tips: '请输入分组名称',
worker_addresses: 'Worker地址',
worker_addresses_tips: '请选择Worker地址',
create_time: '创建时间',
update_time: '更新时间'
},
yarn_queue: {
create_queue: '创建队列',
edit_queue: '编辑队列',
search_tips: '请输入关键词',
queue_name: '队列名',
queue_value: '队列值',
create_time: '创建时间',
update_time: '更新时间',
operation: '操作',
edit: '编辑',
queue_name_tips: '请输入队列名',
queue_value_tips: '请输入队列值'
},
environment: {
create_environment: '创建环境',
edit_environment: '编辑环境',
search_tips: '请输入关键词',
edit: '编辑',
delete: '删除',
environment_name: '环境名称',
environment_config: '环境配置',
environment_desc: '环境描述',
worker_groups: 'Worker分组',
create_time: '创建时间',
update_time: '更新时间',
operation: '操作',
delete_confirm: '确定删除吗?',
environment_name_tips: '请输入环境名',
environment_config_tips: '请输入环境配置',
environment_description_tips: '请输入环境描述',
worker_group_tips: '请选择Worker分组'
},
token: {
create_token: '创建令牌',
edit_token: '编辑令牌',
search_tips: '请输入关键词',
user: '用户',
user_tips: '请选择用户',
token: '令牌',
token_tips: '请输入令牌',
expiration_time: '失效时间',
expiration_time_tips: '请选择失效时间',
create_time: '创建时间',
update_time: '更新时间',
operation: '操作',
edit: '编辑',
delete: '删除',
delete_confirm: '确定删除吗?'
},
user: {
user_manage: '用户管理',
create_user: '创建用户',
update_user: '更新用户',
delete_user: '删除用户',
delete_confirm: '确定删除吗?',
project: '项目',
resource: '资源',
file_resource: '文件资源',
udf_resource: 'UDF资源',
datasource: '数据源',
udf: 'UDF函数',
authorize_project: '项目授权',
authorize_resource: '资源授权',
authorize_datasource: '数据源授权',
authorize_udf: 'UDF函数授权',
username: '用户名',
username_exists: '用户名已存在',
username_tips: '请输入用户名',
user_password: '密码',
user_password_tips: '请输入包含字母和数字,长度在6~20之间的密码',
user_type: '用户类型',
ordinary_user: '普通用户',
administrator: '管理员',
tenant_code: '租户',
tenant_id_tips: '请选择租户',
queue: '队列',
queue_tips: '默认为租户关联队列',
email: '邮件',
email_empty_tips: '请输入邮箱',
emial_correct_tips: '请输入正确的邮箱格式',
phone: '手机',
phone_empty_tips: '请输入手机号码',
phone_correct_tips: '请输入正确的手机格式',
state: '状态',
state_enabled: '启用',
state_disabled: '停用',
create_time: '创建时间',
update_time: '更新时间',
operation: '操作',
edit: '编辑',
delete: '删除',
authorize: '授权',
save_error_msg: '保存失败,请重试',
delete_error_msg: '删除失败,请重试',
auth_error_msg: '授权失败,请重试',
auth_success_msg: '授权成功',
enable: '启用',
disable: '停用'
},
alarm_instance: {
search_input_tips: '请输入关键字',
alarm_instance_manage: '告警实例管理',
alarm_instance: '告警实例',
alarm_instance_name: '告警实例名称',
alarm_instance_name_tips: '请输入告警实例名称',
alarm_plugin_name: '告警插件名称',
create_time: '创建时间',
update_time: '更新时间',
operation: '操作',
edit: '编辑',
delete: '删除',
confirm: '确定',
cancel: '取消',
submit: '提交',
create: '创建',
select_plugin: '选择插件',
select_plugin_tips: '请选择告警插件',
instance_parameter_exception: '实例参数异常',
WebHook: 'Web钩子',
webHook: 'Web钩子',
IsEnableProxy: '启用代理',
Proxy: '代理',
Port: '端口',
User: '用户',
corpId: '企业ID',
secret: '密钥',
Secret: '密钥',
users: '群员',
userSendMsg: '群员信息',
agentId: '应用ID',
showType: '内容展示类型',
receivers: '收件人',
receiverCcs: '抄送人',
serverHost: 'SMTP服务器',
serverPort: 'SMTP端口',
sender: '发件人',
enableSmtpAuth: '请求认证',
Password: '密码',
starttlsEnable: 'STARTTLS连接',
sslEnable: 'SSL连接',
smtpSslTrust: 'SSL证书信任',
url: 'URL',
requestType: '请求方式',
headerParams: '请求头',
bodyParams: '请求体',
contentField: '内容字段',
Keyword: '关键词',
userParams: '自定义参数',
path: '脚本路径',
type: '类型',
sendType: '发送类型',
username: '用户名',
botToken: '机器人Token',
chatId: '频道ID',
parseMode: '解析类型'
},
k8s_namespace: {
create_namespace: '创建命名空间',
edit_namespace: '编辑命名空间',
search_tips: '请输入关键词',
k8s_namespace: 'K8S命名空间',
k8s_namespace_tips: '请输入k8s命名空间',
k8s_cluster: 'K8S集群',
k8s_cluster_tips: '请输入k8s集群',
owner: '负责人',
owner_tips: '请输入负责人',
tag: '标签',
tag_tips: '请输入标签',
limit_cpu: '最大CPU',
limit_cpu_tips: '请输入最大CPU',
limit_memory: '最大内存',
limit_memory_tips: '请输入最大内存',
create_time: '创建时间',
update_time: '更新时间',
operation: '操作',
edit: '编辑',
delete: '删除',
delete_confirm: '确定删除吗?'
}
}
const datasource = {
datasource: '数据源',
create_datasource: '创建数据源',
search_input_tips: '请输入关键字',
datasource_name: '数据源名称',
datasource_name_tips: '请输入数据源名称',
datasource_user_name: '所属用户',
datasource_type: '数据源类型',
datasource_parameter: '数据源参数',
description: '描述',
description_tips: '请输入描述',
create_time: '创建时间',
update_time: '更新时间',
operation: '操作',
click_to_view: '点击查看',
delete: '删除',
confirm: '确定',
cancel: '取消',
create: '创建',
edit: '编辑',
success: '成功',
test_connect: '测试连接',
ip: 'IP主机名',
ip_tips: '请输入IP主机名',
port: '端口',
port_tips: '请输入端口',
database_name: '数据库名',
database_name_tips: '请输入数据库名',
oracle_connect_type: '服务名或SID',
oracle_connect_type_tips: '请选择服务名或SID',
oracle_service_name: '服务名',
oracle_sid: 'SID',
jdbc_connect_parameters: 'jdbc连接参数',
principal_tips: '请输入Principal',
krb5_conf_tips: '请输入kerberos认证参数 java.security.krb5.conf',
keytab_username_tips: '请输入kerberos认证参数 login.user.keytab.username',
keytab_path_tips: '请输入kerberos认证参数 login.user.keytab.path',
format_tips: '请输入格式为',
connection_parameter: '连接参数',
user_name: '用户名',
user_name_tips: '请输入用户名',
user_password: '密码',
user_password_tips: '请输入密码'
}
const data_quality = {
task_result: {
task_name: '任务名称',
workflow_instance: '工作流实例',
rule_type: '规则类型',
rule_name: '规则名称',
state: '状态',
actual_value: '实际值',
excepted_value: '期望值',
check_type: '检测类型',
operator: '操作符',
threshold: '阈值',
failure_strategy: '失败策略',
excepted_value_type: '期望值类型',
error_output_path: '错误数据路径',
username: '用户名',
create_time: '创建时间',
update_time: '更新时间',
undone: '未完成',
success: '成功',
failure: '失败',
single_table: '单表检测',
single_table_custom_sql: '自定义SQL',
multi_table_accuracy: '多表准确性',
multi_table_comparison: '两表值对比',
expected_and_actual_or_expected: '(期望值-实际值)/实际值 x 100%',
expected_and_actual: '期望值-实际值',
actual_and_expected: '实际值-期望值',
actual_or_expected: '实际值/期望值 x 100%'
},
rule: {
actions: '操作',
name: '规则名称',
type: '规则类型',
username: '用户名',
create_time: '创建时间',
update_time: '更新时间',
input_item: '规则输入项',
view_input_item: '查看规则输入项信息',
input_item_title: '输入项标题',
input_item_placeholder: '输入项占位符',
input_item_type: '输入项类型',
src_connector_type: '源数据类型',
src_datasource_id: '源数据源',
src_table: '源数据表',
src_filter: '源表过滤条件',
src_field: '源表检测列',
statistics_name: '实际值名',
check_type: '校验方式',
operator: '校验操作符',
threshold: '阈值',
failure_strategy: '失败策略',
target_connector_type: '目标数据类型',
target_datasource_id: '目标数据源',
target_table: '目标数据表',
target_filter: '目标表过滤条件',
mapping_columns: 'ON语句',
statistics_execute_sql: '实际值计算SQL',
comparison_name: '期望值名',
comparison_execute_sql: '期望值计算SQL',
comparison_type: '期望值类型',
writer_connector_type: '输出数据类型',
writer_datasource_id: '输出数据源',
target_field: '目标表检测列',
field_length: '字段长度限制',
logic_operator: '逻辑操作符',
regexp_pattern: '正则表达式',
deadline: '截止时间',
datetime_format: '时间格式',
enum_list: '枚举值列表',
begin_time: '起始时间',
fix_value: '固定值',
null_check: '空值检测',
custom_sql: '自定义SQL',
single_table: '单表检测',
multi_table_accuracy: '多表准确性',
multi_table_value_comparison: '两表值比对',
field_length_check: '字段长度校验',
uniqueness_check: '唯一性校验',
regexp_check: '正则表达式',
timeliness_check: '及时性校验',
enumeration_check: '枚举值校验',
table_count_check: '表行数校验',
all: '全部',
FixValue: '固定值',
DailyAvg: '日均值',
WeeklyAvg: '周均值',
MonthlyAvg: '月均值',
Last7DayAvg: '最近7天均值',
Last30DayAvg: '最近30天均值',
SrcTableTotalRows: '源表总行数',
TargetTableTotalRows: '目标表总行数'
}
}
const crontab = {
second: '秒',
minute: '分',
hour: '时',
day: '天',
month: '月',
year: '年',
monday: '星期一',
tuesday: '星期二',
wednesday: '星期三',
thursday: '星期四',
friday: '星期五',
saturday: '星期六',
sunday: '星期天',
every_second: '每一秒钟',
every: '每隔',
second_carried_out: '秒执行 从',
second_start: '秒开始',
specific_second: '具体秒数(可多选)',
specific_second_tip: '请选择具体秒数',
cycle_from: '周期从',
to: '到',
every_minute: '每一分钟',
minute_carried_out: '分执行 从',
minute_start: '分开始',
specific_minute: '具体分钟数(可多选)',
specific_minute_tip: '请选择具体分钟数',
every_hour: '每一小时',
hour_carried_out: '小时执行 从',
hour_start: '小时开始',
specific_hour: '具体小时数(可多选)',
specific_hour_tip: '请选择具体小时数',
every_day: '每一天',
week_carried_out: '周执行 从',
start: '开始',
day_carried_out: '天执行 从',
day_start: '天开始',
specific_week: '具体星期几(可多选)',
specific_week_tip: '请选择具体周几',
specific_day: '具体天数(可多选)',
specific_day_tip: '请选择具体天数',
last_day_of_month: '在这个月的最后一天',
last_work_day_of_month: '在这个月的最后一个工作日',
last_of_month: '在这个月的最后一个',
before_end_of_month: '在本月底前',
recent_business_day_to_month: '最近的工作日(周一至周五)至本月',
in_this_months: '在这个月的第',
every_month: '每一月',
month_carried_out: '月执行 从',
month_start: '月开始',
specific_month: '具体月数(可多选)',
specific_month_tip: '请选择具体月数',
every_year: '每一年',
year_carried_out: '年执行 从',
year_start: '年开始',
specific_year: '具体年数(可多选)',
specific_year_tip: '请选择具体年数',
one_hour: '小时',
one_day: '日'
}
export default {
login,
modal,
theme,
userDropdown,
menu,
home,
password,
profile,
monitor,
resource,
project,
security,
datasource,
data_quality,
crontab
}
|
closed
|
apache/dolphinscheduler
|
https://github.com/apache/dolphinscheduler
| 8,882 |
[Bug][UI Next][V1.0.0-Alpha] save workflow in workflow instance detail page no response
|
### Search before asking
- [X] I had searched in the [issues](https://github.com/apache/dolphinscheduler/issues?q=is%3Aissue) and found no similar issues.
### What happened

### What you expected to happen
above.
### How to reproduce
above.
### Anything else
_No response_
### Version
dev
### Are you willing to submit PR?
- [ ] Yes I am willing to submit a PR!
### Code of Conduct
- [X] I agree to follow this project's [Code of Conduct](https://www.apache.org/foundation/policies/conduct)
|
https://github.com/apache/dolphinscheduler/issues/8882
|
https://github.com/apache/dolphinscheduler/pull/8926
|
e17c2bb56a0c844cd9760518ef3fe2505d0491c0
|
276a68a23e791eac08626febfed14e1ef2c01dd9
| 2022-03-14T11:07:00Z |
java
| 2022-03-16T06:18:35Z |
dolphinscheduler-ui-next/src/service/modules/process-instances/index.ts
|
/*
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership.
* The ASF licenses this file to You under the Apache License, Version 2.0
* (the "License"); you may not use this file except in compliance with
* the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
import { axios } from '@/service/service'
import {
CodeReq,
ProcessInstanceListReq,
BatchDeleteReq,
SubIdReq,
TaskReq,
LongestReq,
IdReq,
ProcessInstanceReq
} from './types'
export function queryProcessInstanceListPaging(
params: ProcessInstanceListReq,
code: number
): any {
return axios({
url: `/projects/${code}/process-instances`,
method: 'get',
params
})
}
export function batchDeleteProcessInstanceByIds(
data: BatchDeleteReq,
code: number
): any {
return axios({
url: `/projects/${code}/process-instances/batch-delete`,
method: 'post',
data
})
}
export function queryParentInstanceBySubId(
params: SubIdReq,
code: CodeReq
): any {
return axios({
url: `/projects/${code}/process-instances/query-parent-by-sub`,
method: 'get',
params
})
}
export function querySubProcessInstanceByTaskCode(
params: TaskReq,
code: CodeReq
): any {
return axios({
url: `/projects/${code}/process-instances/query-sub-by-parent`,
method: 'get',
params
})
}
export function queryTopNLongestRunningProcessInstance(
params: LongestReq,
code: CodeReq
): any {
return axios({
url: `/projects/${code}/process-instances/top-n`,
method: 'get',
params
})
}
export function queryProcessInstanceById(
instanceId: number,
projectCode: number
): any {
return axios({
url: `/projects/${projectCode}/process-instances/${instanceId}`,
method: 'get'
})
}
export function updateProcessInstance(
data: ProcessInstanceReq,
id: IdReq,
code: CodeReq
): any {
return axios({
url: `/projects/${code}/process-instances/${id}`,
method: 'put',
data
})
}
export function deleteProcessInstanceById(id: number, code: number): any {
return axios({
url: `/projects/${code}/process-instances/${id}`,
method: 'delete'
})
}
export function queryTaskListByProcessId(id: number, code: number): any {
return axios({
url: `/projects/${code}/process-instances/${id}/tasks`,
method: 'get'
})
}
export function viewGanttTree(id: number, code: number): any {
return axios({
url: `/projects/${code}/process-instances/${id}/view-gantt`,
method: 'get'
})
}
export function viewVariables(id: number, code: number): any {
return axios({
url: `/projects/${code}/process-instances/${id}/view-variables`,
method: 'get'
})
}
|
closed
|
apache/dolphinscheduler
|
https://github.com/apache/dolphinscheduler
| 8,882 |
[Bug][UI Next][V1.0.0-Alpha] save workflow in workflow instance detail page no response
|
### Search before asking
- [X] I had searched in the [issues](https://github.com/apache/dolphinscheduler/issues?q=is%3Aissue) and found no similar issues.
### What happened

### What you expected to happen
above.
### How to reproduce
above.
### Anything else
_No response_
### Version
dev
### Are you willing to submit PR?
- [ ] Yes I am willing to submit a PR!
### Code of Conduct
- [X] I agree to follow this project's [Code of Conduct](https://www.apache.org/foundation/policies/conduct)
|
https://github.com/apache/dolphinscheduler/issues/8882
|
https://github.com/apache/dolphinscheduler/pull/8926
|
e17c2bb56a0c844cd9760518ef3fe2505d0491c0
|
276a68a23e791eac08626febfed14e1ef2c01dd9
| 2022-03-14T11:07:00Z |
java
| 2022-03-16T06:18:35Z |
dolphinscheduler-ui-next/src/service/modules/process-instances/types.ts
|
/*
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership.
* The ASF licenses this file to You under the Apache License, Version 2.0
* (the "License"); you may not use this file except in compliance with
* the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
interface CodeReq {
projectCode: number
}
interface ProcessInstanceListReq {
pageNo: number
pageSize: number
endDate?: string
executorName?: string
host?: string
processDefineCode?: number
processDefiniteCode?: string
searchVal?: string
startDate?: string
stateType?: string
}
interface BatchDeleteReq {
processInstanceIds: string
projectName?: string
alertGroup?: string
createTime?: string
email?: string
id?: number
phone?: string
queue?: string
queueName?: string
state?: number
tenantCode?: string
tenantId?: number
updateTime?: string
userName?: string
userPassword?: string
userType?: string
}
interface SubIdReq {
subId: number
}
interface TaskReq {
taskCode: string
taskId: number
}
interface LongestReq {
endTime: string
size: number
startTime: string
}
interface IdReq {
id: number
}
interface ProcessInstanceReq {
syncDefine: string
flag?: string
globalParams?: string
locations?: string
scheduleTime?: string
taskDefinitionJson?: string
taskRelationJson?: string
tenantCode?: string
timeout?: string
}
interface IWorkflowInstance {
id: number
name: string
state: string
commandType: string
scheduleTime?: string
processDefinitionCode?: number
startTime: string
endTime: string
duration?: string
runTimes: number
recovery: string
dryRun: number
executorName: string
host: string
count?: number
disabled?: boolean
buttonType?: string
}
export {
CodeReq,
ProcessInstanceListReq,
BatchDeleteReq,
SubIdReq,
TaskReq,
LongestReq,
IdReq,
ProcessInstanceReq,
IWorkflowInstance
}
|
closed
|
apache/dolphinscheduler
|
https://github.com/apache/dolphinscheduler
| 8,882 |
[Bug][UI Next][V1.0.0-Alpha] save workflow in workflow instance detail page no response
|
### Search before asking
- [X] I had searched in the [issues](https://github.com/apache/dolphinscheduler/issues?q=is%3Aissue) and found no similar issues.
### What happened

### What you expected to happen
above.
### How to reproduce
above.
### Anything else
_No response_
### Version
dev
### Are you willing to submit PR?
- [ ] Yes I am willing to submit a PR!
### Code of Conduct
- [X] I agree to follow this project's [Code of Conduct](https://www.apache.org/foundation/policies/conduct)
|
https://github.com/apache/dolphinscheduler/issues/8882
|
https://github.com/apache/dolphinscheduler/pull/8926
|
e17c2bb56a0c844cd9760518ef3fe2505d0491c0
|
276a68a23e791eac08626febfed14e1ef2c01dd9
| 2022-03-14T11:07:00Z |
java
| 2022-03-16T06:18:35Z |
dolphinscheduler-ui-next/src/views/projects/task/components/node/detail-modal.tsx
|
/*
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership.
* The ASF licenses this file to You under the Apache License, Version 2.0
* (the "License"); you may not use this file except in compliance with
* the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
import {
defineComponent,
PropType,
ref,
watch,
nextTick,
provide,
computed,
h
} from 'vue'
import { useI18n } from 'vue-i18n'
import Modal from '@/components/modal'
import Detail from './detail'
import { formatModel } from './format-data'
import type { ITaskData, ITaskType } from './types'
import {
HistoryOutlined,
ProfileOutlined,
QuestionCircleTwotone
} from '@vicons/antd'
import { NIcon } from 'naive-ui'
import { TASK_TYPES_MAP } from '../../constants/task-type'
import { Router, useRouter } from 'vue-router'
import { IWorkflowTaskInstance } from '@/views/projects/workflow/components/dag/types'
const props = {
show: {
type: Boolean as PropType<boolean>,
default: false
},
data: {
type: Object as PropType<ITaskData>,
default: { code: 0, taskType: 'SHELL', name: '' }
},
projectCode: {
type: Number as PropType<number>,
required: true
},
readonly: {
type: Boolean as PropType<boolean>,
default: false
},
from: {
type: Number as PropType<number>,
default: 0
},
definition: {
type: Object as PropType<any>
},
processInstance: {
type: Object as PropType<any>
},
taskInstance: {
type: Object as PropType<IWorkflowTaskInstance>
},
saving: {
type: Boolean,
default: false
}
}
const NodeDetailModal = defineComponent({
name: 'NodeDetailModal',
props,
emits: ['cancel', 'submit', 'viewLog'],
setup(props, { emit }) {
const { t, locale } = useI18n()
const router: Router = useRouter()
const renderIcon = (icon: any) => {
return () => h(NIcon, null, { default: () => h(icon) })
}
const detailRef = ref()
const onConfirm = async () => {
await detailRef.value.value.validate()
emit('submit', { data: detailRef.value.value.getValues() })
}
const onCancel = () => {
emit('cancel')
}
const headerLinks = ref([] as any)
const handleViewLog = () => {
if (props.taskInstance) {
emit('viewLog', props.taskInstance.id, props.taskInstance.taskType)
}
}
const initHeaderLinks = (processInstance: any, taskType?: ITaskType) => {
headerLinks.value = [
{
text: t('project.node.instructions'),
show:
taskType && !TASK_TYPES_MAP[taskType]?.helperLinkDisable
? true
: false,
action: () => {
const helpUrl =
'https://dolphinscheduler.apache.org/' +
locale.value.toLowerCase().replace('_', '-') +
'/docs/latest/user_doc/guide/task/' +
taskType?.toLowerCase().replace('_', '-') +
'.html'
window.open(helpUrl)
},
icon: renderIcon(QuestionCircleTwotone)
},
{
text: t('project.node.view_history'),
show: props.taskInstance ? true : false,
action: () => {
router.push({
name: 'task-instance',
params: { processInstanceId: processInstance.id }
})
},
icon: renderIcon(HistoryOutlined)
},
{
text: t('project.node.view_log'),
show: props.taskInstance ? true : false,
action: () => {
handleViewLog()
},
icon: renderIcon(ProfileOutlined)
}
]
}
const onTaskTypeChange = (taskType: ITaskType) => {
// eslint-disable-next-line vue/no-mutating-props
props.data.taskType = taskType
initHeaderLinks(props.processInstance, props.data.taskType)
}
provide(
'data',
computed(() => ({
projectCode: props.projectCode,
data: props.data,
from: props.from,
readonly: props.readonly,
definition: props.definition
}))
)
watch(
() => [props.show, props.data],
async () => {
if (!props.show) return
initHeaderLinks(props.processInstance, props.data.taskType)
await nextTick()
detailRef.value.value.setValues(formatModel(props.data))
}
)
return () => (
<Modal
show={props.show}
title={`${t('project.node.current_node_settings')}`}
onConfirm={onConfirm}
confirmLoading={props.saving}
confirmDisabled={props.readonly}
onCancel={onCancel}
headerLinks={headerLinks}
>
<Detail
ref={detailRef}
onTaskTypeChange={onTaskTypeChange}
key={props.data.taskType}
/>
</Modal>
)
}
})
export default NodeDetailModal
|
closed
|
apache/dolphinscheduler
|
https://github.com/apache/dolphinscheduler
| 8,882 |
[Bug][UI Next][V1.0.0-Alpha] save workflow in workflow instance detail page no response
|
### Search before asking
- [X] I had searched in the [issues](https://github.com/apache/dolphinscheduler/issues?q=is%3Aissue) and found no similar issues.
### What happened

### What you expected to happen
above.
### How to reproduce
above.
### Anything else
_No response_
### Version
dev
### Are you willing to submit PR?
- [ ] Yes I am willing to submit a PR!
### Code of Conduct
- [X] I agree to follow this project's [Code of Conduct](https://www.apache.org/foundation/policies/conduct)
|
https://github.com/apache/dolphinscheduler/issues/8882
|
https://github.com/apache/dolphinscheduler/pull/8926
|
e17c2bb56a0c844cd9760518ef3fe2505d0491c0
|
276a68a23e791eac08626febfed14e1ef2c01dd9
| 2022-03-14T11:07:00Z |
java
| 2022-03-16T06:18:35Z |
dolphinscheduler-ui-next/src/views/projects/workflow/components/dag/dag-save-modal.tsx
|
/*
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership.
* The ASF licenses this file to You under the Apache License, Version 2.0
* (the "License"); you may not use this file except in compliance with
* the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
import { defineComponent, PropType, ref, computed, onMounted, watch } from 'vue'
import Modal from '@/components/modal'
import { useI18n } from 'vue-i18n'
import {
NForm,
NFormItem,
NInput,
NSelect,
NSwitch,
NInputNumber,
NDynamicInput,
NCheckbox
} from 'naive-ui'
import { queryTenantList } from '@/service/modules/tenants'
import { SaveForm, WorkflowDefinition } from './types'
import { useRoute } from 'vue-router'
import { verifyName } from '@/service/modules/process-definition'
import './x6-style.scss'
import { positiveIntegerRegex } from '@/utils/regex'
const props = {
visible: {
type: Boolean as PropType<boolean>,
default: false
},
// If this prop is passed, it means from definition detail
definition: {
type: Object as PropType<WorkflowDefinition>,
default: undefined
}
}
interface Tenant {
tenantCode: string
id: number
}
export default defineComponent({
name: 'dag-save-modal',
props,
emits: ['update:show', 'save'],
setup(props, context) {
const route = useRoute()
const { t } = useI18n()
const projectCode = Number(route.params.projectCode)
const tenants = ref<Tenant[]>([])
const tenantsDropdown = computed(() => {
if (tenants.value) {
return tenants.value
.map((t) => ({
label: t.tenantCode,
value: t.tenantCode
}))
.concat({ label: 'default', value: 'default' })
}
return []
})
onMounted(() => {
queryTenantList().then((res: any) => {
tenants.value = res
})
})
const formValue = ref<SaveForm>({
name: '',
description: '',
tenantCode: 'default',
timeoutFlag: false,
timeout: 0,
globalParams: [],
release: false
})
const formRef = ref()
const rule = {
name: {
required: true,
message: t('project.dag.dag_name_empty')
},
timeout: {
validator() {
if (
formValue.value.timeoutFlag &&
!positiveIntegerRegex.test(String(formValue.value.timeout))
) {
return new Error(t('project.dag.positive_integer'))
}
}
},
globalParams: {
validator() {
const props = new Set()
for (const param of formValue.value.globalParams) {
const prop = param.value
if (!prop) {
return new Error(t('project.dag.prop_empty'))
}
if (props.has(prop)) {
return new Error(t('project.dag.prop_repeat'))
}
props.add(prop)
}
}
}
}
const onSubmit = () => {
formRef.value.validate(async (valid: any) => {
if (!valid) {
const params = {
name: formValue.value.name
}
if (
props.definition?.processDefinition.name !== formValue.value.name
) {
verifyName(params, projectCode).then(() =>
context.emit('save', formValue.value)
)
} else {
context.emit('save', formValue.value)
}
}
})
}
const onCancel = () => {
context.emit('update:show', false)
}
const updateModalData = () => {
const process = props.definition?.processDefinition
if (process) {
formValue.value.name = process.name
formValue.value.description = process.description
formValue.value.tenantCode = process.tenantCode || 'default'
if (process.timeout && process.timeout > 0) {
formValue.value.timeoutFlag = true
formValue.value.timeout = process.timeout
}
formValue.value.globalParams = process.globalParamList.map((param) => ({
key: param.prop,
value: param.value
}))
}
}
onMounted(() => updateModalData())
watch(
() => props.definition?.processDefinition,
() => updateModalData()
)
return () => (
<Modal
show={props.visible}
title={t('project.dag.basic_info')}
onConfirm={onSubmit}
onCancel={onCancel}
autoFocus={false}
>
<NForm model={formValue.value} rules={rule} ref={formRef}>
<NFormItem label={t('project.dag.workflow_name')} path='name'>
<NInput v-model:value={formValue.value.name} class='input-name'/>
</NFormItem>
<NFormItem label={t('project.dag.description')} path='description'>
<NInput
type='textarea'
v-model:value={formValue.value.description}
class='input-description'
/>
</NFormItem>
<NFormItem label={t('project.dag.tenant')} path='tenantCode'>
<NSelect
options={tenantsDropdown.value}
v-model:value={formValue.value.tenantCode}
class='btn-select-tenant-code'
/>
</NFormItem>
<NFormItem label={t('project.dag.timeout_alert')} path='timeoutFlag'>
<NSwitch v-model:value={formValue.value.timeoutFlag} />
</NFormItem>
{formValue.value.timeoutFlag && (
<NFormItem label=' ' path='timeout'>
<NInputNumber
v-model:value={formValue.value.timeout}
show-button={false}
min={0}
v-slots={{
suffix: () => '分'
}}
/>
</NFormItem>
)}
<NFormItem
label={t('project.dag.global_variables')}
path='globalParams'
>
<NDynamicInput
v-model:value={formValue.value.globalParams}
preset='pair'
key-placeholder={t('project.dag.key')}
value-placeholder={t('project.dag.value')}
class='input-global-params'
/>
</NFormItem>
{props.definition && (
<NFormItem path='timeoutFlag'>
<NCheckbox v-model:checked={formValue.value.release}>
{t('project.dag.online_directly')}
</NCheckbox>
</NFormItem>
)}
</NForm>
</Modal>
)
}
})
|
closed
|
apache/dolphinscheduler
|
https://github.com/apache/dolphinscheduler
| 8,882 |
[Bug][UI Next][V1.0.0-Alpha] save workflow in workflow instance detail page no response
|
### Search before asking
- [X] I had searched in the [issues](https://github.com/apache/dolphinscheduler/issues?q=is%3Aissue) and found no similar issues.
### What happened

### What you expected to happen
above.
### How to reproduce
above.
### Anything else
_No response_
### Version
dev
### Are you willing to submit PR?
- [ ] Yes I am willing to submit a PR!
### Code of Conduct
- [X] I agree to follow this project's [Code of Conduct](https://www.apache.org/foundation/policies/conduct)
|
https://github.com/apache/dolphinscheduler/issues/8882
|
https://github.com/apache/dolphinscheduler/pull/8926
|
e17c2bb56a0c844cd9760518ef3fe2505d0491c0
|
276a68a23e791eac08626febfed14e1ef2c01dd9
| 2022-03-14T11:07:00Z |
java
| 2022-03-16T06:18:35Z |
dolphinscheduler-ui-next/src/views/projects/workflow/components/dag/dag-toolbar.tsx
|
/*
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership.
* The ASF licenses this file to You under the Apache License, Version 2.0
* (the "License"); you may not use this file except in compliance with
* the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
import { defineComponent, ref, inject, PropType, Ref } from 'vue'
import { useI18n } from 'vue-i18n'
import Styles from './dag.module.scss'
import { NTooltip, NIcon, NButton, NSelect, NPopover, NText } from 'naive-ui'
import {
SearchOutlined,
DownloadOutlined,
FullscreenOutlined,
FullscreenExitOutlined,
InfoCircleOutlined,
FormatPainterOutlined,
CopyOutlined,
DeleteOutlined,
RightCircleOutlined,
FundViewOutlined,
SyncOutlined
} from '@vicons/antd'
import { useNodeSearch, useTextCopy } from './dag-hooks'
import { DataUri } from '@antv/x6'
import { useFullscreen } from '@vueuse/core'
import { useRoute, useRouter } from 'vue-router'
import { useThemeStore } from '@/store/theme/theme'
import type { Graph } from '@antv/x6'
import StartupParam from './dag-startup-param'
import VariablesView from '@/views/projects/workflow/instance/components/variables-view'
const props = {
layoutToggle: {
type: Function as PropType<(bool?: boolean) => void>,
default: () => {}
},
// If this prop is passed, it means from definition detail
instance: {
type: Object as PropType<any>,
default: null
},
definition: {
// The same as the structure responsed by the queryProcessDefinitionByCode api
type: Object as PropType<any>,
default: null
}
}
export default defineComponent({
name: 'workflow-dag-toolbar',
props,
emits: ['versionToggle', 'saveModelToggle', 'removeTasks', 'refresh'],
setup(props, context) {
const { t } = useI18n()
const startupPopoverRef = ref(false)
const paramPopoverRef = ref(false)
const themeStore = useThemeStore()
const graph = inject<Ref<Graph | undefined>>('graph', ref())
const router = useRouter()
const route = useRoute()
/**
* Node search and navigate
*/
const {
navigateTo,
toggleSearchInput,
searchInputVisible,
reQueryNodes,
nodesDropdown
} = useNodeSearch({ graph })
/**
* Download Workflow Image
* @param {string} fileName
* @param {string} bgColor
*/
const downloadPNG = (options = { fileName: 'dag', bgColor: '#f2f3f7' }) => {
const { fileName, bgColor } = options
graph.value?.toPNG(
(dataUri: string) => {
DataUri.downloadDataUri(dataUri, `${fileName}.png`)
},
{
padding: {
top: 50,
right: 50,
bottom: 50,
left: 50
},
backgroundColor: bgColor
}
)
}
/**
* Toggle fullscreen
*/
const { isFullscreen, toggle } = useFullscreen()
/**
* Open workflow version modal
*/
const openVersionModal = () => {
context.emit('versionToggle', true)
}
/**
* Open DAG format modal
*/
const onFormat = () => {
props.layoutToggle(true)
}
/**
* Back to the entrance
*/
const onClose = () => {
router.go(-1)
}
/**
* Copy workflow name
*/
const { copy } = useTextCopy()
/**
* Delete selected edges and nodes
*/
const removeCells = () => {
if (graph.value) {
const cells = graph.value.getSelectedCells()
if (cells) {
graph.value?.removeCells(cells)
const codes = cells
.filter((cell) => cell.isNode())
.map((cell) => +cell.id)
context.emit('removeTasks', codes)
}
}
}
return () => (
<div
class={[
Styles.toolbar,
Styles[themeStore.darkTheme ? 'toolbar-dark' : 'toolbar-light']
]}
>
<span class={Styles['workflow-name']}>
{route.name === 'workflow-instance-detail'
? props.instance?.name
: props.definition?.processDefinition?.name ||
t('project.dag.create')}
</span>
{props.definition?.processDefinition?.name && (
<NTooltip
v-slots={{
trigger: () => (
<NButton
quaternary
circle
onClick={() => {
const name =
route.name === 'workflow-instance-detail'
? props.instance?.name
: props.definition?.processDefinition?.name
copy(name)
}}
class={Styles['toolbar-btn']}
>
<NIcon>
<CopyOutlined />
</NIcon>
</NButton>
),
default: () => t('project.dag.copy_name')
}}
></NTooltip>
)}
<div class={Styles['toolbar-left-part']}>
{route.name === 'workflow-instance-detail' && (
<>
<NTooltip
v-slots={{
trigger: () => (
<NPopover
show={paramPopoverRef.value}
placement='bottom'
trigger='manual'
>
{{
trigger: () => (
<NButton
quaternary
circle
onClick={() =>
(paramPopoverRef.value = !paramPopoverRef.value)
}
class={Styles['toolbar-btn']}
>
<NIcon>
<FundViewOutlined />
</NIcon>
</NButton>
),
header: () => (
<NText strong depth={1}>
{t('project.workflow.parameters_variables')}
</NText>
),
default: () => <VariablesView onCopy={copy} />
}}
</NPopover>
),
default: () => t('project.dag.view_variables')
}}
></NTooltip>
<NTooltip
v-slots={{
trigger: () => (
<NPopover
show={startupPopoverRef.value}
placement='bottom'
trigger='manual'
>
{{
trigger: () => (
<NButton
quaternary
circle
onClick={() =>
(startupPopoverRef.value =
!startupPopoverRef.value)
}
class={Styles['toolbar-btn']}
>
<NIcon>
<RightCircleOutlined />
</NIcon>
</NButton>
),
header: () => (
<NText strong depth={1}>
{t('project.workflow.startup_parameter')}
</NText>
),
default: () => (
<StartupParam startupParam={props.instance} />
)
}}
</NPopover>
),
default: () => t('project.dag.startup_parameter')
}}
></NTooltip>
</>
)}
</div>
<div class={Styles['toolbar-right-part']}>
{/* Search node */}
<NTooltip
v-slots={{
trigger: () => (
<NButton
class={Styles['toolbar-right-item']}
strong
secondary
circle
type='info'
onClick={toggleSearchInput}
v-slots={{
icon: () => (
<NIcon>
<SearchOutlined />
</NIcon>
)
}}
/>
),
default: () => t('project.dag.search')
}}
></NTooltip>
<div
class={`${Styles['toolbar-right-item']} ${
Styles['node-selector']
} ${searchInputVisible.value ? Styles['visible'] : ''}`}
>
<NSelect
size='small'
options={nodesDropdown.value}
onFocus={reQueryNodes}
onUpdateValue={navigateTo}
filterable
/>
</div>
{/* Download workflow PNG */}
<NTooltip
v-slots={{
trigger: () => (
<NButton
class={Styles['toolbar-right-item']}
strong
secondary
circle
type='info'
onClick={() => downloadPNG()}
v-slots={{
icon: () => (
<NIcon>
<DownloadOutlined />
</NIcon>
)
}}
/>
),
default: () => t('project.dag.download_png')
}}
></NTooltip>
{/* Refresh */}
{props.instance && (
<NTooltip
v-slots={{
trigger: () => (
<NButton
class={Styles['toolbar-right-item']}
strong
secondary
circle
type='info'
onClick={() => {
context.emit('refresh')
}}
v-slots={{
icon: () => (
<NIcon>
<SyncOutlined />
</NIcon>
)
}}
/>
),
default: () => t('project.dag.refresh_dag_status')
}}
></NTooltip>
)}
{/* Delete */}
<NTooltip
v-slots={{
trigger: () => (
<NButton
class={Styles['toolbar-right-item']}
strong
secondary
circle
type='info'
onClick={() => removeCells()}
v-slots={{
icon: () => (
<NIcon>
<DeleteOutlined />
</NIcon>
)
}}
/>
),
default: () => t('project.dag.delete_cell')
}}
></NTooltip>
{/* Toggle fullscreen */}
<NTooltip
v-slots={{
trigger: () => (
<NButton
class={Styles['toolbar-right-item']}
strong
secondary
circle
type='info'
onClick={toggle}
v-slots={{
icon: () => (
<NIcon>
{isFullscreen.value ? (
<FullscreenExitOutlined />
) : (
<FullscreenOutlined />
)}
</NIcon>
)
}}
/>
),
default: () =>
isFullscreen.value
? t('project.dag.fullscreen_close')
: t('project.dag.fullscreen_open')
}}
></NTooltip>
{/* DAG Format */}
<NTooltip
v-slots={{
trigger: () => (
<NButton
class={Styles['toolbar-right-item']}
strong
secondary
circle
type='info'
onClick={onFormat}
v-slots={{
icon: () => (
<NIcon>
<FormatPainterOutlined />
</NIcon>
)
}}
/>
),
default: () => t('project.dag.format')
}}
></NTooltip>
{/* Version info */}
{!!props.definition && (
<NTooltip
v-slots={{
trigger: () => (
<NButton
class={Styles['toolbar-right-item']}
strong
secondary
circle
type='info'
onClick={openVersionModal}
v-slots={{
icon: () => (
<NIcon>
<InfoCircleOutlined />
</NIcon>
)
}}
/>
),
default: () => t('project.workflow.version_info')
}}
></NTooltip>
)}
{/* Save workflow */}
<NButton
class={[Styles['toolbar-right-item'], 'btn-save']}
type='info'
secondary
round
onClick={() => {
context.emit('saveModelToggle', true)
}}
>
{t('project.dag.save')}
</NButton>
{/* Return to previous page */}
<NButton secondary round onClick={onClose} class='btn-close'>
{t('project.dag.close')}
</NButton>
</div>
</div>
)
}
})
|
closed
|
apache/dolphinscheduler
|
https://github.com/apache/dolphinscheduler
| 8,882 |
[Bug][UI Next][V1.0.0-Alpha] save workflow in workflow instance detail page no response
|
### Search before asking
- [X] I had searched in the [issues](https://github.com/apache/dolphinscheduler/issues?q=is%3Aissue) and found no similar issues.
### What happened

### What you expected to happen
above.
### How to reproduce
above.
### Anything else
_No response_
### Version
dev
### Are you willing to submit PR?
- [ ] Yes I am willing to submit a PR!
### Code of Conduct
- [X] I agree to follow this project's [Code of Conduct](https://www.apache.org/foundation/policies/conduct)
|
https://github.com/apache/dolphinscheduler/issues/8882
|
https://github.com/apache/dolphinscheduler/pull/8926
|
e17c2bb56a0c844cd9760518ef3fe2505d0491c0
|
276a68a23e791eac08626febfed14e1ef2c01dd9
| 2022-03-14T11:07:00Z |
java
| 2022-03-16T06:18:35Z |
dolphinscheduler-ui-next/src/views/projects/workflow/components/dag/index.tsx
|
/*
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership.
* The ASF licenses this file to You under the Apache License, Version 2.0
* (the "License"); you may not use this file except in compliance with
* the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
import type { Cell, Graph } from '@antv/x6'
import {
defineComponent,
ref,
provide,
PropType,
toRef,
watch,
onBeforeUnmount,
computed
} from 'vue'
import { useI18n } from 'vue-i18n'
import { useRoute } from 'vue-router'
import DagToolbar from './dag-toolbar'
import DagCanvas from './dag-canvas'
import DagSidebar from './dag-sidebar'
import Styles from './dag.module.scss'
import DagAutoLayoutModal from './dag-auto-layout-modal'
import {
useGraphAutoLayout,
useGraphBackfill,
useDagDragAndDrop,
useTaskEdit,
useBusinessMapper,
useNodeMenu,
useNodeStatus
} from './dag-hooks'
import { useThemeStore } from '@/store/theme/theme'
import VersionModal from '../../definition/components/version-modal'
import { WorkflowDefinition } from './types'
import DagSaveModal from './dag-save-modal'
import ContextMenuItem from './dag-context-menu'
import TaskModal from '@/views/projects/task/components/node/detail-modal'
import StartModal from '@/views/projects/workflow/definition/components/start-modal'
import LogModal from '@/views/projects/workflow/instance/components/log-modal'
import './x6-style.scss'
const props = {
// If this prop is passed, it means from definition detail
instance: {
type: Object as PropType<any>,
default: undefined
},
definition: {
type: Object as PropType<WorkflowDefinition>,
default: undefined
},
readonly: {
type: Boolean as PropType<boolean>,
default: false
},
projectCode: {
type: Number as PropType<number>,
default: 0
}
}
export default defineComponent({
name: 'workflow-dag',
props,
emits: ['refresh', 'save'],
setup(props, context) {
const { t } = useI18n()
const route = useRoute()
const theme = useThemeStore()
// Whether the graph can be operated
provide('readonly', toRef(props, 'readonly'))
const graph = ref<Graph>()
provide('graph', graph)
// Auto layout modal
const {
visible: layoutVisible,
toggle: layoutToggle,
formValue,
formRef,
submit,
cancel
} = useGraphAutoLayout({ graph })
// Edit task
const {
taskConfirm,
taskModalVisible,
currTask,
taskCancel,
appendTask,
editTask,
copyTask,
taskDefinitions,
removeTasks
} = useTaskEdit({ graph, definition: toRef(props, 'definition') })
// Right click cell
const { nodeVariables, menuHide, menuStart, viewLog, hideLog } =
useNodeMenu({
graph
})
// start button in the dag node menu
const startReadonly = computed(() => {
if (props.definition) {
return (
route.name === 'workflow-definition-detail' &&
props.definition!.processDefinition.releaseState === 'NOT_RELEASE'
)
} else {
return false
}
})
// other button in the dag node menu
const menuReadonly = computed(() => {
if (props.instance) {
return (
props.instance.state !== 'WAITING_THREAD' &&
props.instance.state !== 'SUCCESS' &&
props.instance.state !== 'PAUSE' &&
props.instance.state !== 'FAILURE' &&
props.instance.state !== 'STOP'
)
} else if (props.definition) {
return props.definition!.processDefinition.releaseState === 'ONLINE'
} else {
return false
}
})
const taskInstance = computed(() => {
if (nodeVariables.menuCell) {
const taskCode = Number(nodeVariables.menuCell!.id)
return taskList.value.find((task: any) => task.taskCode === taskCode)
} else {
return undefined
}
})
const currentTaskInstance = ref()
watch(
() => taskModalVisible.value,
() => {
if (props.instance && taskModalVisible.value) {
const taskCode = currTask.value.code
currentTaskInstance.value = taskList.value.find(
(task: any) => task.taskCode === taskCode
)
}
}
)
const statusTimerRef = ref()
const { taskList, refreshTaskStatus } = useNodeStatus({ graph })
const { onDragStart, onDrop } = useDagDragAndDrop({
graph,
readonly: toRef(props, 'readonly'),
appendTask
})
// backfill
useGraphBackfill({ graph, definition: toRef(props, 'definition') })
// version modal
const versionModalShow = ref(false)
const versionToggle = (bool: boolean) => {
if (typeof bool === 'boolean') {
versionModalShow.value = bool
} else {
versionModalShow.value = !versionModalShow.value
}
}
const refreshDetail = () => {
context.emit('refresh')
versionModalShow.value = false
}
// Save modal
const saveModalShow = ref(false)
const saveModelToggle = (bool: boolean) => {
if (typeof bool === 'boolean') {
saveModalShow.value = bool
} else {
saveModalShow.value = !versionModalShow.value
}
}
const { getConnects, getLocations } = useBusinessMapper()
const onSave = (saveForm: any) => {
const edges = graph.value?.getEdges() || []
const nodes = graph.value?.getNodes() || []
if (!nodes.length) {
window.$message.error(t('project.dag.node_not_created'))
saveModelToggle(false)
return
}
const connects = getConnects(nodes, edges, taskDefinitions.value as any)
const locations = getLocations(nodes)
context.emit('save', {
taskDefinitions: taskDefinitions.value,
saveForm,
connects,
locations
})
saveModelToggle(false)
}
const handleViewLog = (taskId: number, taskType: string) => {
taskModalVisible.value = false
viewLog(taskId, taskType)
}
watch(
() => props.definition,
() => {
if (props.instance) {
refreshTaskStatus()
statusTimerRef.value = setInterval(() => refreshTaskStatus(), 90000)
}
}
)
onBeforeUnmount(() => clearInterval(statusTimerRef.value))
return () => (
<div
class={[
Styles.dag,
Styles[`dag-${theme.darkTheme ? 'dark' : 'light'}`]
]}
>
<DagToolbar
layoutToggle={layoutToggle}
instance={props.instance}
definition={props.definition}
onVersionToggle={versionToggle}
onSaveModelToggle={saveModelToggle}
onRemoveTasks={removeTasks}
onRefresh={refreshTaskStatus}
/>
<div class={Styles.content}>
<DagSidebar onDragStart={onDragStart} />
<DagCanvas onDrop={onDrop} />
</div>
<DagAutoLayoutModal
visible={layoutVisible.value}
submit={submit}
cancel={cancel}
formValue={formValue}
formRef={formRef}
/>
{!!props.definition && (
<VersionModal
v-model:row={props.definition.processDefinition}
v-model:show={versionModalShow.value}
onUpdateList={refreshDetail}
/>
)}
<DagSaveModal
v-model:show={saveModalShow.value}
onSave={onSave}
definition={props.definition}
/>
<TaskModal
readonly={props.readonly}
show={taskModalVisible.value}
projectCode={props.projectCode}
processInstance={props.instance}
taskInstance={currentTaskInstance.value}
onViewLog={handleViewLog}
data={currTask.value as any}
definition={props.definition}
onSubmit={taskConfirm}
onCancel={taskCancel}
/>
<ContextMenuItem
startReadonly={startReadonly.value}
menuReadonly={menuReadonly.value}
taskInstance={taskInstance.value}
cell={nodeVariables.menuCell as Cell}
visible={nodeVariables.menuVisible}
left={nodeVariables.pageX}
top={nodeVariables.pageY}
onHide={menuHide}
onStart={menuStart}
onEdit={editTask}
onCopyTask={copyTask}
onRemoveTasks={removeTasks}
onViewLog={viewLog}
/>
{!!props.definition && (
<StartModal
v-model:row={props.definition.processDefinition}
v-model:show={nodeVariables.startModalShow}
/>
)}
{!!props.instance && nodeVariables.logModalShow && (
<LogModal
taskInstanceId={nodeVariables.logTaskId}
taskInstanceType={nodeVariables.logTaskType}
onHideLog={hideLog}
/>
)}
</div>
)
}
})
|
closed
|
apache/dolphinscheduler
|
https://github.com/apache/dolphinscheduler
| 8,882 |
[Bug][UI Next][V1.0.0-Alpha] save workflow in workflow instance detail page no response
|
### Search before asking
- [X] I had searched in the [issues](https://github.com/apache/dolphinscheduler/issues?q=is%3Aissue) and found no similar issues.
### What happened

### What you expected to happen
above.
### How to reproduce
above.
### Anything else
_No response_
### Version
dev
### Are you willing to submit PR?
- [ ] Yes I am willing to submit a PR!
### Code of Conduct
- [X] I agree to follow this project's [Code of Conduct](https://www.apache.org/foundation/policies/conduct)
|
https://github.com/apache/dolphinscheduler/issues/8882
|
https://github.com/apache/dolphinscheduler/pull/8926
|
e17c2bb56a0c844cd9760518ef3fe2505d0491c0
|
276a68a23e791eac08626febfed14e1ef2c01dd9
| 2022-03-14T11:07:00Z |
java
| 2022-03-16T06:18:35Z |
dolphinscheduler-ui-next/src/views/projects/workflow/components/dag/types.ts
|
/*
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership.
* The ASF licenses this file to You under the Apache License, Version 2.0
* (the "License"); you may not use this file except in compliance with
* the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
import { TaskType } from '@/views/projects/task/constants/task-type'
export interface ProcessDefinition {
id: number
code: number
name: string
version: number
releaseState: string
projectCode: number
description: string
globalParams: string
globalParamList: any[]
globalParamMap: any
createTime: string
updateTime: string
flag: string
userId: number
userName?: any
projectName?: any
locations: string
scheduleReleaseState?: any
timeout: number
tenantId: number
tenantCode: string
modifyBy?: any
warningGroupId: number
}
export interface Connect {
id?: number
name: string
processDefinitionVersion?: number
projectCode?: number
processDefinitionCode?: number
preTaskCode: number
preTaskVersion: number
postTaskCode: number
postTaskVersion: number
conditionType: string
conditionParams: any
createTime?: string
updateTime?: string
}
export interface TaskDefinition {
id: number
code: number
name: string
version: number
description: string
projectCode: any
userId: number
taskType: TaskType
taskParams: any
taskParamList: any[]
taskParamMap: any
flag: string
taskPriority: string
userName: any
projectName?: any
workerGroup: string
environmentCode: number
failRetryTimes: number
failRetryInterval: number
timeoutFlag: 'OPEN' | 'CLOSE'
timeoutNotifyStrategy: string
timeout: number
delayTime: number
resourceIds: string
createTime: string
updateTime: string
modifyBy: any
dependence: string
}
export type NodeData = {
code: number
taskType: TaskType
name: string
} & Partial<TaskDefinition>
export interface WorkflowDefinition {
processDefinition: ProcessDefinition
processTaskRelationList: Connect[]
taskDefinitionList: TaskDefinition[]
}
export interface Dragged {
x: number
y: number
type: TaskType
}
export interface Coordinate {
x: number
y: number
}
export interface GlobalParam {
key: string
value: string
}
export interface SaveForm {
name: string
description: string
tenantCode: string
timeoutFlag: boolean
timeout: number
globalParams: GlobalParam[]
release: boolean
}
export interface Location {
taskCode: number
x: number
y: number
}
export interface IStartupParam {
commandType: string
commandParam: string
failureStrategy: string
processInstancePriority: string
workerGroup: string
warningType: string
warningGroupId: number
}
export interface IWorkflowTaskInstance {
id: number
taskCode: number
taskType: string
}
|
closed
|
apache/dolphinscheduler
|
https://github.com/apache/dolphinscheduler
| 8,882 |
[Bug][UI Next][V1.0.0-Alpha] save workflow in workflow instance detail page no response
|
### Search before asking
- [X] I had searched in the [issues](https://github.com/apache/dolphinscheduler/issues?q=is%3Aissue) and found no similar issues.
### What happened

### What you expected to happen
above.
### How to reproduce
above.
### Anything else
_No response_
### Version
dev
### Are you willing to submit PR?
- [ ] Yes I am willing to submit a PR!
### Code of Conduct
- [X] I agree to follow this project's [Code of Conduct](https://www.apache.org/foundation/policies/conduct)
|
https://github.com/apache/dolphinscheduler/issues/8882
|
https://github.com/apache/dolphinscheduler/pull/8926
|
e17c2bb56a0c844cd9760518ef3fe2505d0491c0
|
276a68a23e791eac08626febfed14e1ef2c01dd9
| 2022-03-14T11:07:00Z |
java
| 2022-03-16T06:18:35Z |
dolphinscheduler-ui-next/src/views/projects/workflow/instance/detail/index.tsx
|
/*
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership.
* The ASF licenses this file to You under the Apache License, Version 2.0
* (the "License"); you may not use this file except in compliance with
* the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
import { defineComponent, onMounted, ref } from 'vue'
import { useRoute } from 'vue-router'
import { useThemeStore } from '@/store/theme/theme'
import Dag from '../../components/dag'
import { queryProcessInstanceById } from '@/service/modules/process-instances'
import { WorkflowDefinition } from '../../components/dag/types'
import Styles from './index.module.scss'
export default defineComponent({
name: 'WorkflowInstanceDetails',
setup() {
const theme = useThemeStore()
const route = useRoute()
const projectCode = Number(route.params.projectCode)
const id = Number(route.params.id)
const definition = ref<WorkflowDefinition>()
const instance = ref<any>()
const refresh = () => {
queryProcessInstanceById(id, projectCode).then((res: any) => {
instance.value = res
if (res.dagData) {
definition.value = res.dagData
}
})
}
const save = () => {}
onMounted(() => {
if (!id || !projectCode) return
refresh()
})
return () => (
<div
class={[
Styles.container,
theme.darkTheme ? Styles['dark'] : Styles['light']
]}
>
<Dag
instance={instance.value}
definition={definition.value}
onRefresh={refresh}
projectCode={projectCode}
onSave={save}
/>
</div>
)
}
})
|
closed
|
apache/dolphinscheduler
|
https://github.com/apache/dolphinscheduler
| 8,831 |
[Bug-FE][UI Next][V1.0.0-Alpha]Language display error
|
### Search before asking
- [X] I had searched in the [issues](https://github.com/apache/dolphinscheduler/issues?q=is%3Aissue) and found no similar issues.
### What happened
Language display error
<img width="1916" alt="image" src="https://user-images.githubusercontent.com/76080484/157797986-010601d9-55fe-48d9-aea0-ad1db096c8e5.png">
### What you expected to happen
Correct language presentation
### How to reproduce
1、Login
2、Switch Chinese
3、Click project management
### Anything else
_No response_
### Version
dev
### Are you willing to submit PR?
- [ ] Yes I am willing to submit a PR!
### Code of Conduct
- [X] I agree to follow this project's [Code of Conduct](https://www.apache.org/foundation/policies/conduct)
|
https://github.com/apache/dolphinscheduler/issues/8831
|
https://github.com/apache/dolphinscheduler/pull/8925
|
276a68a23e791eac08626febfed14e1ef2c01dd9
|
4ec2db9e5c2a0a4c191cd2bbf7f42e77f771fc74
| 2022-03-11T03:59:25Z |
java
| 2022-03-16T06:30:30Z |
dolphinscheduler-ui-next/src/locales/modules/en_US.ts
|
/*
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership.
* The ASF licenses this file to You under the Apache License, Version 2.0
* (the "License"); you may not use this file except in compliance with
* the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
const login = {
test: 'Test',
userName: 'Username',
userName_tips: 'Please enter your username',
userPassword: 'Password',
userPassword_tips: 'Please enter your password',
login: 'Login'
}
const modal = {
cancel: 'Cancel',
confirm: 'Confirm'
}
const theme = {
light: 'Light',
dark: 'Dark'
}
const userDropdown = {
profile: 'Profile',
password: 'Password',
logout: 'Logout'
}
const menu = {
home: 'Home',
project: 'Project',
resources: 'Resources',
datasource: 'Datasource',
monitor: 'Monitor',
security: 'Security',
project_overview: 'Project Overview',
workflow_relation: 'Workflow Relation',
workflow: 'Workflow',
workflow_definition: 'Workflow Definition',
workflow_instance: 'Workflow Instance',
task: 'Task',
task_instance: 'Task Instance',
task_definition: 'Task Definition',
file_manage: 'File Manage',
udf_manage: 'UDF Manage',
resource_manage: 'Resource Manage',
function_manage: 'Function Manage',
service_manage: 'Service Manage',
master: 'Master',
worker: 'Worker',
db: 'DB',
statistical_manage: 'Statistical Manage',
statistics: 'Statistics',
audit_log: 'Audit Log',
tenant_manage: 'Tenant Manage',
user_manage: 'User Manage',
alarm_group_manage: 'Alarm Group Manage',
alarm_instance_manage: 'Alarm Instance Manage',
worker_group_manage: 'Worker Group Manage',
yarn_queue_manage: 'Yarn Queue Manage',
environment_manage: 'Environment Manage',
k8s_namespace_manage: 'K8S Namespace Manage',
token_manage: 'Token Manage',
task_group_manage: 'Task Group Manage',
task_group_option: 'Task Group Option',
task_group_queue: 'Task Group Queue',
data_quality: 'Data Quality',
task_result: 'Task Result',
rule: 'Rule management'
}
const home = {
task_state_statistics: 'Task State Statistics',
process_state_statistics: 'Process State Statistics',
process_definition_statistics: 'Process Definition Statistics',
number: 'Number',
state: 'State',
submitted_success: 'SUBMITTED_SUCCESS',
running_execution: 'RUNNING_EXECUTION',
ready_pause: 'READY_PAUSE',
pause: 'PAUSE',
ready_stop: 'READY_STOP',
stop: 'STOP',
failure: 'FAILURE',
success: 'SUCCESS',
need_fault_tolerance: 'NEED_FAULT_TOLERANCE',
kill: 'KILL',
waiting_thread: 'WAITING_THREAD',
waiting_depend: 'WAITING_DEPEND',
delay_execution: 'DELAY_EXECUTION',
forced_success: 'FORCED_SUCCESS',
serial_wait: 'SERIAL_WAIT'
}
const password = {
edit_password: 'Edit Password',
password: 'Password',
confirm_password: 'Confirm Password',
password_tips: 'Please enter your password',
confirm_password_tips: 'Please enter your confirm password',
two_password_entries_are_inconsistent:
'Two password entries are inconsistent',
submit: 'Submit'
}
const profile = {
profile: 'Profile',
edit: 'Edit',
username: 'Username',
email: 'Email',
phone: 'Phone',
state: 'State',
permission: 'Permission',
create_time: 'Create Time',
update_time: 'Update Time',
administrator: 'Administrator',
ordinary_user: 'Ordinary User',
edit_profile: 'Edit Profile',
username_tips: 'Please enter your username',
email_tips: 'Please enter your email',
email_correct_tips: 'Please enter your email in the correct format',
phone_tips: 'Please enter your phone',
state_tips: 'Please choose your state',
enable: 'Enable',
disable: 'Disable',
timezone_success: 'Time zone updated successful',
please_select_timezone: 'Choose timeZone'
}
const monitor = {
master: {
cpu_usage: 'CPU Usage',
memory_usage: 'Memory Usage',
load_average: 'Load Average',
create_time: 'Create Time',
last_heartbeat_time: 'Last Heartbeat Time',
directory_detail: 'Directory Detail',
host: 'Host',
directory: 'Directory'
},
worker: {
cpu_usage: 'CPU Usage',
memory_usage: 'Memory Usage',
load_average: 'Load Average',
create_time: 'Create Time',
last_heartbeat_time: 'Last Heartbeat Time',
directory_detail: 'Directory Detail',
host: 'Host',
directory: 'Directory'
},
db: {
health_state: 'Health State',
max_connections: 'Max Connections',
threads_connections: 'Threads Connections',
threads_running_connections: 'Threads Running Connections'
},
statistics: {
command_number_of_waiting_for_running:
'Command Number Of Waiting For Running',
failure_command_number: 'Failure Command Number',
tasks_number_of_waiting_running: 'Tasks Number Of Waiting Running',
task_number_of_ready_to_kill: 'Task Number Of Ready To Kill'
},
audit_log: {
user_name: 'User Name',
resource_type: 'Resource Type',
project_name: 'Project Name',
operation_type: 'Operation Type',
create_time: 'Create Time',
start_time: 'Start Time',
end_time: 'End Time',
user_audit: 'User Audit',
project_audit: 'Project Audit',
create: 'Create',
update: 'Update',
delete: 'Delete',
read: 'Read'
}
}
const resource = {
file: {
file_manage: 'File Manage',
create_folder: 'Create Folder',
create_file: 'Create File',
upload_files: 'Upload Files',
enter_keyword_tips: 'Please enter keyword',
name: 'Name',
user_name: 'Resource userName',
whether_directory: 'Whether directory',
file_name: 'File Name',
description: 'Description',
size: 'Size',
update_time: 'Update Time',
operation: 'Operation',
edit: 'Edit',
rename: 'Rename',
download: 'Download',
delete: 'Delete',
yes: 'Yes',
no: 'No',
folder_name: 'Folder Name',
enter_name_tips: 'Please enter name',
enter_description_tips: 'Please enter description',
enter_content_tips: 'Please enter the resource content',
file_format: 'File Format',
file_content: 'File Content',
delete_confirm: 'Delete?',
confirm: 'Confirm',
cancel: 'Cancel',
success: 'Success',
file_details: 'File Details',
return: 'Return',
save: 'Save'
},
udf: {
udf_resources: 'UDF resources',
create_folder: 'Create Folder',
upload_udf_resources: 'Upload UDF Resources',
udf_source_name: 'UDF Resource Name',
whether_directory: 'Whether directory',
file_name: 'File Name',
file_size: 'File Size',
description: 'Description',
create_time: 'Create Time',
update_time: 'Update Time',
operation: 'Operation',
yes: 'Yes',
no: 'No',
edit: 'Edit',
download: 'Download',
delete: 'Delete',
delete_confirm: 'Delete?',
success: 'Success',
folder_name: 'Folder Name',
upload: 'Upload',
upload_files: 'Upload Files',
file_upload: 'File Upload',
enter_keyword_tips: 'Please enter keyword',
enter_name_tips: 'Please enter name',
enter_description_tips: 'Please enter description'
},
function: {
udf_function: 'UDF Function',
create_udf_function: 'Create UDF Function',
edit_udf_function: 'Create UDF Function',
udf_function_name: 'UDF Function Name',
class_name: 'Class Name',
type: 'Type',
description: 'Description',
jar_package: 'Jar Package',
update_time: 'Update Time',
operation: 'Operation',
rename: 'Rename',
edit: 'Edit',
delete: 'Delete',
success: 'Success',
package_name: 'Package Name',
udf_resources: 'UDF Resources',
instructions: 'Instructions',
upload_resources: 'Upload Resources',
udf_resources_directory: 'UDF resources directory',
delete_confirm: 'Delete?',
enter_keyword_tips: 'Please enter keyword',
enter_udf_unction_name_tips: 'Please enter a UDF function name',
enter_package_name_tips: 'Please enter a Package name',
enter_select_udf_resources_tips: 'Please select UDF resources',
enter_select_udf_resources_directory_tips:
'Please select UDF resources directory',
enter_instructions_tips: 'Please enter a instructions',
enter_name_tips: 'Please enter name',
enter_description_tips: 'Please enter description'
},
task_group_option: {
manage: 'Task group manage',
option: 'Task group option',
create: 'Create task group',
edit: 'Edit task group',
delete: 'Delete task group',
view_queue: 'View the queue of the task group',
switch_status: 'Switch status',
code: 'Task group code',
name: 'Task group name',
project_name: 'Project name',
resource_pool_size: 'Resource pool size',
resource_pool_size_be_a_number:
'The size of the task group resource pool should be more than 1',
resource_used_pool_size: 'Used resource',
desc: 'Task group desc',
status: 'Task group status',
enable_status: 'Enable',
disable_status: 'Disable',
please_enter_name: 'Please enter task group name',
please_enter_desc: 'Please enter task group description',
please_enter_resource_pool_size:
'Please enter task group resource pool size',
please_select_project: 'Please select a project',
create_time: 'Create time',
update_time: 'Update time',
actions: 'Actions',
please_enter_keywords: 'Please enter keywords'
},
task_group_queue: {
actions: 'Actions',
task_name: 'Task name',
task_group_name: 'Task group name',
project_name: 'Project name',
process_name: 'Process name',
process_instance_name: 'Process instance',
queue: 'Task group queue',
priority: 'Priority',
priority_be_a_number:
'The priority of the task group queue should be a positive number',
force_starting_status: 'Starting status',
in_queue: 'In queue',
task_status: 'Task status',
view: 'View task group queue',
the_status_of_waiting: 'Waiting into the queue',
the_status_of_queuing: 'Queuing',
the_status_of_releasing: 'Released',
modify_priority: 'Edit the priority',
start_task: 'Start the task',
priority_not_empty: 'The value of priority can not be empty',
priority_must_be_number: 'The value of priority should be number',
please_select_task_name: 'Please select a task name',
create_time: 'Create time',
update_time: 'Update time',
edit_priority: 'Edit the task priority'
}
}
const project = {
list: {
create_project: 'Create Project',
edit_project: 'Edit Project',
project_list: 'Project List',
project_tips: 'Please enter your project',
description_tips: 'Please enter your description',
username_tips: 'Please enter your username',
project_name: 'Project Name',
project_description: 'Project Description',
owned_users: 'Owned Users',
workflow_define_count: 'Workflow Define Count',
process_instance_running_count: 'Process Instance Running Count',
description: 'Description',
create_time: 'Create Time',
update_time: 'Update Time',
operation: 'Operation',
edit: 'Edit',
delete: 'Delete',
confirm: 'Confirm',
cancel: 'Cancel',
delete_confirm: 'Delete?'
},
workflow: {
workflow_relation: 'Workflow Relation',
create_workflow: 'Create Workflow',
import_workflow: 'Import Workflow',
workflow_name: 'Workflow Name',
current_selection: 'Current Selection',
online: 'Online',
offline: 'Offline',
refresh: 'Refresh',
show_hide_label: 'Show / Hide Label',
workflow_offline: 'Workflow Offline',
schedule_offline: 'Schedule Offline',
schedule_start_time: 'Schedule Start Time',
schedule_end_time: 'Schedule End Time',
crontab_expression: 'Crontab',
workflow_publish_status: 'Workflow Publish Status',
schedule_publish_status: 'Schedule Publish Status',
workflow_definition: 'Workflow Definition',
workflow_instance: 'Workflow Instance',
status: 'Status',
create_time: 'Create Time',
update_time: 'Update Time',
description: 'Description',
create_user: 'Create User',
modify_user: 'Modify User',
operation: 'Operation',
edit: 'Edit',
start: 'Start',
timing: 'Timing',
timezone: 'Timezone',
up_line: 'Online',
down_line: 'Offline',
copy_workflow: 'Copy Workflow',
cron_manage: 'Cron manage',
delete: 'Delete',
tree_view: 'Tree View',
tree_limit: 'Limit Size',
export: 'Export',
version_info: 'Version Info',
version: 'Version',
file_upload: 'File Upload',
upload_file: 'Upload File',
upload: 'Upload',
file_name: 'File Name',
success: 'Success',
set_parameters_before_starting: 'Please set the parameters before starting',
set_parameters_before_timing: 'Set parameters before timing',
start_and_stop_time: 'Start and stop time',
next_five_execution_times: 'Next five execution times',
execute_time: 'Execute time',
failure_strategy: 'Failure Strategy',
notification_strategy: 'Notification Strategy',
workflow_priority: 'Workflow Priority',
worker_group: 'Worker Group',
environment_name: 'Environment Name',
alarm_group: 'Alarm Group',
complement_data: 'Complement Data',
startup_parameter: 'Startup Parameter',
whether_dry_run: 'Whether Dry-Run',
continue: 'Continue',
end: 'End',
none_send: 'None',
success_send: 'Success',
failure_send: 'Failure',
all_send: 'All',
whether_complement_data: 'Whether it is a complement process?',
schedule_date: 'Schedule date',
mode_of_execution: 'Mode of execution',
serial_execution: 'Serial execution',
parallel_execution: 'Parallel execution',
parallelism: 'Parallelism',
custom_parallelism: 'Custom Parallelism',
please_enter_parallelism: 'Please enter Parallelism',
please_choose: 'Please Choose',
start_time: 'Start Time',
end_time: 'End Time',
crontab: 'Crontab',
delete_confirm: 'Delete?',
enter_name_tips: 'Please enter name',
switch_version: 'Switch To This Version',
confirm_switch_version: 'Confirm Switch To This Version?',
current_version: 'Current Version',
run_type: 'Run Type',
scheduling_time: 'Scheduling Time',
duration: 'Duration',
run_times: 'Run Times',
fault_tolerant_sign: 'Fault-tolerant Sign',
dry_run_flag: 'Dry-run Flag',
executor: 'Executor',
host: 'Host',
start_process: 'Start Process',
execute_from_the_current_node: 'Execute from the current node',
recover_tolerance_fault_process: 'Recover tolerance fault process',
resume_the_suspension_process: 'Resume the suspension process',
execute_from_the_failed_nodes: 'Execute from the failed nodes',
scheduling_execution: 'Scheduling execution',
rerun: 'Rerun',
stop: 'Stop',
pause: 'Pause',
recovery_waiting_thread: 'Recovery waiting thread',
recover_serial_wait: 'Recover serial wait',
recovery_suspend: 'Recovery Suspend',
recovery_failed: 'Recovery Failed',
gantt: 'Gantt',
name: 'Name',
all_status: 'AllStatus',
submit_success: 'Submitted successfully',
running: 'Running',
ready_to_pause: 'Ready to pause',
ready_to_stop: 'Ready to stop',
failed: 'Failed',
need_fault_tolerance: 'Need fault tolerance',
kill: 'Kill',
waiting_for_thread: 'Waiting for thread',
waiting_for_dependence: 'Waiting for dependence',
waiting_for_dependency_to_complete: 'Waiting for dependency to complete',
delay_execution: 'Delay execution',
forced_success: 'Forced success',
serial_wait: 'Serial wait',
executing: 'Executing',
startup_type: 'Startup Type',
complement_range: 'Complement Range',
parameters_variables: 'Parameters variables',
global_parameters: 'Global parameters',
local_parameters: 'Local parameters',
type: 'Type',
retry_count: 'Retry Count',
submit_time: 'Submit Time',
refresh_status_succeeded: 'Refresh status succeeded',
view_log: 'View log',
update_log_success: 'Update log success',
no_more_log: 'No more logs',
no_log: 'No log',
loading_log: 'Loading Log...',
close: 'Close',
download_log: 'Download Log',
refresh_log: 'Refresh Log',
enter_full_screen: 'Enter full screen',
cancel_full_screen: 'Cancel full screen',
task_state: 'Task status',
mode_of_dependent: 'Mode of dependent',
open: 'Open'
},
task: {
task_name: 'Task Name',
task_type: 'Task Type',
create_task: 'Create Task',
workflow_instance: 'Workflow Instance',
workflow_name: 'Workflow Name',
workflow_name_tips: 'Please select workflow name',
workflow_state: 'Workflow State',
version: 'Version',
current_version: 'Current Version',
switch_version: 'Switch To This Version',
confirm_switch_version: 'Confirm Switch To This Version?',
description: 'Description',
move: 'Move',
upstream_tasks: 'Upstream Tasks',
executor: 'Executor',
node_type: 'Node Type',
state: 'State',
submit_time: 'Submit Time',
start_time: 'Start Time',
create_time: 'Create Time',
update_time: 'Update Time',
end_time: 'End Time',
duration: 'Duration',
retry_count: 'Retry Count',
dry_run_flag: 'Dry Run Flag',
host: 'Host',
operation: 'Operation',
edit: 'Edit',
delete: 'Delete',
delete_confirm: 'Delete?',
submitted_success: 'Submitted Success',
running_execution: 'Running Execution',
ready_pause: 'Ready Pause',
pause: 'Pause',
ready_stop: 'Ready Stop',
stop: 'Stop',
failure: 'Failure',
success: 'Success',
need_fault_tolerance: 'Need Fault Tolerance',
kill: 'Kill',
waiting_thread: 'Waiting Thread',
waiting_depend: 'Waiting Depend',
delay_execution: 'Delay Execution',
forced_success: 'Forced Success',
view_log: 'View Log',
download_log: 'Download Log',
refresh: 'Refresh'
},
dag: {
create: 'Create Workflow',
search: 'Search',
download_png: 'Download PNG',
fullscreen_open: 'Open Fullscreen',
fullscreen_close: 'Close Fullscreen',
save: 'Save',
close: 'Close',
format: 'Format',
refresh_dag_status: 'Refresh DAG status',
layout_type: 'Layout Type',
grid_layout: 'Grid',
dagre_layout: 'Dagre',
rows: 'Rows',
cols: 'Cols',
copy_success: 'Copy Success',
workflow_name: 'Workflow Name',
description: 'Description',
tenant: 'Tenant',
timeout_alert: 'Timeout Alert',
global_variables: 'Global Variables',
basic_info: 'Basic Information',
minute: 'Minute',
key: 'Key',
value: 'Value',
success: 'Success',
delete_cell: 'Delete selected edges and nodes',
online_directly: 'Whether to go online the process definition',
update_directly: 'Whether to update the process definition',
dag_name_empty: 'DAG graph name cannot be empty',
positive_integer: 'Please enter a positive integer greater than 0',
prop_empty: 'prop is empty',
prop_repeat: 'prop is repeat',
node_not_created: 'Failed to save node not created',
copy_name: 'Copy Name',
view_variables: 'View Variables',
startup_parameter: 'Startup Parameter'
},
node: {
current_node_settings: 'Current node settings',
instructions: 'Instructions',
view_history: 'View history',
view_log: 'View log',
enter_this_child_node: 'Enter this child node',
name: 'Node name',
name_tips: 'Please enter name (required)',
task_type: 'Task Type',
task_type_tips: 'Please select a task type (required)',
process_name: 'Process Name',
process_name_tips: 'Please select a process (required)',
child_node: 'Child Node',
enter_child_node: 'Enter child node',
run_flag: 'Run flag',
normal: 'Normal',
prohibition_execution: 'Prohibition execution',
description: 'Description',
description_tips: 'Please enter description',
task_priority: 'Task priority',
worker_group: 'Worker group',
worker_group_tips:
'The Worker group no longer exists, please select the correct Worker group!',
environment_name: 'Environment Name',
task_group_name: 'Task group name',
task_group_queue_priority: 'Priority',
number_of_failed_retries: 'Number of failed retries',
times: 'Times',
failed_retry_interval: 'Failed retry interval',
minute: 'Minute',
delay_execution_time: 'Delay execution time',
state: 'State',
branch_flow: 'Branch flow',
cancel: 'Cancel',
loading: 'Loading...',
confirm: 'Confirm',
success: 'Success',
failed: 'Failed',
backfill_tips:
'The newly created sub-Process has not yet been executed and cannot enter the sub-Process',
task_instance_tips:
'The task has not been executed and cannot enter the sub-Process',
branch_tips:
'Cannot select the same node for successful branch flow and failed branch flow',
timeout_alarm: 'Timeout alarm',
timeout_strategy: 'Timeout strategy',
timeout_strategy_tips: 'Timeout strategy must be selected',
timeout_failure: 'Timeout failure',
timeout_period: 'Timeout period',
timeout_period_tips: 'Timeout must be a positive integer',
script: 'Script',
script_tips: 'Please enter script(required)',
resources: 'Resources',
resources_tips: 'Please select resources',
non_resources_tips: 'Please delete all non-existent resources',
useless_resources_tips: 'Unauthorized or deleted resources',
custom_parameters: 'Custom Parameters',
copy_success: 'Copy success',
copy_failed: 'The browser does not support automatic copying',
prop_tips: 'prop(required)',
prop_repeat: 'prop is repeat',
value_tips: 'value(optional)',
value_required_tips: 'value(required)',
pre_tasks: 'Pre tasks',
program_type: 'Program Type',
spark_version: 'Spark Version',
main_class: 'Main Class',
main_class_tips: 'Please enter main class',
main_package: 'Main Package',
main_package_tips: 'Please enter main package',
deploy_mode: 'Deploy Mode',
app_name: 'App Name',
app_name_tips: 'Please enter app name(optional)',
driver_cores: 'Driver Cores',
driver_cores_tips: 'Please enter Driver cores',
driver_memory: 'Driver Memory',
driver_memory_tips: 'Please enter Driver memory',
executor_number: 'Executor Number',
executor_number_tips: 'Please enter Executor number',
executor_memory: 'Executor Memory',
executor_memory_tips: 'Please enter Executor memory',
executor_cores: 'Executor Cores',
executor_cores_tips: 'Please enter Executor cores',
main_arguments: 'Main Arguments',
main_arguments_tips: 'Please enter main arguments',
option_parameters: 'Option Parameters',
option_parameters_tips: 'Please enter option parameters',
positive_integer_tips: 'should be a positive integer',
flink_version: 'Flink Version',
job_manager_memory: 'JobManager Memory',
job_manager_memory_tips: 'Please enter JobManager memory',
task_manager_memory: 'TaskManager Memory',
task_manager_memory_tips: 'Please enter TaskManager memory',
slot_number: 'Slot Number',
slot_number_tips: 'Please enter Slot number',
parallelism: 'Parallelism',
custom_parallelism: 'Configure parallelism',
parallelism_tips: 'Please enter Parallelism',
parallelism_number_tips: 'Parallelism number should be positive integer',
parallelism_complement_tips:
'If there are a large number of tasks requiring complement, you can use the custom parallelism to ' +
'set the complement task thread to a reasonable value to avoid too large impact on the server.',
task_manager_number: 'TaskManager Number',
task_manager_number_tips: 'Please enter TaskManager number',
http_url: 'Http Url',
http_url_tips: 'Please Enter Http Url',
http_method: 'Http Method',
http_parameters: 'Http Parameters',
http_check_condition: 'Http Check Condition',
http_condition: 'Http Condition',
http_condition_tips: 'Please Enter Http Condition',
timeout_settings: 'Timeout Settings',
connect_timeout: 'Connect Timeout',
ms: 'ms',
socket_timeout: 'Socket Timeout',
status_code_default: 'Default response code 200',
status_code_custom: 'Custom response code',
body_contains: 'Content includes',
body_not_contains: 'Content does not contain',
http_parameters_position: 'Http Parameters Position',
target_task_name: 'Target Task Name',
target_task_name_tips: 'Please enter the Pigeon task name',
datasource_type: 'Datasource types',
datasource_instances: 'Datasource instances',
sql_type: 'SQL Type',
sql_type_query: 'Query',
sql_type_non_query: 'Non Query',
sql_statement: 'SQL Statement',
pre_sql_statement: 'Pre SQL Statement',
post_sql_statement: 'Post SQL Statement',
sql_input_placeholder: 'Please enter non-query sql.',
sql_empty_tips: 'The sql can not be empty.',
procedure_method: 'SQL Statement',
procedure_method_tips: 'Please enter the procedure script',
procedure_method_snippet:
'--Please enter the procedure script \n\n--call procedure:call <procedure-name>[(<arg1>,<arg2>, ...)]\n\n--call function:?= call <procedure-name>[(<arg1>,<arg2>, ...)]',
start: 'Start',
edit: 'Edit',
copy: 'Copy',
delete: 'Delete',
custom_job: 'Custom Job',
custom_script: 'Custom Script',
sqoop_job_name: 'Job Name',
sqoop_job_name_tips: 'Please enter Job Name(required)',
direct: 'Direct',
hadoop_custom_params: 'Hadoop Params',
sqoop_advanced_parameters: 'Sqoop Advanced Parameters',
data_source: 'Data Source',
type: 'Type',
datasource: 'Datasource',
datasource_tips: 'Please select the datasource',
model_type: 'ModelType',
form: 'Form',
table: 'Table',
table_tips: 'Please enter Mysql Table(required)',
column_type: 'ColumnType',
all_columns: 'All Columns',
some_columns: 'Some Columns',
column: 'Column',
column_tips: 'Please enter Columns (Comma separated)',
database: 'Database',
database_tips: 'Please enter Hive Database(required)',
hive_table_tips: 'Please enter Hive Table(required)',
hive_partition_keys: 'Hive partition Keys',
hive_partition_keys_tips: 'Please enter Hive Partition Keys',
hive_partition_values: 'Hive partition Values',
hive_partition_values_tips: 'Please enter Hive Partition Values',
export_dir: 'Export Dir',
export_dir_tips: 'Please enter Export Dir(required)',
sql_statement_tips: 'SQL Statement(required)',
map_column_hive: 'Map Column Hive',
map_column_java: 'Map Column Java',
data_target: 'Data Target',
create_hive_table: 'CreateHiveTable',
drop_delimiter: 'DropDelimiter',
over_write_src: 'OverWriteSrc',
hive_target_dir: 'Hive Target Dir',
hive_target_dir_tips: 'Please enter hive target dir',
replace_delimiter: 'ReplaceDelimiter',
replace_delimiter_tips: 'Please enter Replace Delimiter',
target_dir: 'Target Dir',
target_dir_tips: 'Please enter Target Dir(required)',
delete_target_dir: 'DeleteTargetDir',
compression_codec: 'CompressionCodec',
file_type: 'FileType',
fields_terminated: 'FieldsTerminated',
fields_terminated_tips: 'Please enter Fields Terminated',
lines_terminated: 'LinesTerminated',
lines_terminated_tips: 'Please enter Lines Terminated',
is_update: 'IsUpdate',
update_key: 'UpdateKey',
update_key_tips: 'Please enter Update Key',
update_mode: 'UpdateMode',
only_update: 'OnlyUpdate',
allow_insert: 'AllowInsert',
concurrency: 'Concurrency',
concurrency_tips: 'Please enter Concurrency',
sea_tunnel_master: 'Master',
sea_tunnel_master_url: 'Master URL',
sea_tunnel_queue: 'Queue',
sea_tunnel_master_url_tips:
'Please enter the master url, e.g., 127.0.0.1:7077',
switch_condition: 'Condition',
switch_branch_flow: 'Branch Flow',
and: 'and',
or: 'or',
datax_custom_template: 'Custom Template Switch',
datax_json_template: 'JSON',
datax_target_datasource_type: 'Target Datasource Type',
datax_target_database: 'Target Database',
datax_target_table: 'Target Table',
datax_target_table_tips: 'Please enter the name of the target table',
datax_target_database_pre_sql: 'Pre SQL Statement',
datax_target_database_post_sql: 'Post SQL Statement',
datax_non_query_sql_tips: 'Please enter the non-query sql statement',
datax_job_speed_byte: 'Speed(Byte count)',
datax_job_speed_byte_info: '(0 means unlimited)',
datax_job_speed_record: 'Speed(Record count)',
datax_job_speed_record_info: '(0 means unlimited)',
datax_job_runtime_memory: 'Runtime Memory Limits',
datax_job_runtime_memory_xms: 'Low Limit Value',
datax_job_runtime_memory_xmx: 'High Limit Value',
datax_job_runtime_memory_unit: 'G',
current_hour: 'CurrentHour',
last_1_hour: 'Last1Hour',
last_2_hour: 'Last2Hours',
last_3_hour: 'Last3Hours',
last_24_hour: 'Last24Hours',
today: 'today',
last_1_days: 'Last1Days',
last_2_days: 'Last2Days',
last_3_days: 'Last3Days',
last_7_days: 'Last7Days',
this_week: 'ThisWeek',
last_week: 'LastWeek',
last_monday: 'LastMonday',
last_tuesday: 'LastTuesday',
last_wednesday: 'LastWednesday',
last_thursday: 'LastThursday',
last_friday: 'LastFriday',
last_saturday: 'LastSaturday',
last_sunday: 'LastSunday',
this_month: 'ThisMonth',
last_month: 'LastMonth',
last_month_begin: 'LastMonthBegin',
last_month_end: 'LastMonthEnd',
month: 'month',
week: 'week',
day: 'day',
hour: 'hour',
add_dependency: 'Add dependency',
waiting_dependent_start: 'Waiting Dependent start',
check_interval: 'Check interval',
waiting_dependent_complete: 'Waiting Dependent complete',
rule_name: 'Rule Name',
null_check: 'NullCheck',
custom_sql: 'CustomSql',
multi_table_accuracy: 'MulTableAccuracy',
multi_table_value_comparison: 'MulTableCompare',
field_length_check: 'FieldLengthCheck',
uniqueness_check: 'UniquenessCheck',
regexp_check: 'RegexpCheck',
timeliness_check: 'TimelinessCheck',
enumeration_check: 'EnumerationCheck',
table_count_check: 'TableCountCheck',
src_connector_type: 'SrcConnType',
src_datasource_id: 'SrcSource',
src_table: 'SrcTable',
src_filter: 'SrcFilter',
src_field: 'SrcField',
statistics_name: 'ActualValName',
check_type: 'CheckType',
operator: 'Operator',
threshold: 'Threshold',
failure_strategy: 'FailureStrategy',
target_connector_type: 'TargetConnType',
target_datasource_id: 'TargetSourceId',
target_table: 'TargetTable',
target_filter: 'TargetFilter',
mapping_columns: 'OnClause',
statistics_execute_sql: 'ActualValExecSql',
comparison_name: 'ExceptedValName',
comparison_execute_sql: 'ExceptedValExecSql',
comparison_type: 'ExceptedValType',
writer_connector_type: 'WriterConnType',
writer_datasource_id: 'WriterSourceId',
target_field: 'TargetField',
field_length: 'FieldLength',
logic_operator: 'LogicOperator',
regexp_pattern: 'RegexpPattern',
deadline: 'Deadline',
datetime_format: 'DatetimeFormat',
enum_list: 'EnumList',
begin_time: 'BeginTime',
fix_value: 'FixValue',
required: 'required',
emr_flow_define_json: 'jobFlowDefineJson',
emr_flow_define_json_tips: 'Please enter the definition of the job flow.'
}
}
const security = {
tenant: {
tenant_manage: 'Tenant Manage',
create_tenant: 'Create Tenant',
search_tips: 'Please enter keywords',
tenant_code: 'Operating System Tenant',
description: 'Description',
queue_name: 'QueueName',
create_time: 'Create Time',
update_time: 'Update Time',
actions: 'Operation',
edit_tenant: 'Edit Tenant',
tenant_code_tips: 'Please enter the operating system tenant',
queue_name_tips: 'Please select queue',
description_tips: 'Please enter a description',
delete_confirm: 'Delete?',
edit: 'Edit',
delete: 'Delete'
},
alarm_group: {
create_alarm_group: 'Create Alarm Group',
edit_alarm_group: 'Edit Alarm Group',
search_tips: 'Please enter keywords',
alert_group_name_tips: 'Please enter your alert group name',
alarm_plugin_instance: 'Alarm Plugin Instance',
alarm_plugin_instance_tips: 'Please select alert plugin instance',
alarm_group_description_tips: 'Please enter your alarm group description',
alert_group_name: 'Alert Group Name',
alarm_group_description: 'Alarm Group Description',
create_time: 'Create Time',
update_time: 'Update Time',
operation: 'Operation',
delete_confirm: 'Delete?',
edit: 'Edit',
delete: 'Delete'
},
worker_group: {
create_worker_group: 'Create Worker Group',
edit_worker_group: 'Edit Worker Group',
search_tips: 'Please enter keywords',
operation: 'Operation',
delete_confirm: 'Delete?',
edit: 'Edit',
delete: 'Delete',
group_name: 'Group Name',
group_name_tips: 'Please enter your group name',
worker_addresses: 'Worker Addresses',
worker_addresses_tips: 'Please select worker addresses',
create_time: 'Create Time',
update_time: 'Update Time'
},
yarn_queue: {
create_queue: 'Create Queue',
edit_queue: 'Edit Queue',
search_tips: 'Please enter keywords',
queue_name: 'Queue Name',
queue_value: 'Queue Value',
create_time: 'Create Time',
update_time: 'Update Time',
operation: 'Operation',
edit: 'Edit',
queue_name_tips: 'Please enter your queue name',
queue_value_tips: 'Please enter your queue value'
},
environment: {
create_environment: 'Create Environment',
edit_environment: 'Edit Environment',
search_tips: 'Please enter keywords',
edit: 'Edit',
delete: 'Delete',
environment_name: 'Environment Name',
environment_config: 'Environment Config',
environment_desc: 'Environment Desc',
worker_groups: 'Worker Groups',
create_time: 'Create Time',
update_time: 'Update Time',
operation: 'Operation',
delete_confirm: 'Delete?',
environment_name_tips: 'Please enter your environment name',
environment_config_tips: 'Please enter your environment config',
environment_description_tips: 'Please enter your environment description',
worker_group_tips: 'Please select worker group'
},
token: {
create_token: 'Create Token',
edit_token: 'Edit Token',
search_tips: 'Please enter keywords',
user: 'User',
user_tips: 'Please select user',
token: 'Token',
token_tips: 'Please enter your token',
expiration_time: 'Expiration Time',
expiration_time_tips: 'Please select expiration time',
create_time: 'Create Time',
update_time: 'Update Time',
operation: 'Operation',
edit: 'Edit',
delete: 'Delete',
delete_confirm: 'Delete?'
},
user: {
user_manage: 'User Manage',
create_user: 'Create User',
update_user: 'Update User',
delete_user: 'Delete User',
delete_confirm: 'Are you sure to delete?',
delete_confirm_tip:
'Deleting user is a dangerous operation,please be careful',
project: 'Project',
resource: 'Resource',
file_resource: 'File Resource',
udf_resource: 'UDF Resource',
datasource: 'Datasource',
udf: 'UDF Function',
authorize_project: 'Project Authorize',
authorize_resource: 'Resource Authorize',
authorize_datasource: 'Datasource Authorize',
authorize_udf: 'UDF Function Authorize',
username: 'Username',
username_exists: 'The username already exists',
username_tips: 'Please enter username',
user_password: 'Password',
user_password_tips:
'Please enter a password containing letters and numbers with a length between 6 and 20',
user_type: 'User Type',
ordinary_user: 'Ordinary users',
administrator: 'Administrator',
tenant_code: 'Tenant',
tenant_id_tips: 'Please select tenant',
queue: 'Queue',
queue_tips: 'Please select a queue',
email: 'Email',
email_empty_tips: 'Please enter email',
emial_correct_tips: 'Please enter the correct email format',
phone: 'Phone',
phone_empty_tips: 'Please enter phone number',
phone_correct_tips: 'Please enter the correct mobile phone format',
state: 'State',
state_enabled: 'Enabled',
state_disabled: 'Disabled',
create_time: 'Create Time',
update_time: 'Update Time',
operation: 'Operation',
edit: 'Edit',
delete: 'Delete',
authorize: 'Authorize',
save_error_msg: 'Failed to save, please retry',
delete_error_msg: 'Failed to delete, please retry',
auth_error_msg: 'Failed to authorize, please retry',
auth_success_msg: 'Authorize succeeded',
enable: 'Enable',
disable: 'Disable'
},
alarm_instance: {
search_input_tips: 'Please input the keywords',
alarm_instance_manage: 'Alarm instance manage',
alarm_instance: 'Alarm Instance',
alarm_instance_name: 'Alarm instance name',
alarm_instance_name_tips: 'Please enter alarm plugin instance name',
alarm_plugin_name: 'Alarm plugin name',
create_time: 'Create Time',
update_time: 'Update Time',
operation: 'Operation',
edit: 'Edit',
delete: 'Delete',
confirm: 'Confirm',
cancel: 'Cancel',
submit: 'Submit',
create: 'Create',
select_plugin: 'Select plugin',
select_plugin_tips: 'Select Alarm plugin',
instance_parameter_exception: 'Instance parameter exception',
WebHook: 'WebHook',
webHook: 'WebHook',
IsEnableProxy: 'Enable Proxy',
Proxy: 'Proxy',
Port: 'Port',
User: 'User',
corpId: 'CorpId',
secret: 'Secret',
Secret: 'Secret',
users: 'Users',
userSendMsg: 'UserSendMsg',
agentId: 'AgentId',
showType: 'Show Type',
receivers: 'Receivers',
receiverCcs: 'ReceiverCcs',
serverHost: 'SMTP Host',
serverPort: 'SMTP Port',
sender: 'Sender',
enableSmtpAuth: 'SMTP Auth',
Password: 'Password',
starttlsEnable: 'SMTP STARTTLS Enable',
sslEnable: 'SMTP SSL Enable',
smtpSslTrust: 'SMTP SSL Trust',
url: 'URL',
requestType: 'Request Type',
headerParams: 'Headers',
bodyParams: 'Body',
contentField: 'Content Field',
Keyword: 'Keyword',
userParams: 'User Params',
path: 'Script Path',
type: 'Type',
sendType: 'Send Type',
username: 'Username',
botToken: 'Bot Token',
chatId: 'Channel Chat Id',
parseMode: 'Parse Mode'
},
k8s_namespace: {
create_namespace: 'Create Namespace',
edit_namespace: 'Edit Namespace',
search_tips: 'Please enter keywords',
k8s_namespace: 'K8S Namespace',
k8s_namespace_tips: 'Please enter k8s namespace',
k8s_cluster: 'K8S Cluster',
k8s_cluster_tips: 'Please enter k8s cluster',
owner: 'Owner',
owner_tips: 'Please enter owner',
tag: 'Tag',
tag_tips: 'Please enter tag',
limit_cpu: 'Limit CPU',
limit_cpu_tips: 'Please enter limit CPU',
limit_memory: 'Limit Memory',
limit_memory_tips: 'Please enter limit memory',
create_time: 'Create Time',
update_time: 'Update Time',
operation: 'Operation',
edit: 'Edit',
delete: 'Delete',
delete_confirm: 'Delete?'
}
}
const datasource = {
datasource: 'DataSource',
create_datasource: 'Create DataSource',
search_input_tips: 'Please input the keywords',
datasource_name: 'Datasource Name',
datasource_name_tips: 'Please enter datasource name',
datasource_user_name: 'Owner',
datasource_type: 'Datasource Type',
datasource_parameter: 'Datasource Parameter',
description: 'Description',
description_tips: 'Please enter description',
create_time: 'Create Time',
update_time: 'Update Time',
operation: 'Operation',
click_to_view: 'Click to view',
delete: 'Delete',
confirm: 'Confirm',
cancel: 'Cancel',
create: 'Create',
edit: 'Edit',
success: 'Success',
test_connect: 'Test Connect',
ip: 'IP',
ip_tips: 'Please enter IP',
port: 'Port',
port_tips: 'Please enter port',
database_name: 'Database Name',
database_name_tips: 'Please enter database name',
oracle_connect_type: 'ServiceName or SID',
oracle_connect_type_tips: 'Please select serviceName or SID',
oracle_service_name: 'ServiceName',
oracle_sid: 'SID',
jdbc_connect_parameters: 'jdbc connect parameters',
principal_tips: 'Please enter Principal',
krb5_conf_tips:
'Please enter the kerberos authentication parameter java.security.krb5.conf',
keytab_username_tips:
'Please enter the kerberos authentication parameter login.user.keytab.username',
keytab_path_tips:
'Please enter the kerberos authentication parameter login.user.keytab.path',
format_tips: 'Please enter format',
connection_parameter: 'connection parameter',
user_name: 'User Name',
user_name_tips: 'Please enter your username',
user_password: 'Password',
user_password_tips: 'Please enter your password'
}
const data_quality = {
task_result: {
task_name: 'Task Name',
workflow_instance: 'Workflow Instance',
rule_type: 'Rule Type',
rule_name: 'Rule Name',
state: 'State',
actual_value: 'Actual Value',
excepted_value: 'Excepted Value',
check_type: 'Check Type',
operator: 'Operator',
threshold: 'Threshold',
failure_strategy: 'Failure Strategy',
excepted_value_type: 'Excepted Value Type',
error_output_path: 'Error Output Path',
username: 'Username',
create_time: 'Create Time',
update_time: 'Update Time',
undone: 'Undone',
success: 'Success',
failure: 'Failure',
single_table: 'Single Table',
single_table_custom_sql: 'Single Table Custom Sql',
multi_table_accuracy: 'Multi Table Accuracy',
multi_table_comparison: 'Multi Table Comparison',
expected_and_actual_or_expected: '(Expected - Actual) / Expected x 100%',
expected_and_actual: 'Expected - Actual',
actual_and_expected: 'Actual - Expected',
actual_or_expected: 'Actual / Expected x 100%'
},
rule: {
actions: 'Actions',
name: 'Rule Name',
type: 'Rule Type',
username: 'User Name',
create_time: 'Create Time',
update_time: 'Update Time',
input_item: 'Rule input item',
view_input_item: 'View input items',
input_item_title: 'Input item title',
input_item_placeholder: 'Input item placeholder',
input_item_type: 'Input item type',
src_connector_type: 'SrcConnType',
src_datasource_id: 'SrcSource',
src_table: 'SrcTable',
src_filter: 'SrcFilter',
src_field: 'SrcField',
statistics_name: 'ActualValName',
check_type: 'CheckType',
operator: 'Operator',
threshold: 'Threshold',
failure_strategy: 'FailureStrategy',
target_connector_type: 'TargetConnType',
target_datasource_id: 'TargetSourceId',
target_table: 'TargetTable',
target_filter: 'TargetFilter',
mapping_columns: 'OnClause',
statistics_execute_sql: 'ActualValExecSql',
comparison_name: 'ExceptedValName',
comparison_execute_sql: 'ExceptedValExecSql',
comparison_type: 'ExceptedValType',
writer_connector_type: 'WriterConnType',
writer_datasource_id: 'WriterSourceId',
target_field: 'TargetField',
field_length: 'FieldLength',
logic_operator: 'LogicOperator',
regexp_pattern: 'RegexpPattern',
deadline: 'Deadline',
datetime_format: 'DatetimeFormat',
enum_list: 'EnumList',
begin_time: 'BeginTime',
fix_value: 'FixValue',
null_check: 'NullCheck',
custom_sql: 'Custom Sql',
single_table: 'Single Table',
single_table_custom_sql: 'Single Table Custom Sql',
multi_table_accuracy: 'Multi Table Accuracy',
multi_table_value_comparison: 'Multi Table Compare',
field_length_check: 'FieldLengthCheck',
uniqueness_check: 'UniquenessCheck',
regexp_check: 'RegexpCheck',
timeliness_check: 'TimelinessCheck',
enumeration_check: 'EnumerationCheck',
table_count_check: 'TableCountCheck',
All: 'All',
FixValue: 'FixValue',
DailyAvg: 'DailyAvg',
WeeklyAvg: 'WeeklyAvg',
MonthlyAvg: 'MonthlyAvg',
Last7DayAvg: 'Last7DayAvg',
Last30DayAvg: 'Last30DayAvg',
SrcTableTotalRows: 'SrcTableTotalRows',
TargetTableTotalRows: 'TargetTableTotalRows'
}
}
const crontab = {
second: 'second',
minute: 'minute',
hour: 'hour',
day: 'day',
month: 'month',
year: 'year',
monday: 'Monday',
tuesday: 'Tuesday',
wednesday: 'Wednesday',
thursday: 'Thursday',
friday: 'Friday',
saturday: 'Saturday',
sunday: 'Sunday',
every_second: 'Every second',
every: 'Every',
second_carried_out: 'second carried out',
second_start: 'Start',
specific_second: 'Specific second(multiple)',
specific_second_tip: 'Please enter a specific second',
cycle_from: 'Cycle from',
to: 'to',
every_minute: 'Every minute',
minute_carried_out: 'minute carried out',
minute_start: 'Start',
specific_minute: 'Specific minute(multiple)',
specific_minute_tip: 'Please enter a specific minute',
every_hour: 'Every hour',
hour_carried_out: 'hour carried out',
hour_start: 'Start',
specific_hour: 'Specific hour(multiple)',
specific_hour_tip: 'Please enter a specific hour',
every_day: 'Every day',
week_carried_out: 'week carried out',
start: 'Start',
day_carried_out: 'day carried out',
day_start: 'Start',
specific_week: 'Specific day of the week(multiple)',
specific_week_tip: 'Please enter a specific week',
specific_day: 'Specific days(multiple)',
specific_day_tip: 'Please enter a days',
last_day_of_month: 'On the last day of the month',
last_work_day_of_month: 'On the last working day of the month',
last_of_month: 'At the last of this month',
before_end_of_month: 'Before the end of this month',
recent_business_day_to_month:
'The most recent business day (Monday to Friday) to this month',
in_this_months: 'In this months',
every_month: 'Every month',
month_carried_out: 'month carried out',
month_start: 'Start',
specific_month: 'Specific months(multiple)',
specific_month_tip: 'Please enter a months',
every_year: 'Every year',
year_carried_out: 'year carried out',
year_start: 'Start',
specific_year: 'Specific year(multiple)',
specific_year_tip: 'Please enter a year',
one_hour: 'hour',
one_day: 'day'
}
export default {
login,
modal,
theme,
userDropdown,
menu,
home,
password,
profile,
monitor,
resource,
project,
security,
datasource,
data_quality,
crontab
}
|
closed
|
apache/dolphinscheduler
|
https://github.com/apache/dolphinscheduler
| 8,831 |
[Bug-FE][UI Next][V1.0.0-Alpha]Language display error
|
### Search before asking
- [X] I had searched in the [issues](https://github.com/apache/dolphinscheduler/issues?q=is%3Aissue) and found no similar issues.
### What happened
Language display error
<img width="1916" alt="image" src="https://user-images.githubusercontent.com/76080484/157797986-010601d9-55fe-48d9-aea0-ad1db096c8e5.png">
### What you expected to happen
Correct language presentation
### How to reproduce
1、Login
2、Switch Chinese
3、Click project management
### Anything else
_No response_
### Version
dev
### Are you willing to submit PR?
- [ ] Yes I am willing to submit a PR!
### Code of Conduct
- [X] I agree to follow this project's [Code of Conduct](https://www.apache.org/foundation/policies/conduct)
|
https://github.com/apache/dolphinscheduler/issues/8831
|
https://github.com/apache/dolphinscheduler/pull/8925
|
276a68a23e791eac08626febfed14e1ef2c01dd9
|
4ec2db9e5c2a0a4c191cd2bbf7f42e77f771fc74
| 2022-03-11T03:59:25Z |
java
| 2022-03-16T06:30:30Z |
dolphinscheduler-ui-next/src/locales/modules/zh_CN.ts
|
/*
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership.
* The ASF licenses this file to You under the Apache License, Version 2.0
* (the "License"); you may not use this file except in compliance with
* the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
const login = {
test: '测试',
userName: '用户名',
userName_tips: '请输入用户名',
userPassword: '密码',
userPassword_tips: '请输入密码',
login: '登录'
}
const modal = {
cancel: '取消',
confirm: '确定'
}
const theme = {
light: '浅色',
dark: '深色'
}
const userDropdown = {
profile: '用户信息',
password: '密码管理',
logout: '退出登录'
}
const menu = {
home: '首页',
project: '项目管理',
resources: '资源中心',
datasource: '数据源中心',
monitor: '监控中心',
security: '安全中心',
project_overview: '项目概览',
workflow_relation: '工作流关系',
workflow: '工作流',
workflow_definition: '工作流定义',
workflow_instance: '工作流实例',
task: '任务',
task_instance: '任务实例',
task_definition: '任务定义',
file_manage: '文件管理',
udf_manage: 'UDF管理',
resource_manage: '资源管理',
function_manage: '函数管理',
service_manage: '服务管理',
master: 'Master',
worker: 'Worker',
db: 'DB',
statistical_manage: '统计管理',
statistics: 'Statistics',
audit_log: '审计日志',
tenant_manage: '租户管理',
user_manage: '用户管理',
alarm_group_manage: '告警组管理',
alarm_instance_manage: '告警实例管理',
worker_group_manage: 'Worker分组管理',
yarn_queue_manage: 'Yarn队列管理',
environment_manage: '环境管理',
k8s_namespace_manage: 'K8S命名空间管理',
token_manage: '令牌管理',
task_group_manage: '任务组管理',
task_group_option: '任务组配置',
task_group_queue: '任务组队列',
data_quality: '数据质量',
task_result: '任务结果',
rule: '规则管理'
}
const home = {
task_state_statistics: '任务状态统计',
process_state_statistics: '流程状态统计',
process_definition_statistics: '流程定义统计',
number: '数量',
state: '状态',
submitted_success: '提交成功',
running_execution: '正在运行',
ready_pause: '准备暂停',
pause: '暂停',
ready_stop: '准备停止',
stop: '停止',
failure: '失败',
success: '成功',
need_fault_tolerance: '需要容错',
kill: 'KILL',
waiting_thread: '等待线程',
waiting_depend: '等待依赖完成',
delay_execution: '延时执行',
forced_success: '强制成功',
serial_wait: '串行等待'
}
const password = {
edit_password: '修改密码',
password: '密码',
confirm_password: '确认密码',
password_tips: '请输入密码',
confirm_password_tips: '请输入确认密码',
two_password_entries_are_inconsistent: '两次密码输入不一致',
submit: '提交'
}
const profile = {
profile: '用户信息',
edit: '编辑',
username: '用户名',
email: '邮箱',
phone: '手机',
state: '状态',
permission: '权限',
create_time: '创建时间',
update_time: '更新时间',
administrator: '管理员',
ordinary_user: '普通用户',
edit_profile: '编辑用户',
username_tips: '请输入用户名',
email_tips: '请输入邮箱',
email_correct_tips: '请输入正确格式的邮箱',
phone_tips: '请输入手机号',
state_tips: '请选择状态',
enable: '启用',
disable: '禁用',
timezone_success: '时区更新成功',
please_select_timezone: '请选择时区'
}
const monitor = {
master: {
cpu_usage: '处理器使用量',
memory_usage: '内存使用量',
load_average: '平均负载量',
create_time: '创建时间',
last_heartbeat_time: '最后心跳时间',
directory_detail: '目录详情',
host: '主机',
directory: '注册目录'
},
worker: {
cpu_usage: '处理器使用量',
memory_usage: '内存使用量',
load_average: '平均负载量',
create_time: '创建时间',
last_heartbeat_time: '最后心跳时间',
directory_detail: '目录详情',
host: '主机',
directory: '注册目录'
},
db: {
health_state: '健康状态',
max_connections: '最大连接数',
threads_connections: '当前连接数',
threads_running_connections: '数据库当前活跃连接数'
},
statistics: {
command_number_of_waiting_for_running: '待执行的命令数',
failure_command_number: '执行失败的命令数',
tasks_number_of_waiting_running: '待运行任务数',
task_number_of_ready_to_kill: '待杀死任务数'
},
audit_log: {
user_name: '用户名称',
resource_type: '资源类型',
project_name: '项目名称',
operation_type: '操作类型',
create_time: '创建时间',
start_time: '开始时间',
end_time: '结束时间',
user_audit: '用户管理审计',
project_audit: '项目管理审计',
create: '创建',
update: '更新',
delete: '删除',
read: '读取'
}
}
const resource = {
file: {
file_manage: '文件管理',
create_folder: '创建文件夹',
create_file: '创建文件',
upload_files: '上传文件',
enter_keyword_tips: '请输入关键词',
name: '名称',
user_name: '所属用户',
whether_directory: '是否文件夹',
file_name: '文件名称',
description: '描述',
size: '大小',
update_time: '更新时间',
operation: '操作',
edit: '编辑',
rename: '重命名',
download: '下载',
delete: '删除',
yes: '是',
no: '否',
folder_name: '文件夹名称',
enter_name_tips: '请输入名称',
enter_description_tips: '请输入描述',
enter_content_tips: '请输入资源内容',
enter_suffix_tips: '请输入文件后缀',
file_format: '文件格式',
file_content: '文件内容',
delete_confirm: '确定删除吗?',
confirm: '确定',
cancel: '取消',
success: '成功',
file_details: '文件详情',
return: '返回',
save: '保存'
},
udf: {
udf_resources: 'UDF资源',
create_folder: '创建文件夹',
upload_udf_resources: '上传UDF资源',
udf_source_name: 'UDF资源名称',
whether_directory: '是否文件夹',
file_name: '文件名称',
file_size: '文件大小',
description: '描述',
create_time: '创建时间',
update_time: '更新时间',
operation: '操作',
yes: '是',
no: '否',
edit: '编辑',
download: '下载',
delete: '删除',
success: '成功',
folder_name: '文件夹名称',
upload: '上传',
upload_files: '上传文件',
file_upload: '文件上传',
delete_confirm: '确定删除吗?',
enter_keyword_tips: '请输入关键词',
enter_name_tips: '请输入名称',
enter_description_tips: '请输入描述'
},
function: {
udf_function: 'UDF函数',
create_udf_function: '创建UDF函数',
edit_udf_function: '编辑UDF函数',
udf_function_name: 'UDF函数名称',
class_name: '类名',
type: '类型',
description: '描述',
jar_package: 'jar包',
update_time: '更新时间',
operation: '操作',
rename: '重命名',
edit: '编辑',
delete: '删除',
success: '成功',
package_name: '包名类名',
udf_resources: 'UDF资源',
instructions: '使用说明',
upload_resources: '上传资源',
udf_resources_directory: 'UDF资源目录',
delete_confirm: '确定删除吗?',
enter_keyword_tips: '请输入关键词',
enter_udf_unction_name_tips: '请输入UDF函数名称',
enter_package_name_tips: '请输入包名类名',
enter_select_udf_resources_tips: '请选择UDF资源',
enter_select_udf_resources_directory_tips: '请选择UDF资源目录',
enter_instructions_tips: '请输入使用说明',
enter_name_tips: '请输入名称',
enter_description_tips: '请输入描述'
},
task_group_option: {
manage: '任务组管理',
option: '任务组配置',
create: '创建任务组',
edit: '编辑任务组',
delete: '删除任务组',
view_queue: '查看任务组队列',
switch_status: '切换任务组状态',
code: '任务组编号',
name: '任务组名称',
project_name: '项目名称',
resource_pool_size: '资源容量',
resource_used_pool_size: '已用资源',
desc: '描述信息',
status: '任务组状态',
enable_status: '启用',
disable_status: '不可用',
please_enter_name: '请输入任务组名称',
please_enter_desc: '请输入任务组描述',
please_enter_resource_pool_size: '请输入资源容量大小',
resource_pool_size_be_a_number: '资源容量大小必须大于等于1的数值',
please_select_project: '请选择项目',
create_time: '创建时间',
update_time: '更新时间',
actions: '操作',
please_enter_keywords: '请输入搜索关键词'
},
task_group_queue: {
actions: '操作',
task_name: '任务名称',
task_group_name: '任务组名称',
project_name: '项目名称',
process_name: '工作流名称',
process_instance_name: '工作流实例',
queue: '任务组队列',
priority: '组内优先级',
priority_be_a_number: '优先级必须是大于等于0的数值',
force_starting_status: '是否强制启动',
in_queue: '是否排队中',
task_status: '任务状态',
view_task_group_queue: '查看任务组队列',
the_status_of_waiting: '等待入队',
the_status_of_queuing: '排队中',
the_status_of_releasing: '已释放',
modify_priority: '修改优先级',
start_task: '强制启动',
priority_not_empty: '优先级不能为空',
priority_must_be_number: '优先级必须是数值',
please_select_task_name: '请选择节点名称',
create_time: '创建时间',
update_time: '更新时间',
edit_priority: '修改优先级'
}
}
const project = {
list: {
create_project: '创建项目',
edit_project: '编辑项目',
project_list: '项目列表',
project_tips: '请输入项目名称',
description_tips: '请输入项目描述',
username_tips: '请输入所属用户',
project_name: '项目名称',
project_description: '项目描述',
owned_users: '所属用户',
workflow_define_count: '工作流定义数',
process_instance_running_count: '正在运行的流程数',
description: '描述',
create_time: '创建时间',
update_time: '更新时间',
operation: '操作',
edit: '编辑',
delete: '删除',
confirm: '确定',
cancel: '取消',
delete_confirm: '确定删除吗?'
},
workflow: {
workflow_relation: '工作流关系',
create_workflow: '创建工作流',
import_workflow: '导入工作流',
workflow_name: '工作流名称',
current_selection: '当前选择',
online: '已上线',
offline: '已下线',
refresh: '刷新',
show_hide_label: '显示 / 隐藏标签',
workflow_offline: '工作流下线',
schedule_offline: '调度下线',
schedule_start_time: '定时开始时间',
schedule_end_time: '定时结束时间',
crontab_expression: 'Crontab',
workflow_publish_status: '工作流上线状态',
schedule_publish_status: '定时状态',
workflow_definition: '工作流定义',
workflow_instance: '工作流实例',
status: '状态',
create_time: '创建时间',
update_time: '更新时间',
description: '描述',
create_user: '创建用户',
modify_user: '修改用户',
operation: '操作',
edit: '编辑',
confirm: '确定',
cancel: '取消',
start: '运行',
timing: '定时',
timezone: '时区',
up_line: '上线',
down_line: '下线',
copy_workflow: '复制工作流',
cron_manage: '定时管理',
delete: '删除',
tree_view: '工作流树形图',
tree_limit: '限制大小',
export: '导出',
version_info: '版本信息',
version: '版本',
file_upload: '文件上传',
upload_file: '上传文件',
upload: '上传',
file_name: '文件名称',
success: '成功',
set_parameters_before_starting: '启动前请先设置参数',
set_parameters_before_timing: '定时前请先设置参数',
start_and_stop_time: '起止时间',
next_five_execution_times: '接下来五次执行时间',
execute_time: '执行时间',
failure_strategy: '失败策略',
notification_strategy: '通知策略',
workflow_priority: '流程优先级',
worker_group: 'Worker分组',
environment_name: '环境名称',
alarm_group: '告警组',
complement_data: '补数',
startup_parameter: '启动参数',
whether_dry_run: '是否空跑',
continue: '继续',
end: '结束',
none_send: '都不发',
success_send: '成功发',
failure_send: '失败发',
all_send: '成功或失败都发',
whether_complement_data: '是否是补数',
schedule_date: '调度日期',
mode_of_execution: '执行方式',
serial_execution: '串行执行',
parallel_execution: '并行执行',
parallelism: '并行度',
custom_parallelism: '自定义并行度',
please_enter_parallelism: '请输入并行度',
please_choose: '请选择',
start_time: '开始时间',
end_time: '结束时间',
crontab: 'Crontab',
delete_confirm: '确定删除吗?',
enter_name_tips: '请输入名称',
switch_version: '切换到该版本',
confirm_switch_version: '确定切换到该版本吗?',
current_version: '当前版本',
run_type: '运行类型',
scheduling_time: '调度时间',
duration: '运行时长',
run_times: '运行次数',
fault_tolerant_sign: '容错标识',
dry_run_flag: '空跑标识',
executor: '执行用户',
host: 'Host',
start_process: '启动工作流',
execute_from_the_current_node: '从当前节点开始执行',
recover_tolerance_fault_process: '恢复被容错的工作流',
resume_the_suspension_process: '恢复运行流程',
execute_from_the_failed_nodes: '从失败节点开始执行',
scheduling_execution: '调度执行',
rerun: '重跑',
stop: '停止',
pause: '暂停',
recovery_waiting_thread: '恢复等待线程',
recover_serial_wait: '串行恢复',
recovery_suspend: '恢复运行',
recovery_failed: '恢复失败',
gantt: '甘特图',
name: '名称',
all_status: '全部状态',
submit_success: '提交成功',
running: '正在运行',
ready_to_pause: '准备暂停',
ready_to_stop: '准备停止',
failed: '失败',
need_fault_tolerance: '需要容错',
kill: 'Kill',
waiting_for_thread: '等待线程',
waiting_for_dependence: '等待依赖',
waiting_for_dependency_to_complete: '等待依赖完成',
delay_execution: '延时执行',
forced_success: '强制成功',
serial_wait: '串行等待',
executing: '正在执行',
startup_type: '启动类型',
complement_range: '补数范围',
parameters_variables: '参数变量',
global_parameters: '全局参数',
local_parameters: '局部参数',
type: '类型',
retry_count: '重试次数',
submit_time: '提交时间',
refresh_status_succeeded: '刷新状态成功',
view_log: '查看日志',
update_log_success: '更新日志成功',
no_more_log: '暂无更多日志',
no_log: '暂无日志',
loading_log: '正在努力请求日志中...',
close: '关闭',
download_log: '下载日志',
refresh_log: '刷新日志',
enter_full_screen: '进入全屏',
cancel_full_screen: '取消全屏',
task_state: '任务状态',
mode_of_dependent: '依赖模式',
open: '打开'
},
task: {
task_name: '任务名称',
task_type: '任务类型',
create_task: '创建任务',
workflow_instance: '工作流实例',
workflow_name: '工作流名称',
workflow_name_tips: '请选择工作流名称',
workflow_state: '工作流状态',
version: '版本',
current_version: '当前版本',
switch_version: '切换到该版本',
confirm_switch_version: '确定切换到该版本吗?',
description: '描述',
move: '移动',
upstream_tasks: '上游任务',
executor: '执行用户',
node_type: '节点类型',
state: '状态',
submit_time: '提交时间',
start_time: '开始时间',
create_time: '创建时间',
update_time: '更新时间',
end_time: '结束时间',
duration: '运行时间',
retry_count: '重试次数',
dry_run_flag: '空跑标识',
host: '主机',
operation: '操作',
edit: '编辑',
delete: '删除',
delete_confirm: '确定删除吗?',
submitted_success: '提交成功',
running_execution: '正在运行',
ready_pause: '准备暂停',
pause: '暂停',
ready_stop: '准备停止',
stop: '停止',
failure: '失败',
success: '成功',
need_fault_tolerance: '需要容错',
kill: 'KILL',
waiting_thread: '等待线程',
waiting_depend: '等待依赖完成',
delay_execution: '延时执行',
forced_success: '强制成功',
view_log: '查看日志',
download_log: '下载日志',
refresh: '刷新'
},
dag: {
create: '创建工作流',
search: '搜索',
download_png: '下载工作流图片',
fullscreen_open: '全屏',
fullscreen_close: '退出全屏',
save: '保存',
close: '关闭',
format: '格式化',
refresh_dag_status: '刷新DAG状态',
layout_type: '布局类型',
grid_layout: '网格布局',
dagre_layout: '层次布局',
rows: '行数',
cols: '列数',
copy_success: '复制成功',
workflow_name: '工作流名称',
description: '描述',
tenant: '租户',
timeout_alert: '超时告警',
global_variables: '全局变量',
basic_info: '基本信息',
minute: '分',
key: '键',
value: '值',
success: '成功',
delete_cell: '删除选中的线或节点',
online_directly: '是否上线流程定义',
update_directly: '是否更新流程定义',
dag_name_empty: 'DAG图名称不能为空',
positive_integer: '请输入大于 0 的正整数',
prop_empty: '自定义参数prop不能为空',
prop_repeat: 'prop中有重复',
node_not_created: '未创建节点保存失败',
copy_name: '复制名称',
view_variables: '查看变量',
startup_parameter: '启动参数'
},
node: {
current_node_settings: '当前节点设置',
instructions: '使用说明',
view_history: '查看历史',
view_log: '查看日志',
enter_this_child_node: '进入该子节点',
name: '节点名称',
name_tips: '请输入名称(必填)',
task_type: '任务类型',
task_type_tips: '请选择任务类型(必选)',
process_name: '工作流名称',
process_name_tips: '请选择工作流(必选)',
child_node: '子节点',
enter_child_node: '进入该子节点',
run_flag: '运行标志',
normal: '正常',
prohibition_execution: '禁止执行',
description: '描述',
description_tips: '请输入描述',
task_priority: '任务优先级',
worker_group: 'Worker分组',
worker_group_tips: '该Worker分组已经不存在,请选择正确的Worker分组!',
environment_name: '环境名称',
task_group_name: '任务组名称',
task_group_queue_priority: '组内优先级',
number_of_failed_retries: '失败重试次数',
times: '次',
failed_retry_interval: '失败重试间隔',
minute: '分',
delay_execution_time: '延时执行时间',
state: '状态',
branch_flow: '分支流转',
cancel: '取消',
loading: '正在努力加载中...',
confirm: '确定',
success: '成功',
failed: '失败',
backfill_tips: '新创建子工作流还未执行,不能进入子工作流',
task_instance_tips: '该任务还未执行,不能进入子工作流',
branch_tips: '成功分支流转和失败分支流转不能选择同一个节点',
timeout_alarm: '超时告警',
timeout_strategy: '超时策略',
timeout_strategy_tips: '超时策略必须选一个',
timeout_failure: '超时失败',
timeout_period: '超时时长',
timeout_period_tips: '超时时长必须为正整数',
script: '脚本',
script_tips: '请输入脚本(必填)',
resources: '资源',
resources_tips: '请选择资源',
no_resources_tips: '请删除所有未授权或已删除资源',
useless_resources_tips: '未授权或已删除资源',
custom_parameters: '自定义参数',
copy_failed: '该浏览器不支持自动复制',
prop_tips: 'prop(必填)',
prop_repeat: 'prop中有重复',
value_tips: 'value(选填)',
value_required_tips: 'value(必填)',
pre_tasks: '前置任务',
program_type: '程序类型',
spark_version: 'Spark版本',
main_class: '主函数的Class',
main_class_tips: '请填写主函数的Class',
main_package: '主程序包',
main_package_tips: '请选择主程序包',
deploy_mode: '部署方式',
app_name: '任务名称',
app_name_tips: '请输入任务名称(选填)',
driver_cores: 'Driver核心数',
driver_cores_tips: '请输入Driver核心数',
driver_memory: 'Driver内存数',
driver_memory_tips: '请输入Driver内存数',
executor_number: 'Executor数量',
executor_number_tips: '请输入Executor数量',
executor_memory: 'Executor内存数',
executor_memory_tips: '请输入Executor内存数',
executor_cores: 'Executor核心数',
executor_cores_tips: '请输入Executor核心数',
main_arguments: '主程序参数',
main_arguments_tips: '请输入主程序参数',
option_parameters: '选项参数',
option_parameters_tips: '请输入选项参数',
positive_integer_tips: '应为正整数',
flink_version: 'Flink版本',
job_manager_memory: 'JobManager内存数',
job_manager_memory_tips: '请输入JobManager内存数',
task_manager_memory: 'TaskManager内存数',
task_manager_memory_tips: '请输入TaskManager内存数',
slot_number: 'Slot数量',
slot_number_tips: '请输入Slot数量',
parallelism: '并行度',
custom_parallelism: '自定义并行度',
parallelism_tips: '请输入并行度',
parallelism_number_tips: '并行度必须为正整数',
parallelism_complement_tips:
'如果存在大量任务需要补数时,可以利用自定义并行度将补数的任务线程设置成合理的数值,避免对服务器造成过大的影响',
task_manager_number: 'TaskManager数量',
task_manager_number_tips: '请输入TaskManager数量',
http_url: '请求地址',
http_url_tips: '请填写请求地址(必填)',
http_method: '请求类型',
http_parameters: '请求参数',
http_check_condition: '校验条件',
http_condition: '校验内容',
http_condition_tips: '请填写校验内容',
timeout_settings: '超时设置',
connect_timeout: '连接超时',
ms: '毫秒',
socket_timeout: 'Socket超时',
status_code_default: '默认响应码200',
status_code_custom: '自定义响应码',
body_contains: '内容包含',
body_not_contains: '内容不包含',
http_parameters_position: '参数位置',
target_task_name: '目标任务名',
target_task_name_tips: '请输入Pigeon任务名',
datasource_type: '数据源类型',
datasource_instances: '数据源实例',
sql_type: 'SQL类型',
sql_type_query: '查询',
sql_type_non_query: '非查询',
sql_statement: 'SQL语句',
pre_sql_statement: '前置SQL语句',
post_sql_statement: '后置SQL语句',
sql_input_placeholder: '请输入非查询SQL语句',
sql_empty_tips: '语句不能为空',
procedure_method: 'SQL语句',
procedure_method_tips: '请输入存储脚本',
procedure_method_snippet:
'--请输入存储脚本 \n\n--调用存储过程: call <procedure-name>[(<arg1>,<arg2>, ...)] \n\n--调用存储函数:?= call <procedure-name>[(<arg1>,<arg2>, ...)]',
start: '运行',
edit: '编辑',
copy: '复制节点',
delete: '删除',
custom_job: '自定义任务',
custom_script: '自定义脚本',
sqoop_job_name: '任务名称',
sqoop_job_name_tips: '请输入任务名称(必填)',
direct: '流向',
hadoop_custom_params: 'Hadoop参数',
sqoop_advanced_parameters: 'Sqoop参数',
data_source: '数据来源',
type: '类型',
datasource: '数据源',
datasource_tips: '请选择数据源',
model_type: '模式',
form: '表单',
table: '表名',
table_tips: '请输入Mysql表名(必填)',
column_type: '列类型',
all_columns: '全表导入',
some_columns: '选择列',
column: '列',
column_tips: '请输入列名,用 , 隔开',
database: '数据库',
database_tips: '请输入Hive数据库(必填)',
hive_table_tips: '请输入Hive表名(必填)',
hive_partition_keys: 'Hive 分区键',
hive_partition_keys_tips: '请输入分区键',
hive_partition_values: 'Hive 分区值',
hive_partition_values_tips: '请输入分区值',
export_dir: '数据源路径',
export_dir_tips: '请输入数据源路径(必填)',
sql_statement_tips: 'SQL语句(必填)',
map_column_hive: 'Hive类型映射',
map_column_java: 'Java类型映射',
data_target: '数据目的',
create_hive_table: '是否创建新表',
drop_delimiter: '是否删除分隔符',
over_write_src: '是否覆盖数据源',
hive_target_dir: 'Hive目标路径',
hive_target_dir_tips: '请输入Hive临时目录',
replace_delimiter: '替换分隔符',
replace_delimiter_tips: '请输入替换分隔符',
target_dir: '目标路径',
target_dir_tips: '请输入目标路径(必填)',
delete_target_dir: '是否删除目录',
compression_codec: '压缩类型',
file_type: '保存格式',
fields_terminated: '列分隔符',
fields_terminated_tips: '请输入列分隔符',
lines_terminated: '行分隔符',
lines_terminated_tips: '请输入行分隔符',
is_update: '是否更新',
update_key: '更新列',
update_key_tips: '请输入更新列',
update_mode: '更新类型',
only_update: '只更新',
allow_insert: '无更新便插入',
concurrency: '并发度',
concurrency_tips: '请输入并发度',
sea_tunnel_master: 'Master',
sea_tunnel_master_url: 'Master URL',
sea_tunnel_queue: '队列',
sea_tunnel_master_url_tips: '请直接填写地址,例如:127.0.0.1:7077',
switch_condition: '条件',
switch_branch_flow: '分支流转',
and: '且',
or: '或',
datax_custom_template: '自定义模板',
datax_json_template: 'JSON',
datax_target_datasource_type: '目标源类型',
datax_target_database: '目标源实例',
datax_target_table: '目标表',
datax_target_table_tips: '请输入目标表名',
datax_target_database_pre_sql: '目标库前置SQL',
datax_target_database_post_sql: '目标库后置SQL',
datax_non_query_sql_tips: '请输入非查询SQL语句',
datax_job_speed_byte: '限流(字节数)',
datax_job_speed_byte_info: '(KB,0代表不限制)',
datax_job_speed_record: '限流(记录数)',
datax_job_speed_record_info: '(0代表不限制)',
datax_job_runtime_memory: '运行内存',
datax_job_runtime_memory_xms: '最小内存',
datax_job_runtime_memory_xmx: '最大内存',
datax_job_runtime_memory_unit: 'G',
current_hour: '当前小时',
last_1_hour: '前1小时',
last_2_hour: '前2小时',
last_3_hour: '前3小时',
last_24_hour: '前24小时',
today: '今天',
last_1_days: '昨天',
last_2_days: '前两天',
last_3_days: '前三天',
last_7_days: '前七天',
this_week: '本周',
last_week: '上周',
last_monday: '上周一',
last_tuesday: '上周二',
last_wednesday: '上周三',
last_thursday: '上周四',
last_friday: '上周五',
last_saturday: '上周六',
last_sunday: '上周日',
this_month: '本月',
last_month: '上月',
last_month_begin: '上月初',
last_month_end: '上月末',
month: '月',
week: '周',
day: '日',
hour: '时',
add_dependency: '添加依赖',
waiting_dependent_start: '等待依赖启动',
check_interval: '检查间隔',
waiting_dependent_complete: '等待依赖完成',
rule_name: '规则名称',
null_check: '空值检测',
custom_sql: '自定义SQL',
multi_table_accuracy: '多表准确性',
multi_table_value_comparison: '两表值比对',
field_length_check: '字段长度校验',
uniqueness_check: '唯一性校验',
regexp_check: '正则表达式',
timeliness_check: '及时性校验',
enumeration_check: '枚举值校验',
table_count_check: '表行数校验',
src_connector_type: '源数据类型',
src_datasource_id: '源数据源',
src_table: '源数据表',
src_filter: '源表过滤条件',
src_field: '源表检测列',
statistics_name: '实际值名',
check_type: '校验方式',
operator: '校验操作符',
threshold: '阈值',
failure_strategy: '失败策略',
target_connector_type: '目标数据类型',
target_datasource_id: '目标数据源',
target_table: '目标数据表',
target_filter: '目标表过滤条件',
mapping_columns: 'ON语句',
statistics_execute_sql: '实际值计算SQL',
comparison_name: '期望值名',
comparison_execute_sql: '期望值计算SQL',
comparison_type: '期望值类型',
writer_connector_type: '输出数据类型',
writer_datasource_id: '输出数据源',
target_field: '目标表检测列',
field_length: '字段长度限制',
logic_operator: '逻辑操作符',
regexp_pattern: '正则表达式',
deadline: '截止时间',
datetime_format: '时间格式',
enum_list: '枚举值列表',
begin_time: '起始时间',
fix_value: '固定值',
required: '必填',
emr_flow_define_json: 'jobFlowDefineJson',
emr_flow_define_json_tips: '请输入工作流定义'
}
}
const security = {
tenant: {
tenant_manage: '租户管理',
create_tenant: '创建租户',
search_tips: '请输入关键词',
tenant_code: '操作系统租户',
description: '描述',
queue_name: '队列',
create_time: '创建时间',
update_time: '更新时间',
actions: '操作',
edit_tenant: '编辑租户',
tenant_code_tips: '请输入操作系统租户',
queue_name_tips: '请选择队列',
description_tips: '请输入描述',
delete_confirm: '确定删除吗?',
edit: '编辑',
delete: '删除'
},
alarm_group: {
create_alarm_group: '创建告警组',
edit_alarm_group: '编辑告警组',
search_tips: '请输入关键词',
alert_group_name_tips: '请输入告警组名称',
alarm_plugin_instance: '告警组实例',
alarm_plugin_instance_tips: '请选择告警组实例',
alarm_group_description_tips: '请输入告警组描述',
alert_group_name: '告警组名称',
alarm_group_description: '告警组描述',
create_time: '创建时间',
update_time: '更新时间',
operation: '操作',
delete_confirm: '确定删除吗?',
edit: '编辑',
delete: '删除'
},
worker_group: {
create_worker_group: '创建Worker分组',
edit_worker_group: '编辑Worker分组',
search_tips: '请输入关键词',
operation: '操作',
delete_confirm: '确定删除吗?',
edit: '编辑',
delete: '删除',
group_name: '分组名称',
group_name_tips: '请输入分组名称',
worker_addresses: 'Worker地址',
worker_addresses_tips: '请选择Worker地址',
create_time: '创建时间',
update_time: '更新时间'
},
yarn_queue: {
create_queue: '创建队列',
edit_queue: '编辑队列',
search_tips: '请输入关键词',
queue_name: '队列名',
queue_value: '队列值',
create_time: '创建时间',
update_time: '更新时间',
operation: '操作',
edit: '编辑',
queue_name_tips: '请输入队列名',
queue_value_tips: '请输入队列值'
},
environment: {
create_environment: '创建环境',
edit_environment: '编辑环境',
search_tips: '请输入关键词',
edit: '编辑',
delete: '删除',
environment_name: '环境名称',
environment_config: '环境配置',
environment_desc: '环境描述',
worker_groups: 'Worker分组',
create_time: '创建时间',
update_time: '更新时间',
operation: '操作',
delete_confirm: '确定删除吗?',
environment_name_tips: '请输入环境名',
environment_config_tips: '请输入环境配置',
environment_description_tips: '请输入环境描述',
worker_group_tips: '请选择Worker分组'
},
token: {
create_token: '创建令牌',
edit_token: '编辑令牌',
search_tips: '请输入关键词',
user: '用户',
user_tips: '请选择用户',
token: '令牌',
token_tips: '请输入令牌',
expiration_time: '失效时间',
expiration_time_tips: '请选择失效时间',
create_time: '创建时间',
update_time: '更新时间',
operation: '操作',
edit: '编辑',
delete: '删除',
delete_confirm: '确定删除吗?'
},
user: {
user_manage: '用户管理',
create_user: '创建用户',
update_user: '更新用户',
delete_user: '删除用户',
delete_confirm: '确定删除吗?',
project: '项目',
resource: '资源',
file_resource: '文件资源',
udf_resource: 'UDF资源',
datasource: '数据源',
udf: 'UDF函数',
authorize_project: '项目授权',
authorize_resource: '资源授权',
authorize_datasource: '数据源授权',
authorize_udf: 'UDF函数授权',
username: '用户名',
username_exists: '用户名已存在',
username_tips: '请输入用户名',
user_password: '密码',
user_password_tips: '请输入包含字母和数字,长度在6~20之间的密码',
user_type: '用户类型',
ordinary_user: '普通用户',
administrator: '管理员',
tenant_code: '租户',
tenant_id_tips: '请选择租户',
queue: '队列',
queue_tips: '默认为租户关联队列',
email: '邮件',
email_empty_tips: '请输入邮箱',
emial_correct_tips: '请输入正确的邮箱格式',
phone: '手机',
phone_empty_tips: '请输入手机号码',
phone_correct_tips: '请输入正确的手机格式',
state: '状态',
state_enabled: '启用',
state_disabled: '停用',
create_time: '创建时间',
update_time: '更新时间',
operation: '操作',
edit: '编辑',
delete: '删除',
authorize: '授权',
save_error_msg: '保存失败,请重试',
delete_error_msg: '删除失败,请重试',
auth_error_msg: '授权失败,请重试',
auth_success_msg: '授权成功',
enable: '启用',
disable: '停用'
},
alarm_instance: {
search_input_tips: '请输入关键字',
alarm_instance_manage: '告警实例管理',
alarm_instance: '告警实例',
alarm_instance_name: '告警实例名称',
alarm_instance_name_tips: '请输入告警实例名称',
alarm_plugin_name: '告警插件名称',
create_time: '创建时间',
update_time: '更新时间',
operation: '操作',
edit: '编辑',
delete: '删除',
confirm: '确定',
cancel: '取消',
submit: '提交',
create: '创建',
select_plugin: '选择插件',
select_plugin_tips: '请选择告警插件',
instance_parameter_exception: '实例参数异常',
WebHook: 'Web钩子',
webHook: 'Web钩子',
IsEnableProxy: '启用代理',
Proxy: '代理',
Port: '端口',
User: '用户',
corpId: '企业ID',
secret: '密钥',
Secret: '密钥',
users: '群员',
userSendMsg: '群员信息',
agentId: '应用ID',
showType: '内容展示类型',
receivers: '收件人',
receiverCcs: '抄送人',
serverHost: 'SMTP服务器',
serverPort: 'SMTP端口',
sender: '发件人',
enableSmtpAuth: '请求认证',
Password: '密码',
starttlsEnable: 'STARTTLS连接',
sslEnable: 'SSL连接',
smtpSslTrust: 'SSL证书信任',
url: 'URL',
requestType: '请求方式',
headerParams: '请求头',
bodyParams: '请求体',
contentField: '内容字段',
Keyword: '关键词',
userParams: '自定义参数',
path: '脚本路径',
type: '类型',
sendType: '发送类型',
username: '用户名',
botToken: '机器人Token',
chatId: '频道ID',
parseMode: '解析类型'
},
k8s_namespace: {
create_namespace: '创建命名空间',
edit_namespace: '编辑命名空间',
search_tips: '请输入关键词',
k8s_namespace: 'K8S命名空间',
k8s_namespace_tips: '请输入k8s命名空间',
k8s_cluster: 'K8S集群',
k8s_cluster_tips: '请输入k8s集群',
owner: '负责人',
owner_tips: '请输入负责人',
tag: '标签',
tag_tips: '请输入标签',
limit_cpu: '最大CPU',
limit_cpu_tips: '请输入最大CPU',
limit_memory: '最大内存',
limit_memory_tips: '请输入最大内存',
create_time: '创建时间',
update_time: '更新时间',
operation: '操作',
edit: '编辑',
delete: '删除',
delete_confirm: '确定删除吗?'
}
}
const datasource = {
datasource: '数据源',
create_datasource: '创建数据源',
search_input_tips: '请输入关键字',
datasource_name: '数据源名称',
datasource_name_tips: '请输入数据源名称',
datasource_user_name: '所属用户',
datasource_type: '数据源类型',
datasource_parameter: '数据源参数',
description: '描述',
description_tips: '请输入描述',
create_time: '创建时间',
update_time: '更新时间',
operation: '操作',
click_to_view: '点击查看',
delete: '删除',
confirm: '确定',
cancel: '取消',
create: '创建',
edit: '编辑',
success: '成功',
test_connect: '测试连接',
ip: 'IP主机名',
ip_tips: '请输入IP主机名',
port: '端口',
port_tips: '请输入端口',
database_name: '数据库名',
database_name_tips: '请输入数据库名',
oracle_connect_type: '服务名或SID',
oracle_connect_type_tips: '请选择服务名或SID',
oracle_service_name: '服务名',
oracle_sid: 'SID',
jdbc_connect_parameters: 'jdbc连接参数',
principal_tips: '请输入Principal',
krb5_conf_tips: '请输入kerberos认证参数 java.security.krb5.conf',
keytab_username_tips: '请输入kerberos认证参数 login.user.keytab.username',
keytab_path_tips: '请输入kerberos认证参数 login.user.keytab.path',
format_tips: '请输入格式为',
connection_parameter: '连接参数',
user_name: '用户名',
user_name_tips: '请输入用户名',
user_password: '密码',
user_password_tips: '请输入密码'
}
const data_quality = {
task_result: {
task_name: '任务名称',
workflow_instance: '工作流实例',
rule_type: '规则类型',
rule_name: '规则名称',
state: '状态',
actual_value: '实际值',
excepted_value: '期望值',
check_type: '检测类型',
operator: '操作符',
threshold: '阈值',
failure_strategy: '失败策略',
excepted_value_type: '期望值类型',
error_output_path: '错误数据路径',
username: '用户名',
create_time: '创建时间',
update_time: '更新时间',
undone: '未完成',
success: '成功',
failure: '失败',
single_table: '单表检测',
single_table_custom_sql: '自定义SQL',
multi_table_accuracy: '多表准确性',
multi_table_comparison: '两表值对比',
expected_and_actual_or_expected: '(期望值-实际值)/实际值 x 100%',
expected_and_actual: '期望值-实际值',
actual_and_expected: '实际值-期望值',
actual_or_expected: '实际值/期望值 x 100%'
},
rule: {
actions: '操作',
name: '规则名称',
type: '规则类型',
username: '用户名',
create_time: '创建时间',
update_time: '更新时间',
input_item: '规则输入项',
view_input_item: '查看规则输入项信息',
input_item_title: '输入项标题',
input_item_placeholder: '输入项占位符',
input_item_type: '输入项类型',
src_connector_type: '源数据类型',
src_datasource_id: '源数据源',
src_table: '源数据表',
src_filter: '源表过滤条件',
src_field: '源表检测列',
statistics_name: '实际值名',
check_type: '校验方式',
operator: '校验操作符',
threshold: '阈值',
failure_strategy: '失败策略',
target_connector_type: '目标数据类型',
target_datasource_id: '目标数据源',
target_table: '目标数据表',
target_filter: '目标表过滤条件',
mapping_columns: 'ON语句',
statistics_execute_sql: '实际值计算SQL',
comparison_name: '期望值名',
comparison_execute_sql: '期望值计算SQL',
comparison_type: '期望值类型',
writer_connector_type: '输出数据类型',
writer_datasource_id: '输出数据源',
target_field: '目标表检测列',
field_length: '字段长度限制',
logic_operator: '逻辑操作符',
regexp_pattern: '正则表达式',
deadline: '截止时间',
datetime_format: '时间格式',
enum_list: '枚举值列表',
begin_time: '起始时间',
fix_value: '固定值',
null_check: '空值检测',
custom_sql: '自定义SQL',
single_table: '单表检测',
multi_table_accuracy: '多表准确性',
multi_table_value_comparison: '两表值比对',
field_length_check: '字段长度校验',
uniqueness_check: '唯一性校验',
regexp_check: '正则表达式',
timeliness_check: '及时性校验',
enumeration_check: '枚举值校验',
table_count_check: '表行数校验',
all: '全部',
FixValue: '固定值',
DailyAvg: '日均值',
WeeklyAvg: '周均值',
MonthlyAvg: '月均值',
Last7DayAvg: '最近7天均值',
Last30DayAvg: '最近30天均值',
SrcTableTotalRows: '源表总行数',
TargetTableTotalRows: '目标表总行数'
}
}
const crontab = {
second: '秒',
minute: '分',
hour: '时',
day: '天',
month: '月',
year: '年',
monday: '星期一',
tuesday: '星期二',
wednesday: '星期三',
thursday: '星期四',
friday: '星期五',
saturday: '星期六',
sunday: '星期天',
every_second: '每一秒钟',
every: '每隔',
second_carried_out: '秒执行 从',
second_start: '秒开始',
specific_second: '具体秒数(可多选)',
specific_second_tip: '请选择具体秒数',
cycle_from: '周期从',
to: '到',
every_minute: '每一分钟',
minute_carried_out: '分执行 从',
minute_start: '分开始',
specific_minute: '具体分钟数(可多选)',
specific_minute_tip: '请选择具体分钟数',
every_hour: '每一小时',
hour_carried_out: '小时执行 从',
hour_start: '小时开始',
specific_hour: '具体小时数(可多选)',
specific_hour_tip: '请选择具体小时数',
every_day: '每一天',
week_carried_out: '周执行 从',
start: '开始',
day_carried_out: '天执行 从',
day_start: '天开始',
specific_week: '具体星期几(可多选)',
specific_week_tip: '请选择具体周几',
specific_day: '具体天数(可多选)',
specific_day_tip: '请选择具体天数',
last_day_of_month: '在这个月的最后一天',
last_work_day_of_month: '在这个月的最后一个工作日',
last_of_month: '在这个月的最后一个',
before_end_of_month: '在本月底前',
recent_business_day_to_month: '最近的工作日(周一至周五)至本月',
in_this_months: '在这个月的第',
every_month: '每一月',
month_carried_out: '月执行 从',
month_start: '月开始',
specific_month: '具体月数(可多选)',
specific_month_tip: '请选择具体月数',
every_year: '每一年',
year_carried_out: '年执行 从',
year_start: '年开始',
specific_year: '具体年数(可多选)',
specific_year_tip: '请选择具体年数',
one_hour: '小时',
one_day: '日'
}
export default {
login,
modal,
theme,
userDropdown,
menu,
home,
password,
profile,
monitor,
resource,
project,
security,
datasource,
data_quality,
crontab
}
|
closed
|
apache/dolphinscheduler
|
https://github.com/apache/dolphinscheduler
| 8,923 |
[Bug] [UI Next][V1.0.0-Alpha] pre task can not be display when creating task in dag page
|
### Search before asking
- [X] I had searched in the [issues](https://github.com/apache/dolphinscheduler/issues?q=is%3Aissue) and found no similar issues.
### What happened

### What you expected to happen
above.
### How to reproduce
above.
### Anything else
_No response_
### Version
dev
### Are you willing to submit PR?
- [ ] Yes I am willing to submit a PR!
### Code of Conduct
- [X] I agree to follow this project's [Code of Conduct](https://www.apache.org/foundation/policies/conduct)
|
https://github.com/apache/dolphinscheduler/issues/8923
|
https://github.com/apache/dolphinscheduler/pull/8928
|
4ec2db9e5c2a0a4c191cd2bbf7f42e77f771fc74
|
9cf5c6d00eb70166eeb58d750910935e60df6acd
| 2022-03-16T03:25:59Z |
java
| 2022-03-16T08:04:38Z |
dolphinscheduler-ui-next/src/views/projects/workflow/components/dag/dag-save-modal.tsx
|
/*
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership.
* The ASF licenses this file to You under the Apache License, Version 2.0
* (the "License"); you may not use this file except in compliance with
* the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
import { defineComponent, PropType, ref, computed, onMounted, watch } from 'vue'
import Modal from '@/components/modal'
import { useI18n } from 'vue-i18n'
import {
NForm,
NFormItem,
NInput,
NSelect,
NSwitch,
NInputNumber,
NDynamicInput,
NCheckbox
} from 'naive-ui'
import { queryTenantList } from '@/service/modules/tenants'
import { SaveForm, WorkflowDefinition, WorkflowInstance } from './types'
import { useRoute } from 'vue-router'
import { verifyName } from '@/service/modules/process-definition'
import './x6-style.scss'
import { positiveIntegerRegex } from '@/utils/regex'
const props = {
visible: {
type: Boolean as PropType<boolean>,
default: false
},
// If this prop is passed, it means from definition detail
definition: {
type: Object as PropType<WorkflowDefinition>,
default: undefined
},
instance: {
type: Object as PropType<WorkflowInstance>,
default: undefined
}
}
interface Tenant {
tenantCode: string
id: number
}
export default defineComponent({
name: 'dag-save-modal',
props,
emits: ['update:show', 'save'],
setup(props, context) {
const route = useRoute()
const { t } = useI18n()
const projectCode = Number(route.params.projectCode)
const tenants = ref<Tenant[]>([])
const tenantsDropdown = computed(() => {
if (tenants.value) {
return tenants.value
.map((t) => ({
label: t.tenantCode,
value: t.tenantCode
}))
.concat({ label: 'default', value: 'default' })
}
return []
})
onMounted(() => {
queryTenantList().then((res: any) => {
tenants.value = res
})
})
const formValue = ref<SaveForm>({
name: '',
description: '',
tenantCode: 'default',
timeoutFlag: false,
timeout: 0,
globalParams: [],
release: false,
sync: false
})
const formRef = ref()
const rule = {
name: {
required: true,
message: t('project.dag.dag_name_empty')
},
timeout: {
validator() {
if (
formValue.value.timeoutFlag &&
!positiveIntegerRegex.test(String(formValue.value.timeout))
) {
return new Error(t('project.dag.positive_integer'))
}
}
},
globalParams: {
validator() {
const props = new Set()
for (const param of formValue.value.globalParams) {
const prop = param.value
if (!prop) {
return new Error(t('project.dag.prop_empty'))
}
if (props.has(prop)) {
return new Error(t('project.dag.prop_repeat'))
}
props.add(prop)
}
}
}
}
const onSubmit = () => {
formRef.value.validate(async (valid: any) => {
if (!valid) {
const params = {
name: formValue.value.name
}
if (
props.definition?.processDefinition.name !== formValue.value.name
) {
verifyName(params, projectCode).then(() =>
context.emit('save', formValue.value)
)
} else {
context.emit('save', formValue.value)
}
}
})
}
const onCancel = () => {
context.emit('update:show', false)
}
const updateModalData = () => {
const process = props.definition?.processDefinition
if (process) {
formValue.value.name = process.name
formValue.value.description = process.description
formValue.value.tenantCode = process.tenantCode || 'default'
if (process.timeout && process.timeout > 0) {
formValue.value.timeoutFlag = true
formValue.value.timeout = process.timeout
}
formValue.value.globalParams = process.globalParamList.map((param) => ({
key: param.prop,
value: param.value
}))
}
}
onMounted(() => updateModalData())
watch(
() => props.definition?.processDefinition,
() => updateModalData()
)
return () => (
<Modal
show={props.visible}
title={t('project.dag.basic_info')}
onConfirm={onSubmit}
onCancel={onCancel}
autoFocus={false}
>
<NForm model={formValue.value} rules={rule} ref={formRef}>
<NFormItem label={t('project.dag.workflow_name')} path='name'>
<NInput v-model:value={formValue.value.name} class='input-name' />
</NFormItem>
<NFormItem label={t('project.dag.description')} path='description'>
<NInput
type='textarea'
v-model:value={formValue.value.description}
class='input-description'
/>
</NFormItem>
<NFormItem label={t('project.dag.tenant')} path='tenantCode'>
<NSelect
options={tenantsDropdown.value}
v-model:value={formValue.value.tenantCode}
class='btn-select-tenant-code'
/>
</NFormItem>
<NFormItem label={t('project.dag.timeout_alert')} path='timeoutFlag'>
<NSwitch v-model:value={formValue.value.timeoutFlag} />
</NFormItem>
{formValue.value.timeoutFlag && (
<NFormItem label=' ' path='timeout'>
<NInputNumber
v-model:value={formValue.value.timeout}
show-button={false}
min={0}
v-slots={{
suffix: () => '分'
}}
/>
</NFormItem>
)}
<NFormItem
label={t('project.dag.global_variables')}
path='globalParams'
>
<NDynamicInput
v-model:value={formValue.value.globalParams}
preset='pair'
key-placeholder={t('project.dag.key')}
value-placeholder={t('project.dag.value')}
class='input-global-params'
/>
</NFormItem>
{props.definition && !props.instance && (
<NFormItem path='timeoutFlag'>
<NCheckbox v-model:checked={formValue.value.release}>
{t('project.dag.online_directly')}
</NCheckbox>
</NFormItem>
)}
{props.instance && (
<NFormItem path='sync'>
<NCheckbox v-model:checked={formValue.value.sync}>
{t('project.dag.update_directly')}
</NCheckbox>
</NFormItem>
)}
</NForm>
</Modal>
)
}
})
|
closed
|
apache/dolphinscheduler
|
https://github.com/apache/dolphinscheduler
| 8,923 |
[Bug] [UI Next][V1.0.0-Alpha] pre task can not be display when creating task in dag page
|
### Search before asking
- [X] I had searched in the [issues](https://github.com/apache/dolphinscheduler/issues?q=is%3Aissue) and found no similar issues.
### What happened

### What you expected to happen
above.
### How to reproduce
above.
### Anything else
_No response_
### Version
dev
### Are you willing to submit PR?
- [ ] Yes I am willing to submit a PR!
### Code of Conduct
- [X] I agree to follow this project's [Code of Conduct](https://www.apache.org/foundation/policies/conduct)
|
https://github.com/apache/dolphinscheduler/issues/8923
|
https://github.com/apache/dolphinscheduler/pull/8928
|
4ec2db9e5c2a0a4c191cd2bbf7f42e77f771fc74
|
9cf5c6d00eb70166eeb58d750910935e60df6acd
| 2022-03-16T03:25:59Z |
java
| 2022-03-16T08:04:38Z |
dolphinscheduler-ui-next/src/views/projects/workflow/components/dag/index.tsx
|
/*
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership.
* The ASF licenses this file to You under the Apache License, Version 2.0
* (the "License"); you may not use this file except in compliance with
* the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
import type { Cell, Graph } from '@antv/x6'
import {
defineComponent,
ref,
provide,
PropType,
toRef,
watch,
onBeforeUnmount,
computed
} from 'vue'
import { useI18n } from 'vue-i18n'
import { useRoute } from 'vue-router'
import DagToolbar from './dag-toolbar'
import DagCanvas from './dag-canvas'
import DagSidebar from './dag-sidebar'
import Styles from './dag.module.scss'
import DagAutoLayoutModal from './dag-auto-layout-modal'
import {
useGraphAutoLayout,
useGraphBackfill,
useDagDragAndDrop,
useTaskEdit,
useBusinessMapper,
useNodeMenu,
useNodeStatus
} from './dag-hooks'
import { useThemeStore } from '@/store/theme/theme'
import VersionModal from '../../definition/components/version-modal'
import { WorkflowDefinition, WorkflowInstance } from './types'
import DagSaveModal from './dag-save-modal'
import ContextMenuItem from './dag-context-menu'
import TaskModal from '@/views/projects/task/components/node/detail-modal'
import StartModal from '@/views/projects/workflow/definition/components/start-modal'
import LogModal from '@/views/projects/workflow/instance/components/log-modal'
import './x6-style.scss'
const props = {
// If this prop is passed, it means from definition detail
instance: {
type: Object as PropType<WorkflowInstance>,
default: undefined
},
definition: {
type: Object as PropType<WorkflowDefinition>,
default: undefined
},
readonly: {
type: Boolean as PropType<boolean>,
default: false
},
projectCode: {
type: Number as PropType<number>,
default: 0
}
}
export default defineComponent({
name: 'workflow-dag',
props,
emits: ['refresh', 'save'],
setup(props, context) {
const { t } = useI18n()
const route = useRoute()
const theme = useThemeStore()
// Whether the graph can be operated
provide('readonly', toRef(props, 'readonly'))
const graph = ref<Graph>()
provide('graph', graph)
// Auto layout modal
const {
visible: layoutVisible,
toggle: layoutToggle,
formValue,
formRef,
submit,
cancel
} = useGraphAutoLayout({ graph })
// Edit task
const {
taskConfirm,
taskModalVisible,
currTask,
taskCancel,
appendTask,
editTask,
copyTask,
taskDefinitions,
removeTasks
} = useTaskEdit({ graph, definition: toRef(props, 'definition') })
// Right click cell
const { nodeVariables, menuHide, menuStart, viewLog, hideLog } =
useNodeMenu({
graph
})
// start button in the dag node menu
const startReadonly = computed(() => {
if (props.definition) {
return (
route.name === 'workflow-definition-detail' &&
props.definition!.processDefinition.releaseState === 'NOT_RELEASE'
)
} else {
return false
}
})
// other button in the dag node menu
const menuReadonly = computed(() => {
if (props.instance) {
return (
props.instance.state !== 'WAITING_THREAD' &&
props.instance.state !== 'SUCCESS' &&
props.instance.state !== 'PAUSE' &&
props.instance.state !== 'FAILURE' &&
props.instance.state !== 'STOP'
)
} else if (props.definition) {
return props.definition!.processDefinition.releaseState === 'ONLINE'
} else {
return false
}
})
const taskInstance = computed(() => {
if (nodeVariables.menuCell) {
const taskCode = Number(nodeVariables.menuCell!.id)
return taskList.value.find((task: any) => task.taskCode === taskCode)
} else {
return undefined
}
})
const currentTaskInstance = ref()
watch(
() => taskModalVisible.value,
() => {
if (props.instance && taskModalVisible.value) {
const taskCode = currTask.value.code
currentTaskInstance.value = taskList.value.find(
(task: any) => task.taskCode === taskCode
)
}
}
)
const statusTimerRef = ref()
const { taskList, refreshTaskStatus } = useNodeStatus({ graph })
const { onDragStart, onDrop } = useDagDragAndDrop({
graph,
readonly: toRef(props, 'readonly'),
appendTask
})
// backfill
useGraphBackfill({ graph, definition: toRef(props, 'definition') })
// version modal
const versionModalShow = ref(false)
const versionToggle = (bool: boolean) => {
if (typeof bool === 'boolean') {
versionModalShow.value = bool
} else {
versionModalShow.value = !versionModalShow.value
}
}
const refreshDetail = () => {
context.emit('refresh')
versionModalShow.value = false
}
// Save modal
const saveModalShow = ref(false)
const saveModelToggle = (bool: boolean) => {
if (typeof bool === 'boolean') {
saveModalShow.value = bool
} else {
saveModalShow.value = !versionModalShow.value
}
}
const { getConnects, getLocations } = useBusinessMapper()
const onSave = (saveForm: any) => {
const edges = graph.value?.getEdges() || []
const nodes = graph.value?.getNodes() || []
if (!nodes.length) {
window.$message.error(t('project.dag.node_not_created'))
saveModelToggle(false)
return
}
const connects = getConnects(nodes, edges, taskDefinitions.value as any)
const locations = getLocations(nodes)
context.emit('save', {
taskDefinitions: taskDefinitions.value,
saveForm,
connects,
locations
})
saveModelToggle(false)
}
const handleViewLog = (taskId: number, taskType: string) => {
taskModalVisible.value = false
viewLog(taskId, taskType)
}
watch(
() => props.definition,
() => {
if (props.instance) {
refreshTaskStatus()
statusTimerRef.value = setInterval(() => refreshTaskStatus(), 90000)
}
}
)
onBeforeUnmount(() => clearInterval(statusTimerRef.value))
return () => (
<div
class={[
Styles.dag,
Styles[`dag-${theme.darkTheme ? 'dark' : 'light'}`]
]}
>
<DagToolbar
layoutToggle={layoutToggle}
instance={props.instance}
definition={props.definition}
onVersionToggle={versionToggle}
onSaveModelToggle={saveModelToggle}
onRemoveTasks={removeTasks}
onRefresh={refreshTaskStatus}
/>
<div class={Styles.content}>
<DagSidebar onDragStart={onDragStart} />
<DagCanvas onDrop={onDrop} />
</div>
<DagAutoLayoutModal
visible={layoutVisible.value}
submit={submit}
cancel={cancel}
formValue={formValue}
formRef={formRef}
/>
{!!props.definition && (
<VersionModal
v-model:row={props.definition.processDefinition}
v-model:show={versionModalShow.value}
onUpdateList={refreshDetail}
/>
)}
<DagSaveModal
v-model:show={saveModalShow.value}
onSave={onSave}
definition={props.definition}
instance={props.instance}
/>
<TaskModal
readonly={props.readonly}
show={taskModalVisible.value}
projectCode={props.projectCode}
processInstance={props.instance}
taskInstance={currentTaskInstance.value}
onViewLog={handleViewLog}
data={currTask.value as any}
definition={props.definition}
onSubmit={taskConfirm}
onCancel={taskCancel}
/>
<ContextMenuItem
startReadonly={startReadonly.value}
menuReadonly={menuReadonly.value}
taskInstance={taskInstance.value}
cell={nodeVariables.menuCell as Cell}
visible={nodeVariables.menuVisible}
left={nodeVariables.pageX}
top={nodeVariables.pageY}
onHide={menuHide}
onStart={menuStart}
onEdit={editTask}
onCopyTask={copyTask}
onRemoveTasks={removeTasks}
onViewLog={viewLog}
/>
{!!props.definition && (
<StartModal
v-model:row={props.definition.processDefinition}
v-model:show={nodeVariables.startModalShow}
/>
)}
{!!props.instance && nodeVariables.logModalShow && (
<LogModal
taskInstanceId={nodeVariables.logTaskId}
taskInstanceType={nodeVariables.logTaskType}
onHideLog={hideLog}
/>
)}
</div>
)
}
})
|
closed
|
apache/dolphinscheduler
|
https://github.com/apache/dolphinscheduler
| 8,923 |
[Bug] [UI Next][V1.0.0-Alpha] pre task can not be display when creating task in dag page
|
### Search before asking
- [X] I had searched in the [issues](https://github.com/apache/dolphinscheduler/issues?q=is%3Aissue) and found no similar issues.
### What happened

### What you expected to happen
above.
### How to reproduce
above.
### Anything else
_No response_
### Version
dev
### Are you willing to submit PR?
- [ ] Yes I am willing to submit a PR!
### Code of Conduct
- [X] I agree to follow this project's [Code of Conduct](https://www.apache.org/foundation/policies/conduct)
|
https://github.com/apache/dolphinscheduler/issues/8923
|
https://github.com/apache/dolphinscheduler/pull/8928
|
4ec2db9e5c2a0a4c191cd2bbf7f42e77f771fc74
|
9cf5c6d00eb70166eeb58d750910935e60df6acd
| 2022-03-16T03:25:59Z |
java
| 2022-03-16T08:04:38Z |
dolphinscheduler-ui-next/src/views/projects/workflow/components/dag/types.ts
|
/*
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership.
* The ASF licenses this file to You under the Apache License, Version 2.0
* (the "License"); you may not use this file except in compliance with
* the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
import { TaskType } from '@/views/projects/task/constants/task-type'
export interface ProcessDefinition {
id: number
code: number
name: string
version: number
releaseState: string
projectCode: number
description: string
globalParams: string
globalParamList: any[]
globalParamMap: any
createTime: string
updateTime: string
flag: string
userId: number
userName?: any
projectName?: any
locations: string
scheduleReleaseState?: any
timeout: number
tenantId: number
tenantCode: string
modifyBy?: any
warningGroupId: number
}
export interface Connect {
id?: number
name: string
processDefinitionVersion?: number
projectCode?: number
processDefinitionCode?: number
preTaskCode: number
preTaskVersion: number
postTaskCode: number
postTaskVersion: number
conditionType: string
conditionParams: any
createTime?: string
updateTime?: string
}
export interface TaskDefinition {
id: number
code: number
name: string
version: number
description: string
projectCode: any
userId: number
taskType: TaskType
taskParams: any
taskParamList: any[]
taskParamMap: any
flag: string
taskPriority: string
userName: any
projectName?: any
workerGroup: string
environmentCode: number
failRetryTimes: number
failRetryInterval: number
timeoutFlag: 'OPEN' | 'CLOSE'
timeoutNotifyStrategy: string
timeout: number
delayTime: number
resourceIds: string
createTime: string
updateTime: string
modifyBy: any
dependence: string
}
export type NodeData = {
code: number
taskType: TaskType
name: string
} & Partial<TaskDefinition>
export interface WorkflowDefinition {
processDefinition: ProcessDefinition
processTaskRelationList: Connect[]
taskDefinitionList: TaskDefinition[]
}
export interface WorkflowInstance {
name: string
state: string
dagData: WorkflowDefinition
commandType: string
commandParam: string
failureStrategy: string
processInstancePriority: string
workerGroup: string
warningType: string
warningGroupId: number
}
export interface Dragged {
x: number
y: number
type: TaskType
}
export interface Coordinate {
x: number
y: number
}
export interface GlobalParam {
key: string
value: string
}
export interface SaveForm {
name: string
description: string
tenantCode: string
timeoutFlag: boolean
timeout: number
globalParams: GlobalParam[]
release: boolean
sync: boolean
}
export interface Location {
taskCode: number
x: number
y: number
}
export interface IStartupParam {
commandType: string
commandParam: string
failureStrategy: string
processInstancePriority: string
workerGroup: string
warningType: string
warningGroupId: number
}
export interface IWorkflowTaskInstance {
id: number
taskCode: number
taskType: string
}
|
closed
|
apache/dolphinscheduler
|
https://github.com/apache/dolphinscheduler
| 8,923 |
[Bug] [UI Next][V1.0.0-Alpha] pre task can not be display when creating task in dag page
|
### Search before asking
- [X] I had searched in the [issues](https://github.com/apache/dolphinscheduler/issues?q=is%3Aissue) and found no similar issues.
### What happened

### What you expected to happen
above.
### How to reproduce
above.
### Anything else
_No response_
### Version
dev
### Are you willing to submit PR?
- [ ] Yes I am willing to submit a PR!
### Code of Conduct
- [X] I agree to follow this project's [Code of Conduct](https://www.apache.org/foundation/policies/conduct)
|
https://github.com/apache/dolphinscheduler/issues/8923
|
https://github.com/apache/dolphinscheduler/pull/8928
|
4ec2db9e5c2a0a4c191cd2bbf7f42e77f771fc74
|
9cf5c6d00eb70166eeb58d750910935e60df6acd
| 2022-03-16T03:25:59Z |
java
| 2022-03-16T08:04:38Z |
dolphinscheduler-ui-next/src/views/projects/workflow/components/dag/use-cell-update.ts
|
/*
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership.
* The ASF licenses this file to You under the Apache License, Version 2.0
* (the "License"); you may not use this file except in compliance with
* the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
import type { Ref } from 'vue'
import type { Graph } from '@antv/x6'
import type { TaskType } from '@/views/projects/task/constants/task-type'
import type { Coordinate } from './types'
import { TASK_TYPES_MAP } from '@/views/projects/task/constants/task-type'
import { useCustomCellBuilder } from './dag-hooks'
import utils from '@/utils'
interface Options {
graph: Ref<Graph | undefined>
}
/**
* Expose some cell query
* @param {Options} options
*/
export function useCellUpdate(options: Options) {
const { graph } = options
const { buildNode, buildEdge } = useCustomCellBuilder()
/**
* Set node name by id
* @param {string} id
* @param {string} name
*/
function setNodeName(id: string, newName: string) {
const node = graph.value?.getCellById(id)
if (node) {
const truncation = utils.truncateText(newName, 18)
node.attr('title/text', truncation)
node.setData({ taskName: newName })
}
}
/**
* Add a node to the graph
* @param {string} id
* @param {string} taskType
* @param {Coordinate} coordinate Default is { x: 100, y: 100 }
*/
function addNode(
id: string,
type: string,
name: string,
flag: string,
coordinate: Coordinate = { x: 100, y: 100 }
) {
if (!TASK_TYPES_MAP[type as TaskType]) {
return
}
const node = buildNode(id, type, name, flag, coordinate)
graph.value?.addNode(node)
}
const setNodeEdge = (id: string, preTaskCode: number[]) => {
const node = graph.value?.getCellById(id)
if (!node) return
const edges = graph.value?.getConnectedEdges(node)
if (edges?.length) {
edges.forEach((edge) => {
graph.value?.removeEdge(edge)
})
}
preTaskCode.forEach((task) => {
graph.value?.addEdge(buildEdge(String(task), id))
})
}
return {
setNodeName,
setNodeEdge,
addNode
}
}
|
closed
|
apache/dolphinscheduler
|
https://github.com/apache/dolphinscheduler
| 8,923 |
[Bug] [UI Next][V1.0.0-Alpha] pre task can not be display when creating task in dag page
|
### Search before asking
- [X] I had searched in the [issues](https://github.com/apache/dolphinscheduler/issues?q=is%3Aissue) and found no similar issues.
### What happened

### What you expected to happen
above.
### How to reproduce
above.
### Anything else
_No response_
### Version
dev
### Are you willing to submit PR?
- [ ] Yes I am willing to submit a PR!
### Code of Conduct
- [X] I agree to follow this project's [Code of Conduct](https://www.apache.org/foundation/policies/conduct)
|
https://github.com/apache/dolphinscheduler/issues/8923
|
https://github.com/apache/dolphinscheduler/pull/8928
|
4ec2db9e5c2a0a4c191cd2bbf7f42e77f771fc74
|
9cf5c6d00eb70166eeb58d750910935e60df6acd
| 2022-03-16T03:25:59Z |
java
| 2022-03-16T08:04:38Z |
dolphinscheduler-ui-next/src/views/projects/workflow/components/dag/use-task-edit.ts
|
/*
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership.
* The ASF licenses this file to You under the Apache License, Version 2.0
* (the "License"); you may not use this file except in compliance with
* the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
import { ref, onMounted, watch } from 'vue'
import { remove } from 'lodash'
import { TaskType } from '@/views/projects/task/constants/task-type'
import { formatParams } from '@/views/projects/task/components/node/format-data'
import { useCellUpdate } from './dag-hooks'
import type { Ref } from 'vue'
import type { Graph } from '@antv/x6'
import type { Coordinate, NodeData, WorkflowDefinition } from './types'
interface Options {
graph: Ref<Graph | undefined>
definition: Ref<WorkflowDefinition | undefined>
}
/**
* Edit task configuration when dbclick
* @param {Options} options
* @returns
*/
export function useTaskEdit(options: Options) {
const { graph, definition } = options
const { addNode, setNodeName, setNodeEdge } = useCellUpdate({ graph })
const taskDefinitions = ref<NodeData[]>(
definition.value?.taskDefinitionList || []
)
const currTask = ref<NodeData>({
taskType: 'SHELL',
code: 0,
name: ''
})
const taskModalVisible = ref(false)
/**
* Append a new task
*/
function appendTask(code: number, type: TaskType, coordinate: Coordinate) {
addNode(code + '', type, '', 'YES', coordinate)
taskDefinitions.value.push({
code,
taskType: type,
name: ''
})
openTaskModal({ code, taskType: type, name: '' })
}
/**
* Copy a task
*/
function copyTask(
name: string,
code: number,
targetCode: number,
type: TaskType,
flag: string,
coordinate: Coordinate
) {
addNode(code + '', type, name, flag, coordinate)
const definition = taskDefinitions.value.find((t) => t.code === targetCode)
const newDefinition = {
...definition,
code,
name
} as NodeData
taskDefinitions.value.push(newDefinition)
}
/**
* Remove task
* @param {number} code
*/
function removeTasks(codes: number[]) {
taskDefinitions.value = taskDefinitions.value.filter(
(task) => !codes.includes(task.code)
)
}
function openTaskModal(task: NodeData) {
currTask.value = task
taskModalVisible.value = true
}
/**
* Edit task
* @param {number} code
*/
function editTask(code: number) {
const definition = taskDefinitions.value.find((t) => t.code === code)
if (definition) {
currTask.value = definition
}
taskModalVisible.value = true
}
/**
* The confirm event in task config modal
* @param formRef
* @param from
*/
function taskConfirm({ data }: any) {
const taskDef = formatParams(data).taskDefinitionJsonObj as NodeData
// override target config
taskDefinitions.value = taskDefinitions.value.map((task) => {
if (task.code === currTask.value?.code) {
setNodeName(task.code + '', taskDef.name)
updatePreTasks(data.preTasks, task.code)
return {
...taskDef,
version: task.version,
code: task.code,
taskType: currTask.value.taskType
}
}
return task
})
taskModalVisible.value = false
}
/**
* The cancel event in task config modal
*/
function taskCancel() {
taskModalVisible.value = false
}
function updatePreTasks(preTasks: number[], code: number) {
if (!preTasks?.length) return
setNodeEdge(String(code), preTasks)
if (definition.value?.processTaskRelationList?.length) {
remove(
definition.value.processTaskRelationList,
(process) => process.postTaskCode === code
)
}
preTasks.forEach((task) => {
definition.value?.processTaskRelationList.push({
postTaskCode: code,
preTaskCode: task,
name: '',
preTaskVersion: 1,
postTaskVersion: 1,
conditionType: 'NONE',
conditionParams: {}
})
})
}
onMounted(() => {
if (graph.value) {
graph.value.on('cell:dblclick', ({ cell }) => {
const code = Number(cell.id)
editTask(code)
})
}
})
watch(definition, () => {
taskDefinitions.value = definition.value?.taskDefinitionList || []
})
return {
currTask,
taskModalVisible,
taskConfirm,
taskCancel,
appendTask,
editTask,
copyTask,
taskDefinitions,
removeTasks
}
}
|
closed
|
apache/dolphinscheduler
|
https://github.com/apache/dolphinscheduler
| 8,879 |
[Bug] [UI Next][V1.0.0-Alpha] missing batch delete and batch copy and batch export in workflow definition page
|
### Search before asking
- [X] I had searched in the [issues](https://github.com/apache/dolphinscheduler/issues?q=is%3Aissue) and found no similar issues.
### What happened

### What you expected to happen
above.
### How to reproduce
above.
### Anything else
_No response_
### Version
dev
### Are you willing to submit PR?
- [ ] Yes I am willing to submit a PR!
### Code of Conduct
- [X] I agree to follow this project's [Code of Conduct](https://www.apache.org/foundation/policies/conduct)
|
https://github.com/apache/dolphinscheduler/issues/8879
|
https://github.com/apache/dolphinscheduler/pull/8930
|
9cf5c6d00eb70166eeb58d750910935e60df6acd
|
dde81eb93c88042f415cb5f6e0f55c75d6ef95fb
| 2022-03-14T10:20:48Z |
java
| 2022-03-16T09:59:20Z |
dolphinscheduler-ui-next/src/locales/modules/en_US.ts
|
/*
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership.
* The ASF licenses this file to You under the Apache License, Version 2.0
* (the "License"); you may not use this file except in compliance with
* the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
const login = {
test: 'Test',
userName: 'Username',
userName_tips: 'Please enter your username',
userPassword: 'Password',
userPassword_tips: 'Please enter your password',
login: 'Login'
}
const modal = {
cancel: 'Cancel',
confirm: 'Confirm'
}
const theme = {
light: 'Light',
dark: 'Dark'
}
const userDropdown = {
profile: 'Profile',
password: 'Password',
logout: 'Logout'
}
const menu = {
home: 'Home',
project: 'Project',
resources: 'Resources',
datasource: 'Datasource',
monitor: 'Monitor',
security: 'Security',
project_overview: 'Project Overview',
workflow_relation: 'Workflow Relation',
workflow: 'Workflow',
workflow_definition: 'Workflow Definition',
workflow_instance: 'Workflow Instance',
task: 'Task',
task_instance: 'Task Instance',
task_definition: 'Task Definition',
file_manage: 'File Manage',
udf_manage: 'UDF Manage',
resource_manage: 'Resource Manage',
function_manage: 'Function Manage',
service_manage: 'Service Manage',
master: 'Master',
worker: 'Worker',
db: 'DB',
statistical_manage: 'Statistical Manage',
statistics: 'Statistics',
audit_log: 'Audit Log',
tenant_manage: 'Tenant Manage',
user_manage: 'User Manage',
alarm_group_manage: 'Alarm Group Manage',
alarm_instance_manage: 'Alarm Instance Manage',
worker_group_manage: 'Worker Group Manage',
yarn_queue_manage: 'Yarn Queue Manage',
environment_manage: 'Environment Manage',
k8s_namespace_manage: 'K8S Namespace Manage',
token_manage: 'Token Manage',
task_group_manage: 'Task Group Manage',
task_group_option: 'Task Group Option',
task_group_queue: 'Task Group Queue',
data_quality: 'Data Quality',
task_result: 'Task Result',
rule: 'Rule management'
}
const home = {
task_state_statistics: 'Task State Statistics',
process_state_statistics: 'Process State Statistics',
process_definition_statistics: 'Process Definition Statistics',
number: 'Number',
state: 'State',
submitted_success: 'SUBMITTED_SUCCESS',
running_execution: 'RUNNING_EXECUTION',
ready_pause: 'READY_PAUSE',
pause: 'PAUSE',
ready_stop: 'READY_STOP',
stop: 'STOP',
failure: 'FAILURE',
success: 'SUCCESS',
need_fault_tolerance: 'NEED_FAULT_TOLERANCE',
kill: 'KILL',
waiting_thread: 'WAITING_THREAD',
waiting_depend: 'WAITING_DEPEND',
delay_execution: 'DELAY_EXECUTION',
forced_success: 'FORCED_SUCCESS',
serial_wait: 'SERIAL_WAIT',
ready_block: 'READY_BLOCK',
block: 'BLOCK'
}
const password = {
edit_password: 'Edit Password',
password: 'Password',
confirm_password: 'Confirm Password',
password_tips: 'Please enter your password',
confirm_password_tips: 'Please enter your confirm password',
two_password_entries_are_inconsistent:
'Two password entries are inconsistent',
submit: 'Submit'
}
const profile = {
profile: 'Profile',
edit: 'Edit',
username: 'Username',
email: 'Email',
phone: 'Phone',
state: 'State',
permission: 'Permission',
create_time: 'Create Time',
update_time: 'Update Time',
administrator: 'Administrator',
ordinary_user: 'Ordinary User',
edit_profile: 'Edit Profile',
username_tips: 'Please enter your username',
email_tips: 'Please enter your email',
email_correct_tips: 'Please enter your email in the correct format',
phone_tips: 'Please enter your phone',
state_tips: 'Please choose your state',
enable: 'Enable',
disable: 'Disable',
timezone_success: 'Time zone updated successful',
please_select_timezone: 'Choose timeZone'
}
const monitor = {
master: {
cpu_usage: 'CPU Usage',
memory_usage: 'Memory Usage',
load_average: 'Load Average',
create_time: 'Create Time',
last_heartbeat_time: 'Last Heartbeat Time',
directory_detail: 'Directory Detail',
host: 'Host',
directory: 'Directory'
},
worker: {
cpu_usage: 'CPU Usage',
memory_usage: 'Memory Usage',
load_average: 'Load Average',
create_time: 'Create Time',
last_heartbeat_time: 'Last Heartbeat Time',
directory_detail: 'Directory Detail',
host: 'Host',
directory: 'Directory'
},
db: {
health_state: 'Health State',
max_connections: 'Max Connections',
threads_connections: 'Threads Connections',
threads_running_connections: 'Threads Running Connections'
},
statistics: {
command_number_of_waiting_for_running:
'Command Number Of Waiting For Running',
failure_command_number: 'Failure Command Number',
tasks_number_of_waiting_running: 'Tasks Number Of Waiting Running',
task_number_of_ready_to_kill: 'Task Number Of Ready To Kill'
},
audit_log: {
user_name: 'User Name',
resource_type: 'Resource Type',
project_name: 'Project Name',
operation_type: 'Operation Type',
create_time: 'Create Time',
start_time: 'Start Time',
end_time: 'End Time',
user_audit: 'User Audit',
project_audit: 'Project Audit',
create: 'Create',
update: 'Update',
delete: 'Delete',
read: 'Read'
}
}
const resource = {
file: {
file_manage: 'File Manage',
create_folder: 'Create Folder',
create_file: 'Create File',
upload_files: 'Upload Files',
enter_keyword_tips: 'Please enter keyword',
name: 'Name',
user_name: 'Resource userName',
whether_directory: 'Whether directory',
file_name: 'File Name',
description: 'Description',
size: 'Size',
update_time: 'Update Time',
operation: 'Operation',
edit: 'Edit',
rename: 'Rename',
download: 'Download',
delete: 'Delete',
yes: 'Yes',
no: 'No',
folder_name: 'Folder Name',
enter_name_tips: 'Please enter name',
enter_description_tips: 'Please enter description',
enter_content_tips: 'Please enter the resource content',
file_format: 'File Format',
file_content: 'File Content',
delete_confirm: 'Delete?',
confirm: 'Confirm',
cancel: 'Cancel',
success: 'Success',
file_details: 'File Details',
return: 'Return',
save: 'Save'
},
udf: {
udf_resources: 'UDF resources',
create_folder: 'Create Folder',
upload_udf_resources: 'Upload UDF Resources',
udf_source_name: 'UDF Resource Name',
whether_directory: 'Whether directory',
file_name: 'File Name',
file_size: 'File Size',
description: 'Description',
create_time: 'Create Time',
update_time: 'Update Time',
operation: 'Operation',
yes: 'Yes',
no: 'No',
edit: 'Edit',
download: 'Download',
delete: 'Delete',
delete_confirm: 'Delete?',
success: 'Success',
folder_name: 'Folder Name',
upload: 'Upload',
upload_files: 'Upload Files',
file_upload: 'File Upload',
enter_keyword_tips: 'Please enter keyword',
enter_name_tips: 'Please enter name',
enter_description_tips: 'Please enter description'
},
function: {
udf_function: 'UDF Function',
create_udf_function: 'Create UDF Function',
edit_udf_function: 'Create UDF Function',
udf_function_name: 'UDF Function Name',
class_name: 'Class Name',
type: 'Type',
description: 'Description',
jar_package: 'Jar Package',
update_time: 'Update Time',
operation: 'Operation',
rename: 'Rename',
edit: 'Edit',
delete: 'Delete',
success: 'Success',
package_name: 'Package Name',
udf_resources: 'UDF Resources',
instructions: 'Instructions',
upload_resources: 'Upload Resources',
udf_resources_directory: 'UDF resources directory',
delete_confirm: 'Delete?',
enter_keyword_tips: 'Please enter keyword',
enter_udf_unction_name_tips: 'Please enter a UDF function name',
enter_package_name_tips: 'Please enter a Package name',
enter_select_udf_resources_tips: 'Please select UDF resources',
enter_select_udf_resources_directory_tips:
'Please select UDF resources directory',
enter_instructions_tips: 'Please enter a instructions',
enter_name_tips: 'Please enter name',
enter_description_tips: 'Please enter description'
},
task_group_option: {
manage: 'Task group manage',
option: 'Task group option',
create: 'Create task group',
edit: 'Edit task group',
delete: 'Delete task group',
view_queue: 'View the queue of the task group',
switch_status: 'Switch status',
code: 'Task group code',
name: 'Task group name',
project_name: 'Project name',
resource_pool_size: 'Resource pool size',
resource_pool_size_be_a_number:
'The size of the task group resource pool should be more than 1',
resource_used_pool_size: 'Used resource',
desc: 'Task group desc',
status: 'Task group status',
enable_status: 'Enable',
disable_status: 'Disable',
please_enter_name: 'Please enter task group name',
please_enter_desc: 'Please enter task group description',
please_enter_resource_pool_size:
'Please enter task group resource pool size',
please_select_project: 'Please select a project',
create_time: 'Create time',
update_time: 'Update time',
actions: 'Actions',
please_enter_keywords: 'Please enter keywords'
},
task_group_queue: {
actions: 'Actions',
task_name: 'Task name',
task_group_name: 'Task group name',
project_name: 'Project name',
process_name: 'Process name',
process_instance_name: 'Process instance',
queue: 'Task group queue',
priority: 'Priority',
priority_be_a_number:
'The priority of the task group queue should be a positive number',
force_starting_status: 'Starting status',
in_queue: 'In queue',
task_status: 'Task status',
view: 'View task group queue',
the_status_of_waiting: 'Waiting into the queue',
the_status_of_queuing: 'Queuing',
the_status_of_releasing: 'Released',
modify_priority: 'Edit the priority',
start_task: 'Start the task',
priority_not_empty: 'The value of priority can not be empty',
priority_must_be_number: 'The value of priority should be number',
please_select_task_name: 'Please select a task name',
create_time: 'Create time',
update_time: 'Update time',
edit_priority: 'Edit the task priority'
}
}
const project = {
list: {
create_project: 'Create Project',
edit_project: 'Edit Project',
project_list: 'Project List',
project_tips: 'Please enter your project',
description_tips: 'Please enter your description',
username_tips: 'Please enter your username',
project_name: 'Project Name',
project_description: 'Project Description',
owned_users: 'Owned Users',
workflow_define_count: 'Workflow Define Count',
process_instance_running_count: 'Process Instance Running Count',
description: 'Description',
create_time: 'Create Time',
update_time: 'Update Time',
operation: 'Operation',
edit: 'Edit',
delete: 'Delete',
confirm: 'Confirm',
cancel: 'Cancel',
delete_confirm: 'Delete?'
},
workflow: {
workflow_relation: 'Workflow Relation',
create_workflow: 'Create Workflow',
import_workflow: 'Import Workflow',
workflow_name: 'Workflow Name',
current_selection: 'Current Selection',
online: 'Online',
offline: 'Offline',
refresh: 'Refresh',
show_hide_label: 'Show / Hide Label',
workflow_offline: 'Workflow Offline',
schedule_offline: 'Schedule Offline',
schedule_start_time: 'Schedule Start Time',
schedule_end_time: 'Schedule End Time',
crontab_expression: 'Crontab',
workflow_publish_status: 'Workflow Publish Status',
schedule_publish_status: 'Schedule Publish Status',
workflow_definition: 'Workflow Definition',
workflow_instance: 'Workflow Instance',
status: 'Status',
create_time: 'Create Time',
update_time: 'Update Time',
description: 'Description',
create_user: 'Create User',
modify_user: 'Modify User',
operation: 'Operation',
edit: 'Edit',
start: 'Start',
timing: 'Timing',
timezone: 'Timezone',
up_line: 'Online',
down_line: 'Offline',
copy_workflow: 'Copy Workflow',
cron_manage: 'Cron manage',
delete: 'Delete',
tree_view: 'Tree View',
tree_limit: 'Limit Size',
export: 'Export',
version_info: 'Version Info',
version: 'Version',
file_upload: 'File Upload',
upload_file: 'Upload File',
upload: 'Upload',
file_name: 'File Name',
success: 'Success',
set_parameters_before_starting: 'Please set the parameters before starting',
set_parameters_before_timing: 'Set parameters before timing',
start_and_stop_time: 'Start and stop time',
next_five_execution_times: 'Next five execution times',
execute_time: 'Execute time',
failure_strategy: 'Failure Strategy',
notification_strategy: 'Notification Strategy',
workflow_priority: 'Workflow Priority',
worker_group: 'Worker Group',
environment_name: 'Environment Name',
alarm_group: 'Alarm Group',
complement_data: 'Complement Data',
startup_parameter: 'Startup Parameter',
whether_dry_run: 'Whether Dry-Run',
continue: 'Continue',
end: 'End',
none_send: 'None',
success_send: 'Success',
failure_send: 'Failure',
all_send: 'All',
whether_complement_data: 'Whether it is a complement process?',
schedule_date: 'Schedule date',
mode_of_execution: 'Mode of execution',
serial_execution: 'Serial execution',
parallel_execution: 'Parallel execution',
parallelism: 'Parallelism',
custom_parallelism: 'Custom Parallelism',
please_enter_parallelism: 'Please enter Parallelism',
please_choose: 'Please Choose',
start_time: 'Start Time',
end_time: 'End Time',
crontab: 'Crontab',
delete_confirm: 'Delete?',
enter_name_tips: 'Please enter name',
switch_version: 'Switch To This Version',
confirm_switch_version: 'Confirm Switch To This Version?',
current_version: 'Current Version',
run_type: 'Run Type',
scheduling_time: 'Scheduling Time',
duration: 'Duration',
run_times: 'Run Times',
fault_tolerant_sign: 'Fault-tolerant Sign',
dry_run_flag: 'Dry-run Flag',
executor: 'Executor',
host: 'Host',
start_process: 'Start Process',
execute_from_the_current_node: 'Execute from the current node',
recover_tolerance_fault_process: 'Recover tolerance fault process',
resume_the_suspension_process: 'Resume the suspension process',
execute_from_the_failed_nodes: 'Execute from the failed nodes',
scheduling_execution: 'Scheduling execution',
rerun: 'Rerun',
stop: 'Stop',
pause: 'Pause',
recovery_waiting_thread: 'Recovery waiting thread',
recover_serial_wait: 'Recover serial wait',
recovery_suspend: 'Recovery Suspend',
recovery_failed: 'Recovery Failed',
gantt: 'Gantt',
name: 'Name',
all_status: 'AllStatus',
submit_success: 'Submitted successfully',
running: 'Running',
ready_to_pause: 'Ready to pause',
ready_to_stop: 'Ready to stop',
failed: 'Failed',
need_fault_tolerance: 'Need fault tolerance',
kill: 'Kill',
waiting_for_thread: 'Waiting for thread',
waiting_for_dependence: 'Waiting for dependence',
waiting_for_dependency_to_complete: 'Waiting for dependency to complete',
delay_execution: 'Delay execution',
forced_success: 'Forced success',
serial_wait: 'Serial wait',
executing: 'Executing',
startup_type: 'Startup Type',
complement_range: 'Complement Range',
parameters_variables: 'Parameters variables',
global_parameters: 'Global parameters',
local_parameters: 'Local parameters',
type: 'Type',
retry_count: 'Retry Count',
submit_time: 'Submit Time',
refresh_status_succeeded: 'Refresh status succeeded',
view_log: 'View log',
update_log_success: 'Update log success',
no_more_log: 'No more logs',
no_log: 'No log',
loading_log: 'Loading Log...',
close: 'Close',
download_log: 'Download Log',
refresh_log: 'Refresh Log',
enter_full_screen: 'Enter full screen',
cancel_full_screen: 'Cancel full screen',
task_state: 'Task status',
mode_of_dependent: 'Mode of dependent',
open: 'Open'
},
task: {
task_name: 'Task Name',
task_type: 'Task Type',
create_task: 'Create Task',
workflow_instance: 'Workflow Instance',
workflow_name: 'Workflow Name',
workflow_name_tips: 'Please select workflow name',
workflow_state: 'Workflow State',
version: 'Version',
current_version: 'Current Version',
switch_version: 'Switch To This Version',
confirm_switch_version: 'Confirm Switch To This Version?',
description: 'Description',
move: 'Move',
upstream_tasks: 'Upstream Tasks',
executor: 'Executor',
node_type: 'Node Type',
state: 'State',
submit_time: 'Submit Time',
start_time: 'Start Time',
create_time: 'Create Time',
update_time: 'Update Time',
end_time: 'End Time',
duration: 'Duration',
retry_count: 'Retry Count',
dry_run_flag: 'Dry Run Flag',
host: 'Host',
operation: 'Operation',
edit: 'Edit',
delete: 'Delete',
delete_confirm: 'Delete?',
submitted_success: 'Submitted Success',
running_execution: 'Running Execution',
ready_pause: 'Ready Pause',
pause: 'Pause',
ready_stop: 'Ready Stop',
stop: 'Stop',
failure: 'Failure',
success: 'Success',
need_fault_tolerance: 'Need Fault Tolerance',
kill: 'Kill',
waiting_thread: 'Waiting Thread',
waiting_depend: 'Waiting Depend',
delay_execution: 'Delay Execution',
forced_success: 'Forced Success',
view_log: 'View Log',
download_log: 'Download Log',
refresh: 'Refresh'
},
dag: {
create: 'Create Workflow',
search: 'Search',
download_png: 'Download PNG',
fullscreen_open: 'Open Fullscreen',
fullscreen_close: 'Close Fullscreen',
save: 'Save',
close: 'Close',
format: 'Format',
refresh_dag_status: 'Refresh DAG status',
layout_type: 'Layout Type',
grid_layout: 'Grid',
dagre_layout: 'Dagre',
rows: 'Rows',
cols: 'Cols',
copy_success: 'Copy Success',
workflow_name: 'Workflow Name',
description: 'Description',
tenant: 'Tenant',
timeout_alert: 'Timeout Alert',
global_variables: 'Global Variables',
basic_info: 'Basic Information',
minute: 'Minute',
key: 'Key',
value: 'Value',
success: 'Success',
delete_cell: 'Delete selected edges and nodes',
online_directly: 'Whether to go online the process definition',
update_directly: 'Whether to update the process definition',
dag_name_empty: 'DAG graph name cannot be empty',
positive_integer: 'Please enter a positive integer greater than 0',
prop_empty: 'prop is empty',
prop_repeat: 'prop is repeat',
node_not_created: 'Failed to save node not created',
copy_name: 'Copy Name',
view_variables: 'View Variables',
startup_parameter: 'Startup Parameter'
},
node: {
current_node_settings: 'Current node settings',
instructions: 'Instructions',
view_history: 'View history',
view_log: 'View log',
enter_this_child_node: 'Enter this child node',
name: 'Node name',
name_tips: 'Please enter name (required)',
task_type: 'Task Type',
task_type_tips: 'Please select a task type (required)',
process_name: 'Process Name',
process_name_tips: 'Please select a process (required)',
child_node: 'Child Node',
enter_child_node: 'Enter child node',
run_flag: 'Run flag',
normal: 'Normal',
prohibition_execution: 'Prohibition execution',
description: 'Description',
description_tips: 'Please enter description',
task_priority: 'Task priority',
worker_group: 'Worker group',
worker_group_tips:
'The Worker group no longer exists, please select the correct Worker group!',
environment_name: 'Environment Name',
task_group_name: 'Task group name',
task_group_queue_priority: 'Priority',
number_of_failed_retries: 'Number of failed retries',
times: 'Times',
failed_retry_interval: 'Failed retry interval',
minute: 'Minute',
delay_execution_time: 'Delay execution time',
state: 'State',
branch_flow: 'Branch flow',
cancel: 'Cancel',
loading: 'Loading...',
confirm: 'Confirm',
success: 'Success',
failed: 'Failed',
backfill_tips:
'The newly created sub-Process has not yet been executed and cannot enter the sub-Process',
task_instance_tips:
'The task has not been executed and cannot enter the sub-Process',
branch_tips:
'Cannot select the same node for successful branch flow and failed branch flow',
timeout_alarm: 'Timeout alarm',
timeout_strategy: 'Timeout strategy',
timeout_strategy_tips: 'Timeout strategy must be selected',
timeout_failure: 'Timeout failure',
timeout_period: 'Timeout period',
timeout_period_tips: 'Timeout must be a positive integer',
script: 'Script',
script_tips: 'Please enter script(required)',
resources: 'Resources',
resources_tips: 'Please select resources',
non_resources_tips: 'Please delete all non-existent resources',
useless_resources_tips: 'Unauthorized or deleted resources',
custom_parameters: 'Custom Parameters',
copy_success: 'Copy success',
copy_failed: 'The browser does not support automatic copying',
prop_tips: 'prop(required)',
prop_repeat: 'prop is repeat',
value_tips: 'value(optional)',
value_required_tips: 'value(required)',
pre_tasks: 'Pre tasks',
program_type: 'Program Type',
spark_version: 'Spark Version',
main_class: 'Main Class',
main_class_tips: 'Please enter main class',
main_package: 'Main Package',
main_package_tips: 'Please enter main package',
deploy_mode: 'Deploy Mode',
app_name: 'App Name',
app_name_tips: 'Please enter app name(optional)',
driver_cores: 'Driver Cores',
driver_cores_tips: 'Please enter Driver cores',
driver_memory: 'Driver Memory',
driver_memory_tips: 'Please enter Driver memory',
executor_number: 'Executor Number',
executor_number_tips: 'Please enter Executor number',
executor_memory: 'Executor Memory',
executor_memory_tips: 'Please enter Executor memory',
executor_cores: 'Executor Cores',
executor_cores_tips: 'Please enter Executor cores',
main_arguments: 'Main Arguments',
main_arguments_tips: 'Please enter main arguments',
option_parameters: 'Option Parameters',
option_parameters_tips: 'Please enter option parameters',
positive_integer_tips: 'should be a positive integer',
flink_version: 'Flink Version',
job_manager_memory: 'JobManager Memory',
job_manager_memory_tips: 'Please enter JobManager memory',
task_manager_memory: 'TaskManager Memory',
task_manager_memory_tips: 'Please enter TaskManager memory',
slot_number: 'Slot Number',
slot_number_tips: 'Please enter Slot number',
parallelism: 'Parallelism',
custom_parallelism: 'Configure parallelism',
parallelism_tips: 'Please enter Parallelism',
parallelism_number_tips: 'Parallelism number should be positive integer',
parallelism_complement_tips:
'If there are a large number of tasks requiring complement, you can use the custom parallelism to ' +
'set the complement task thread to a reasonable value to avoid too large impact on the server.',
task_manager_number: 'TaskManager Number',
task_manager_number_tips: 'Please enter TaskManager number',
http_url: 'Http Url',
http_url_tips: 'Please Enter Http Url',
http_method: 'Http Method',
http_parameters: 'Http Parameters',
http_check_condition: 'Http Check Condition',
http_condition: 'Http Condition',
http_condition_tips: 'Please Enter Http Condition',
timeout_settings: 'Timeout Settings',
connect_timeout: 'Connect Timeout',
ms: 'ms',
socket_timeout: 'Socket Timeout',
status_code_default: 'Default response code 200',
status_code_custom: 'Custom response code',
body_contains: 'Content includes',
body_not_contains: 'Content does not contain',
http_parameters_position: 'Http Parameters Position',
target_task_name: 'Target Task Name',
target_task_name_tips: 'Please enter the Pigeon task name',
datasource_type: 'Datasource types',
datasource_instances: 'Datasource instances',
sql_type: 'SQL Type',
sql_type_query: 'Query',
sql_type_non_query: 'Non Query',
sql_statement: 'SQL Statement',
pre_sql_statement: 'Pre SQL Statement',
post_sql_statement: 'Post SQL Statement',
sql_input_placeholder: 'Please enter non-query sql.',
sql_empty_tips: 'The sql can not be empty.',
procedure_method: 'SQL Statement',
procedure_method_tips: 'Please enter the procedure script',
procedure_method_snippet:
'--Please enter the procedure script \n\n--call procedure:call <procedure-name>[(<arg1>,<arg2>, ...)]\n\n--call function:?= call <procedure-name>[(<arg1>,<arg2>, ...)]',
start: 'Start',
edit: 'Edit',
copy: 'Copy',
delete: 'Delete',
custom_job: 'Custom Job',
custom_script: 'Custom Script',
sqoop_job_name: 'Job Name',
sqoop_job_name_tips: 'Please enter Job Name(required)',
direct: 'Direct',
hadoop_custom_params: 'Hadoop Params',
sqoop_advanced_parameters: 'Sqoop Advanced Parameters',
data_source: 'Data Source',
type: 'Type',
datasource: 'Datasource',
datasource_tips: 'Please select the datasource',
model_type: 'ModelType',
form: 'Form',
table: 'Table',
table_tips: 'Please enter Mysql Table(required)',
column_type: 'ColumnType',
all_columns: 'All Columns',
some_columns: 'Some Columns',
column: 'Column',
column_tips: 'Please enter Columns (Comma separated)',
database: 'Database',
database_tips: 'Please enter Hive Database(required)',
hive_table_tips: 'Please enter Hive Table(required)',
hive_partition_keys: 'Hive partition Keys',
hive_partition_keys_tips: 'Please enter Hive Partition Keys',
hive_partition_values: 'Hive partition Values',
hive_partition_values_tips: 'Please enter Hive Partition Values',
export_dir: 'Export Dir',
export_dir_tips: 'Please enter Export Dir(required)',
sql_statement_tips: 'SQL Statement(required)',
map_column_hive: 'Map Column Hive',
map_column_java: 'Map Column Java',
data_target: 'Data Target',
create_hive_table: 'CreateHiveTable',
drop_delimiter: 'DropDelimiter',
over_write_src: 'OverWriteSrc',
hive_target_dir: 'Hive Target Dir',
hive_target_dir_tips: 'Please enter hive target dir',
replace_delimiter: 'ReplaceDelimiter',
replace_delimiter_tips: 'Please enter Replace Delimiter',
target_dir: 'Target Dir',
target_dir_tips: 'Please enter Target Dir(required)',
delete_target_dir: 'DeleteTargetDir',
compression_codec: 'CompressionCodec',
file_type: 'FileType',
fields_terminated: 'FieldsTerminated',
fields_terminated_tips: 'Please enter Fields Terminated',
lines_terminated: 'LinesTerminated',
lines_terminated_tips: 'Please enter Lines Terminated',
is_update: 'IsUpdate',
update_key: 'UpdateKey',
update_key_tips: 'Please enter Update Key',
update_mode: 'UpdateMode',
only_update: 'OnlyUpdate',
allow_insert: 'AllowInsert',
concurrency: 'Concurrency',
concurrency_tips: 'Please enter Concurrency',
sea_tunnel_master: 'Master',
sea_tunnel_master_url: 'Master URL',
sea_tunnel_queue: 'Queue',
sea_tunnel_master_url_tips:
'Please enter the master url, e.g., 127.0.0.1:7077',
switch_condition: 'Condition',
switch_branch_flow: 'Branch Flow',
and: 'and',
or: 'or',
datax_custom_template: 'Custom Template Switch',
datax_json_template: 'JSON',
datax_target_datasource_type: 'Target Datasource Type',
datax_target_database: 'Target Database',
datax_target_table: 'Target Table',
datax_target_table_tips: 'Please enter the name of the target table',
datax_target_database_pre_sql: 'Pre SQL Statement',
datax_target_database_post_sql: 'Post SQL Statement',
datax_non_query_sql_tips: 'Please enter the non-query sql statement',
datax_job_speed_byte: 'Speed(Byte count)',
datax_job_speed_byte_info: '(0 means unlimited)',
datax_job_speed_record: 'Speed(Record count)',
datax_job_speed_record_info: '(0 means unlimited)',
datax_job_runtime_memory: 'Runtime Memory Limits',
datax_job_runtime_memory_xms: 'Low Limit Value',
datax_job_runtime_memory_xmx: 'High Limit Value',
datax_job_runtime_memory_unit: 'G',
current_hour: 'CurrentHour',
last_1_hour: 'Last1Hour',
last_2_hour: 'Last2Hours',
last_3_hour: 'Last3Hours',
last_24_hour: 'Last24Hours',
today: 'today',
last_1_days: 'Last1Days',
last_2_days: 'Last2Days',
last_3_days: 'Last3Days',
last_7_days: 'Last7Days',
this_week: 'ThisWeek',
last_week: 'LastWeek',
last_monday: 'LastMonday',
last_tuesday: 'LastTuesday',
last_wednesday: 'LastWednesday',
last_thursday: 'LastThursday',
last_friday: 'LastFriday',
last_saturday: 'LastSaturday',
last_sunday: 'LastSunday',
this_month: 'ThisMonth',
last_month: 'LastMonth',
last_month_begin: 'LastMonthBegin',
last_month_end: 'LastMonthEnd',
month: 'month',
week: 'week',
day: 'day',
hour: 'hour',
add_dependency: 'Add dependency',
waiting_dependent_start: 'Waiting Dependent start',
check_interval: 'Check interval',
waiting_dependent_complete: 'Waiting Dependent complete',
rule_name: 'Rule Name',
null_check: 'NullCheck',
custom_sql: 'CustomSql',
multi_table_accuracy: 'MulTableAccuracy',
multi_table_value_comparison: 'MulTableCompare',
field_length_check: 'FieldLengthCheck',
uniqueness_check: 'UniquenessCheck',
regexp_check: 'RegexpCheck',
timeliness_check: 'TimelinessCheck',
enumeration_check: 'EnumerationCheck',
table_count_check: 'TableCountCheck',
src_connector_type: 'SrcConnType',
src_datasource_id: 'SrcSource',
src_table: 'SrcTable',
src_filter: 'SrcFilter',
src_field: 'SrcField',
statistics_name: 'ActualValName',
check_type: 'CheckType',
operator: 'Operator',
threshold: 'Threshold',
failure_strategy: 'FailureStrategy',
target_connector_type: 'TargetConnType',
target_datasource_id: 'TargetSourceId',
target_table: 'TargetTable',
target_filter: 'TargetFilter',
mapping_columns: 'OnClause',
statistics_execute_sql: 'ActualValExecSql',
comparison_name: 'ExceptedValName',
comparison_execute_sql: 'ExceptedValExecSql',
comparison_type: 'ExceptedValType',
writer_connector_type: 'WriterConnType',
writer_datasource_id: 'WriterSourceId',
target_field: 'TargetField',
field_length: 'FieldLength',
logic_operator: 'LogicOperator',
regexp_pattern: 'RegexpPattern',
deadline: 'Deadline',
datetime_format: 'DatetimeFormat',
enum_list: 'EnumList',
begin_time: 'BeginTime',
fix_value: 'FixValue',
required: 'required',
emr_flow_define_json: 'jobFlowDefineJson',
emr_flow_define_json_tips: 'Please enter the definition of the job flow.'
}
}
const security = {
tenant: {
tenant_manage: 'Tenant Manage',
create_tenant: 'Create Tenant',
search_tips: 'Please enter keywords',
tenant_code: 'Operating System Tenant',
description: 'Description',
queue_name: 'QueueName',
create_time: 'Create Time',
update_time: 'Update Time',
actions: 'Operation',
edit_tenant: 'Edit Tenant',
tenant_code_tips: 'Please enter the operating system tenant',
queue_name_tips: 'Please select queue',
description_tips: 'Please enter a description',
delete_confirm: 'Delete?',
edit: 'Edit',
delete: 'Delete'
},
alarm_group: {
create_alarm_group: 'Create Alarm Group',
edit_alarm_group: 'Edit Alarm Group',
search_tips: 'Please enter keywords',
alert_group_name_tips: 'Please enter your alert group name',
alarm_plugin_instance: 'Alarm Plugin Instance',
alarm_plugin_instance_tips: 'Please select alert plugin instance',
alarm_group_description_tips: 'Please enter your alarm group description',
alert_group_name: 'Alert Group Name',
alarm_group_description: 'Alarm Group Description',
create_time: 'Create Time',
update_time: 'Update Time',
operation: 'Operation',
delete_confirm: 'Delete?',
edit: 'Edit',
delete: 'Delete'
},
worker_group: {
create_worker_group: 'Create Worker Group',
edit_worker_group: 'Edit Worker Group',
search_tips: 'Please enter keywords',
operation: 'Operation',
delete_confirm: 'Delete?',
edit: 'Edit',
delete: 'Delete',
group_name: 'Group Name',
group_name_tips: 'Please enter your group name',
worker_addresses: 'Worker Addresses',
worker_addresses_tips: 'Please select worker addresses',
create_time: 'Create Time',
update_time: 'Update Time'
},
yarn_queue: {
create_queue: 'Create Queue',
edit_queue: 'Edit Queue',
search_tips: 'Please enter keywords',
queue_name: 'Queue Name',
queue_value: 'Queue Value',
create_time: 'Create Time',
update_time: 'Update Time',
operation: 'Operation',
edit: 'Edit',
queue_name_tips: 'Please enter your queue name',
queue_value_tips: 'Please enter your queue value'
},
environment: {
create_environment: 'Create Environment',
edit_environment: 'Edit Environment',
search_tips: 'Please enter keywords',
edit: 'Edit',
delete: 'Delete',
environment_name: 'Environment Name',
environment_config: 'Environment Config',
environment_desc: 'Environment Desc',
worker_groups: 'Worker Groups',
create_time: 'Create Time',
update_time: 'Update Time',
operation: 'Operation',
delete_confirm: 'Delete?',
environment_name_tips: 'Please enter your environment name',
environment_config_tips: 'Please enter your environment config',
environment_description_tips: 'Please enter your environment description',
worker_group_tips: 'Please select worker group'
},
token: {
create_token: 'Create Token',
edit_token: 'Edit Token',
search_tips: 'Please enter keywords',
user: 'User',
user_tips: 'Please select user',
token: 'Token',
token_tips: 'Please enter your token',
expiration_time: 'Expiration Time',
expiration_time_tips: 'Please select expiration time',
create_time: 'Create Time',
update_time: 'Update Time',
operation: 'Operation',
edit: 'Edit',
delete: 'Delete',
delete_confirm: 'Delete?'
},
user: {
user_manage: 'User Manage',
create_user: 'Create User',
update_user: 'Update User',
delete_user: 'Delete User',
delete_confirm: 'Are you sure to delete?',
delete_confirm_tip:
'Deleting user is a dangerous operation,please be careful',
project: 'Project',
resource: 'Resource',
file_resource: 'File Resource',
udf_resource: 'UDF Resource',
datasource: 'Datasource',
udf: 'UDF Function',
authorize_project: 'Project Authorize',
authorize_resource: 'Resource Authorize',
authorize_datasource: 'Datasource Authorize',
authorize_udf: 'UDF Function Authorize',
username: 'Username',
username_exists: 'The username already exists',
username_tips: 'Please enter username',
user_password: 'Password',
user_password_tips:
'Please enter a password containing letters and numbers with a length between 6 and 20',
user_type: 'User Type',
ordinary_user: 'Ordinary users',
administrator: 'Administrator',
tenant_code: 'Tenant',
tenant_id_tips: 'Please select tenant',
queue: 'Queue',
queue_tips: 'Please select a queue',
email: 'Email',
email_empty_tips: 'Please enter email',
emial_correct_tips: 'Please enter the correct email format',
phone: 'Phone',
phone_empty_tips: 'Please enter phone number',
phone_correct_tips: 'Please enter the correct mobile phone format',
state: 'State',
state_enabled: 'Enabled',
state_disabled: 'Disabled',
create_time: 'Create Time',
update_time: 'Update Time',
operation: 'Operation',
edit: 'Edit',
delete: 'Delete',
authorize: 'Authorize',
save_error_msg: 'Failed to save, please retry',
delete_error_msg: 'Failed to delete, please retry',
auth_error_msg: 'Failed to authorize, please retry',
auth_success_msg: 'Authorize succeeded',
enable: 'Enable',
disable: 'Disable'
},
alarm_instance: {
search_input_tips: 'Please input the keywords',
alarm_instance_manage: 'Alarm instance manage',
alarm_instance: 'Alarm Instance',
alarm_instance_name: 'Alarm instance name',
alarm_instance_name_tips: 'Please enter alarm plugin instance name',
alarm_plugin_name: 'Alarm plugin name',
create_time: 'Create Time',
update_time: 'Update Time',
operation: 'Operation',
edit: 'Edit',
delete: 'Delete',
confirm: 'Confirm',
cancel: 'Cancel',
submit: 'Submit',
create: 'Create',
select_plugin: 'Select plugin',
select_plugin_tips: 'Select Alarm plugin',
instance_parameter_exception: 'Instance parameter exception',
WebHook: 'WebHook',
webHook: 'WebHook',
IsEnableProxy: 'Enable Proxy',
Proxy: 'Proxy',
Port: 'Port',
User: 'User',
corpId: 'CorpId',
secret: 'Secret',
Secret: 'Secret',
users: 'Users',
userSendMsg: 'UserSendMsg',
agentId: 'AgentId',
showType: 'Show Type',
receivers: 'Receivers',
receiverCcs: 'ReceiverCcs',
serverHost: 'SMTP Host',
serverPort: 'SMTP Port',
sender: 'Sender',
enableSmtpAuth: 'SMTP Auth',
Password: 'Password',
starttlsEnable: 'SMTP STARTTLS Enable',
sslEnable: 'SMTP SSL Enable',
smtpSslTrust: 'SMTP SSL Trust',
url: 'URL',
requestType: 'Request Type',
headerParams: 'Headers',
bodyParams: 'Body',
contentField: 'Content Field',
Keyword: 'Keyword',
userParams: 'User Params',
path: 'Script Path',
type: 'Type',
sendType: 'Send Type',
username: 'Username',
botToken: 'Bot Token',
chatId: 'Channel Chat Id',
parseMode: 'Parse Mode'
},
k8s_namespace: {
create_namespace: 'Create Namespace',
edit_namespace: 'Edit Namespace',
search_tips: 'Please enter keywords',
k8s_namespace: 'K8S Namespace',
k8s_namespace_tips: 'Please enter k8s namespace',
k8s_cluster: 'K8S Cluster',
k8s_cluster_tips: 'Please enter k8s cluster',
owner: 'Owner',
owner_tips: 'Please enter owner',
tag: 'Tag',
tag_tips: 'Please enter tag',
limit_cpu: 'Limit CPU',
limit_cpu_tips: 'Please enter limit CPU',
limit_memory: 'Limit Memory',
limit_memory_tips: 'Please enter limit memory',
create_time: 'Create Time',
update_time: 'Update Time',
operation: 'Operation',
edit: 'Edit',
delete: 'Delete',
delete_confirm: 'Delete?'
}
}
const datasource = {
datasource: 'DataSource',
create_datasource: 'Create DataSource',
search_input_tips: 'Please input the keywords',
datasource_name: 'Datasource Name',
datasource_name_tips: 'Please enter datasource name',
datasource_user_name: 'Owner',
datasource_type: 'Datasource Type',
datasource_parameter: 'Datasource Parameter',
description: 'Description',
description_tips: 'Please enter description',
create_time: 'Create Time',
update_time: 'Update Time',
operation: 'Operation',
click_to_view: 'Click to view',
delete: 'Delete',
confirm: 'Confirm',
cancel: 'Cancel',
create: 'Create',
edit: 'Edit',
success: 'Success',
test_connect: 'Test Connect',
ip: 'IP',
ip_tips: 'Please enter IP',
port: 'Port',
port_tips: 'Please enter port',
database_name: 'Database Name',
database_name_tips: 'Please enter database name',
oracle_connect_type: 'ServiceName or SID',
oracle_connect_type_tips: 'Please select serviceName or SID',
oracle_service_name: 'ServiceName',
oracle_sid: 'SID',
jdbc_connect_parameters: 'jdbc connect parameters',
principal_tips: 'Please enter Principal',
krb5_conf_tips:
'Please enter the kerberos authentication parameter java.security.krb5.conf',
keytab_username_tips:
'Please enter the kerberos authentication parameter login.user.keytab.username',
keytab_path_tips:
'Please enter the kerberos authentication parameter login.user.keytab.path',
format_tips: 'Please enter format',
connection_parameter: 'connection parameter',
user_name: 'User Name',
user_name_tips: 'Please enter your username',
user_password: 'Password',
user_password_tips: 'Please enter your password'
}
const data_quality = {
task_result: {
task_name: 'Task Name',
workflow_instance: 'Workflow Instance',
rule_type: 'Rule Type',
rule_name: 'Rule Name',
state: 'State',
actual_value: 'Actual Value',
excepted_value: 'Excepted Value',
check_type: 'Check Type',
operator: 'Operator',
threshold: 'Threshold',
failure_strategy: 'Failure Strategy',
excepted_value_type: 'Excepted Value Type',
error_output_path: 'Error Output Path',
username: 'Username',
create_time: 'Create Time',
update_time: 'Update Time',
undone: 'Undone',
success: 'Success',
failure: 'Failure',
single_table: 'Single Table',
single_table_custom_sql: 'Single Table Custom Sql',
multi_table_accuracy: 'Multi Table Accuracy',
multi_table_comparison: 'Multi Table Comparison',
expected_and_actual_or_expected: '(Expected - Actual) / Expected x 100%',
expected_and_actual: 'Expected - Actual',
actual_and_expected: 'Actual - Expected',
actual_or_expected: 'Actual / Expected x 100%'
},
rule: {
actions: 'Actions',
name: 'Rule Name',
type: 'Rule Type',
username: 'User Name',
create_time: 'Create Time',
update_time: 'Update Time',
input_item: 'Rule input item',
view_input_item: 'View input items',
input_item_title: 'Input item title',
input_item_placeholder: 'Input item placeholder',
input_item_type: 'Input item type',
src_connector_type: 'SrcConnType',
src_datasource_id: 'SrcSource',
src_table: 'SrcTable',
src_filter: 'SrcFilter',
src_field: 'SrcField',
statistics_name: 'ActualValName',
check_type: 'CheckType',
operator: 'Operator',
threshold: 'Threshold',
failure_strategy: 'FailureStrategy',
target_connector_type: 'TargetConnType',
target_datasource_id: 'TargetSourceId',
target_table: 'TargetTable',
target_filter: 'TargetFilter',
mapping_columns: 'OnClause',
statistics_execute_sql: 'ActualValExecSql',
comparison_name: 'ExceptedValName',
comparison_execute_sql: 'ExceptedValExecSql',
comparison_type: 'ExceptedValType',
writer_connector_type: 'WriterConnType',
writer_datasource_id: 'WriterSourceId',
target_field: 'TargetField',
field_length: 'FieldLength',
logic_operator: 'LogicOperator',
regexp_pattern: 'RegexpPattern',
deadline: 'Deadline',
datetime_format: 'DatetimeFormat',
enum_list: 'EnumList',
begin_time: 'BeginTime',
fix_value: 'FixValue',
null_check: 'NullCheck',
custom_sql: 'Custom Sql',
single_table: 'Single Table',
single_table_custom_sql: 'Single Table Custom Sql',
multi_table_accuracy: 'Multi Table Accuracy',
multi_table_value_comparison: 'Multi Table Compare',
field_length_check: 'FieldLengthCheck',
uniqueness_check: 'UniquenessCheck',
regexp_check: 'RegexpCheck',
timeliness_check: 'TimelinessCheck',
enumeration_check: 'EnumerationCheck',
table_count_check: 'TableCountCheck',
All: 'All',
FixValue: 'FixValue',
DailyAvg: 'DailyAvg',
WeeklyAvg: 'WeeklyAvg',
MonthlyAvg: 'MonthlyAvg',
Last7DayAvg: 'Last7DayAvg',
Last30DayAvg: 'Last30DayAvg',
SrcTableTotalRows: 'SrcTableTotalRows',
TargetTableTotalRows: 'TargetTableTotalRows'
}
}
const crontab = {
second: 'second',
minute: 'minute',
hour: 'hour',
day: 'day',
month: 'month',
year: 'year',
monday: 'Monday',
tuesday: 'Tuesday',
wednesday: 'Wednesday',
thursday: 'Thursday',
friday: 'Friday',
saturday: 'Saturday',
sunday: 'Sunday',
every_second: 'Every second',
every: 'Every',
second_carried_out: 'second carried out',
second_start: 'Start',
specific_second: 'Specific second(multiple)',
specific_second_tip: 'Please enter a specific second',
cycle_from: 'Cycle from',
to: 'to',
every_minute: 'Every minute',
minute_carried_out: 'minute carried out',
minute_start: 'Start',
specific_minute: 'Specific minute(multiple)',
specific_minute_tip: 'Please enter a specific minute',
every_hour: 'Every hour',
hour_carried_out: 'hour carried out',
hour_start: 'Start',
specific_hour: 'Specific hour(multiple)',
specific_hour_tip: 'Please enter a specific hour',
every_day: 'Every day',
week_carried_out: 'week carried out',
start: 'Start',
day_carried_out: 'day carried out',
day_start: 'Start',
specific_week: 'Specific day of the week(multiple)',
specific_week_tip: 'Please enter a specific week',
specific_day: 'Specific days(multiple)',
specific_day_tip: 'Please enter a days',
last_day_of_month: 'On the last day of the month',
last_work_day_of_month: 'On the last working day of the month',
last_of_month: 'At the last of this month',
before_end_of_month: 'Before the end of this month',
recent_business_day_to_month:
'The most recent business day (Monday to Friday) to this month',
in_this_months: 'In this months',
every_month: 'Every month',
month_carried_out: 'month carried out',
month_start: 'Start',
specific_month: 'Specific months(multiple)',
specific_month_tip: 'Please enter a months',
every_year: 'Every year',
year_carried_out: 'year carried out',
year_start: 'Start',
specific_year: 'Specific year(multiple)',
specific_year_tip: 'Please enter a year',
one_hour: 'hour',
one_day: 'day'
}
export default {
login,
modal,
theme,
userDropdown,
menu,
home,
password,
profile,
monitor,
resource,
project,
security,
datasource,
data_quality,
crontab
}
|
closed
|
apache/dolphinscheduler
|
https://github.com/apache/dolphinscheduler
| 8,879 |
[Bug] [UI Next][V1.0.0-Alpha] missing batch delete and batch copy and batch export in workflow definition page
|
### Search before asking
- [X] I had searched in the [issues](https://github.com/apache/dolphinscheduler/issues?q=is%3Aissue) and found no similar issues.
### What happened

### What you expected to happen
above.
### How to reproduce
above.
### Anything else
_No response_
### Version
dev
### Are you willing to submit PR?
- [ ] Yes I am willing to submit a PR!
### Code of Conduct
- [X] I agree to follow this project's [Code of Conduct](https://www.apache.org/foundation/policies/conduct)
|
https://github.com/apache/dolphinscheduler/issues/8879
|
https://github.com/apache/dolphinscheduler/pull/8930
|
9cf5c6d00eb70166eeb58d750910935e60df6acd
|
dde81eb93c88042f415cb5f6e0f55c75d6ef95fb
| 2022-03-14T10:20:48Z |
java
| 2022-03-16T09:59:20Z |
dolphinscheduler-ui-next/src/locales/modules/zh_CN.ts
|
/*
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership.
* The ASF licenses this file to You under the Apache License, Version 2.0
* (the "License"); you may not use this file except in compliance with
* the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
const login = {
test: '测试',
userName: '用户名',
userName_tips: '请输入用户名',
userPassword: '密码',
userPassword_tips: '请输入密码',
login: '登录'
}
const modal = {
cancel: '取消',
confirm: '确定'
}
const theme = {
light: '浅色',
dark: '深色'
}
const userDropdown = {
profile: '用户信息',
password: '密码管理',
logout: '退出登录'
}
const menu = {
home: '首页',
project: '项目管理',
resources: '资源中心',
datasource: '数据源中心',
monitor: '监控中心',
security: '安全中心',
project_overview: '项目概览',
workflow_relation: '工作流关系',
workflow: '工作流',
workflow_definition: '工作流定义',
workflow_instance: '工作流实例',
task: '任务',
task_instance: '任务实例',
task_definition: '任务定义',
file_manage: '文件管理',
udf_manage: 'UDF管理',
resource_manage: '资源管理',
function_manage: '函数管理',
service_manage: '服务管理',
master: 'Master',
worker: 'Worker',
db: 'DB',
statistical_manage: '统计管理',
statistics: 'Statistics',
audit_log: '审计日志',
tenant_manage: '租户管理',
user_manage: '用户管理',
alarm_group_manage: '告警组管理',
alarm_instance_manage: '告警实例管理',
worker_group_manage: 'Worker分组管理',
yarn_queue_manage: 'Yarn队列管理',
environment_manage: '环境管理',
k8s_namespace_manage: 'K8S命名空间管理',
token_manage: '令牌管理',
task_group_manage: '任务组管理',
task_group_option: '任务组配置',
task_group_queue: '任务组队列',
data_quality: '数据质量',
task_result: '任务结果',
rule: '规则管理'
}
const home = {
task_state_statistics: '任务状态统计',
process_state_statistics: '流程状态统计',
process_definition_statistics: '流程定义统计',
number: '数量',
state: '状态',
submitted_success: '提交成功',
running_execution: '正在运行',
ready_pause: '准备暂停',
pause: '暂停',
ready_stop: '准备停止',
stop: '停止',
failure: '失败',
success: '成功',
need_fault_tolerance: '需要容错',
kill: 'KILL',
waiting_thread: '等待线程',
waiting_depend: '等待依赖完成',
delay_execution: '延时执行',
forced_success: '强制成功',
serial_wait: '串行等待',
ready_block: '准备阻断',
block: '阻断'
}
const password = {
edit_password: '修改密码',
password: '密码',
confirm_password: '确认密码',
password_tips: '请输入密码',
confirm_password_tips: '请输入确认密码',
two_password_entries_are_inconsistent: '两次密码输入不一致',
submit: '提交'
}
const profile = {
profile: '用户信息',
edit: '编辑',
username: '用户名',
email: '邮箱',
phone: '手机',
state: '状态',
permission: '权限',
create_time: '创建时间',
update_time: '更新时间',
administrator: '管理员',
ordinary_user: '普通用户',
edit_profile: '编辑用户',
username_tips: '请输入用户名',
email_tips: '请输入邮箱',
email_correct_tips: '请输入正确格式的邮箱',
phone_tips: '请输入手机号',
state_tips: '请选择状态',
enable: '启用',
disable: '禁用',
timezone_success: '时区更新成功',
please_select_timezone: '请选择时区'
}
const monitor = {
master: {
cpu_usage: '处理器使用量',
memory_usage: '内存使用量',
load_average: '平均负载量',
create_time: '创建时间',
last_heartbeat_time: '最后心跳时间',
directory_detail: '目录详情',
host: '主机',
directory: '注册目录'
},
worker: {
cpu_usage: '处理器使用量',
memory_usage: '内存使用量',
load_average: '平均负载量',
create_time: '创建时间',
last_heartbeat_time: '最后心跳时间',
directory_detail: '目录详情',
host: '主机',
directory: '注册目录'
},
db: {
health_state: '健康状态',
max_connections: '最大连接数',
threads_connections: '当前连接数',
threads_running_connections: '数据库当前活跃连接数'
},
statistics: {
command_number_of_waiting_for_running: '待执行的命令数',
failure_command_number: '执行失败的命令数',
tasks_number_of_waiting_running: '待运行任务数',
task_number_of_ready_to_kill: '待杀死任务数'
},
audit_log: {
user_name: '用户名称',
resource_type: '资源类型',
project_name: '项目名称',
operation_type: '操作类型',
create_time: '创建时间',
start_time: '开始时间',
end_time: '结束时间',
user_audit: '用户管理审计',
project_audit: '项目管理审计',
create: '创建',
update: '更新',
delete: '删除',
read: '读取'
}
}
const resource = {
file: {
file_manage: '文件管理',
create_folder: '创建文件夹',
create_file: '创建文件',
upload_files: '上传文件',
enter_keyword_tips: '请输入关键词',
name: '名称',
user_name: '所属用户',
whether_directory: '是否文件夹',
file_name: '文件名称',
description: '描述',
size: '大小',
update_time: '更新时间',
operation: '操作',
edit: '编辑',
rename: '重命名',
download: '下载',
delete: '删除',
yes: '是',
no: '否',
folder_name: '文件夹名称',
enter_name_tips: '请输入名称',
enter_description_tips: '请输入描述',
enter_content_tips: '请输入资源内容',
enter_suffix_tips: '请输入文件后缀',
file_format: '文件格式',
file_content: '文件内容',
delete_confirm: '确定删除吗?',
confirm: '确定',
cancel: '取消',
success: '成功',
file_details: '文件详情',
return: '返回',
save: '保存'
},
udf: {
udf_resources: 'UDF资源',
create_folder: '创建文件夹',
upload_udf_resources: '上传UDF资源',
udf_source_name: 'UDF资源名称',
whether_directory: '是否文件夹',
file_name: '文件名称',
file_size: '文件大小',
description: '描述',
create_time: '创建时间',
update_time: '更新时间',
operation: '操作',
yes: '是',
no: '否',
edit: '编辑',
download: '下载',
delete: '删除',
success: '成功',
folder_name: '文件夹名称',
upload: '上传',
upload_files: '上传文件',
file_upload: '文件上传',
delete_confirm: '确定删除吗?',
enter_keyword_tips: '请输入关键词',
enter_name_tips: '请输入名称',
enter_description_tips: '请输入描述'
},
function: {
udf_function: 'UDF函数',
create_udf_function: '创建UDF函数',
edit_udf_function: '编辑UDF函数',
udf_function_name: 'UDF函数名称',
class_name: '类名',
type: '类型',
description: '描述',
jar_package: 'jar包',
update_time: '更新时间',
operation: '操作',
rename: '重命名',
edit: '编辑',
delete: '删除',
success: '成功',
package_name: '包名类名',
udf_resources: 'UDF资源',
instructions: '使用说明',
upload_resources: '上传资源',
udf_resources_directory: 'UDF资源目录',
delete_confirm: '确定删除吗?',
enter_keyword_tips: '请输入关键词',
enter_udf_unction_name_tips: '请输入UDF函数名称',
enter_package_name_tips: '请输入包名类名',
enter_select_udf_resources_tips: '请选择UDF资源',
enter_select_udf_resources_directory_tips: '请选择UDF资源目录',
enter_instructions_tips: '请输入使用说明',
enter_name_tips: '请输入名称',
enter_description_tips: '请输入描述'
},
task_group_option: {
manage: '任务组管理',
option: '任务组配置',
create: '创建任务组',
edit: '编辑任务组',
delete: '删除任务组',
view_queue: '查看任务组队列',
switch_status: '切换任务组状态',
code: '任务组编号',
name: '任务组名称',
project_name: '项目名称',
resource_pool_size: '资源容量',
resource_used_pool_size: '已用资源',
desc: '描述信息',
status: '任务组状态',
enable_status: '启用',
disable_status: '不可用',
please_enter_name: '请输入任务组名称',
please_enter_desc: '请输入任务组描述',
please_enter_resource_pool_size: '请输入资源容量大小',
resource_pool_size_be_a_number: '资源容量大小必须大于等于1的数值',
please_select_project: '请选择项目',
create_time: '创建时间',
update_time: '更新时间',
actions: '操作',
please_enter_keywords: '请输入搜索关键词'
},
task_group_queue: {
actions: '操作',
task_name: '任务名称',
task_group_name: '任务组名称',
project_name: '项目名称',
process_name: '工作流名称',
process_instance_name: '工作流实例',
queue: '任务组队列',
priority: '组内优先级',
priority_be_a_number: '优先级必须是大于等于0的数值',
force_starting_status: '是否强制启动',
in_queue: '是否排队中',
task_status: '任务状态',
view_task_group_queue: '查看任务组队列',
the_status_of_waiting: '等待入队',
the_status_of_queuing: '排队中',
the_status_of_releasing: '已释放',
modify_priority: '修改优先级',
start_task: '强制启动',
priority_not_empty: '优先级不能为空',
priority_must_be_number: '优先级必须是数值',
please_select_task_name: '请选择节点名称',
create_time: '创建时间',
update_time: '更新时间',
edit_priority: '修改优先级'
}
}
const project = {
list: {
create_project: '创建项目',
edit_project: '编辑项目',
project_list: '项目列表',
project_tips: '请输入项目名称',
description_tips: '请输入项目描述',
username_tips: '请输入所属用户',
project_name: '项目名称',
project_description: '项目描述',
owned_users: '所属用户',
workflow_define_count: '工作流定义数',
process_instance_running_count: '正在运行的流程数',
description: '描述',
create_time: '创建时间',
update_time: '更新时间',
operation: '操作',
edit: '编辑',
delete: '删除',
confirm: '确定',
cancel: '取消',
delete_confirm: '确定删除吗?'
},
workflow: {
workflow_relation: '工作流关系',
create_workflow: '创建工作流',
import_workflow: '导入工作流',
workflow_name: '工作流名称',
current_selection: '当前选择',
online: '已上线',
offline: '已下线',
refresh: '刷新',
show_hide_label: '显示 / 隐藏标签',
workflow_offline: '工作流下线',
schedule_offline: '调度下线',
schedule_start_time: '定时开始时间',
schedule_end_time: '定时结束时间',
crontab_expression: 'Crontab',
workflow_publish_status: '工作流上线状态',
schedule_publish_status: '定时状态',
workflow_definition: '工作流定义',
workflow_instance: '工作流实例',
status: '状态',
create_time: '创建时间',
update_time: '更新时间',
description: '描述',
create_user: '创建用户',
modify_user: '修改用户',
operation: '操作',
edit: '编辑',
confirm: '确定',
cancel: '取消',
start: '运行',
timing: '定时',
timezone: '时区',
up_line: '上线',
down_line: '下线',
copy_workflow: '复制工作流',
cron_manage: '定时管理',
delete: '删除',
tree_view: '工作流树形图',
tree_limit: '限制大小',
export: '导出',
version_info: '版本信息',
version: '版本',
file_upload: '文件上传',
upload_file: '上传文件',
upload: '上传',
file_name: '文件名称',
success: '成功',
set_parameters_before_starting: '启动前请先设置参数',
set_parameters_before_timing: '定时前请先设置参数',
start_and_stop_time: '起止时间',
next_five_execution_times: '接下来五次执行时间',
execute_time: '执行时间',
failure_strategy: '失败策略',
notification_strategy: '通知策略',
workflow_priority: '流程优先级',
worker_group: 'Worker分组',
environment_name: '环境名称',
alarm_group: '告警组',
complement_data: '补数',
startup_parameter: '启动参数',
whether_dry_run: '是否空跑',
continue: '继续',
end: '结束',
none_send: '都不发',
success_send: '成功发',
failure_send: '失败发',
all_send: '成功或失败都发',
whether_complement_data: '是否是补数',
schedule_date: '调度日期',
mode_of_execution: '执行方式',
serial_execution: '串行执行',
parallel_execution: '并行执行',
parallelism: '并行度',
custom_parallelism: '自定义并行度',
please_enter_parallelism: '请输入并行度',
please_choose: '请选择',
start_time: '开始时间',
end_time: '结束时间',
crontab: 'Crontab',
delete_confirm: '确定删除吗?',
enter_name_tips: '请输入名称',
switch_version: '切换到该版本',
confirm_switch_version: '确定切换到该版本吗?',
current_version: '当前版本',
run_type: '运行类型',
scheduling_time: '调度时间',
duration: '运行时长',
run_times: '运行次数',
fault_tolerant_sign: '容错标识',
dry_run_flag: '空跑标识',
executor: '执行用户',
host: 'Host',
start_process: '启动工作流',
execute_from_the_current_node: '从当前节点开始执行',
recover_tolerance_fault_process: '恢复被容错的工作流',
resume_the_suspension_process: '恢复运行流程',
execute_from_the_failed_nodes: '从失败节点开始执行',
scheduling_execution: '调度执行',
rerun: '重跑',
stop: '停止',
pause: '暂停',
recovery_waiting_thread: '恢复等待线程',
recover_serial_wait: '串行恢复',
recovery_suspend: '恢复运行',
recovery_failed: '恢复失败',
gantt: '甘特图',
name: '名称',
all_status: '全部状态',
submit_success: '提交成功',
running: '正在运行',
ready_to_pause: '准备暂停',
ready_to_stop: '准备停止',
failed: '失败',
need_fault_tolerance: '需要容错',
kill: 'Kill',
waiting_for_thread: '等待线程',
waiting_for_dependence: '等待依赖',
waiting_for_dependency_to_complete: '等待依赖完成',
delay_execution: '延时执行',
forced_success: '强制成功',
serial_wait: '串行等待',
executing: '正在执行',
startup_type: '启动类型',
complement_range: '补数范围',
parameters_variables: '参数变量',
global_parameters: '全局参数',
local_parameters: '局部参数',
type: '类型',
retry_count: '重试次数',
submit_time: '提交时间',
refresh_status_succeeded: '刷新状态成功',
view_log: '查看日志',
update_log_success: '更新日志成功',
no_more_log: '暂无更多日志',
no_log: '暂无日志',
loading_log: '正在努力请求日志中...',
close: '关闭',
download_log: '下载日志',
refresh_log: '刷新日志',
enter_full_screen: '进入全屏',
cancel_full_screen: '取消全屏',
task_state: '任务状态',
mode_of_dependent: '依赖模式',
open: '打开'
},
task: {
task_name: '任务名称',
task_type: '任务类型',
create_task: '创建任务',
workflow_instance: '工作流实例',
workflow_name: '工作流名称',
workflow_name_tips: '请选择工作流名称',
workflow_state: '工作流状态',
version: '版本',
current_version: '当前版本',
switch_version: '切换到该版本',
confirm_switch_version: '确定切换到该版本吗?',
description: '描述',
move: '移动',
upstream_tasks: '上游任务',
executor: '执行用户',
node_type: '节点类型',
state: '状态',
submit_time: '提交时间',
start_time: '开始时间',
create_time: '创建时间',
update_time: '更新时间',
end_time: '结束时间',
duration: '运行时间',
retry_count: '重试次数',
dry_run_flag: '空跑标识',
host: '主机',
operation: '操作',
edit: '编辑',
delete: '删除',
delete_confirm: '确定删除吗?',
submitted_success: '提交成功',
running_execution: '正在运行',
ready_pause: '准备暂停',
pause: '暂停',
ready_stop: '准备停止',
stop: '停止',
failure: '失败',
success: '成功',
need_fault_tolerance: '需要容错',
kill: 'KILL',
waiting_thread: '等待线程',
waiting_depend: '等待依赖完成',
delay_execution: '延时执行',
forced_success: '强制成功',
view_log: '查看日志',
download_log: '下载日志',
refresh: '刷新'
},
dag: {
create: '创建工作流',
search: '搜索',
download_png: '下载工作流图片',
fullscreen_open: '全屏',
fullscreen_close: '退出全屏',
save: '保存',
close: '关闭',
format: '格式化',
refresh_dag_status: '刷新DAG状态',
layout_type: '布局类型',
grid_layout: '网格布局',
dagre_layout: '层次布局',
rows: '行数',
cols: '列数',
copy_success: '复制成功',
workflow_name: '工作流名称',
description: '描述',
tenant: '租户',
timeout_alert: '超时告警',
global_variables: '全局变量',
basic_info: '基本信息',
minute: '分',
key: '键',
value: '值',
success: '成功',
delete_cell: '删除选中的线或节点',
online_directly: '是否上线流程定义',
update_directly: '是否更新流程定义',
dag_name_empty: 'DAG图名称不能为空',
positive_integer: '请输入大于 0 的正整数',
prop_empty: '自定义参数prop不能为空',
prop_repeat: 'prop中有重复',
node_not_created: '未创建节点保存失败',
copy_name: '复制名称',
view_variables: '查看变量',
startup_parameter: '启动参数'
},
node: {
current_node_settings: '当前节点设置',
instructions: '使用说明',
view_history: '查看历史',
view_log: '查看日志',
enter_this_child_node: '进入该子节点',
name: '节点名称',
name_tips: '请输入名称(必填)',
task_type: '任务类型',
task_type_tips: '请选择任务类型(必选)',
process_name: '工作流名称',
process_name_tips: '请选择工作流(必选)',
child_node: '子节点',
enter_child_node: '进入该子节点',
run_flag: '运行标志',
normal: '正常',
prohibition_execution: '禁止执行',
description: '描述',
description_tips: '请输入描述',
task_priority: '任务优先级',
worker_group: 'Worker分组',
worker_group_tips: '该Worker分组已经不存在,请选择正确的Worker分组!',
environment_name: '环境名称',
task_group_name: '任务组名称',
task_group_queue_priority: '组内优先级',
number_of_failed_retries: '失败重试次数',
times: '次',
failed_retry_interval: '失败重试间隔',
minute: '分',
delay_execution_time: '延时执行时间',
state: '状态',
branch_flow: '分支流转',
cancel: '取消',
loading: '正在努力加载中...',
confirm: '确定',
success: '成功',
failed: '失败',
backfill_tips: '新创建子工作流还未执行,不能进入子工作流',
task_instance_tips: '该任务还未执行,不能进入子工作流',
branch_tips: '成功分支流转和失败分支流转不能选择同一个节点',
timeout_alarm: '超时告警',
timeout_strategy: '超时策略',
timeout_strategy_tips: '超时策略必须选一个',
timeout_failure: '超时失败',
timeout_period: '超时时长',
timeout_period_tips: '超时时长必须为正整数',
script: '脚本',
script_tips: '请输入脚本(必填)',
resources: '资源',
resources_tips: '请选择资源',
no_resources_tips: '请删除所有未授权或已删除资源',
useless_resources_tips: '未授权或已删除资源',
custom_parameters: '自定义参数',
copy_failed: '该浏览器不支持自动复制',
prop_tips: 'prop(必填)',
prop_repeat: 'prop中有重复',
value_tips: 'value(选填)',
value_required_tips: 'value(必填)',
pre_tasks: '前置任务',
program_type: '程序类型',
spark_version: 'Spark版本',
main_class: '主函数的Class',
main_class_tips: '请填写主函数的Class',
main_package: '主程序包',
main_package_tips: '请选择主程序包',
deploy_mode: '部署方式',
app_name: '任务名称',
app_name_tips: '请输入任务名称(选填)',
driver_cores: 'Driver核心数',
driver_cores_tips: '请输入Driver核心数',
driver_memory: 'Driver内存数',
driver_memory_tips: '请输入Driver内存数',
executor_number: 'Executor数量',
executor_number_tips: '请输入Executor数量',
executor_memory: 'Executor内存数',
executor_memory_tips: '请输入Executor内存数',
executor_cores: 'Executor核心数',
executor_cores_tips: '请输入Executor核心数',
main_arguments: '主程序参数',
main_arguments_tips: '请输入主程序参数',
option_parameters: '选项参数',
option_parameters_tips: '请输入选项参数',
positive_integer_tips: '应为正整数',
flink_version: 'Flink版本',
job_manager_memory: 'JobManager内存数',
job_manager_memory_tips: '请输入JobManager内存数',
task_manager_memory: 'TaskManager内存数',
task_manager_memory_tips: '请输入TaskManager内存数',
slot_number: 'Slot数量',
slot_number_tips: '请输入Slot数量',
parallelism: '并行度',
custom_parallelism: '自定义并行度',
parallelism_tips: '请输入并行度',
parallelism_number_tips: '并行度必须为正整数',
parallelism_complement_tips:
'如果存在大量任务需要补数时,可以利用自定义并行度将补数的任务线程设置成合理的数值,避免对服务器造成过大的影响',
task_manager_number: 'TaskManager数量',
task_manager_number_tips: '请输入TaskManager数量',
http_url: '请求地址',
http_url_tips: '请填写请求地址(必填)',
http_method: '请求类型',
http_parameters: '请求参数',
http_check_condition: '校验条件',
http_condition: '校验内容',
http_condition_tips: '请填写校验内容',
timeout_settings: '超时设置',
connect_timeout: '连接超时',
ms: '毫秒',
socket_timeout: 'Socket超时',
status_code_default: '默认响应码200',
status_code_custom: '自定义响应码',
body_contains: '内容包含',
body_not_contains: '内容不包含',
http_parameters_position: '参数位置',
target_task_name: '目标任务名',
target_task_name_tips: '请输入Pigeon任务名',
datasource_type: '数据源类型',
datasource_instances: '数据源实例',
sql_type: 'SQL类型',
sql_type_query: '查询',
sql_type_non_query: '非查询',
sql_statement: 'SQL语句',
pre_sql_statement: '前置SQL语句',
post_sql_statement: '后置SQL语句',
sql_input_placeholder: '请输入非查询SQL语句',
sql_empty_tips: '语句不能为空',
procedure_method: 'SQL语句',
procedure_method_tips: '请输入存储脚本',
procedure_method_snippet:
'--请输入存储脚本 \n\n--调用存储过程: call <procedure-name>[(<arg1>,<arg2>, ...)] \n\n--调用存储函数:?= call <procedure-name>[(<arg1>,<arg2>, ...)]',
start: '运行',
edit: '编辑',
copy: '复制节点',
delete: '删除',
custom_job: '自定义任务',
custom_script: '自定义脚本',
sqoop_job_name: '任务名称',
sqoop_job_name_tips: '请输入任务名称(必填)',
direct: '流向',
hadoop_custom_params: 'Hadoop参数',
sqoop_advanced_parameters: 'Sqoop参数',
data_source: '数据来源',
type: '类型',
datasource: '数据源',
datasource_tips: '请选择数据源',
model_type: '模式',
form: '表单',
table: '表名',
table_tips: '请输入Mysql表名(必填)',
column_type: '列类型',
all_columns: '全表导入',
some_columns: '选择列',
column: '列',
column_tips: '请输入列名,用 , 隔开',
database: '数据库',
database_tips: '请输入Hive数据库(必填)',
hive_table_tips: '请输入Hive表名(必填)',
hive_partition_keys: 'Hive 分区键',
hive_partition_keys_tips: '请输入分区键',
hive_partition_values: 'Hive 分区值',
hive_partition_values_tips: '请输入分区值',
export_dir: '数据源路径',
export_dir_tips: '请输入数据源路径(必填)',
sql_statement_tips: 'SQL语句(必填)',
map_column_hive: 'Hive类型映射',
map_column_java: 'Java类型映射',
data_target: '数据目的',
create_hive_table: '是否创建新表',
drop_delimiter: '是否删除分隔符',
over_write_src: '是否覆盖数据源',
hive_target_dir: 'Hive目标路径',
hive_target_dir_tips: '请输入Hive临时目录',
replace_delimiter: '替换分隔符',
replace_delimiter_tips: '请输入替换分隔符',
target_dir: '目标路径',
target_dir_tips: '请输入目标路径(必填)',
delete_target_dir: '是否删除目录',
compression_codec: '压缩类型',
file_type: '保存格式',
fields_terminated: '列分隔符',
fields_terminated_tips: '请输入列分隔符',
lines_terminated: '行分隔符',
lines_terminated_tips: '请输入行分隔符',
is_update: '是否更新',
update_key: '更新列',
update_key_tips: '请输入更新列',
update_mode: '更新类型',
only_update: '只更新',
allow_insert: '无更新便插入',
concurrency: '并发度',
concurrency_tips: '请输入并发度',
sea_tunnel_master: 'Master',
sea_tunnel_master_url: 'Master URL',
sea_tunnel_queue: '队列',
sea_tunnel_master_url_tips: '请直接填写地址,例如:127.0.0.1:7077',
switch_condition: '条件',
switch_branch_flow: '分支流转',
and: '且',
or: '或',
datax_custom_template: '自定义模板',
datax_json_template: 'JSON',
datax_target_datasource_type: '目标源类型',
datax_target_database: '目标源实例',
datax_target_table: '目标表',
datax_target_table_tips: '请输入目标表名',
datax_target_database_pre_sql: '目标库前置SQL',
datax_target_database_post_sql: '目标库后置SQL',
datax_non_query_sql_tips: '请输入非查询SQL语句',
datax_job_speed_byte: '限流(字节数)',
datax_job_speed_byte_info: '(KB,0代表不限制)',
datax_job_speed_record: '限流(记录数)',
datax_job_speed_record_info: '(0代表不限制)',
datax_job_runtime_memory: '运行内存',
datax_job_runtime_memory_xms: '最小内存',
datax_job_runtime_memory_xmx: '最大内存',
datax_job_runtime_memory_unit: 'G',
current_hour: '当前小时',
last_1_hour: '前1小时',
last_2_hour: '前2小时',
last_3_hour: '前3小时',
last_24_hour: '前24小时',
today: '今天',
last_1_days: '昨天',
last_2_days: '前两天',
last_3_days: '前三天',
last_7_days: '前七天',
this_week: '本周',
last_week: '上周',
last_monday: '上周一',
last_tuesday: '上周二',
last_wednesday: '上周三',
last_thursday: '上周四',
last_friday: '上周五',
last_saturday: '上周六',
last_sunday: '上周日',
this_month: '本月',
last_month: '上月',
last_month_begin: '上月初',
last_month_end: '上月末',
month: '月',
week: '周',
day: '日',
hour: '时',
add_dependency: '添加依赖',
waiting_dependent_start: '等待依赖启动',
check_interval: '检查间隔',
waiting_dependent_complete: '等待依赖完成',
rule_name: '规则名称',
null_check: '空值检测',
custom_sql: '自定义SQL',
multi_table_accuracy: '多表准确性',
multi_table_value_comparison: '两表值比对',
field_length_check: '字段长度校验',
uniqueness_check: '唯一性校验',
regexp_check: '正则表达式',
timeliness_check: '及时性校验',
enumeration_check: '枚举值校验',
table_count_check: '表行数校验',
src_connector_type: '源数据类型',
src_datasource_id: '源数据源',
src_table: '源数据表',
src_filter: '源表过滤条件',
src_field: '源表检测列',
statistics_name: '实际值名',
check_type: '校验方式',
operator: '校验操作符',
threshold: '阈值',
failure_strategy: '失败策略',
target_connector_type: '目标数据类型',
target_datasource_id: '目标数据源',
target_table: '目标数据表',
target_filter: '目标表过滤条件',
mapping_columns: 'ON语句',
statistics_execute_sql: '实际值计算SQL',
comparison_name: '期望值名',
comparison_execute_sql: '期望值计算SQL',
comparison_type: '期望值类型',
writer_connector_type: '输出数据类型',
writer_datasource_id: '输出数据源',
target_field: '目标表检测列',
field_length: '字段长度限制',
logic_operator: '逻辑操作符',
regexp_pattern: '正则表达式',
deadline: '截止时间',
datetime_format: '时间格式',
enum_list: '枚举值列表',
begin_time: '起始时间',
fix_value: '固定值',
required: '必填',
emr_flow_define_json: 'jobFlowDefineJson',
emr_flow_define_json_tips: '请输入工作流定义'
}
}
const security = {
tenant: {
tenant_manage: '租户管理',
create_tenant: '创建租户',
search_tips: '请输入关键词',
tenant_code: '操作系统租户',
description: '描述',
queue_name: '队列',
create_time: '创建时间',
update_time: '更新时间',
actions: '操作',
edit_tenant: '编辑租户',
tenant_code_tips: '请输入操作系统租户',
queue_name_tips: '请选择队列',
description_tips: '请输入描述',
delete_confirm: '确定删除吗?',
edit: '编辑',
delete: '删除'
},
alarm_group: {
create_alarm_group: '创建告警组',
edit_alarm_group: '编辑告警组',
search_tips: '请输入关键词',
alert_group_name_tips: '请输入告警组名称',
alarm_plugin_instance: '告警组实例',
alarm_plugin_instance_tips: '请选择告警组实例',
alarm_group_description_tips: '请输入告警组描述',
alert_group_name: '告警组名称',
alarm_group_description: '告警组描述',
create_time: '创建时间',
update_time: '更新时间',
operation: '操作',
delete_confirm: '确定删除吗?',
edit: '编辑',
delete: '删除'
},
worker_group: {
create_worker_group: '创建Worker分组',
edit_worker_group: '编辑Worker分组',
search_tips: '请输入关键词',
operation: '操作',
delete_confirm: '确定删除吗?',
edit: '编辑',
delete: '删除',
group_name: '分组名称',
group_name_tips: '请输入分组名称',
worker_addresses: 'Worker地址',
worker_addresses_tips: '请选择Worker地址',
create_time: '创建时间',
update_time: '更新时间'
},
yarn_queue: {
create_queue: '创建队列',
edit_queue: '编辑队列',
search_tips: '请输入关键词',
queue_name: '队列名',
queue_value: '队列值',
create_time: '创建时间',
update_time: '更新时间',
operation: '操作',
edit: '编辑',
queue_name_tips: '请输入队列名',
queue_value_tips: '请输入队列值'
},
environment: {
create_environment: '创建环境',
edit_environment: '编辑环境',
search_tips: '请输入关键词',
edit: '编辑',
delete: '删除',
environment_name: '环境名称',
environment_config: '环境配置',
environment_desc: '环境描述',
worker_groups: 'Worker分组',
create_time: '创建时间',
update_time: '更新时间',
operation: '操作',
delete_confirm: '确定删除吗?',
environment_name_tips: '请输入环境名',
environment_config_tips: '请输入环境配置',
environment_description_tips: '请输入环境描述',
worker_group_tips: '请选择Worker分组'
},
token: {
create_token: '创建令牌',
edit_token: '编辑令牌',
search_tips: '请输入关键词',
user: '用户',
user_tips: '请选择用户',
token: '令牌',
token_tips: '请输入令牌',
expiration_time: '失效时间',
expiration_time_tips: '请选择失效时间',
create_time: '创建时间',
update_time: '更新时间',
operation: '操作',
edit: '编辑',
delete: '删除',
delete_confirm: '确定删除吗?'
},
user: {
user_manage: '用户管理',
create_user: '创建用户',
update_user: '更新用户',
delete_user: '删除用户',
delete_confirm: '确定删除吗?',
project: '项目',
resource: '资源',
file_resource: '文件资源',
udf_resource: 'UDF资源',
datasource: '数据源',
udf: 'UDF函数',
authorize_project: '项目授权',
authorize_resource: '资源授权',
authorize_datasource: '数据源授权',
authorize_udf: 'UDF函数授权',
username: '用户名',
username_exists: '用户名已存在',
username_tips: '请输入用户名',
user_password: '密码',
user_password_tips: '请输入包含字母和数字,长度在6~20之间的密码',
user_type: '用户类型',
ordinary_user: '普通用户',
administrator: '管理员',
tenant_code: '租户',
tenant_id_tips: '请选择租户',
queue: '队列',
queue_tips: '默认为租户关联队列',
email: '邮件',
email_empty_tips: '请输入邮箱',
emial_correct_tips: '请输入正确的邮箱格式',
phone: '手机',
phone_empty_tips: '请输入手机号码',
phone_correct_tips: '请输入正确的手机格式',
state: '状态',
state_enabled: '启用',
state_disabled: '停用',
create_time: '创建时间',
update_time: '更新时间',
operation: '操作',
edit: '编辑',
delete: '删除',
authorize: '授权',
save_error_msg: '保存失败,请重试',
delete_error_msg: '删除失败,请重试',
auth_error_msg: '授权失败,请重试',
auth_success_msg: '授权成功',
enable: '启用',
disable: '停用'
},
alarm_instance: {
search_input_tips: '请输入关键字',
alarm_instance_manage: '告警实例管理',
alarm_instance: '告警实例',
alarm_instance_name: '告警实例名称',
alarm_instance_name_tips: '请输入告警实例名称',
alarm_plugin_name: '告警插件名称',
create_time: '创建时间',
update_time: '更新时间',
operation: '操作',
edit: '编辑',
delete: '删除',
confirm: '确定',
cancel: '取消',
submit: '提交',
create: '创建',
select_plugin: '选择插件',
select_plugin_tips: '请选择告警插件',
instance_parameter_exception: '实例参数异常',
WebHook: 'Web钩子',
webHook: 'Web钩子',
IsEnableProxy: '启用代理',
Proxy: '代理',
Port: '端口',
User: '用户',
corpId: '企业ID',
secret: '密钥',
Secret: '密钥',
users: '群员',
userSendMsg: '群员信息',
agentId: '应用ID',
showType: '内容展示类型',
receivers: '收件人',
receiverCcs: '抄送人',
serverHost: 'SMTP服务器',
serverPort: 'SMTP端口',
sender: '发件人',
enableSmtpAuth: '请求认证',
Password: '密码',
starttlsEnable: 'STARTTLS连接',
sslEnable: 'SSL连接',
smtpSslTrust: 'SSL证书信任',
url: 'URL',
requestType: '请求方式',
headerParams: '请求头',
bodyParams: '请求体',
contentField: '内容字段',
Keyword: '关键词',
userParams: '自定义参数',
path: '脚本路径',
type: '类型',
sendType: '发送类型',
username: '用户名',
botToken: '机器人Token',
chatId: '频道ID',
parseMode: '解析类型'
},
k8s_namespace: {
create_namespace: '创建命名空间',
edit_namespace: '编辑命名空间',
search_tips: '请输入关键词',
k8s_namespace: 'K8S命名空间',
k8s_namespace_tips: '请输入k8s命名空间',
k8s_cluster: 'K8S集群',
k8s_cluster_tips: '请输入k8s集群',
owner: '负责人',
owner_tips: '请输入负责人',
tag: '标签',
tag_tips: '请输入标签',
limit_cpu: '最大CPU',
limit_cpu_tips: '请输入最大CPU',
limit_memory: '最大内存',
limit_memory_tips: '请输入最大内存',
create_time: '创建时间',
update_time: '更新时间',
operation: '操作',
edit: '编辑',
delete: '删除',
delete_confirm: '确定删除吗?'
}
}
const datasource = {
datasource: '数据源',
create_datasource: '创建数据源',
search_input_tips: '请输入关键字',
datasource_name: '数据源名称',
datasource_name_tips: '请输入数据源名称',
datasource_user_name: '所属用户',
datasource_type: '数据源类型',
datasource_parameter: '数据源参数',
description: '描述',
description_tips: '请输入描述',
create_time: '创建时间',
update_time: '更新时间',
operation: '操作',
click_to_view: '点击查看',
delete: '删除',
confirm: '确定',
cancel: '取消',
create: '创建',
edit: '编辑',
success: '成功',
test_connect: '测试连接',
ip: 'IP主机名',
ip_tips: '请输入IP主机名',
port: '端口',
port_tips: '请输入端口',
database_name: '数据库名',
database_name_tips: '请输入数据库名',
oracle_connect_type: '服务名或SID',
oracle_connect_type_tips: '请选择服务名或SID',
oracle_service_name: '服务名',
oracle_sid: 'SID',
jdbc_connect_parameters: 'jdbc连接参数',
principal_tips: '请输入Principal',
krb5_conf_tips: '请输入kerberos认证参数 java.security.krb5.conf',
keytab_username_tips: '请输入kerberos认证参数 login.user.keytab.username',
keytab_path_tips: '请输入kerberos认证参数 login.user.keytab.path',
format_tips: '请输入格式为',
connection_parameter: '连接参数',
user_name: '用户名',
user_name_tips: '请输入用户名',
user_password: '密码',
user_password_tips: '请输入密码'
}
const data_quality = {
task_result: {
task_name: '任务名称',
workflow_instance: '工作流实例',
rule_type: '规则类型',
rule_name: '规则名称',
state: '状态',
actual_value: '实际值',
excepted_value: '期望值',
check_type: '检测类型',
operator: '操作符',
threshold: '阈值',
failure_strategy: '失败策略',
excepted_value_type: '期望值类型',
error_output_path: '错误数据路径',
username: '用户名',
create_time: '创建时间',
update_time: '更新时间',
undone: '未完成',
success: '成功',
failure: '失败',
single_table: '单表检测',
single_table_custom_sql: '自定义SQL',
multi_table_accuracy: '多表准确性',
multi_table_comparison: '两表值对比',
expected_and_actual_or_expected: '(期望值-实际值)/实际值 x 100%',
expected_and_actual: '期望值-实际值',
actual_and_expected: '实际值-期望值',
actual_or_expected: '实际值/期望值 x 100%'
},
rule: {
actions: '操作',
name: '规则名称',
type: '规则类型',
username: '用户名',
create_time: '创建时间',
update_time: '更新时间',
input_item: '规则输入项',
view_input_item: '查看规则输入项信息',
input_item_title: '输入项标题',
input_item_placeholder: '输入项占位符',
input_item_type: '输入项类型',
src_connector_type: '源数据类型',
src_datasource_id: '源数据源',
src_table: '源数据表',
src_filter: '源表过滤条件',
src_field: '源表检测列',
statistics_name: '实际值名',
check_type: '校验方式',
operator: '校验操作符',
threshold: '阈值',
failure_strategy: '失败策略',
target_connector_type: '目标数据类型',
target_datasource_id: '目标数据源',
target_table: '目标数据表',
target_filter: '目标表过滤条件',
mapping_columns: 'ON语句',
statistics_execute_sql: '实际值计算SQL',
comparison_name: '期望值名',
comparison_execute_sql: '期望值计算SQL',
comparison_type: '期望值类型',
writer_connector_type: '输出数据类型',
writer_datasource_id: '输出数据源',
target_field: '目标表检测列',
field_length: '字段长度限制',
logic_operator: '逻辑操作符',
regexp_pattern: '正则表达式',
deadline: '截止时间',
datetime_format: '时间格式',
enum_list: '枚举值列表',
begin_time: '起始时间',
fix_value: '固定值',
null_check: '空值检测',
custom_sql: '自定义SQL',
single_table: '单表检测',
multi_table_accuracy: '多表准确性',
multi_table_value_comparison: '两表值比对',
field_length_check: '字段长度校验',
uniqueness_check: '唯一性校验',
regexp_check: '正则表达式',
timeliness_check: '及时性校验',
enumeration_check: '枚举值校验',
table_count_check: '表行数校验',
all: '全部',
FixValue: '固定值',
DailyAvg: '日均值',
WeeklyAvg: '周均值',
MonthlyAvg: '月均值',
Last7DayAvg: '最近7天均值',
Last30DayAvg: '最近30天均值',
SrcTableTotalRows: '源表总行数',
TargetTableTotalRows: '目标表总行数'
}
}
const crontab = {
second: '秒',
minute: '分',
hour: '时',
day: '天',
month: '月',
year: '年',
monday: '星期一',
tuesday: '星期二',
wednesday: '星期三',
thursday: '星期四',
friday: '星期五',
saturday: '星期六',
sunday: '星期天',
every_second: '每一秒钟',
every: '每隔',
second_carried_out: '秒执行 从',
second_start: '秒开始',
specific_second: '具体秒数(可多选)',
specific_second_tip: '请选择具体秒数',
cycle_from: '周期从',
to: '到',
every_minute: '每一分钟',
minute_carried_out: '分执行 从',
minute_start: '分开始',
specific_minute: '具体分钟数(可多选)',
specific_minute_tip: '请选择具体分钟数',
every_hour: '每一小时',
hour_carried_out: '小时执行 从',
hour_start: '小时开始',
specific_hour: '具体小时数(可多选)',
specific_hour_tip: '请选择具体小时数',
every_day: '每一天',
week_carried_out: '周执行 从',
start: '开始',
day_carried_out: '天执行 从',
day_start: '天开始',
specific_week: '具体星期几(可多选)',
specific_week_tip: '请选择具体周几',
specific_day: '具体天数(可多选)',
specific_day_tip: '请选择具体天数',
last_day_of_month: '在这个月的最后一天',
last_work_day_of_month: '在这个月的最后一个工作日',
last_of_month: '在这个月的最后一个',
before_end_of_month: '在本月底前',
recent_business_day_to_month: '最近的工作日(周一至周五)至本月',
in_this_months: '在这个月的第',
every_month: '每一月',
month_carried_out: '月执行 从',
month_start: '月开始',
specific_month: '具体月数(可多选)',
specific_month_tip: '请选择具体月数',
every_year: '每一年',
year_carried_out: '年执行 从',
year_start: '年开始',
specific_year: '具体年数(可多选)',
specific_year_tip: '请选择具体年数',
one_hour: '小时',
one_day: '日'
}
export default {
login,
modal,
theme,
userDropdown,
menu,
home,
password,
profile,
monitor,
resource,
project,
security,
datasource,
data_quality,
crontab
}
|
closed
|
apache/dolphinscheduler
|
https://github.com/apache/dolphinscheduler
| 8,879 |
[Bug] [UI Next][V1.0.0-Alpha] missing batch delete and batch copy and batch export in workflow definition page
|
### Search before asking
- [X] I had searched in the [issues](https://github.com/apache/dolphinscheduler/issues?q=is%3Aissue) and found no similar issues.
### What happened

### What you expected to happen
above.
### How to reproduce
above.
### Anything else
_No response_
### Version
dev
### Are you willing to submit PR?
- [ ] Yes I am willing to submit a PR!
### Code of Conduct
- [X] I agree to follow this project's [Code of Conduct](https://www.apache.org/foundation/policies/conduct)
|
https://github.com/apache/dolphinscheduler/issues/8879
|
https://github.com/apache/dolphinscheduler/pull/8930
|
9cf5c6d00eb70166eeb58d750910935e60df6acd
|
dde81eb93c88042f415cb5f6e0f55c75d6ef95fb
| 2022-03-14T10:20:48Z |
java
| 2022-03-16T09:59:20Z |
dolphinscheduler-ui-next/src/service/modules/process-definition/index.ts
|
/*
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership.
* The ASF licenses this file to You under the Apache License, Version 2.0
* (the "License"); you may not use this file except in compliance with
* the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
import { axios } from '@/service/service'
import {
CodeReq,
CodesReq,
NameReq,
ReleaseStateReq,
LimitReq,
PageReq,
ListReq,
ProcessDefinitionReq,
TargetCodeReq
} from './types'
export function queryListPaging(params: PageReq & ListReq, code: number): any {
return axios({
url: `/projects/${code}/process-definition`,
method: 'get',
params
})
}
export function createProcessDefinition(
data: ProcessDefinitionReq,
projectCode: number
): any {
return axios({
url: `/projects/${projectCode}/process-definition`,
method: 'post',
data
})
}
export function queryAllByProjectCode(code: number): any {
return axios({
url: `/projects/${code}/process-definition/all`,
method: 'get'
})
}
export function batchCopyByCodes(
data: TargetCodeReq & CodesReq,
code: number
): any {
return axios({
url: `/projects/${code}/process-definition/batch-copy`,
method: 'post',
data
})
}
export function batchDeleteByCodes(data: CodesReq, code: CodeReq): any {
return axios({
url: `/projects/${code}/process-definition/batch-delete`,
method: 'post',
data
})
}
export function batchExportByCodes(data: CodesReq, code: number): any {
return axios({
url: `/projects/${code}/process-definition/batch-export`,
method: 'post',
responseType: 'blob',
data
})
}
export function batchMoveByCodes(
data: TargetCodeReq & CodesReq,
code: CodeReq
): any {
return axios({
url: `/projects/${code}/process-definition/batch-move`,
method: 'post',
data
})
}
export function getTaskListByDefinitionCodes(
params: CodesReq,
code: number
): any {
return axios({
url: `/projects/${code}/process-definition/batch-query-tasks`,
method: 'get',
params
})
}
export function importProcessDefinition(data: FormData, code: number): any {
return axios({
url: `/projects/${code}/process-definition/import`,
method: 'post',
data
})
}
export function queryList(code: CodeReq): any {
return axios({
url: `/projects/${code}/process-definition/list`,
method: 'get'
})
}
export function queryProcessDefinitionByName(
params: NameReq,
code: CodeReq
): any {
return axios({
url: `/projects/${code}/process-definition/query-by-name`,
method: 'get',
params
})
}
export function querySimpleList(code: number): any {
return axios({
url: `/projects/${code}/process-definition/simple-list`,
method: 'get'
})
}
export function verifyName(params: NameReq, code: number): any {
return axios({
url: `/projects/${code}/process-definition/verify-name`,
method: 'get',
params
})
}
export function queryProcessDefinitionByCode(
code: number,
projectCode: number
): any {
return axios({
url: `/projects/${projectCode}/process-definition/${code}`,
method: 'get'
})
}
export function updateProcessDefinition(
data: ProcessDefinitionReq & ReleaseStateReq,
code: number,
projectCode: number
): any {
return axios({
url: `/projects/${projectCode}/process-definition/${code}`,
method: 'put',
data
})
}
export function deleteByCode(code: number, processCode: number): any {
return axios({
url: `/projects/${code}/process-definition/${processCode}`,
method: 'delete'
})
}
export function release(
data: NameReq & ReleaseStateReq,
code: number,
processCode: number
): any {
return axios({
url: `/projects/${code}/process-definition/${processCode}/release`,
method: 'post',
data
})
}
export function getTasksByDefinitionCode(
code: number,
processCode: number
): any {
return axios({
url: `/projects/${code}/process-definition/${processCode}/tasks`,
method: 'get'
})
}
export function queryVersions(
params: PageReq,
code: number,
processCode: number
): any {
return axios({
url: `/projects/${code}/process-definition/${processCode}/versions`,
method: 'get',
params
})
}
export function switchVersion(
code: number,
processCode: number,
version: number
): any {
return axios({
url: `/projects/${code}/process-definition/${processCode}/versions/${version}`,
method: 'get'
})
}
export function deleteVersion(
code: number,
processCode: number,
version: number
): any {
return axios({
url: `/projects/${code}/process-definition/${processCode}/versions/${version}`,
method: 'delete'
})
}
export function viewTree(
code: number,
processCode: number,
params: LimitReq
): any {
return axios({
url: `/projects/${code}/process-definition/${processCode}/view-tree`,
method: 'get',
params
})
}
|
closed
|
apache/dolphinscheduler
|
https://github.com/apache/dolphinscheduler
| 8,879 |
[Bug] [UI Next][V1.0.0-Alpha] missing batch delete and batch copy and batch export in workflow definition page
|
### Search before asking
- [X] I had searched in the [issues](https://github.com/apache/dolphinscheduler/issues?q=is%3Aissue) and found no similar issues.
### What happened

### What you expected to happen
above.
### How to reproduce
above.
### Anything else
_No response_
### Version
dev
### Are you willing to submit PR?
- [ ] Yes I am willing to submit a PR!
### Code of Conduct
- [X] I agree to follow this project's [Code of Conduct](https://www.apache.org/foundation/policies/conduct)
|
https://github.com/apache/dolphinscheduler/issues/8879
|
https://github.com/apache/dolphinscheduler/pull/8930
|
9cf5c6d00eb70166eeb58d750910935e60df6acd
|
dde81eb93c88042f415cb5f6e0f55c75d6ef95fb
| 2022-03-14T10:20:48Z |
java
| 2022-03-16T09:59:20Z |
dolphinscheduler-ui-next/src/views/projects/workflow/definition/components/copy-modal.tsx
| |
closed
|
apache/dolphinscheduler
|
https://github.com/apache/dolphinscheduler
| 8,879 |
[Bug] [UI Next][V1.0.0-Alpha] missing batch delete and batch copy and batch export in workflow definition page
|
### Search before asking
- [X] I had searched in the [issues](https://github.com/apache/dolphinscheduler/issues?q=is%3Aissue) and found no similar issues.
### What happened

### What you expected to happen
above.
### How to reproduce
above.
### Anything else
_No response_
### Version
dev
### Are you willing to submit PR?
- [ ] Yes I am willing to submit a PR!
### Code of Conduct
- [X] I agree to follow this project's [Code of Conduct](https://www.apache.org/foundation/policies/conduct)
|
https://github.com/apache/dolphinscheduler/issues/8879
|
https://github.com/apache/dolphinscheduler/pull/8930
|
9cf5c6d00eb70166eeb58d750910935e60df6acd
|
dde81eb93c88042f415cb5f6e0f55c75d6ef95fb
| 2022-03-14T10:20:48Z |
java
| 2022-03-16T09:59:20Z |
dolphinscheduler-ui-next/src/views/projects/workflow/definition/components/start-modal.tsx
|
/*
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership.
* The ASF licenses this file to You under the Apache License, Version 2.0
* (the "License"); you may not use this file except in compliance with
* the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
import {
defineComponent,
PropType,
toRefs,
h,
onMounted,
ref,
watch
} from 'vue'
import { useI18n } from 'vue-i18n'
import Modal from '@/components/modal'
import { useForm } from './use-form'
import { useModal } from './use-modal'
import {
NForm,
NFormItem,
NButton,
NIcon,
NInput,
NSpace,
NRadio,
NRadioGroup,
NSelect,
NSwitch,
NCheckbox,
NDatePicker
} from 'naive-ui'
import {
ArrowDownOutlined,
ArrowUpOutlined,
DeleteOutlined,
PlusCircleOutlined
} from '@vicons/antd'
import { IDefinitionData } from '../types'
import styles from '../index.module.scss'
const props = {
row: {
type: Object as PropType<IDefinitionData>,
default: {}
},
show: {
type: Boolean as PropType<boolean>,
default: false
}
}
export default defineComponent({
name: 'workflowDefinitionStart',
props,
emits: ['update:show', 'update:row', 'updateList'],
setup(props, ctx) {
const parallelismRef = ref(false)
const { t } = useI18n()
const { startState } = useForm()
const {
variables,
handleStartDefinition,
getWorkerGroups,
getAlertGroups,
getEnvironmentList,
getStartParamsList
} = useModal(startState, ctx)
const hideModal = () => {
ctx.emit('update:show')
}
const handleStart = () => {
handleStartDefinition(props.row.code)
}
const generalWarningTypeListOptions = () => [
{
value: 'NONE',
label: t('project.workflow.none_send')
},
{
value: 'SUCCESS',
label: t('project.workflow.success_send')
},
{
value: 'FAILURE',
label: t('project.workflow.failure_send')
},
{
value: 'ALL',
label: t('project.workflow.all_send')
}
]
const generalPriorityList = () => [
{
value: 'HIGHEST',
label: 'HIGHEST',
color: '#ff0000',
icon: ArrowUpOutlined
},
{
value: 'HIGH',
label: 'HIGH',
color: '#ff0000',
icon: ArrowUpOutlined
},
{
value: 'MEDIUM',
label: 'MEDIUM',
color: '#EA7D24',
icon: ArrowUpOutlined
},
{
value: 'LOW',
label: 'LOW',
color: '#2A8734',
icon: ArrowDownOutlined
},
{
value: 'LOWEST',
label: 'LOWEST',
color: '#2A8734',
icon: ArrowDownOutlined
}
]
const renderLabel = (option: any) => {
return [
h(
NIcon,
{
style: {
verticalAlign: 'middle',
marginRight: '4px',
marginBottom: '3px'
},
color: option.color
},
{
default: () => h(option.icon)
}
),
option.label
]
}
const updateWorkerGroup = () => {
startState.startForm.environmentCode = null
}
const addStartParams = () => {
variables.startParamsList.push({
prop: '',
value: ''
})
}
const updateParamsList = (index: number, param: Array<string>) => {
variables.startParamsList[index].prop = param[0]
variables.startParamsList[index].value = param[1]
}
const removeStartParams = (index: number) => {
variables.startParamsList.splice(index, 1)
}
onMounted(() => {
getWorkerGroups()
getAlertGroups()
getEnvironmentList()
})
watch(
() => props.row,
() => getStartParamsList(props.row.code)
)
return {
t,
parallelismRef,
hideModal,
handleStart,
generalWarningTypeListOptions,
generalPriorityList,
renderLabel,
updateWorkerGroup,
removeStartParams,
addStartParams,
updateParamsList,
...toRefs(variables),
...toRefs(startState),
...toRefs(props)
}
},
render() {
const { t } = this
return (
<Modal
show={this.show}
title={t('project.workflow.set_parameters_before_starting')}
onCancel={this.hideModal}
onConfirm={this.handleStart}
confirmLoading={this.saving}
>
<NForm ref='startFormRef' label-placement='left' label-width='160'>
<NFormItem
label={t('project.workflow.workflow_name')}
path='workflow_name'
>
{this.row.name}
</NFormItem>
<NFormItem
label={t('project.workflow.failure_strategy')}
path='failureStrategy'
>
<NRadioGroup v-model:value={this.startForm.failureStrategy}>
<NSpace>
<NRadio value='CONTINUE'>
{t('project.workflow.continue')}
</NRadio>
<NRadio value='END'>{t('project.workflow.end')}</NRadio>
</NSpace>
</NRadioGroup>
</NFormItem>
<NFormItem
label={t('project.workflow.notification_strategy')}
path='warningType'
>
<NSelect
options={this.generalWarningTypeListOptions()}
v-model:value={this.startForm.warningType}
/>
</NFormItem>
<NFormItem
label={t('project.workflow.workflow_priority')}
path='processInstancePriority'
>
<NSelect
options={this.generalPriorityList()}
renderLabel={this.renderLabel}
v-model:value={this.startForm.processInstancePriority}
/>
</NFormItem>
<NFormItem
label={t('project.workflow.worker_group')}
path='workerGroup'
>
<NSelect
options={this.workerGroups}
onUpdateValue={this.updateWorkerGroup}
v-model:value={this.startForm.workerGroup}
/>
</NFormItem>
<NFormItem
label={t('project.workflow.environment_name')}
path='environmentCode'
>
<NSelect
options={this.environmentList.filter((item: any) =>
item.workerGroups?.includes(this.startForm.workerGroup)
)}
v-model:value={this.startForm.environmentCode}
clearable
/>
</NFormItem>
<NFormItem
label={t('project.workflow.alarm_group')}
path='warningGroupId'
>
<NSelect
options={this.alertGroups}
placeholder={t('project.workflow.please_choose')}
v-model:value={this.startForm.warningGroupId}
clearable
/>
</NFormItem>
<NFormItem
label={t('project.workflow.complement_data')}
path='complement_data'
>
<NCheckbox
checkedValue={'COMPLEMENT_DATA'}
uncheckedValue={'START_PROCESS'}
v-model:checked={this.startForm.execType}
>
{t('project.workflow.whether_complement_data')}
</NCheckbox>
</NFormItem>
{this.startForm.execType &&
this.startForm.execType !== 'START_PROCESS' && (
<NSpace>
<NFormItem
label={t('project.workflow.mode_of_dependent')}
path='dependentMode'
>
<NRadioGroup v-model:value={this.startForm.dependentMode}>
<NSpace>
<NRadio value={'OFF_MODE'}>
{t('project.workflow.close')}
</NRadio>
<NRadio value={'ALL_DEPENDENT'}>
{t('project.workflow.open')}
</NRadio>
</NSpace>
</NRadioGroup>
</NFormItem>
<NFormItem
label={t('project.workflow.mode_of_execution')}
path='runMode'
>
<NRadioGroup v-model:value={this.startForm.runMode}>
<NSpace>
<NRadio value={'RUN_MODE_SERIAL'}>
{t('project.workflow.serial_execution')}
</NRadio>
<NRadio value={'RUN_MODE_PARALLEL'}>
{t('project.workflow.parallel_execution')}
</NRadio>
</NSpace>
</NRadioGroup>
</NFormItem>
{this.startForm.runMode === 'RUN_MODE_PARALLEL' && (
<NFormItem
label={t('project.workflow.parallelism')}
path='expectedParallelismNumber'
>
<NCheckbox v-model:checked={this.parallelismRef}>
{t('project.workflow.custom_parallelism')}
</NCheckbox>
<NInput
disabled={!this.parallelismRef}
placeholder={t(
'project.workflow.please_enter_parallelism'
)}
v-model:value={this.startForm.expectedParallelismNumber}
/>
</NFormItem>
)}
<NFormItem
label={t('project.workflow.schedule_date')}
path='startEndTime'
>
<NDatePicker
type='datetimerange'
clearable
v-model:value={this.startForm.startEndTime}
/>
</NFormItem>
</NSpace>
)}
<NFormItem
label={t('project.workflow.startup_parameter')}
path='startup_parameter'
>
{this.startParamsList.length === 0 ? (
<NButton text type='primary' onClick={this.addStartParams}>
<NIcon>
<PlusCircleOutlined />
</NIcon>
</NButton>
) : (
<NSpace vertical>
{this.startParamsList.map((item, index) => (
<NSpace class={styles.startup} key={index}>
<NInput
pair
separator=':'
placeholder={['prop', 'value']}
defaultValue={[item.prop, item.value]}
onUpdateValue={(param) =>
this.updateParamsList(index, param)
}
/>
<NButton
text
type='error'
onClick={() => this.removeStartParams(index)}
class='btn-delete-custom-parameter'
>
<NIcon>
<DeleteOutlined />
</NIcon>
</NButton>
<NButton text type='primary' onClick={this.addStartParams} class='btn-create-custom-parameter'>
<NIcon>
<PlusCircleOutlined />
</NIcon>
</NButton>
</NSpace>
))}
</NSpace>
)}
</NFormItem>
<NFormItem
label={t('project.workflow.whether_dry_run')}
path='dryRun'
>
<NSwitch
checkedValue={1}
uncheckedValue={0}
v-model:value={this.startForm.dryRun}
/>
</NFormItem>
</NForm>
</Modal>
)
}
})
|
closed
|
apache/dolphinscheduler
|
https://github.com/apache/dolphinscheduler
| 8,879 |
[Bug] [UI Next][V1.0.0-Alpha] missing batch delete and batch copy and batch export in workflow definition page
|
### Search before asking
- [X] I had searched in the [issues](https://github.com/apache/dolphinscheduler/issues?q=is%3Aissue) and found no similar issues.
### What happened

### What you expected to happen
above.
### How to reproduce
above.
### Anything else
_No response_
### Version
dev
### Are you willing to submit PR?
- [ ] Yes I am willing to submit a PR!
### Code of Conduct
- [X] I agree to follow this project's [Code of Conduct](https://www.apache.org/foundation/policies/conduct)
|
https://github.com/apache/dolphinscheduler/issues/8879
|
https://github.com/apache/dolphinscheduler/pull/8930
|
9cf5c6d00eb70166eeb58d750910935e60df6acd
|
dde81eb93c88042f415cb5f6e0f55c75d6ef95fb
| 2022-03-14T10:20:48Z |
java
| 2022-03-16T09:59:20Z |
dolphinscheduler-ui-next/src/views/projects/workflow/definition/components/use-form.ts
|
/*
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership.
* The ASF licenses this file to You under the Apache License, Version 2.0
* (the "License"); you may not use this file except in compliance with
* the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
import { reactive, ref } from 'vue'
import { useI18n } from 'vue-i18n'
import type { FormRules } from 'naive-ui'
export const useForm = () => {
const { t } = useI18n()
const date = new Date()
const year = date.getFullYear()
const month = date.getMonth()
const day = date.getDate()
const importState = reactive({
importFormRef: ref(),
importForm: {
name: '',
file: ''
},
saving: false,
importRules: {
file: {
required: true,
trigger: ['input', 'blur'],
validator() {
if (importState.importForm.name === '') {
return new Error(t('project.workflow.enter_name_tips'))
}
}
}
} as FormRules
})
const startState = reactive({
startFormRef: ref(),
startForm: {
processDefinitionCode: -1,
startEndTime: [new Date(year, month, day), new Date(year, month, day)],
scheduleTime: null,
failureStrategy: 'CONTINUE',
warningType: 'NONE',
warningGroupId: null,
execType: 'START_PROCESS',
startNodeList: '',
taskDependType: 'TASK_POST',
dependentMode: 'OFF_MODE',
runMode: 'RUN_MODE_SERIAL',
processInstancePriority: 'MEDIUM',
workerGroup: 'default',
environmentCode: null,
startParams: null,
expectedParallelismNumber: '',
dryRun: 0
},
saving: false
})
const timingState = reactive({
timingFormRef: ref(),
timingForm: {
startEndTime: [
new Date(year, month, day),
new Date(year + 100, month, day)
],
crontab: '0 0 * * * ? *',
timezoneId: Intl.DateTimeFormat().resolvedOptions().timeZone,
failureStrategy: 'CONTINUE',
warningType: 'NONE',
processInstancePriority: 'MEDIUM',
warningGroupId: '',
workerGroup: 'default',
environmentCode: null
},
saving: false
})
return {
importState,
startState,
timingState
}
}
|
closed
|
apache/dolphinscheduler
|
https://github.com/apache/dolphinscheduler
| 8,879 |
[Bug] [UI Next][V1.0.0-Alpha] missing batch delete and batch copy and batch export in workflow definition page
|
### Search before asking
- [X] I had searched in the [issues](https://github.com/apache/dolphinscheduler/issues?q=is%3Aissue) and found no similar issues.
### What happened

### What you expected to happen
above.
### How to reproduce
above.
### Anything else
_No response_
### Version
dev
### Are you willing to submit PR?
- [ ] Yes I am willing to submit a PR!
### Code of Conduct
- [X] I agree to follow this project's [Code of Conduct](https://www.apache.org/foundation/policies/conduct)
|
https://github.com/apache/dolphinscheduler/issues/8879
|
https://github.com/apache/dolphinscheduler/pull/8930
|
9cf5c6d00eb70166eeb58d750910935e60df6acd
|
dde81eb93c88042f415cb5f6e0f55c75d6ef95fb
| 2022-03-14T10:20:48Z |
java
| 2022-03-16T09:59:20Z |
dolphinscheduler-ui-next/src/views/projects/workflow/definition/components/use-modal.ts
|
/*
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership.
* The ASF licenses this file to You under the Apache License, Version 2.0
* (the "License"); you may not use this file except in compliance with
* the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
import _ from 'lodash'
import { reactive, SetupContext } from 'vue'
import { useI18n } from 'vue-i18n'
import { useRoute, useRouter } from 'vue-router'
import type { Router } from 'vue-router'
import { format } from 'date-fns'
import {
importProcessDefinition,
queryProcessDefinitionByCode
} from '@/service/modules/process-definition'
import { queryAllWorkerGroups } from '@/service/modules/worker-groups'
import { queryAllEnvironmentList } from '@/service/modules/environment'
import { listAlertGroupById } from '@/service/modules/alert-group'
import { startProcessInstance } from '@/service/modules/executors'
import {
createSchedule,
updateSchedule,
previewSchedule
} from '@/service/modules/schedules'
import { parseTime } from '@/utils/common'
export function useModal(
state: any,
ctx: SetupContext<('update:show' | 'update:row' | 'updateList')[]>
) {
const { t } = useI18n()
const router: Router = useRouter()
const route = useRoute()
const variables = reactive({
projectCode: Number(route.params.projectCode),
workerGroups: [],
alertGroups: [],
environmentList: [],
startParamsList: [] as Array<{ prop: string; value: string }>,
schedulePreviewList: []
})
const resetImportForm = () => {
state.importForm.name = ''
state.importForm.file = ''
}
const handleImportDefinition = async () => {
await state.importFormRef.validate()
if (state.saving) return
state.saving = true
try {
const formData = new FormData()
formData.append('file', state.importForm.file)
const code = Number(router.currentRoute.value.params.projectCode)
await importProcessDefinition(formData, code)
window.$message.success(t('project.workflow.success'))
state.saving = false
ctx.emit('updateList')
ctx.emit('update:show')
resetImportForm()
} catch (err) {
state.saving = false
}
}
const handleStartDefinition = async (code: number) => {
await state.startFormRef.validate()
if (state.saving) return
state.saving = true
try {
state.startForm.processDefinitionCode = code
if (state.startForm.startEndTime) {
const start = format(
new Date(state.startForm.startEndTime[0]),
'yyyy-MM-dd hh:mm:ss'
)
const end = format(
new Date(state.startForm.startEndTime[1]),
'yyyy-MM-dd hh:mm:ss'
)
state.startForm.scheduleTime = `${start},${end}`
}
const startParams = {} as any
for (const item of variables.startParamsList) {
if (item.value !== '') {
startParams[item.prop] = item.value
}
}
state.startForm.startParams = !_.isEmpty(startParams)
? JSON.stringify(startParams)
: ''
await startProcessInstance(state.startForm, variables.projectCode)
window.$message.success(t('project.workflow.success'))
state.saving = false
ctx.emit('updateList')
ctx.emit('update:show')
} catch (err) {
state.saving = false
}
}
const handleCreateTiming = async (code: number) => {
await state.timingFormRef.validate()
if (state.saving) return
state.saving = true
try {
const data: any = getTimingData()
data.processDefinitionCode = code
await createSchedule(data, variables.projectCode)
window.$message.success(t('project.workflow.success'))
state.saving = false
ctx.emit('updateList')
ctx.emit('update:show')
} catch (err) {
state.saving = false
}
}
const handleUpdateTiming = async (id: number) => {
await state.timingFormRef.validate()
if (state.saving) return
state.saving = true
try {
const data: any = getTimingData()
data.id = id
await updateSchedule(data, variables.projectCode, id)
window.$message.success(t('project.workflow.success'))
state.saving = false
ctx.emit('updateList')
ctx.emit('update:show')
} catch (err) {
state.saving = false
}
}
const getTimingData = () => {
const start = format(
parseTime(state.timingForm.startEndTime[0]),
'yyyy-MM-dd hh:mm:ss'
)
const end = format(
parseTime(state.timingForm.startEndTime[1]),
'yyyy-MM-dd hh:mm:ss'
)
const data = {
schedule: JSON.stringify({
startTime: start,
endTime: end,
crontab: state.timingForm.crontab,
timezoneId: state.timingForm.timezoneId
}),
failureStrategy: state.timingForm.failureStrategy,
warningType: state.timingForm.warningType,
processInstancePriority: state.timingForm.processInstancePriority,
warningGroupId:
state.timingForm.warningGroupId === ''
? 0
: state.timingForm.warningGroupId,
workerGroup: state.timingForm.workerGroup,
environmentCode: state.timingForm.environmentCode
}
return data
}
const getWorkerGroups = () => {
queryAllWorkerGroups().then((res: any) => {
variables.workerGroups = res.map((item: string) => ({
label: item,
value: item
}))
})
}
const getEnvironmentList = () => {
queryAllEnvironmentList().then((res: any) => {
variables.environmentList = res.map((item: any) => ({
label: item.name,
value: item.code,
workerGroups: item.workerGroups
}))
})
}
const getAlertGroups = () => {
listAlertGroupById().then((res: any) => {
variables.alertGroups = res.map((item: any) => ({
label: item.groupName,
value: item.id
}))
})
}
const getStartParamsList = (code: number) => {
queryProcessDefinitionByCode(code, variables.projectCode).then(
(res: any) => {
variables.startParamsList = res.processDefinition.globalParamList
}
)
}
const getPreviewSchedule = () => {
state.timingFormRef.validate(async (valid: any) => {
if (!valid) {
const projectCode = Number(router.currentRoute.value.params.projectCode)
const start = format(
new Date(state.timingForm.startEndTime[0]),
'yyyy-MM-dd hh:mm:ss'
)
const end = format(
new Date(state.timingForm.startEndTime[1]),
'yyyy-MM-dd hh:mm:ss'
)
const schedule = JSON.stringify({
startTime: start,
endTime: end,
crontab: state.timingForm.crontab
})
previewSchedule({ schedule }, projectCode).then((res: any) => {
variables.schedulePreviewList = res
})
}
})
}
return {
variables,
handleImportDefinition,
handleStartDefinition,
handleCreateTiming,
handleUpdateTiming,
getWorkerGroups,
getAlertGroups,
getEnvironmentList,
getStartParamsList,
getPreviewSchedule
}
}
|
closed
|
apache/dolphinscheduler
|
https://github.com/apache/dolphinscheduler
| 8,879 |
[Bug] [UI Next][V1.0.0-Alpha] missing batch delete and batch copy and batch export in workflow definition page
|
### Search before asking
- [X] I had searched in the [issues](https://github.com/apache/dolphinscheduler/issues?q=is%3Aissue) and found no similar issues.
### What happened

### What you expected to happen
above.
### How to reproduce
above.
### Anything else
_No response_
### Version
dev
### Are you willing to submit PR?
- [ ] Yes I am willing to submit a PR!
### Code of Conduct
- [X] I agree to follow this project's [Code of Conduct](https://www.apache.org/foundation/policies/conduct)
|
https://github.com/apache/dolphinscheduler/issues/8879
|
https://github.com/apache/dolphinscheduler/pull/8930
|
9cf5c6d00eb70166eeb58d750910935e60df6acd
|
dde81eb93c88042f415cb5f6e0f55c75d6ef95fb
| 2022-03-14T10:20:48Z |
java
| 2022-03-16T09:59:20Z |
dolphinscheduler-ui-next/src/views/projects/workflow/definition/index.module.scss
|
/*
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership.
* The ASF licenses this file to You under the Apache License, Version 2.0
* (the "License"); you may not use this file except in compliance with
* the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
.content {
width: 100%;
.card {
margin-bottom: 8px;
}
.header {
display: flex;
justify-content: space-between;
align-items: center;
margin: 10px 0;
.right {
> .search {
.list {
float: right;
margin: 3px 0 3px 4px;
}
}
}
}
}
.table {
table {
width: 100%;
tr {
height: 40px;
font-size: 12px;
th,
td {
&:nth-child(1) {
width: 50px;
text-align: center;
}
}
th {
&:nth-child(1) {
width: 60px;
text-align: center;
}
> span {
font-size: 12px;
color: #555;
}
}
}
}
}
.pagination {
display: flex;
justify-content: center;
align-items: center;
margin-top: 20px;
}
.operation {
> div {
> div {
margin-right: 5px !important;
}
}
}
.startup {
align-items: center;
> div:first-child {
width: 86%;
}
}
|
closed
|
apache/dolphinscheduler
|
https://github.com/apache/dolphinscheduler
| 8,879 |
[Bug] [UI Next][V1.0.0-Alpha] missing batch delete and batch copy and batch export in workflow definition page
|
### Search before asking
- [X] I had searched in the [issues](https://github.com/apache/dolphinscheduler/issues?q=is%3Aissue) and found no similar issues.
### What happened

### What you expected to happen
above.
### How to reproduce
above.
### Anything else
_No response_
### Version
dev
### Are you willing to submit PR?
- [ ] Yes I am willing to submit a PR!
### Code of Conduct
- [X] I agree to follow this project's [Code of Conduct](https://www.apache.org/foundation/policies/conduct)
|
https://github.com/apache/dolphinscheduler/issues/8879
|
https://github.com/apache/dolphinscheduler/pull/8930
|
9cf5c6d00eb70166eeb58d750910935e60df6acd
|
dde81eb93c88042f415cb5f6e0f55c75d6ef95fb
| 2022-03-14T10:20:48Z |
java
| 2022-03-16T09:59:20Z |
dolphinscheduler-ui-next/src/views/projects/workflow/definition/index.tsx
|
/*
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership.
* The ASF licenses this file to You under the Apache License, Version 2.0
* (the "License"); you may not use this file except in compliance with
* the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
import Card from '@/components/card'
import { SearchOutlined } from '@vicons/antd'
import {
NButton,
NDataTable,
NIcon,
NInput,
NPagination,
NSpace
} from 'naive-ui'
import { defineComponent, onMounted, toRefs, watch } from 'vue'
import { useI18n } from 'vue-i18n'
import { useTable } from './use-table'
import ImportModal from './components/import-modal'
import StartModal from './components/start-modal'
import TimingModal from './components/timing-modal'
import VersionModal from './components/version-modal'
import { useRouter, useRoute } from 'vue-router'
import type { Router } from 'vue-router'
import styles from './index.module.scss'
export default defineComponent({
name: 'WorkflowDefinitionList',
setup() {
const router: Router = useRouter()
const route = useRoute()
const projectCode = Number(route.params.projectCode)
const { variables, createColumns, getTableData } = useTable()
const requestData = () => {
getTableData({
pageSize: variables.pageSize,
pageNo: variables.page,
searchVal: variables.searchVal
})
}
const handleUpdateList = () => {
requestData()
}
const handleSearch = () => {
variables.page = 1
requestData()
}
const handleChangePageSize = () => {
variables.page = 1
requestData()
}
const createDefinition = () => {
router.push({
path: `/projects/${projectCode}/workflow/definitions/create`
})
}
watch(useI18n().locale, () => {
createColumns(variables)
})
onMounted(() => {
createColumns(variables)
requestData()
})
return {
requestData,
handleSearch,
handleUpdateList,
createDefinition,
handleChangePageSize,
...toRefs(variables)
}
},
render() {
const { t } = useI18n()
return (
<div class={styles.content}>
<Card class={styles.card}>
<div class={styles.header}>
<NSpace>
<NButton type='primary' onClick={this.createDefinition} class='btn-create-process'>
{t('project.workflow.create_workflow')}
</NButton>
<NButton strong secondary onClick={() => (this.showRef = true)}>
{t('project.workflow.import_workflow')}
</NButton>
</NSpace>
<div class={styles.right}>
<div class={styles.search}>
<div class={styles.list}>
<NButton type='primary' onClick={this.handleSearch}>
<NIcon>
<SearchOutlined />
</NIcon>
</NButton>
</div>
<div class={styles.list}>
<NInput
placeholder={t('resource.function.enter_keyword_tips')}
v-model={[this.searchVal, 'value']}
/>
</div>
</div>
</div>
</div>
</Card>
<Card title={t('project.workflow.workflow_definition')}>
<NDataTable
columns={this.columns}
data={this.tableData}
striped
size={'small'}
class={styles.table}
row-class-name='items'
/>
<div class={styles.pagination}>
<NPagination
v-model:page={this.page}
v-model:page-size={this.pageSize}
page-count={this.totalPage}
show-size-picker
page-sizes={[10, 30, 50]}
show-quick-jumper
onUpdatePage={this.requestData}
onUpdatePageSize={this.handleChangePageSize}
/>
</div>
</Card>
<ImportModal
v-model:show={this.showRef}
onUpdateList={this.handleUpdateList}
/>
<StartModal
v-model:row={this.row}
v-model:show={this.startShowRef}
onUpdateList={this.handleUpdateList}
/>
<TimingModal
v-model:row={this.row}
v-model:show={this.timingShowRef}
onUpdateList={this.handleUpdateList}
/>
<VersionModal
v-model:row={this.row}
v-model:show={this.versionShowRef}
onUpdateList={this.handleUpdateList}
/>
</div>
)
}
})
|
closed
|
apache/dolphinscheduler
|
https://github.com/apache/dolphinscheduler
| 8,879 |
[Bug] [UI Next][V1.0.0-Alpha] missing batch delete and batch copy and batch export in workflow definition page
|
### Search before asking
- [X] I had searched in the [issues](https://github.com/apache/dolphinscheduler/issues?q=is%3Aissue) and found no similar issues.
### What happened

### What you expected to happen
above.
### How to reproduce
above.
### Anything else
_No response_
### Version
dev
### Are you willing to submit PR?
- [ ] Yes I am willing to submit a PR!
### Code of Conduct
- [X] I agree to follow this project's [Code of Conduct](https://www.apache.org/foundation/policies/conduct)
|
https://github.com/apache/dolphinscheduler/issues/8879
|
https://github.com/apache/dolphinscheduler/pull/8930
|
9cf5c6d00eb70166eeb58d750910935e60df6acd
|
dde81eb93c88042f415cb5f6e0f55c75d6ef95fb
| 2022-03-14T10:20:48Z |
java
| 2022-03-16T09:59:20Z |
dolphinscheduler-ui-next/src/views/projects/workflow/definition/use-table.ts
|
/*
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership.
* The ASF licenses this file to You under the Apache License, Version 2.0
* (the "License"); you may not use this file except in compliance with
* the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
import { h, ref, reactive } from 'vue'
import { useI18n } from 'vue-i18n'
import { useRouter } from 'vue-router'
import type { Router } from 'vue-router'
import type { TableColumns } from 'naive-ui/es/data-table/src/interface'
import { useAsyncState } from '@vueuse/core'
import {
batchCopyByCodes,
batchExportByCodes,
deleteByCode,
queryListPaging,
release
} from '@/service/modules/process-definition'
import TableAction from './components/table-action'
import { IDefinitionParam } from './types'
import styles from './index.module.scss'
import { NEllipsis, NTag } from 'naive-ui'
import ButtonLink from '@/components/button-link'
export function useTable() {
const { t } = useI18n()
const router: Router = useRouter()
const variables = reactive({
columns: [],
row: {},
tableData: [],
projectCode: ref(Number(router.currentRoute.value.params.projectCode)),
page: ref(1),
pageSize: ref(10),
searchVal: ref(),
totalPage: ref(1),
showRef: ref(false),
startShowRef: ref(false),
timingShowRef: ref(false),
versionShowRef: ref(false)
})
const createColumns = (variables: any) => {
variables.columns = [
{
title: '#',
key: 'id',
width: 50,
render: (row, index) => index + 1
},
{
title: t('project.workflow.workflow_name'),
key: 'name',
width: 200,
className: 'workflow-name',
render: (row) =>
h(
NEllipsis,
{ style: 'max-width: 200px; color: #2080f0' },
{
default: () =>
h(
ButtonLink,
{
onClick: () =>
void router.push({
name: 'workflow-definition-detail',
params: { code: row.code }
})
},
{ default: () => row.name }
),
tooltip: () => row.name
}
)
},
{
title: t('project.workflow.status'),
key: 'releaseState',
render: (row) =>
row.releaseState === 'ONLINE'
? t('project.workflow.up_line')
: t('project.workflow.down_line')
},
{
title: t('project.workflow.create_time'),
key: 'createTime',
width: 150
},
{
title: t('project.workflow.update_time'),
key: 'updateTime',
width: 150
},
{
title: t('project.workflow.description'),
key: 'description'
},
{
title: t('project.workflow.create_user'),
key: 'userName'
},
{
title: t('project.workflow.modify_user'),
key: 'modifyBy'
},
{
title: t('project.workflow.schedule_publish_status'),
key: 'scheduleReleaseState',
render: (row) => {
if (row.scheduleReleaseState === 'ONLINE') {
return h(
NTag,
{ type: 'success', size: 'small' },
{
default: () => t('project.workflow.up_line')
}
)
} else if (row.scheduleReleaseState === 'OFFLINE') {
return h(
NTag,
{ type: 'warning', size: 'small' },
{
default: () => t('project.workflow.down_line')
}
)
} else {
return '-'
}
}
},
{
title: t('project.workflow.operation'),
key: 'operation',
width: 360,
fixed: 'right',
className: styles.operation,
render: (row) =>
h(TableAction, {
row,
onEditWorkflow: () => editWorkflow(row),
onStartWorkflow: () => startWorkflow(row),
onTimingWorkflow: () => timingWorkflow(row),
onVersionWorkflow: () => versionWorkflow(row),
onDeleteWorkflow: () => deleteWorkflow(row),
onReleaseWorkflow: () => releaseWorkflow(row),
onCopyWorkflow: () => copyWorkflow(row),
onExportWorkflow: () => exportWorkflow(row),
onGotoTimingManage: () => gotoTimingManage(row),
onGotoWorkflowTree: () => gotoWorkflowTree(row)
})
}
] as TableColumns<any>
}
const editWorkflow = (row: any) => {
variables.row = row
router.push({
name: 'workflow-definition-detail',
params: { code: row.code }
})
}
const startWorkflow = (row: any) => {
variables.startShowRef = true
variables.row = row
}
const timingWorkflow = (row: any) => {
variables.timingShowRef = true
variables.row = row
}
const versionWorkflow = (row: any) => {
variables.versionShowRef = true
variables.row = row
}
const deleteWorkflow = (row: any) => {
deleteByCode(variables.projectCode, row.code).then(() => {
window.$message.success(t('project.workflow.success'))
getTableData({
pageSize: variables.pageSize,
pageNo: variables.page,
searchVal: variables.searchVal
})
})
}
const releaseWorkflow = (row: any) => {
const data = {
name: row.name,
releaseState: (row.releaseState === 'ONLINE' ? 'OFFLINE' : 'ONLINE') as
| 'OFFLINE'
| 'ONLINE'
}
release(data, variables.projectCode, row.code).then(() => {
window.$message.success(t('project.workflow.success'))
getTableData({
pageSize: variables.pageSize,
pageNo: variables.page,
searchVal: variables.searchVal
})
})
}
const copyWorkflow = (row: any) => {
const data = {
codes: String(row.code),
targetProjectCode: variables.projectCode
}
batchCopyByCodes(data, variables.projectCode).then(() => {
window.$message.success(t('project.workflow.success'))
getTableData({
pageSize: variables.pageSize,
pageNo: variables.page,
searchVal: variables.searchVal
})
})
}
const downloadBlob = (data: any, fileNameS = 'json') => {
if (!data) {
return
}
const blob = new Blob([data])
const fileName = `${fileNameS}.json`
if ('download' in document.createElement('a')) {
// Not IE
const url = window.URL.createObjectURL(blob)
const link = document.createElement('a')
link.style.display = 'none'
link.href = url
link.setAttribute('download', fileName)
document.body.appendChild(link)
link.click()
document.body.removeChild(link) // remove element after downloading is complete.
window.URL.revokeObjectURL(url) // release blob object
} else {
// IE 10+
if (window.navigator.msSaveBlob) {
window.navigator.msSaveBlob(blob, fileName)
}
}
}
const exportWorkflow = (row: any) => {
const fileName = 'workflow_' + new Date().getTime()
const data = {
codes: String(row.code)
}
batchExportByCodes(data, variables.projectCode).then((res: any) => {
downloadBlob(res, fileName)
})
}
const gotoTimingManage = (row: any) => {
router.push({
name: 'workflow-definition-timing',
params: { projectCode: variables.projectCode, definitionCode: row.code }
})
}
const gotoWorkflowTree = (row: any) => {
router.push({
name: 'workflow-definition-tree',
params: { projectCode: variables.projectCode, definitionCode: row.code }
})
}
const getTableData = (params: IDefinitionParam) => {
const { state } = useAsyncState(
queryListPaging({ ...params }, variables.projectCode).then((res: any) => {
variables.totalPage = res.totalPage
variables.tableData = res.totalList.map((item: any) => {
return { ...item }
})
}),
{ total: 0, table: [] }
)
return state
}
return {
variables,
createColumns,
getTableData
}
}
|
closed
|
apache/dolphinscheduler
|
https://github.com/apache/dolphinscheduler
| 8,931 |
[Bug] [UI Next][V1.0.0-Alpha] Auto logout bug
|
### Search before asking
- [X] I had searched in the [issues](https://github.com/apache/dolphinscheduler/issues?q=is%3Aissue) and found no similar issues.
### What happened
When I refresh the browser on the resource manage page, I will automatically logout.
<img width="1919" alt="image" src="https://user-images.githubusercontent.com/8847400/158556710-fbd18808-a785-4089-b251-7e3f92277955.png">
### What you expected to happen
Refresh the page
### How to reproduce
Refresh the browser on the resource manage page
### Anything else
_No response_
### Version
dev
### Are you willing to submit PR?
- [X] Yes I am willing to submit a PR!
### Code of Conduct
- [X] I agree to follow this project's [Code of Conduct](https://www.apache.org/foundation/policies/conduct)
|
https://github.com/apache/dolphinscheduler/issues/8931
|
https://github.com/apache/dolphinscheduler/pull/8932
|
dde81eb93c88042f415cb5f6e0f55c75d6ef95fb
|
f9efd68878070ed549bc5f1bf0553b54b992c08b
| 2022-03-16T09:16:37Z |
java
| 2022-03-16T11:18:50Z |
dolphinscheduler-ui-next/src/service/service.ts
|
/*
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership.
* The ASF licenses this file to You under the Apache License, Version 2.0
* (the "License"); you may not use this file except in compliance with
* the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
import axios, { AxiosRequestConfig, AxiosResponse, AxiosError } from 'axios'
import { useUserStore } from '@/store/user/user'
import qs from 'qs'
import _ from 'lodash'
import cookies from 'js-cookie'
import router from '@/router'
import utils from '@/utils'
const userStore = useUserStore()
/**
* @description Log and display errors
* @param {Error} error Error object
*/
const handleError = (res: AxiosResponse<any, any>) => {
// Print to console
if (import.meta.env.MODE === 'development') {
utils.log.capsule('DolphinScheduler', 'UI-NEXT')
utils.log.error(res)
}
window.$message.error(res.data.msg)
}
const baseRequestConfig: AxiosRequestConfig = {
baseURL:
import.meta.env.MODE === 'development'
? '/dolphinscheduler'
: import.meta.env.VITE_APP_PROD_WEB_URL + '/dolphinscheduler',
timeout: 10000,
transformRequest: (params) => {
if (_.isPlainObject(params)) {
return qs.stringify(params, { arrayFormat: 'repeat' })
} else {
return params
}
},
paramsSerializer: (params) => {
return qs.stringify(params, { arrayFormat: 'repeat' })
}
}
const service = axios.create(baseRequestConfig)
const err = (err: AxiosError): Promise<AxiosError> => {
if (err.response?.status === 401 || err.response?.status === 504) {
userStore.setSessionId('')
userStore.setUserInfo({})
router.push({ path: '/login' })
}
return Promise.reject(err)
}
service.interceptors.request.use((config: AxiosRequestConfig<any>) => {
config.headers && (config.headers.sessionId = userStore.getSessionId)
const sIdCookie = cookies.get('sessionId')
const language = cookies.get('language')
config.headers = config.headers || {}
if (language) config.headers.language = language
if (sIdCookie) config.headers.sessionId = sIdCookie
return config
}, err)
// The response to intercept
service.interceptors.response.use((res: AxiosResponse) => {
// No code will be processed
if (res.data.code === undefined) {
return res.data
}
switch (res.data.code) {
case 0:
return res.data.data
default:
handleError(res)
throw new Error()
}
}, err)
const apiPrefix = '/dolphinscheduler'
const reSlashPrefix = /^\/+/
const resolveURL = (url: string) => {
if (url.indexOf('http') === 0) {
return url
}
if (url.charAt(0) !== '/') {
return `${apiPrefix}/${url.replace(reSlashPrefix, '')}`
}
return url
}
/**
* download file
*/
const downloadFile = (url: string, obj?: any) => {
const param: any = {
url: resolveURL(url),
obj: obj || {}
}
const form = document.createElement('form')
form.action = param.url
form.method = 'get'
form.style.display = 'none'
Object.keys(param.obj).forEach((key) => {
const input = document.createElement('input')
input.type = 'hidden'
input.name = key
input.value = param.obj[key]
form.appendChild(input)
})
const button = document.createElement('input')
button.type = 'submit'
form.appendChild(button)
document.body.appendChild(form)
form.submit()
document.body.removeChild(form)
}
export { service as axios, downloadFile }
|
closed
|
apache/dolphinscheduler
|
https://github.com/apache/dolphinscheduler
| 8,931 |
[Bug] [UI Next][V1.0.0-Alpha] Auto logout bug
|
### Search before asking
- [X] I had searched in the [issues](https://github.com/apache/dolphinscheduler/issues?q=is%3Aissue) and found no similar issues.
### What happened
When I refresh the browser on the resource manage page, I will automatically logout.
<img width="1919" alt="image" src="https://user-images.githubusercontent.com/8847400/158556710-fbd18808-a785-4089-b251-7e3f92277955.png">
### What you expected to happen
Refresh the page
### How to reproduce
Refresh the browser on the resource manage page
### Anything else
_No response_
### Version
dev
### Are you willing to submit PR?
- [X] Yes I am willing to submit a PR!
### Code of Conduct
- [X] I agree to follow this project's [Code of Conduct](https://www.apache.org/foundation/policies/conduct)
|
https://github.com/apache/dolphinscheduler/issues/8931
|
https://github.com/apache/dolphinscheduler/pull/8932
|
dde81eb93c88042f415cb5f6e0f55c75d6ef95fb
|
f9efd68878070ed549bc5f1bf0553b54b992c08b
| 2022-03-16T09:16:37Z |
java
| 2022-03-16T11:18:50Z |
dolphinscheduler-ui-next/src/views/login/use-login.ts
|
/*
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership.
* The ASF licenses this file to You under the Apache License, Version 2.0
* (the "License"); you may not use this file except in compliance with
* the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
import { useRouter } from 'vue-router'
import { login } from '@/service/modules/login'
import { getUserInfo } from '@/service/modules/users'
import { useUserStore } from '@/store/user/user'
import type { Router } from 'vue-router'
import type { SessionIdRes } from '@/service/modules/login/types'
import type { UserInfoRes } from '@/service/modules/users/types'
import { useMenuStore } from '@/store/menu/menu'
import cookies from 'js-cookie'
import { useTimezoneStore } from '@/store/timezone/timezone'
export function useLogin(state: any) {
const router: Router = useRouter()
const userStore = useUserStore()
const menuStore = useMenuStore()
const timezoneStore = useTimezoneStore()
const handleLogin = () => {
state.loginFormRef.validate(async (valid: any) => {
if (!valid) {
const loginRes: SessionIdRes = await login({ ...state.loginForm })
await userStore.setSessionId(loginRes.sessionId)
cookies.set('sessionId', loginRes.sessionId, { path: '/' })
const userInfoRes: UserInfoRes = await getUserInfo()
await userStore.setUserInfo(userInfoRes)
const timezone = userInfoRes.timeZone
? userInfoRes.timeZone
: Intl.DateTimeFormat().resolvedOptions().timeZone
await timezoneStore.setTimezone(timezone)
const key = menuStore.getMenuKey
router.push({ path: key || 'home' })
}
})
}
return {
handleLogin
}
}
|
closed
|
apache/dolphinscheduler
|
https://github.com/apache/dolphinscheduler
| 8,889 |
[Bug][DataSource] upgrade from 2.0.0 to 2.0.5 then oracle datasource will not to work
|
### Search before asking
- [X] I had searched in the [issues](https://github.com/apache/dolphinscheduler/issues?q=is%3Aissue) and found no similar issues.
### What happened
upgrade from 2.0.0 to 2.0.5 then oracle datasource will not to work:
[ERROR] 2022-03-15 09:38:30.560 TaskLogLogger-class org.apache.dolphinscheduler.plugin.task.sql.SqlTask:[160] - sql task error: java.lang.RuntimeException: JDBC connect failed
[ERROR] 2022-03-15 09:38:30.561 org.apache.dolphinscheduler.server.worker.runner.TaskExecuteThread:[207] - task scheduler failure
java.lang.RuntimeException: JDBC connect failed
at org.apache.dolphinscheduler.plugin.datasource.api.client.CommonDataSourceClient.checkClient(CommonDataSourceClient.java:106)
at org.apache.dolphinscheduler.plugin.datasource.api.client.CommonDataSourceClient.<init>(CommonDataSourceClient.java:55)
at org.apache.dolphinscheduler.plugin.datasource.oracle.OracleDataSourceClient.<init>(OracleDataSourceClient.java:27)
at org.apache.dolphinscheduler.plugin.datasource.oracle.OracleDataSourceChannel.createDataSourceClient(OracleDataSourceChannel.java:29)
at org.apache.dolphinscheduler.plugin.datasource.api.plugin.DataSourceClientProvider.lambda$getConnection$0(DataSourceClientProvider.java:64)
at java.util.concurrent.ConcurrentHashMap.computeIfAbsent(ConcurrentHashMap.java:1660)
at org.apache.dolphinscheduler.plugin.datasource.api.plugin.DataSourceClientProvider.getConnection(DataSourceClientProvider.java:58)
at org.apache.dolphinscheduler.plugin.task.sql.SqlTask.executeFuncAndSql(SqlTask.java:183)
at org.apache.dolphinscheduler.plugin.task.sql.SqlTask.handle(SqlTask.java:154)
at org.apache.dolphinscheduler.server.worker.runner.TaskExecuteThread.run(TaskExecuteThread.java:189)
at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511)
at com.google.common.util.concurrent.TrustedListenableFutureTask$TrustedFutureInterruptibleTask.runInterruptibly(TrustedListenableFutureTask.java:125)
at com.google.common.util.concurrent.InterruptibleTask.run(InterruptibleTask.java:57)
at com.google.common.util.concurrent.TrustedListenableFutureTask.run(TrustedListenableFutureTask.java:78)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)
at java.lang.Thread.run(Thread.java:748)
Caused by: org.springframework.jdbc.CannotGetJdbcConnectionException: Failed to obtain JDBC Connection; nested exception is java.sql.SQLSyntaxErrorException: ORA-00923: FROM keyword not found where expected
at org.springframework.jdbc.datasource.DataSourceUtils.getConnection(DataSourceUtils.java:83)
at org.springframework.jdbc.core.JdbcTemplate.execute(JdbcTemplate.java:376)
at org.springframework.jdbc.core.JdbcTemplate.execute(JdbcTemplate.java:431)
at org.apache.dolphinscheduler.plugin.datasource.api.client.CommonDataSourceClient.checkClient(CommonDataSourceClient.java:104)
... 16 common frames omitted
Caused by: java.sql.SQLSyntaxErrorException: ORA-00923: FROM keyword not found where expected
### What you expected to happen
all my job faild
### How to reproduce
a jdbc datasouce create in 2.0.0 or before then upgrade to 2.0.5
### Anything else
_No response_
### Version
2.0.5
### Are you willing to submit PR?
- [ ] Yes I am willing to submit a PR!
### Code of Conduct
- [X] I agree to follow this project's [Code of Conduct](https://www.apache.org/foundation/policies/conduct)
|
https://github.com/apache/dolphinscheduler/issues/8889
|
https://github.com/apache/dolphinscheduler/pull/8921
|
4bb85dd16b77111cdad9406f10fa5955acb350d5
|
af9aedfd2d231dd6e911679d6b54084dc409bf54
| 2022-03-15T02:14:49Z |
java
| 2022-03-17T03:10:39Z |
dolphinscheduler-datasource-plugin/dolphinscheduler-datasource-oracle/src/main/java/org/apache/dolphinscheduler/plugin/datasource/oracle/OracleDataSourceClient.java
|
/*
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership.
* The ASF licenses this file to You under the Apache License, Version 2.0
* (the "License"); you may not use this file except in compliance with
* the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package org.apache.dolphinscheduler.plugin.datasource.oracle;
import org.apache.dolphinscheduler.plugin.datasource.api.client.CommonDataSourceClient;
import org.apache.dolphinscheduler.spi.datasource.BaseConnectionParam;
import org.apache.dolphinscheduler.spi.enums.DbType;
public class OracleDataSourceClient extends CommonDataSourceClient {
public OracleDataSourceClient(BaseConnectionParam baseConnectionParam, DbType dbType) {
super(baseConnectionParam, dbType);
}
}
|
closed
|
apache/dolphinscheduler
|
https://github.com/apache/dolphinscheduler
| 8,944 |
[Bug] [UI Next][V1.0.0-Alpha] The edge was missing when I edited the first task node in dag page.
|
### Search before asking
- [X] I had searched in the [issues](https://github.com/apache/dolphinscheduler/issues?q=is%3Aissue) and found no similar issues.
### What happened
The edge was missing when I edited the first task node in dag page.
### What you expected to happen
The edge is not missing.
### How to reproduce
1. Open the dag page.
2. Edit the first task node.
3. Save the first task node.
### Anything else
_No response_
### Version
dev
### Are you willing to submit PR?
- [X] Yes I am willing to submit a PR!
### Code of Conduct
- [X] I agree to follow this project's [Code of Conduct](https://www.apache.org/foundation/policies/conduct)
|
https://github.com/apache/dolphinscheduler/issues/8944
|
https://github.com/apache/dolphinscheduler/pull/8947
|
af9aedfd2d231dd6e911679d6b54084dc409bf54
|
e8e2e3a13d0922dc7c21894a4ba6e2f183ec5e92
| 2022-03-17T02:52:32Z |
java
| 2022-03-17T04:35:06Z |
dolphinscheduler-ui-next/src/views/projects/workflow/components/dag/use-cell-update.ts
|
/*
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership.
* The ASF licenses this file to You under the Apache License, Version 2.0
* (the "License"); you may not use this file except in compliance with
* the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
import type { Ref } from 'vue'
import type { Graph } from '@antv/x6'
import type { TaskType } from '@/views/projects/task/constants/task-type'
import type { Coordinate } from './types'
import { TASK_TYPES_MAP } from '@/views/projects/task/constants/task-type'
import { useCustomCellBuilder } from './dag-hooks'
import utils from '@/utils'
import type { Edge } from '@antv/x6'
interface Options {
graph: Ref<Graph | undefined>
}
/**
* Expose some cell query
* @param {Options} options
*/
export function useCellUpdate(options: Options) {
const { graph } = options
const { buildNode, buildEdge } = useCustomCellBuilder()
/**
* Set node name by id
* @param {string} id
* @param {string} name
*/
function setNodeName(id: string, newName: string) {
const node = graph.value?.getCellById(id)
if (node) {
const truncation = utils.truncateText(newName, 18)
node.attr('title/text', truncation)
node.setData({ taskName: newName })
}
}
/**
* Add a node to the graph
* @param {string} id
* @param {string} taskType
* @param {Coordinate} coordinate Default is { x: 100, y: 100 }
*/
function addNode(
id: string,
type: string,
name: string,
flag: string,
coordinate: Coordinate = { x: 100, y: 100 }
) {
if (!TASK_TYPES_MAP[type as TaskType]) {
return
}
const node = buildNode(id, type, name, flag, coordinate)
graph.value?.addNode(node)
}
function removeNode(id: string) {
graph.value?.removeNode(id)
}
const getNodeEdge = (id: string): Edge[] => {
const node = graph.value?.getCellById(id)
if (!node) return []
const edges = graph.value?.getConnectedEdges(node)
return edges || []
}
const setNodeEdge = (id: string, preTaskCode: number[]) => {
const edges = getNodeEdge(id)
if (edges?.length) {
edges.forEach((edge) => {
graph.value?.removeEdge(edge)
})
}
preTaskCode.forEach((task) => {
graph.value?.addEdge(buildEdge(String(task), id))
})
}
const getSources = (id: string): number[] => {
const edges = getNodeEdge(id)
if (!edges.length) return []
const targets = [] as number[]
edges.forEach((edge) => {
const sourceNode = edge.getSourceNode()
if (sourceNode && sourceNode.id !== id) {
targets.push(Number(sourceNode.id))
}
})
return targets
}
return {
setNodeName,
setNodeEdge,
addNode,
removeNode,
getSources
}
}
|
closed
|
apache/dolphinscheduler
|
https://github.com/apache/dolphinscheduler
| 8,945 |
[Bug] [UI Next][V1.0.0-Alpha] The serial wait text language was not supported in task instance page.
|
### Search before asking
- [X] I had searched in the [issues](https://github.com/apache/dolphinscheduler/issues?q=is%3Aissue) and found no similar issues.
### What happened
The serial wait text language was not supported in task instance page.
<img width="273" alt="image" src="https://user-images.githubusercontent.com/97265214/158727439-af644e3d-df0a-430b-ac0d-d353baba1f18.png">
### What you expected to happen
<img width="393" alt="image" src="https://user-images.githubusercontent.com/97265214/158727461-262a75b4-52e4-40e1-a8be-0aaa633a4c2f.png">
### How to reproduce
1. Open the task instance page.
2. Open the state options.
3. Scroll to bottom.
### Anything else
_No response_
### Version
dev
### Are you willing to submit PR?
- [X] Yes I am willing to submit a PR!
### Code of Conduct
- [X] I agree to follow this project's [Code of Conduct](https://www.apache.org/foundation/policies/conduct)
|
https://github.com/apache/dolphinscheduler/issues/8945
|
https://github.com/apache/dolphinscheduler/pull/8949
|
e8e2e3a13d0922dc7c21894a4ba6e2f183ec5e92
|
8fcca27fcb4e1d01019c98126c30a56f8a1e5255
| 2022-03-17T02:57:32Z |
java
| 2022-03-17T04:36:16Z |
dolphinscheduler-ui-next/src/locales/modules/en_US.ts
|
/*
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership.
* The ASF licenses this file to You under the Apache License, Version 2.0
* (the "License"); you may not use this file except in compliance with
* the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
const login = {
test: 'Test',
userName: 'Username',
userName_tips: 'Please enter your username',
userPassword: 'Password',
userPassword_tips: 'Please enter your password',
login: 'Login'
}
const modal = {
cancel: 'Cancel',
confirm: 'Confirm'
}
const theme = {
light: 'Light',
dark: 'Dark'
}
const userDropdown = {
profile: 'Profile',
password: 'Password',
logout: 'Logout'
}
const menu = {
home: 'Home',
project: 'Project',
resources: 'Resources',
datasource: 'Datasource',
monitor: 'Monitor',
security: 'Security',
project_overview: 'Project Overview',
workflow_relation: 'Workflow Relation',
workflow: 'Workflow',
workflow_definition: 'Workflow Definition',
workflow_instance: 'Workflow Instance',
task: 'Task',
task_instance: 'Task Instance',
task_definition: 'Task Definition',
file_manage: 'File Manage',
udf_manage: 'UDF Manage',
resource_manage: 'Resource Manage',
function_manage: 'Function Manage',
service_manage: 'Service Manage',
master: 'Master',
worker: 'Worker',
db: 'DB',
statistical_manage: 'Statistical Manage',
statistics: 'Statistics',
audit_log: 'Audit Log',
tenant_manage: 'Tenant Manage',
user_manage: 'User Manage',
alarm_group_manage: 'Alarm Group Manage',
alarm_instance_manage: 'Alarm Instance Manage',
worker_group_manage: 'Worker Group Manage',
yarn_queue_manage: 'Yarn Queue Manage',
environment_manage: 'Environment Manage',
k8s_namespace_manage: 'K8S Namespace Manage',
token_manage: 'Token Manage',
task_group_manage: 'Task Group Manage',
task_group_option: 'Task Group Option',
task_group_queue: 'Task Group Queue',
data_quality: 'Data Quality',
task_result: 'Task Result',
rule: 'Rule management'
}
const home = {
task_state_statistics: 'Task State Statistics',
process_state_statistics: 'Process State Statistics',
process_definition_statistics: 'Process Definition Statistics',
number: 'Number',
state: 'State',
submitted_success: 'SUBMITTED_SUCCESS',
running_execution: 'RUNNING_EXECUTION',
ready_pause: 'READY_PAUSE',
pause: 'PAUSE',
ready_stop: 'READY_STOP',
stop: 'STOP',
failure: 'FAILURE',
success: 'SUCCESS',
need_fault_tolerance: 'NEED_FAULT_TOLERANCE',
kill: 'KILL',
waiting_thread: 'WAITING_THREAD',
waiting_depend: 'WAITING_DEPEND',
delay_execution: 'DELAY_EXECUTION',
forced_success: 'FORCED_SUCCESS',
serial_wait: 'SERIAL_WAIT',
ready_block: 'READY_BLOCK',
block: 'BLOCK'
}
const password = {
edit_password: 'Edit Password',
password: 'Password',
confirm_password: 'Confirm Password',
password_tips: 'Please enter your password',
confirm_password_tips: 'Please enter your confirm password',
two_password_entries_are_inconsistent:
'Two password entries are inconsistent',
submit: 'Submit'
}
const profile = {
profile: 'Profile',
edit: 'Edit',
username: 'Username',
email: 'Email',
phone: 'Phone',
state: 'State',
permission: 'Permission',
create_time: 'Create Time',
update_time: 'Update Time',
administrator: 'Administrator',
ordinary_user: 'Ordinary User',
edit_profile: 'Edit Profile',
username_tips: 'Please enter your username',
email_tips: 'Please enter your email',
email_correct_tips: 'Please enter your email in the correct format',
phone_tips: 'Please enter your phone',
state_tips: 'Please choose your state',
enable: 'Enable',
disable: 'Disable',
timezone_success: 'Time zone updated successful',
please_select_timezone: 'Choose timeZone'
}
const monitor = {
master: {
cpu_usage: 'CPU Usage',
memory_usage: 'Memory Usage',
load_average: 'Load Average',
create_time: 'Create Time',
last_heartbeat_time: 'Last Heartbeat Time',
directory_detail: 'Directory Detail',
host: 'Host',
directory: 'Directory'
},
worker: {
cpu_usage: 'CPU Usage',
memory_usage: 'Memory Usage',
load_average: 'Load Average',
create_time: 'Create Time',
last_heartbeat_time: 'Last Heartbeat Time',
directory_detail: 'Directory Detail',
host: 'Host',
directory: 'Directory'
},
db: {
health_state: 'Health State',
max_connections: 'Max Connections',
threads_connections: 'Threads Connections',
threads_running_connections: 'Threads Running Connections'
},
statistics: {
command_number_of_waiting_for_running:
'Command Number Of Waiting For Running',
failure_command_number: 'Failure Command Number',
tasks_number_of_waiting_running: 'Tasks Number Of Waiting Running',
task_number_of_ready_to_kill: 'Task Number Of Ready To Kill'
},
audit_log: {
user_name: 'User Name',
resource_type: 'Resource Type',
project_name: 'Project Name',
operation_type: 'Operation Type',
create_time: 'Create Time',
start_time: 'Start Time',
end_time: 'End Time',
user_audit: 'User Audit',
project_audit: 'Project Audit',
create: 'Create',
update: 'Update',
delete: 'Delete',
read: 'Read'
}
}
const resource = {
file: {
file_manage: 'File Manage',
create_folder: 'Create Folder',
create_file: 'Create File',
upload_files: 'Upload Files',
enter_keyword_tips: 'Please enter keyword',
name: 'Name',
user_name: 'Resource userName',
whether_directory: 'Whether directory',
file_name: 'File Name',
description: 'Description',
size: 'Size',
update_time: 'Update Time',
operation: 'Operation',
edit: 'Edit',
rename: 'Rename',
download: 'Download',
delete: 'Delete',
yes: 'Yes',
no: 'No',
folder_name: 'Folder Name',
enter_name_tips: 'Please enter name',
enter_description_tips: 'Please enter description',
enter_content_tips: 'Please enter the resource content',
file_format: 'File Format',
file_content: 'File Content',
delete_confirm: 'Delete?',
confirm: 'Confirm',
cancel: 'Cancel',
success: 'Success',
file_details: 'File Details',
return: 'Return',
save: 'Save'
},
udf: {
udf_resources: 'UDF resources',
create_folder: 'Create Folder',
upload_udf_resources: 'Upload UDF Resources',
udf_source_name: 'UDF Resource Name',
whether_directory: 'Whether directory',
file_name: 'File Name',
file_size: 'File Size',
description: 'Description',
create_time: 'Create Time',
update_time: 'Update Time',
operation: 'Operation',
yes: 'Yes',
no: 'No',
edit: 'Edit',
download: 'Download',
delete: 'Delete',
delete_confirm: 'Delete?',
success: 'Success',
folder_name: 'Folder Name',
upload: 'Upload',
upload_files: 'Upload Files',
file_upload: 'File Upload',
enter_keyword_tips: 'Please enter keyword',
enter_name_tips: 'Please enter name',
enter_description_tips: 'Please enter description'
},
function: {
udf_function: 'UDF Function',
create_udf_function: 'Create UDF Function',
edit_udf_function: 'Create UDF Function',
udf_function_name: 'UDF Function Name',
class_name: 'Class Name',
type: 'Type',
description: 'Description',
jar_package: 'Jar Package',
update_time: 'Update Time',
operation: 'Operation',
rename: 'Rename',
edit: 'Edit',
delete: 'Delete',
success: 'Success',
package_name: 'Package Name',
udf_resources: 'UDF Resources',
instructions: 'Instructions',
upload_resources: 'Upload Resources',
udf_resources_directory: 'UDF resources directory',
delete_confirm: 'Delete?',
enter_keyword_tips: 'Please enter keyword',
enter_udf_unction_name_tips: 'Please enter a UDF function name',
enter_package_name_tips: 'Please enter a Package name',
enter_select_udf_resources_tips: 'Please select UDF resources',
enter_select_udf_resources_directory_tips:
'Please select UDF resources directory',
enter_instructions_tips: 'Please enter a instructions',
enter_name_tips: 'Please enter name',
enter_description_tips: 'Please enter description'
},
task_group_option: {
manage: 'Task group manage',
option: 'Task group option',
create: 'Create task group',
edit: 'Edit task group',
delete: 'Delete task group',
view_queue: 'View the queue of the task group',
switch_status: 'Switch status',
code: 'Task group code',
name: 'Task group name',
project_name: 'Project name',
resource_pool_size: 'Resource pool size',
resource_pool_size_be_a_number:
'The size of the task group resource pool should be more than 1',
resource_used_pool_size: 'Used resource',
desc: 'Task group desc',
status: 'Task group status',
enable_status: 'Enable',
disable_status: 'Disable',
please_enter_name: 'Please enter task group name',
please_enter_desc: 'Please enter task group description',
please_enter_resource_pool_size:
'Please enter task group resource pool size',
please_select_project: 'Please select a project',
create_time: 'Create time',
update_time: 'Update time',
actions: 'Actions',
please_enter_keywords: 'Please enter keywords'
},
task_group_queue: {
actions: 'Actions',
task_name: 'Task name',
task_group_name: 'Task group name',
project_name: 'Project name',
process_name: 'Process name',
process_instance_name: 'Process instance',
queue: 'Task group queue',
priority: 'Priority',
priority_be_a_number:
'The priority of the task group queue should be a positive number',
force_starting_status: 'Starting status',
in_queue: 'In queue',
task_status: 'Task status',
view: 'View task group queue',
the_status_of_waiting: 'Waiting into the queue',
the_status_of_queuing: 'Queuing',
the_status_of_releasing: 'Released',
modify_priority: 'Edit the priority',
start_task: 'Start the task',
priority_not_empty: 'The value of priority can not be empty',
priority_must_be_number: 'The value of priority should be number',
please_select_task_name: 'Please select a task name',
create_time: 'Create time',
update_time: 'Update time',
edit_priority: 'Edit the task priority'
}
}
const project = {
list: {
create_project: 'Create Project',
edit_project: 'Edit Project',
project_list: 'Project List',
project_tips: 'Please enter your project',
description_tips: 'Please enter your description',
username_tips: 'Please enter your username',
project_name: 'Project Name',
project_description: 'Project Description',
owned_users: 'Owned Users',
workflow_define_count: 'Workflow Define Count',
process_instance_running_count: 'Process Instance Running Count',
description: 'Description',
create_time: 'Create Time',
update_time: 'Update Time',
operation: 'Operation',
edit: 'Edit',
delete: 'Delete',
confirm: 'Confirm',
cancel: 'Cancel',
delete_confirm: 'Delete?'
},
workflow: {
workflow_relation: 'Workflow Relation',
create_workflow: 'Create Workflow',
import_workflow: 'Import Workflow',
workflow_name: 'Workflow Name',
current_selection: 'Current Selection',
online: 'Online',
offline: 'Offline',
refresh: 'Refresh',
show_hide_label: 'Show / Hide Label',
workflow_offline: 'Workflow Offline',
schedule_offline: 'Schedule Offline',
schedule_start_time: 'Schedule Start Time',
schedule_end_time: 'Schedule End Time',
crontab_expression: 'Crontab',
workflow_publish_status: 'Workflow Publish Status',
schedule_publish_status: 'Schedule Publish Status',
workflow_definition: 'Workflow Definition',
workflow_instance: 'Workflow Instance',
status: 'Status',
create_time: 'Create Time',
update_time: 'Update Time',
description: 'Description',
create_user: 'Create User',
modify_user: 'Modify User',
operation: 'Operation',
edit: 'Edit',
start: 'Start',
timing: 'Timing',
timezone: 'Timezone',
up_line: 'Online',
down_line: 'Offline',
copy_workflow: 'Copy Workflow',
cron_manage: 'Cron manage',
delete: 'Delete',
tree_view: 'Tree View',
tree_limit: 'Limit Size',
export: 'Export',
batch_copy: 'Batch Copy',
version_info: 'Version Info',
version: 'Version',
file_upload: 'File Upload',
upload_file: 'Upload File',
upload: 'Upload',
file_name: 'File Name',
success: 'Success',
set_parameters_before_starting: 'Please set the parameters before starting',
set_parameters_before_timing: 'Set parameters before timing',
start_and_stop_time: 'Start and stop time',
next_five_execution_times: 'Next five execution times',
execute_time: 'Execute time',
failure_strategy: 'Failure Strategy',
notification_strategy: 'Notification Strategy',
workflow_priority: 'Workflow Priority',
worker_group: 'Worker Group',
environment_name: 'Environment Name',
alarm_group: 'Alarm Group',
complement_data: 'Complement Data',
startup_parameter: 'Startup Parameter',
whether_dry_run: 'Whether Dry-Run',
continue: 'Continue',
end: 'End',
none_send: 'None',
success_send: 'Success',
failure_send: 'Failure',
all_send: 'All',
whether_complement_data: 'Whether it is a complement process?',
schedule_date: 'Schedule date',
mode_of_execution: 'Mode of execution',
serial_execution: 'Serial execution',
parallel_execution: 'Parallel execution',
parallelism: 'Parallelism',
custom_parallelism: 'Custom Parallelism',
please_enter_parallelism: 'Please enter Parallelism',
please_choose: 'Please Choose',
start_time: 'Start Time',
end_time: 'End Time',
crontab: 'Crontab',
delete_confirm: 'Delete?',
enter_name_tips: 'Please enter name',
switch_version: 'Switch To This Version',
confirm_switch_version: 'Confirm Switch To This Version?',
current_version: 'Current Version',
run_type: 'Run Type',
scheduling_time: 'Scheduling Time',
duration: 'Duration',
run_times: 'Run Times',
fault_tolerant_sign: 'Fault-tolerant Sign',
dry_run_flag: 'Dry-run Flag',
executor: 'Executor',
host: 'Host',
start_process: 'Start Process',
execute_from_the_current_node: 'Execute from the current node',
recover_tolerance_fault_process: 'Recover tolerance fault process',
resume_the_suspension_process: 'Resume the suspension process',
execute_from_the_failed_nodes: 'Execute from the failed nodes',
scheduling_execution: 'Scheduling execution',
rerun: 'Rerun',
stop: 'Stop',
pause: 'Pause',
recovery_waiting_thread: 'Recovery waiting thread',
recover_serial_wait: 'Recover serial wait',
recovery_suspend: 'Recovery Suspend',
recovery_failed: 'Recovery Failed',
gantt: 'Gantt',
name: 'Name',
all_status: 'AllStatus',
submit_success: 'Submitted successfully',
running: 'Running',
ready_to_pause: 'Ready to pause',
ready_to_stop: 'Ready to stop',
failed: 'Failed',
need_fault_tolerance: 'Need fault tolerance',
kill: 'Kill',
waiting_for_thread: 'Waiting for thread',
waiting_for_dependence: 'Waiting for dependence',
waiting_for_dependency_to_complete: 'Waiting for dependency to complete',
delay_execution: 'Delay execution',
forced_success: 'Forced success',
serial_wait: 'Serial wait',
executing: 'Executing',
startup_type: 'Startup Type',
complement_range: 'Complement Range',
parameters_variables: 'Parameters variables',
global_parameters: 'Global parameters',
local_parameters: 'Local parameters',
type: 'Type',
retry_count: 'Retry Count',
submit_time: 'Submit Time',
refresh_status_succeeded: 'Refresh status succeeded',
view_log: 'View log',
update_log_success: 'Update log success',
no_more_log: 'No more logs',
no_log: 'No log',
loading_log: 'Loading Log...',
close: 'Close',
download_log: 'Download Log',
refresh_log: 'Refresh Log',
enter_full_screen: 'Enter full screen',
cancel_full_screen: 'Cancel full screen',
task_state: 'Task status',
mode_of_dependent: 'Mode of dependent',
open: 'Open',
project_name_required: 'Project name is required',
related_items: 'Related items',
project_name: 'Project Name',
project_tips: 'Please select project name'
},
task: {
task_name: 'Task Name',
task_type: 'Task Type',
create_task: 'Create Task',
workflow_instance: 'Workflow Instance',
workflow_name: 'Workflow Name',
workflow_name_tips: 'Please select workflow name',
workflow_state: 'Workflow State',
version: 'Version',
current_version: 'Current Version',
switch_version: 'Switch To This Version',
confirm_switch_version: 'Confirm Switch To This Version?',
description: 'Description',
move: 'Move',
upstream_tasks: 'Upstream Tasks',
executor: 'Executor',
node_type: 'Node Type',
state: 'State',
submit_time: 'Submit Time',
start_time: 'Start Time',
create_time: 'Create Time',
update_time: 'Update Time',
end_time: 'End Time',
duration: 'Duration',
retry_count: 'Retry Count',
dry_run_flag: 'Dry Run Flag',
host: 'Host',
operation: 'Operation',
edit: 'Edit',
delete: 'Delete',
delete_confirm: 'Delete?',
submitted_success: 'Submitted Success',
running_execution: 'Running Execution',
ready_pause: 'Ready Pause',
pause: 'Pause',
ready_stop: 'Ready Stop',
stop: 'Stop',
failure: 'Failure',
success: 'Success',
need_fault_tolerance: 'Need Fault Tolerance',
kill: 'Kill',
waiting_thread: 'Waiting Thread',
waiting_depend: 'Waiting Depend',
delay_execution: 'Delay Execution',
forced_success: 'Forced Success',
view_log: 'View Log',
download_log: 'Download Log',
refresh: 'Refresh'
},
dag: {
create: 'Create Workflow',
search: 'Search',
download_png: 'Download PNG',
fullscreen_open: 'Open Fullscreen',
fullscreen_close: 'Close Fullscreen',
save: 'Save',
close: 'Close',
format: 'Format',
refresh_dag_status: 'Refresh DAG status',
layout_type: 'Layout Type',
grid_layout: 'Grid',
dagre_layout: 'Dagre',
rows: 'Rows',
cols: 'Cols',
copy_success: 'Copy Success',
workflow_name: 'Workflow Name',
description: 'Description',
tenant: 'Tenant',
timeout_alert: 'Timeout Alert',
global_variables: 'Global Variables',
basic_info: 'Basic Information',
minute: 'Minute',
key: 'Key',
value: 'Value',
success: 'Success',
delete_cell: 'Delete selected edges and nodes',
online_directly: 'Whether to go online the process definition',
update_directly: 'Whether to update the process definition',
dag_name_empty: 'DAG graph name cannot be empty',
positive_integer: 'Please enter a positive integer greater than 0',
prop_empty: 'prop is empty',
prop_repeat: 'prop is repeat',
node_not_created: 'Failed to save node not created',
copy_name: 'Copy Name',
view_variables: 'View Variables',
startup_parameter: 'Startup Parameter'
},
node: {
current_node_settings: 'Current node settings',
instructions: 'Instructions',
view_history: 'View history',
view_log: 'View log',
enter_this_child_node: 'Enter this child node',
name: 'Node name',
name_tips: 'Please enter name (required)',
task_type: 'Task Type',
task_type_tips: 'Please select a task type (required)',
process_name: 'Process Name',
process_name_tips: 'Please select a process (required)',
child_node: 'Child Node',
enter_child_node: 'Enter child node',
run_flag: 'Run flag',
normal: 'Normal',
prohibition_execution: 'Prohibition execution',
description: 'Description',
description_tips: 'Please enter description',
task_priority: 'Task priority',
worker_group: 'Worker group',
worker_group_tips:
'The Worker group no longer exists, please select the correct Worker group!',
environment_name: 'Environment Name',
task_group_name: 'Task group name',
task_group_queue_priority: 'Priority',
number_of_failed_retries: 'Number of failed retries',
times: 'Times',
failed_retry_interval: 'Failed retry interval',
minute: 'Minute',
delay_execution_time: 'Delay execution time',
state: 'State',
branch_flow: 'Branch flow',
cancel: 'Cancel',
loading: 'Loading...',
confirm: 'Confirm',
success: 'Success',
failed: 'Failed',
backfill_tips:
'The newly created sub-Process has not yet been executed and cannot enter the sub-Process',
task_instance_tips:
'The task has not been executed and cannot enter the sub-Process',
branch_tips:
'Cannot select the same node for successful branch flow and failed branch flow',
timeout_alarm: 'Timeout alarm',
timeout_strategy: 'Timeout strategy',
timeout_strategy_tips: 'Timeout strategy must be selected',
timeout_failure: 'Timeout failure',
timeout_period: 'Timeout period',
timeout_period_tips: 'Timeout must be a positive integer',
script: 'Script',
script_tips: 'Please enter script(required)',
resources: 'Resources',
resources_tips: 'Please select resources',
non_resources_tips: 'Please delete all non-existent resources',
useless_resources_tips: 'Unauthorized or deleted resources',
custom_parameters: 'Custom Parameters',
copy_success: 'Copy success',
copy_failed: 'The browser does not support automatic copying',
prop_tips: 'prop(required)',
prop_repeat: 'prop is repeat',
value_tips: 'value(optional)',
value_required_tips: 'value(required)',
pre_tasks: 'Pre tasks',
program_type: 'Program Type',
spark_version: 'Spark Version',
main_class: 'Main Class',
main_class_tips: 'Please enter main class',
main_package: 'Main Package',
main_package_tips: 'Please enter main package',
deploy_mode: 'Deploy Mode',
app_name: 'App Name',
app_name_tips: 'Please enter app name(optional)',
driver_cores: 'Driver Cores',
driver_cores_tips: 'Please enter Driver cores',
driver_memory: 'Driver Memory',
driver_memory_tips: 'Please enter Driver memory',
executor_number: 'Executor Number',
executor_number_tips: 'Please enter Executor number',
executor_memory: 'Executor Memory',
executor_memory_tips: 'Please enter Executor memory',
executor_cores: 'Executor Cores',
executor_cores_tips: 'Please enter Executor cores',
main_arguments: 'Main Arguments',
main_arguments_tips: 'Please enter main arguments',
option_parameters: 'Option Parameters',
option_parameters_tips: 'Please enter option parameters',
positive_integer_tips: 'should be a positive integer',
flink_version: 'Flink Version',
job_manager_memory: 'JobManager Memory',
job_manager_memory_tips: 'Please enter JobManager memory',
task_manager_memory: 'TaskManager Memory',
task_manager_memory_tips: 'Please enter TaskManager memory',
slot_number: 'Slot Number',
slot_number_tips: 'Please enter Slot number',
parallelism: 'Parallelism',
custom_parallelism: 'Configure parallelism',
parallelism_tips: 'Please enter Parallelism',
parallelism_number_tips: 'Parallelism number should be positive integer',
parallelism_complement_tips:
'If there are a large number of tasks requiring complement, you can use the custom parallelism to ' +
'set the complement task thread to a reasonable value to avoid too large impact on the server.',
task_manager_number: 'TaskManager Number',
task_manager_number_tips: 'Please enter TaskManager number',
http_url: 'Http Url',
http_url_tips: 'Please Enter Http Url',
http_method: 'Http Method',
http_parameters: 'Http Parameters',
http_check_condition: 'Http Check Condition',
http_condition: 'Http Condition',
http_condition_tips: 'Please Enter Http Condition',
timeout_settings: 'Timeout Settings',
connect_timeout: 'Connect Timeout',
ms: 'ms',
socket_timeout: 'Socket Timeout',
status_code_default: 'Default response code 200',
status_code_custom: 'Custom response code',
body_contains: 'Content includes',
body_not_contains: 'Content does not contain',
http_parameters_position: 'Http Parameters Position',
target_task_name: 'Target Task Name',
target_task_name_tips: 'Please enter the Pigeon task name',
datasource_type: 'Datasource types',
datasource_instances: 'Datasource instances',
sql_type: 'SQL Type',
sql_type_query: 'Query',
sql_type_non_query: 'Non Query',
sql_statement: 'SQL Statement',
pre_sql_statement: 'Pre SQL Statement',
post_sql_statement: 'Post SQL Statement',
sql_input_placeholder: 'Please enter non-query sql.',
sql_empty_tips: 'The sql can not be empty.',
procedure_method: 'SQL Statement',
procedure_method_tips: 'Please enter the procedure script',
procedure_method_snippet:
'--Please enter the procedure script \n\n--call procedure:call <procedure-name>[(<arg1>,<arg2>, ...)]\n\n--call function:?= call <procedure-name>[(<arg1>,<arg2>, ...)]',
start: 'Start',
edit: 'Edit',
copy: 'Copy',
delete: 'Delete',
custom_job: 'Custom Job',
custom_script: 'Custom Script',
sqoop_job_name: 'Job Name',
sqoop_job_name_tips: 'Please enter Job Name(required)',
direct: 'Direct',
hadoop_custom_params: 'Hadoop Params',
sqoop_advanced_parameters: 'Sqoop Advanced Parameters',
data_source: 'Data Source',
type: 'Type',
datasource: 'Datasource',
datasource_tips: 'Please select the datasource',
model_type: 'ModelType',
form: 'Form',
table: 'Table',
table_tips: 'Please enter Mysql Table(required)',
column_type: 'ColumnType',
all_columns: 'All Columns',
some_columns: 'Some Columns',
column: 'Column',
column_tips: 'Please enter Columns (Comma separated)',
database: 'Database',
database_tips: 'Please enter Hive Database(required)',
hive_table_tips: 'Please enter Hive Table(required)',
hive_partition_keys: 'Hive partition Keys',
hive_partition_keys_tips: 'Please enter Hive Partition Keys',
hive_partition_values: 'Hive partition Values',
hive_partition_values_tips: 'Please enter Hive Partition Values',
export_dir: 'Export Dir',
export_dir_tips: 'Please enter Export Dir(required)',
sql_statement_tips: 'SQL Statement(required)',
map_column_hive: 'Map Column Hive',
map_column_java: 'Map Column Java',
data_target: 'Data Target',
create_hive_table: 'CreateHiveTable',
drop_delimiter: 'DropDelimiter',
over_write_src: 'OverWriteSrc',
hive_target_dir: 'Hive Target Dir',
hive_target_dir_tips: 'Please enter hive target dir',
replace_delimiter: 'ReplaceDelimiter',
replace_delimiter_tips: 'Please enter Replace Delimiter',
target_dir: 'Target Dir',
target_dir_tips: 'Please enter Target Dir(required)',
delete_target_dir: 'DeleteTargetDir',
compression_codec: 'CompressionCodec',
file_type: 'FileType',
fields_terminated: 'FieldsTerminated',
fields_terminated_tips: 'Please enter Fields Terminated',
lines_terminated: 'LinesTerminated',
lines_terminated_tips: 'Please enter Lines Terminated',
is_update: 'IsUpdate',
update_key: 'UpdateKey',
update_key_tips: 'Please enter Update Key',
update_mode: 'UpdateMode',
only_update: 'OnlyUpdate',
allow_insert: 'AllowInsert',
concurrency: 'Concurrency',
concurrency_tips: 'Please enter Concurrency',
sea_tunnel_master: 'Master',
sea_tunnel_master_url: 'Master URL',
sea_tunnel_queue: 'Queue',
sea_tunnel_master_url_tips:
'Please enter the master url, e.g., 127.0.0.1:7077',
switch_condition: 'Condition',
switch_branch_flow: 'Branch Flow',
and: 'and',
or: 'or',
datax_custom_template: 'Custom Template Switch',
datax_json_template: 'JSON',
datax_target_datasource_type: 'Target Datasource Type',
datax_target_database: 'Target Database',
datax_target_table: 'Target Table',
datax_target_table_tips: 'Please enter the name of the target table',
datax_target_database_pre_sql: 'Pre SQL Statement',
datax_target_database_post_sql: 'Post SQL Statement',
datax_non_query_sql_tips: 'Please enter the non-query sql statement',
datax_job_speed_byte: 'Speed(Byte count)',
datax_job_speed_byte_info: '(0 means unlimited)',
datax_job_speed_record: 'Speed(Record count)',
datax_job_speed_record_info: '(0 means unlimited)',
datax_job_runtime_memory: 'Runtime Memory Limits',
datax_job_runtime_memory_xms: 'Low Limit Value',
datax_job_runtime_memory_xmx: 'High Limit Value',
datax_job_runtime_memory_unit: 'G',
current_hour: 'CurrentHour',
last_1_hour: 'Last1Hour',
last_2_hour: 'Last2Hours',
last_3_hour: 'Last3Hours',
last_24_hour: 'Last24Hours',
today: 'today',
last_1_days: 'Last1Days',
last_2_days: 'Last2Days',
last_3_days: 'Last3Days',
last_7_days: 'Last7Days',
this_week: 'ThisWeek',
last_week: 'LastWeek',
last_monday: 'LastMonday',
last_tuesday: 'LastTuesday',
last_wednesday: 'LastWednesday',
last_thursday: 'LastThursday',
last_friday: 'LastFriday',
last_saturday: 'LastSaturday',
last_sunday: 'LastSunday',
this_month: 'ThisMonth',
last_month: 'LastMonth',
last_month_begin: 'LastMonthBegin',
last_month_end: 'LastMonthEnd',
month: 'month',
week: 'week',
day: 'day',
hour: 'hour',
add_dependency: 'Add dependency',
waiting_dependent_start: 'Waiting Dependent start',
check_interval: 'Check interval',
waiting_dependent_complete: 'Waiting Dependent complete',
rule_name: 'Rule Name',
null_check: 'NullCheck',
custom_sql: 'CustomSql',
multi_table_accuracy: 'MulTableAccuracy',
multi_table_value_comparison: 'MulTableCompare',
field_length_check: 'FieldLengthCheck',
uniqueness_check: 'UniquenessCheck',
regexp_check: 'RegexpCheck',
timeliness_check: 'TimelinessCheck',
enumeration_check: 'EnumerationCheck',
table_count_check: 'TableCountCheck',
src_connector_type: 'SrcConnType',
src_datasource_id: 'SrcSource',
src_table: 'SrcTable',
src_filter: 'SrcFilter',
src_field: 'SrcField',
statistics_name: 'ActualValName',
check_type: 'CheckType',
operator: 'Operator',
threshold: 'Threshold',
failure_strategy: 'FailureStrategy',
target_connector_type: 'TargetConnType',
target_datasource_id: 'TargetSourceId',
target_table: 'TargetTable',
target_filter: 'TargetFilter',
mapping_columns: 'OnClause',
statistics_execute_sql: 'ActualValExecSql',
comparison_name: 'ExceptedValName',
comparison_execute_sql: 'ExceptedValExecSql',
comparison_type: 'ExceptedValType',
writer_connector_type: 'WriterConnType',
writer_datasource_id: 'WriterSourceId',
target_field: 'TargetField',
field_length: 'FieldLength',
logic_operator: 'LogicOperator',
regexp_pattern: 'RegexpPattern',
deadline: 'Deadline',
datetime_format: 'DatetimeFormat',
enum_list: 'EnumList',
begin_time: 'BeginTime',
fix_value: 'FixValue',
required: 'required',
emr_flow_define_json: 'jobFlowDefineJson',
emr_flow_define_json_tips: 'Please enter the definition of the job flow.'
}
}
const security = {
tenant: {
tenant_manage: 'Tenant Manage',
create_tenant: 'Create Tenant',
search_tips: 'Please enter keywords',
tenant_code: 'Operating System Tenant',
description: 'Description',
queue_name: 'QueueName',
create_time: 'Create Time',
update_time: 'Update Time',
actions: 'Operation',
edit_tenant: 'Edit Tenant',
tenant_code_tips: 'Please enter the operating system tenant',
queue_name_tips: 'Please select queue',
description_tips: 'Please enter a description',
delete_confirm: 'Delete?',
edit: 'Edit',
delete: 'Delete'
},
alarm_group: {
create_alarm_group: 'Create Alarm Group',
edit_alarm_group: 'Edit Alarm Group',
search_tips: 'Please enter keywords',
alert_group_name_tips: 'Please enter your alert group name',
alarm_plugin_instance: 'Alarm Plugin Instance',
alarm_plugin_instance_tips: 'Please select alert plugin instance',
alarm_group_description_tips: 'Please enter your alarm group description',
alert_group_name: 'Alert Group Name',
alarm_group_description: 'Alarm Group Description',
create_time: 'Create Time',
update_time: 'Update Time',
operation: 'Operation',
delete_confirm: 'Delete?',
edit: 'Edit',
delete: 'Delete'
},
worker_group: {
create_worker_group: 'Create Worker Group',
edit_worker_group: 'Edit Worker Group',
search_tips: 'Please enter keywords',
operation: 'Operation',
delete_confirm: 'Delete?',
edit: 'Edit',
delete: 'Delete',
group_name: 'Group Name',
group_name_tips: 'Please enter your group name',
worker_addresses: 'Worker Addresses',
worker_addresses_tips: 'Please select worker addresses',
create_time: 'Create Time',
update_time: 'Update Time'
},
yarn_queue: {
create_queue: 'Create Queue',
edit_queue: 'Edit Queue',
search_tips: 'Please enter keywords',
queue_name: 'Queue Name',
queue_value: 'Queue Value',
create_time: 'Create Time',
update_time: 'Update Time',
operation: 'Operation',
edit: 'Edit',
queue_name_tips: 'Please enter your queue name',
queue_value_tips: 'Please enter your queue value'
},
environment: {
create_environment: 'Create Environment',
edit_environment: 'Edit Environment',
search_tips: 'Please enter keywords',
edit: 'Edit',
delete: 'Delete',
environment_name: 'Environment Name',
environment_config: 'Environment Config',
environment_desc: 'Environment Desc',
worker_groups: 'Worker Groups',
create_time: 'Create Time',
update_time: 'Update Time',
operation: 'Operation',
delete_confirm: 'Delete?',
environment_name_tips: 'Please enter your environment name',
environment_config_tips: 'Please enter your environment config',
environment_description_tips: 'Please enter your environment description',
worker_group_tips: 'Please select worker group'
},
token: {
create_token: 'Create Token',
edit_token: 'Edit Token',
search_tips: 'Please enter keywords',
user: 'User',
user_tips: 'Please select user',
token: 'Token',
token_tips: 'Please enter your token',
expiration_time: 'Expiration Time',
expiration_time_tips: 'Please select expiration time',
create_time: 'Create Time',
update_time: 'Update Time',
operation: 'Operation',
edit: 'Edit',
delete: 'Delete',
delete_confirm: 'Delete?'
},
user: {
user_manage: 'User Manage',
create_user: 'Create User',
update_user: 'Update User',
delete_user: 'Delete User',
delete_confirm: 'Are you sure to delete?',
delete_confirm_tip:
'Deleting user is a dangerous operation,please be careful',
project: 'Project',
resource: 'Resource',
file_resource: 'File Resource',
udf_resource: 'UDF Resource',
datasource: 'Datasource',
udf: 'UDF Function',
authorize_project: 'Project Authorize',
authorize_resource: 'Resource Authorize',
authorize_datasource: 'Datasource Authorize',
authorize_udf: 'UDF Function Authorize',
username: 'Username',
username_exists: 'The username already exists',
username_tips: 'Please enter username',
user_password: 'Password',
user_password_tips:
'Please enter a password containing letters and numbers with a length between 6 and 20',
user_type: 'User Type',
ordinary_user: 'Ordinary users',
administrator: 'Administrator',
tenant_code: 'Tenant',
tenant_id_tips: 'Please select tenant',
queue: 'Queue',
queue_tips: 'Please select a queue',
email: 'Email',
email_empty_tips: 'Please enter email',
emial_correct_tips: 'Please enter the correct email format',
phone: 'Phone',
phone_empty_tips: 'Please enter phone number',
phone_correct_tips: 'Please enter the correct mobile phone format',
state: 'State',
state_enabled: 'Enabled',
state_disabled: 'Disabled',
create_time: 'Create Time',
update_time: 'Update Time',
operation: 'Operation',
edit: 'Edit',
delete: 'Delete',
authorize: 'Authorize',
save_error_msg: 'Failed to save, please retry',
delete_error_msg: 'Failed to delete, please retry',
auth_error_msg: 'Failed to authorize, please retry',
auth_success_msg: 'Authorize succeeded',
enable: 'Enable',
disable: 'Disable'
},
alarm_instance: {
search_input_tips: 'Please input the keywords',
alarm_instance_manage: 'Alarm instance manage',
alarm_instance: 'Alarm Instance',
alarm_instance_name: 'Alarm instance name',
alarm_instance_name_tips: 'Please enter alarm plugin instance name',
alarm_plugin_name: 'Alarm plugin name',
create_time: 'Create Time',
update_time: 'Update Time',
operation: 'Operation',
edit: 'Edit',
delete: 'Delete',
confirm: 'Confirm',
cancel: 'Cancel',
submit: 'Submit',
create: 'Create',
select_plugin: 'Select plugin',
select_plugin_tips: 'Select Alarm plugin',
instance_parameter_exception: 'Instance parameter exception',
WebHook: 'WebHook',
webHook: 'WebHook',
IsEnableProxy: 'Enable Proxy',
Proxy: 'Proxy',
Port: 'Port',
User: 'User',
corpId: 'CorpId',
secret: 'Secret',
Secret: 'Secret',
users: 'Users',
userSendMsg: 'UserSendMsg',
agentId: 'AgentId',
showType: 'Show Type',
receivers: 'Receivers',
receiverCcs: 'ReceiverCcs',
serverHost: 'SMTP Host',
serverPort: 'SMTP Port',
sender: 'Sender',
enableSmtpAuth: 'SMTP Auth',
Password: 'Password',
starttlsEnable: 'SMTP STARTTLS Enable',
sslEnable: 'SMTP SSL Enable',
smtpSslTrust: 'SMTP SSL Trust',
url: 'URL',
requestType: 'Request Type',
headerParams: 'Headers',
bodyParams: 'Body',
contentField: 'Content Field',
Keyword: 'Keyword',
userParams: 'User Params',
path: 'Script Path',
type: 'Type',
sendType: 'Send Type',
username: 'Username',
botToken: 'Bot Token',
chatId: 'Channel Chat Id',
parseMode: 'Parse Mode'
},
k8s_namespace: {
create_namespace: 'Create Namespace',
edit_namespace: 'Edit Namespace',
search_tips: 'Please enter keywords',
k8s_namespace: 'K8S Namespace',
k8s_namespace_tips: 'Please enter k8s namespace',
k8s_cluster: 'K8S Cluster',
k8s_cluster_tips: 'Please enter k8s cluster',
owner: 'Owner',
owner_tips: 'Please enter owner',
tag: 'Tag',
tag_tips: 'Please enter tag',
limit_cpu: 'Limit CPU',
limit_cpu_tips: 'Please enter limit CPU',
limit_memory: 'Limit Memory',
limit_memory_tips: 'Please enter limit memory',
create_time: 'Create Time',
update_time: 'Update Time',
operation: 'Operation',
edit: 'Edit',
delete: 'Delete',
delete_confirm: 'Delete?'
}
}
const datasource = {
datasource: 'DataSource',
create_datasource: 'Create DataSource',
search_input_tips: 'Please input the keywords',
datasource_name: 'Datasource Name',
datasource_name_tips: 'Please enter datasource name',
datasource_user_name: 'Owner',
datasource_type: 'Datasource Type',
datasource_parameter: 'Datasource Parameter',
description: 'Description',
description_tips: 'Please enter description',
create_time: 'Create Time',
update_time: 'Update Time',
operation: 'Operation',
click_to_view: 'Click to view',
delete: 'Delete',
confirm: 'Confirm',
cancel: 'Cancel',
create: 'Create',
edit: 'Edit',
success: 'Success',
test_connect: 'Test Connect',
ip: 'IP',
ip_tips: 'Please enter IP',
port: 'Port',
port_tips: 'Please enter port',
database_name: 'Database Name',
database_name_tips: 'Please enter database name',
oracle_connect_type: 'ServiceName or SID',
oracle_connect_type_tips: 'Please select serviceName or SID',
oracle_service_name: 'ServiceName',
oracle_sid: 'SID',
jdbc_connect_parameters: 'jdbc connect parameters',
principal_tips: 'Please enter Principal',
krb5_conf_tips:
'Please enter the kerberos authentication parameter java.security.krb5.conf',
keytab_username_tips:
'Please enter the kerberos authentication parameter login.user.keytab.username',
keytab_path_tips:
'Please enter the kerberos authentication parameter login.user.keytab.path',
format_tips: 'Please enter format',
connection_parameter: 'connection parameter',
user_name: 'User Name',
user_name_tips: 'Please enter your username',
user_password: 'Password',
user_password_tips: 'Please enter your password'
}
const data_quality = {
task_result: {
task_name: 'Task Name',
workflow_instance: 'Workflow Instance',
rule_type: 'Rule Type',
rule_name: 'Rule Name',
state: 'State',
actual_value: 'Actual Value',
excepted_value: 'Excepted Value',
check_type: 'Check Type',
operator: 'Operator',
threshold: 'Threshold',
failure_strategy: 'Failure Strategy',
excepted_value_type: 'Excepted Value Type',
error_output_path: 'Error Output Path',
username: 'Username',
create_time: 'Create Time',
update_time: 'Update Time',
undone: 'Undone',
success: 'Success',
failure: 'Failure',
single_table: 'Single Table',
single_table_custom_sql: 'Single Table Custom Sql',
multi_table_accuracy: 'Multi Table Accuracy',
multi_table_comparison: 'Multi Table Comparison',
expected_and_actual_or_expected: '(Expected - Actual) / Expected x 100%',
expected_and_actual: 'Expected - Actual',
actual_and_expected: 'Actual - Expected',
actual_or_expected: 'Actual / Expected x 100%'
},
rule: {
actions: 'Actions',
name: 'Rule Name',
type: 'Rule Type',
username: 'User Name',
create_time: 'Create Time',
update_time: 'Update Time',
input_item: 'Rule input item',
view_input_item: 'View input items',
input_item_title: 'Input item title',
input_item_placeholder: 'Input item placeholder',
input_item_type: 'Input item type',
src_connector_type: 'SrcConnType',
src_datasource_id: 'SrcSource',
src_table: 'SrcTable',
src_filter: 'SrcFilter',
src_field: 'SrcField',
statistics_name: 'ActualValName',
check_type: 'CheckType',
operator: 'Operator',
threshold: 'Threshold',
failure_strategy: 'FailureStrategy',
target_connector_type: 'TargetConnType',
target_datasource_id: 'TargetSourceId',
target_table: 'TargetTable',
target_filter: 'TargetFilter',
mapping_columns: 'OnClause',
statistics_execute_sql: 'ActualValExecSql',
comparison_name: 'ExceptedValName',
comparison_execute_sql: 'ExceptedValExecSql',
comparison_type: 'ExceptedValType',
writer_connector_type: 'WriterConnType',
writer_datasource_id: 'WriterSourceId',
target_field: 'TargetField',
field_length: 'FieldLength',
logic_operator: 'LogicOperator',
regexp_pattern: 'RegexpPattern',
deadline: 'Deadline',
datetime_format: 'DatetimeFormat',
enum_list: 'EnumList',
begin_time: 'BeginTime',
fix_value: 'FixValue',
null_check: 'NullCheck',
custom_sql: 'Custom Sql',
single_table: 'Single Table',
single_table_custom_sql: 'Single Table Custom Sql',
multi_table_accuracy: 'Multi Table Accuracy',
multi_table_value_comparison: 'Multi Table Compare',
field_length_check: 'FieldLengthCheck',
uniqueness_check: 'UniquenessCheck',
regexp_check: 'RegexpCheck',
timeliness_check: 'TimelinessCheck',
enumeration_check: 'EnumerationCheck',
table_count_check: 'TableCountCheck',
All: 'All',
FixValue: 'FixValue',
DailyAvg: 'DailyAvg',
WeeklyAvg: 'WeeklyAvg',
MonthlyAvg: 'MonthlyAvg',
Last7DayAvg: 'Last7DayAvg',
Last30DayAvg: 'Last30DayAvg',
SrcTableTotalRows: 'SrcTableTotalRows',
TargetTableTotalRows: 'TargetTableTotalRows'
}
}
const crontab = {
second: 'second',
minute: 'minute',
hour: 'hour',
day: 'day',
month: 'month',
year: 'year',
monday: 'Monday',
tuesday: 'Tuesday',
wednesday: 'Wednesday',
thursday: 'Thursday',
friday: 'Friday',
saturday: 'Saturday',
sunday: 'Sunday',
every_second: 'Every second',
every: 'Every',
second_carried_out: 'second carried out',
second_start: 'Start',
specific_second: 'Specific second(multiple)',
specific_second_tip: 'Please enter a specific second',
cycle_from: 'Cycle from',
to: 'to',
every_minute: 'Every minute',
minute_carried_out: 'minute carried out',
minute_start: 'Start',
specific_minute: 'Specific minute(multiple)',
specific_minute_tip: 'Please enter a specific minute',
every_hour: 'Every hour',
hour_carried_out: 'hour carried out',
hour_start: 'Start',
specific_hour: 'Specific hour(multiple)',
specific_hour_tip: 'Please enter a specific hour',
every_day: 'Every day',
week_carried_out: 'week carried out',
start: 'Start',
day_carried_out: 'day carried out',
day_start: 'Start',
specific_week: 'Specific day of the week(multiple)',
specific_week_tip: 'Please enter a specific week',
specific_day: 'Specific days(multiple)',
specific_day_tip: 'Please enter a days',
last_day_of_month: 'On the last day of the month',
last_work_day_of_month: 'On the last working day of the month',
last_of_month: 'At the last of this month',
before_end_of_month: 'Before the end of this month',
recent_business_day_to_month:
'The most recent business day (Monday to Friday) to this month',
in_this_months: 'In this months',
every_month: 'Every month',
month_carried_out: 'month carried out',
month_start: 'Start',
specific_month: 'Specific months(multiple)',
specific_month_tip: 'Please enter a months',
every_year: 'Every year',
year_carried_out: 'year carried out',
year_start: 'Start',
specific_year: 'Specific year(multiple)',
specific_year_tip: 'Please enter a year',
one_hour: 'hour',
one_day: 'day'
}
export default {
login,
modal,
theme,
userDropdown,
menu,
home,
password,
profile,
monitor,
resource,
project,
security,
datasource,
data_quality,
crontab
}
|
closed
|
apache/dolphinscheduler
|
https://github.com/apache/dolphinscheduler
| 8,945 |
[Bug] [UI Next][V1.0.0-Alpha] The serial wait text language was not supported in task instance page.
|
### Search before asking
- [X] I had searched in the [issues](https://github.com/apache/dolphinscheduler/issues?q=is%3Aissue) and found no similar issues.
### What happened
The serial wait text language was not supported in task instance page.
<img width="273" alt="image" src="https://user-images.githubusercontent.com/97265214/158727439-af644e3d-df0a-430b-ac0d-d353baba1f18.png">
### What you expected to happen
<img width="393" alt="image" src="https://user-images.githubusercontent.com/97265214/158727461-262a75b4-52e4-40e1-a8be-0aaa633a4c2f.png">
### How to reproduce
1. Open the task instance page.
2. Open the state options.
3. Scroll to bottom.
### Anything else
_No response_
### Version
dev
### Are you willing to submit PR?
- [X] Yes I am willing to submit a PR!
### Code of Conduct
- [X] I agree to follow this project's [Code of Conduct](https://www.apache.org/foundation/policies/conduct)
|
https://github.com/apache/dolphinscheduler/issues/8945
|
https://github.com/apache/dolphinscheduler/pull/8949
|
e8e2e3a13d0922dc7c21894a4ba6e2f183ec5e92
|
8fcca27fcb4e1d01019c98126c30a56f8a1e5255
| 2022-03-17T02:57:32Z |
java
| 2022-03-17T04:36:16Z |
dolphinscheduler-ui-next/src/locales/modules/zh_CN.ts
|
/*
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership.
* The ASF licenses this file to You under the Apache License, Version 2.0
* (the "License"); you may not use this file except in compliance with
* the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
const login = {
test: '测试',
userName: '用户名',
userName_tips: '请输入用户名',
userPassword: '密码',
userPassword_tips: '请输入密码',
login: '登录'
}
const modal = {
cancel: '取消',
confirm: '确定'
}
const theme = {
light: '浅色',
dark: '深色'
}
const userDropdown = {
profile: '用户信息',
password: '密码管理',
logout: '退出登录'
}
const menu = {
home: '首页',
project: '项目管理',
resources: '资源中心',
datasource: '数据源中心',
monitor: '监控中心',
security: '安全中心',
project_overview: '项目概览',
workflow_relation: '工作流关系',
workflow: '工作流',
workflow_definition: '工作流定义',
workflow_instance: '工作流实例',
task: '任务',
task_instance: '任务实例',
task_definition: '任务定义',
file_manage: '文件管理',
udf_manage: 'UDF管理',
resource_manage: '资源管理',
function_manage: '函数管理',
service_manage: '服务管理',
master: 'Master',
worker: 'Worker',
db: 'DB',
statistical_manage: '统计管理',
statistics: 'Statistics',
audit_log: '审计日志',
tenant_manage: '租户管理',
user_manage: '用户管理',
alarm_group_manage: '告警组管理',
alarm_instance_manage: '告警实例管理',
worker_group_manage: 'Worker分组管理',
yarn_queue_manage: 'Yarn队列管理',
environment_manage: '环境管理',
k8s_namespace_manage: 'K8S命名空间管理',
token_manage: '令牌管理',
task_group_manage: '任务组管理',
task_group_option: '任务组配置',
task_group_queue: '任务组队列',
data_quality: '数据质量',
task_result: '任务结果',
rule: '规则管理'
}
const home = {
task_state_statistics: '任务状态统计',
process_state_statistics: '流程状态统计',
process_definition_statistics: '流程定义统计',
number: '数量',
state: '状态',
submitted_success: '提交成功',
running_execution: '正在运行',
ready_pause: '准备暂停',
pause: '暂停',
ready_stop: '准备停止',
stop: '停止',
failure: '失败',
success: '成功',
need_fault_tolerance: '需要容错',
kill: 'KILL',
waiting_thread: '等待线程',
waiting_depend: '等待依赖完成',
delay_execution: '延时执行',
forced_success: '强制成功',
serial_wait: '串行等待',
ready_block: '准备阻断',
block: '阻断'
}
const password = {
edit_password: '修改密码',
password: '密码',
confirm_password: '确认密码',
password_tips: '请输入密码',
confirm_password_tips: '请输入确认密码',
two_password_entries_are_inconsistent: '两次密码输入不一致',
submit: '提交'
}
const profile = {
profile: '用户信息',
edit: '编辑',
username: '用户名',
email: '邮箱',
phone: '手机',
state: '状态',
permission: '权限',
create_time: '创建时间',
update_time: '更新时间',
administrator: '管理员',
ordinary_user: '普通用户',
edit_profile: '编辑用户',
username_tips: '请输入用户名',
email_tips: '请输入邮箱',
email_correct_tips: '请输入正确格式的邮箱',
phone_tips: '请输入手机号',
state_tips: '请选择状态',
enable: '启用',
disable: '禁用',
timezone_success: '时区更新成功',
please_select_timezone: '请选择时区'
}
const monitor = {
master: {
cpu_usage: '处理器使用量',
memory_usage: '内存使用量',
load_average: '平均负载量',
create_time: '创建时间',
last_heartbeat_time: '最后心跳时间',
directory_detail: '目录详情',
host: '主机',
directory: '注册目录'
},
worker: {
cpu_usage: '处理器使用量',
memory_usage: '内存使用量',
load_average: '平均负载量',
create_time: '创建时间',
last_heartbeat_time: '最后心跳时间',
directory_detail: '目录详情',
host: '主机',
directory: '注册目录'
},
db: {
health_state: '健康状态',
max_connections: '最大连接数',
threads_connections: '当前连接数',
threads_running_connections: '数据库当前活跃连接数'
},
statistics: {
command_number_of_waiting_for_running: '待执行的命令数',
failure_command_number: '执行失败的命令数',
tasks_number_of_waiting_running: '待运行任务数',
task_number_of_ready_to_kill: '待杀死任务数'
},
audit_log: {
user_name: '用户名称',
resource_type: '资源类型',
project_name: '项目名称',
operation_type: '操作类型',
create_time: '创建时间',
start_time: '开始时间',
end_time: '结束时间',
user_audit: '用户管理审计',
project_audit: '项目管理审计',
create: '创建',
update: '更新',
delete: '删除',
read: '读取'
}
}
const resource = {
file: {
file_manage: '文件管理',
create_folder: '创建文件夹',
create_file: '创建文件',
upload_files: '上传文件',
enter_keyword_tips: '请输入关键词',
name: '名称',
user_name: '所属用户',
whether_directory: '是否文件夹',
file_name: '文件名称',
description: '描述',
size: '大小',
update_time: '更新时间',
operation: '操作',
edit: '编辑',
rename: '重命名',
download: '下载',
delete: '删除',
yes: '是',
no: '否',
folder_name: '文件夹名称',
enter_name_tips: '请输入名称',
enter_description_tips: '请输入描述',
enter_content_tips: '请输入资源内容',
enter_suffix_tips: '请输入文件后缀',
file_format: '文件格式',
file_content: '文件内容',
delete_confirm: '确定删除吗?',
confirm: '确定',
cancel: '取消',
success: '成功',
file_details: '文件详情',
return: '返回',
save: '保存'
},
udf: {
udf_resources: 'UDF资源',
create_folder: '创建文件夹',
upload_udf_resources: '上传UDF资源',
udf_source_name: 'UDF资源名称',
whether_directory: '是否文件夹',
file_name: '文件名称',
file_size: '文件大小',
description: '描述',
create_time: '创建时间',
update_time: '更新时间',
operation: '操作',
yes: '是',
no: '否',
edit: '编辑',
download: '下载',
delete: '删除',
success: '成功',
folder_name: '文件夹名称',
upload: '上传',
upload_files: '上传文件',
file_upload: '文件上传',
delete_confirm: '确定删除吗?',
enter_keyword_tips: '请输入关键词',
enter_name_tips: '请输入名称',
enter_description_tips: '请输入描述'
},
function: {
udf_function: 'UDF函数',
create_udf_function: '创建UDF函数',
edit_udf_function: '编辑UDF函数',
udf_function_name: 'UDF函数名称',
class_name: '类名',
type: '类型',
description: '描述',
jar_package: 'jar包',
update_time: '更新时间',
operation: '操作',
rename: '重命名',
edit: '编辑',
delete: '删除',
success: '成功',
package_name: '包名类名',
udf_resources: 'UDF资源',
instructions: '使用说明',
upload_resources: '上传资源',
udf_resources_directory: 'UDF资源目录',
delete_confirm: '确定删除吗?',
enter_keyword_tips: '请输入关键词',
enter_udf_unction_name_tips: '请输入UDF函数名称',
enter_package_name_tips: '请输入包名类名',
enter_select_udf_resources_tips: '请选择UDF资源',
enter_select_udf_resources_directory_tips: '请选择UDF资源目录',
enter_instructions_tips: '请输入使用说明',
enter_name_tips: '请输入名称',
enter_description_tips: '请输入描述'
},
task_group_option: {
manage: '任务组管理',
option: '任务组配置',
create: '创建任务组',
edit: '编辑任务组',
delete: '删除任务组',
view_queue: '查看任务组队列',
switch_status: '切换任务组状态',
code: '任务组编号',
name: '任务组名称',
project_name: '项目名称',
resource_pool_size: '资源容量',
resource_used_pool_size: '已用资源',
desc: '描述信息',
status: '任务组状态',
enable_status: '启用',
disable_status: '不可用',
please_enter_name: '请输入任务组名称',
please_enter_desc: '请输入任务组描述',
please_enter_resource_pool_size: '请输入资源容量大小',
resource_pool_size_be_a_number: '资源容量大小必须大于等于1的数值',
please_select_project: '请选择项目',
create_time: '创建时间',
update_time: '更新时间',
actions: '操作',
please_enter_keywords: '请输入搜索关键词'
},
task_group_queue: {
actions: '操作',
task_name: '任务名称',
task_group_name: '任务组名称',
project_name: '项目名称',
process_name: '工作流名称',
process_instance_name: '工作流实例',
queue: '任务组队列',
priority: '组内优先级',
priority_be_a_number: '优先级必须是大于等于0的数值',
force_starting_status: '是否强制启动',
in_queue: '是否排队中',
task_status: '任务状态',
view_task_group_queue: '查看任务组队列',
the_status_of_waiting: '等待入队',
the_status_of_queuing: '排队中',
the_status_of_releasing: '已释放',
modify_priority: '修改优先级',
start_task: '强制启动',
priority_not_empty: '优先级不能为空',
priority_must_be_number: '优先级必须是数值',
please_select_task_name: '请选择节点名称',
create_time: '创建时间',
update_time: '更新时间',
edit_priority: '修改优先级'
}
}
const project = {
list: {
create_project: '创建项目',
edit_project: '编辑项目',
project_list: '项目列表',
project_tips: '请输入项目名称',
description_tips: '请输入项目描述',
username_tips: '请输入所属用户',
project_name: '项目名称',
project_description: '项目描述',
owned_users: '所属用户',
workflow_define_count: '工作流定义数',
process_instance_running_count: '正在运行的流程数',
description: '描述',
create_time: '创建时间',
update_time: '更新时间',
operation: '操作',
edit: '编辑',
delete: '删除',
confirm: '确定',
cancel: '取消',
delete_confirm: '确定删除吗?'
},
workflow: {
workflow_relation: '工作流关系',
create_workflow: '创建工作流',
import_workflow: '导入工作流',
workflow_name: '工作流名称',
current_selection: '当前选择',
online: '已上线',
offline: '已下线',
refresh: '刷新',
show_hide_label: '显示 / 隐藏标签',
workflow_offline: '工作流下线',
schedule_offline: '调度下线',
schedule_start_time: '定时开始时间',
schedule_end_time: '定时结束时间',
crontab_expression: 'Crontab',
workflow_publish_status: '工作流上线状态',
schedule_publish_status: '定时状态',
workflow_definition: '工作流定义',
workflow_instance: '工作流实例',
status: '状态',
create_time: '创建时间',
update_time: '更新时间',
description: '描述',
create_user: '创建用户',
modify_user: '修改用户',
operation: '操作',
edit: '编辑',
confirm: '确定',
cancel: '取消',
start: '运行',
timing: '定时',
timezone: '时区',
up_line: '上线',
down_line: '下线',
copy_workflow: '复制工作流',
cron_manage: '定时管理',
delete: '删除',
tree_view: '工作流树形图',
tree_limit: '限制大小',
export: '导出',
batch_copy: '批量复制',
version_info: '版本信息',
version: '版本',
file_upload: '文件上传',
upload_file: '上传文件',
upload: '上传',
file_name: '文件名称',
success: '成功',
set_parameters_before_starting: '启动前请先设置参数',
set_parameters_before_timing: '定时前请先设置参数',
start_and_stop_time: '起止时间',
next_five_execution_times: '接下来五次执行时间',
execute_time: '执行时间',
failure_strategy: '失败策略',
notification_strategy: '通知策略',
workflow_priority: '流程优先级',
worker_group: 'Worker分组',
environment_name: '环境名称',
alarm_group: '告警组',
complement_data: '补数',
startup_parameter: '启动参数',
whether_dry_run: '是否空跑',
continue: '继续',
end: '结束',
none_send: '都不发',
success_send: '成功发',
failure_send: '失败发',
all_send: '成功或失败都发',
whether_complement_data: '是否是补数',
schedule_date: '调度日期',
mode_of_execution: '执行方式',
serial_execution: '串行执行',
parallel_execution: '并行执行',
parallelism: '并行度',
custom_parallelism: '自定义并行度',
please_enter_parallelism: '请输入并行度',
please_choose: '请选择',
start_time: '开始时间',
end_time: '结束时间',
crontab: 'Crontab',
delete_confirm: '确定删除吗?',
enter_name_tips: '请输入名称',
switch_version: '切换到该版本',
confirm_switch_version: '确定切换到该版本吗?',
current_version: '当前版本',
run_type: '运行类型',
scheduling_time: '调度时间',
duration: '运行时长',
run_times: '运行次数',
fault_tolerant_sign: '容错标识',
dry_run_flag: '空跑标识',
executor: '执行用户',
host: 'Host',
start_process: '启动工作流',
execute_from_the_current_node: '从当前节点开始执行',
recover_tolerance_fault_process: '恢复被容错的工作流',
resume_the_suspension_process: '恢复运行流程',
execute_from_the_failed_nodes: '从失败节点开始执行',
scheduling_execution: '调度执行',
rerun: '重跑',
stop: '停止',
pause: '暂停',
recovery_waiting_thread: '恢复等待线程',
recover_serial_wait: '串行恢复',
recovery_suspend: '恢复运行',
recovery_failed: '恢复失败',
gantt: '甘特图',
name: '名称',
all_status: '全部状态',
submit_success: '提交成功',
running: '正在运行',
ready_to_pause: '准备暂停',
ready_to_stop: '准备停止',
failed: '失败',
need_fault_tolerance: '需要容错',
kill: 'Kill',
waiting_for_thread: '等待线程',
waiting_for_dependence: '等待依赖',
waiting_for_dependency_to_complete: '等待依赖完成',
delay_execution: '延时执行',
forced_success: '强制成功',
serial_wait: '串行等待',
executing: '正在执行',
startup_type: '启动类型',
complement_range: '补数范围',
parameters_variables: '参数变量',
global_parameters: '全局参数',
local_parameters: '局部参数',
type: '类型',
retry_count: '重试次数',
submit_time: '提交时间',
refresh_status_succeeded: '刷新状态成功',
view_log: '查看日志',
update_log_success: '更新日志成功',
no_more_log: '暂无更多日志',
no_log: '暂无日志',
loading_log: '正在努力请求日志中...',
close: '关闭',
download_log: '下载日志',
refresh_log: '刷新日志',
enter_full_screen: '进入全屏',
cancel_full_screen: '取消全屏',
task_state: '任务状态',
mode_of_dependent: '依赖模式',
open: '打开',
project_name_required: '项目名称必填',
related_items: '关联项目',
project_name: '项目名称',
project_tips: '请选择项目'
},
task: {
task_name: '任务名称',
task_type: '任务类型',
create_task: '创建任务',
workflow_instance: '工作流实例',
workflow_name: '工作流名称',
workflow_name_tips: '请选择工作流名称',
workflow_state: '工作流状态',
version: '版本',
current_version: '当前版本',
switch_version: '切换到该版本',
confirm_switch_version: '确定切换到该版本吗?',
description: '描述',
move: '移动',
upstream_tasks: '上游任务',
executor: '执行用户',
node_type: '节点类型',
state: '状态',
submit_time: '提交时间',
start_time: '开始时间',
create_time: '创建时间',
update_time: '更新时间',
end_time: '结束时间',
duration: '运行时间',
retry_count: '重试次数',
dry_run_flag: '空跑标识',
host: '主机',
operation: '操作',
edit: '编辑',
delete: '删除',
delete_confirm: '确定删除吗?',
submitted_success: '提交成功',
running_execution: '正在运行',
ready_pause: '准备暂停',
pause: '暂停',
ready_stop: '准备停止',
stop: '停止',
failure: '失败',
success: '成功',
need_fault_tolerance: '需要容错',
kill: 'KILL',
waiting_thread: '等待线程',
waiting_depend: '等待依赖完成',
delay_execution: '延时执行',
forced_success: '强制成功',
view_log: '查看日志',
download_log: '下载日志',
refresh: '刷新'
},
dag: {
create: '创建工作流',
search: '搜索',
download_png: '下载工作流图片',
fullscreen_open: '全屏',
fullscreen_close: '退出全屏',
save: '保存',
close: '关闭',
format: '格式化',
refresh_dag_status: '刷新DAG状态',
layout_type: '布局类型',
grid_layout: '网格布局',
dagre_layout: '层次布局',
rows: '行数',
cols: '列数',
copy_success: '复制成功',
workflow_name: '工作流名称',
description: '描述',
tenant: '租户',
timeout_alert: '超时告警',
global_variables: '全局变量',
basic_info: '基本信息',
minute: '分',
key: '键',
value: '值',
success: '成功',
delete_cell: '删除选中的线或节点',
online_directly: '是否上线流程定义',
update_directly: '是否更新流程定义',
dag_name_empty: 'DAG图名称不能为空',
positive_integer: '请输入大于 0 的正整数',
prop_empty: '自定义参数prop不能为空',
prop_repeat: 'prop中有重复',
node_not_created: '未创建节点保存失败',
copy_name: '复制名称',
view_variables: '查看变量',
startup_parameter: '启动参数'
},
node: {
current_node_settings: '当前节点设置',
instructions: '使用说明',
view_history: '查看历史',
view_log: '查看日志',
enter_this_child_node: '进入该子节点',
name: '节点名称',
name_tips: '请输入名称(必填)',
task_type: '任务类型',
task_type_tips: '请选择任务类型(必选)',
process_name: '工作流名称',
process_name_tips: '请选择工作流(必选)',
child_node: '子节点',
enter_child_node: '进入该子节点',
run_flag: '运行标志',
normal: '正常',
prohibition_execution: '禁止执行',
description: '描述',
description_tips: '请输入描述',
task_priority: '任务优先级',
worker_group: 'Worker分组',
worker_group_tips: '该Worker分组已经不存在,请选择正确的Worker分组!',
environment_name: '环境名称',
task_group_name: '任务组名称',
task_group_queue_priority: '组内优先级',
number_of_failed_retries: '失败重试次数',
times: '次',
failed_retry_interval: '失败重试间隔',
minute: '分',
delay_execution_time: '延时执行时间',
state: '状态',
branch_flow: '分支流转',
cancel: '取消',
loading: '正在努力加载中...',
confirm: '确定',
success: '成功',
failed: '失败',
backfill_tips: '新创建子工作流还未执行,不能进入子工作流',
task_instance_tips: '该任务还未执行,不能进入子工作流',
branch_tips: '成功分支流转和失败分支流转不能选择同一个节点',
timeout_alarm: '超时告警',
timeout_strategy: '超时策略',
timeout_strategy_tips: '超时策略必须选一个',
timeout_failure: '超时失败',
timeout_period: '超时时长',
timeout_period_tips: '超时时长必须为正整数',
script: '脚本',
script_tips: '请输入脚本(必填)',
resources: '资源',
resources_tips: '请选择资源',
no_resources_tips: '请删除所有未授权或已删除资源',
useless_resources_tips: '未授权或已删除资源',
custom_parameters: '自定义参数',
copy_failed: '该浏览器不支持自动复制',
prop_tips: 'prop(必填)',
prop_repeat: 'prop中有重复',
value_tips: 'value(选填)',
value_required_tips: 'value(必填)',
pre_tasks: '前置任务',
program_type: '程序类型',
spark_version: 'Spark版本',
main_class: '主函数的Class',
main_class_tips: '请填写主函数的Class',
main_package: '主程序包',
main_package_tips: '请选择主程序包',
deploy_mode: '部署方式',
app_name: '任务名称',
app_name_tips: '请输入任务名称(选填)',
driver_cores: 'Driver核心数',
driver_cores_tips: '请输入Driver核心数',
driver_memory: 'Driver内存数',
driver_memory_tips: '请输入Driver内存数',
executor_number: 'Executor数量',
executor_number_tips: '请输入Executor数量',
executor_memory: 'Executor内存数',
executor_memory_tips: '请输入Executor内存数',
executor_cores: 'Executor核心数',
executor_cores_tips: '请输入Executor核心数',
main_arguments: '主程序参数',
main_arguments_tips: '请输入主程序参数',
option_parameters: '选项参数',
option_parameters_tips: '请输入选项参数',
positive_integer_tips: '应为正整数',
flink_version: 'Flink版本',
job_manager_memory: 'JobManager内存数',
job_manager_memory_tips: '请输入JobManager内存数',
task_manager_memory: 'TaskManager内存数',
task_manager_memory_tips: '请输入TaskManager内存数',
slot_number: 'Slot数量',
slot_number_tips: '请输入Slot数量',
parallelism: '并行度',
custom_parallelism: '自定义并行度',
parallelism_tips: '请输入并行度',
parallelism_number_tips: '并行度必须为正整数',
parallelism_complement_tips:
'如果存在大量任务需要补数时,可以利用自定义并行度将补数的任务线程设置成合理的数值,避免对服务器造成过大的影响',
task_manager_number: 'TaskManager数量',
task_manager_number_tips: '请输入TaskManager数量',
http_url: '请求地址',
http_url_tips: '请填写请求地址(必填)',
http_method: '请求类型',
http_parameters: '请求参数',
http_check_condition: '校验条件',
http_condition: '校验内容',
http_condition_tips: '请填写校验内容',
timeout_settings: '超时设置',
connect_timeout: '连接超时',
ms: '毫秒',
socket_timeout: 'Socket超时',
status_code_default: '默认响应码200',
status_code_custom: '自定义响应码',
body_contains: '内容包含',
body_not_contains: '内容不包含',
http_parameters_position: '参数位置',
target_task_name: '目标任务名',
target_task_name_tips: '请输入Pigeon任务名',
datasource_type: '数据源类型',
datasource_instances: '数据源实例',
sql_type: 'SQL类型',
sql_type_query: '查询',
sql_type_non_query: '非查询',
sql_statement: 'SQL语句',
pre_sql_statement: '前置SQL语句',
post_sql_statement: '后置SQL语句',
sql_input_placeholder: '请输入非查询SQL语句',
sql_empty_tips: '语句不能为空',
procedure_method: 'SQL语句',
procedure_method_tips: '请输入存储脚本',
procedure_method_snippet:
'--请输入存储脚本 \n\n--调用存储过程: call <procedure-name>[(<arg1>,<arg2>, ...)] \n\n--调用存储函数:?= call <procedure-name>[(<arg1>,<arg2>, ...)]',
start: '运行',
edit: '编辑',
copy: '复制节点',
delete: '删除',
custom_job: '自定义任务',
custom_script: '自定义脚本',
sqoop_job_name: '任务名称',
sqoop_job_name_tips: '请输入任务名称(必填)',
direct: '流向',
hadoop_custom_params: 'Hadoop参数',
sqoop_advanced_parameters: 'Sqoop参数',
data_source: '数据来源',
type: '类型',
datasource: '数据源',
datasource_tips: '请选择数据源',
model_type: '模式',
form: '表单',
table: '表名',
table_tips: '请输入Mysql表名(必填)',
column_type: '列类型',
all_columns: '全表导入',
some_columns: '选择列',
column: '列',
column_tips: '请输入列名,用 , 隔开',
database: '数据库',
database_tips: '请输入Hive数据库(必填)',
hive_table_tips: '请输入Hive表名(必填)',
hive_partition_keys: 'Hive 分区键',
hive_partition_keys_tips: '请输入分区键',
hive_partition_values: 'Hive 分区值',
hive_partition_values_tips: '请输入分区值',
export_dir: '数据源路径',
export_dir_tips: '请输入数据源路径(必填)',
sql_statement_tips: 'SQL语句(必填)',
map_column_hive: 'Hive类型映射',
map_column_java: 'Java类型映射',
data_target: '数据目的',
create_hive_table: '是否创建新表',
drop_delimiter: '是否删除分隔符',
over_write_src: '是否覆盖数据源',
hive_target_dir: 'Hive目标路径',
hive_target_dir_tips: '请输入Hive临时目录',
replace_delimiter: '替换分隔符',
replace_delimiter_tips: '请输入替换分隔符',
target_dir: '目标路径',
target_dir_tips: '请输入目标路径(必填)',
delete_target_dir: '是否删除目录',
compression_codec: '压缩类型',
file_type: '保存格式',
fields_terminated: '列分隔符',
fields_terminated_tips: '请输入列分隔符',
lines_terminated: '行分隔符',
lines_terminated_tips: '请输入行分隔符',
is_update: '是否更新',
update_key: '更新列',
update_key_tips: '请输入更新列',
update_mode: '更新类型',
only_update: '只更新',
allow_insert: '无更新便插入',
concurrency: '并发度',
concurrency_tips: '请输入并发度',
sea_tunnel_master: 'Master',
sea_tunnel_master_url: 'Master URL',
sea_tunnel_queue: '队列',
sea_tunnel_master_url_tips: '请直接填写地址,例如:127.0.0.1:7077',
switch_condition: '条件',
switch_branch_flow: '分支流转',
and: '且',
or: '或',
datax_custom_template: '自定义模板',
datax_json_template: 'JSON',
datax_target_datasource_type: '目标源类型',
datax_target_database: '目标源实例',
datax_target_table: '目标表',
datax_target_table_tips: '请输入目标表名',
datax_target_database_pre_sql: '目标库前置SQL',
datax_target_database_post_sql: '目标库后置SQL',
datax_non_query_sql_tips: '请输入非查询SQL语句',
datax_job_speed_byte: '限流(字节数)',
datax_job_speed_byte_info: '(KB,0代表不限制)',
datax_job_speed_record: '限流(记录数)',
datax_job_speed_record_info: '(0代表不限制)',
datax_job_runtime_memory: '运行内存',
datax_job_runtime_memory_xms: '最小内存',
datax_job_runtime_memory_xmx: '最大内存',
datax_job_runtime_memory_unit: 'G',
current_hour: '当前小时',
last_1_hour: '前1小时',
last_2_hour: '前2小时',
last_3_hour: '前3小时',
last_24_hour: '前24小时',
today: '今天',
last_1_days: '昨天',
last_2_days: '前两天',
last_3_days: '前三天',
last_7_days: '前七天',
this_week: '本周',
last_week: '上周',
last_monday: '上周一',
last_tuesday: '上周二',
last_wednesday: '上周三',
last_thursday: '上周四',
last_friday: '上周五',
last_saturday: '上周六',
last_sunday: '上周日',
this_month: '本月',
last_month: '上月',
last_month_begin: '上月初',
last_month_end: '上月末',
month: '月',
week: '周',
day: '日',
hour: '时',
add_dependency: '添加依赖',
waiting_dependent_start: '等待依赖启动',
check_interval: '检查间隔',
waiting_dependent_complete: '等待依赖完成',
rule_name: '规则名称',
null_check: '空值检测',
custom_sql: '自定义SQL',
multi_table_accuracy: '多表准确性',
multi_table_value_comparison: '两表值比对',
field_length_check: '字段长度校验',
uniqueness_check: '唯一性校验',
regexp_check: '正则表达式',
timeliness_check: '及时性校验',
enumeration_check: '枚举值校验',
table_count_check: '表行数校验',
src_connector_type: '源数据类型',
src_datasource_id: '源数据源',
src_table: '源数据表',
src_filter: '源表过滤条件',
src_field: '源表检测列',
statistics_name: '实际值名',
check_type: '校验方式',
operator: '校验操作符',
threshold: '阈值',
failure_strategy: '失败策略',
target_connector_type: '目标数据类型',
target_datasource_id: '目标数据源',
target_table: '目标数据表',
target_filter: '目标表过滤条件',
mapping_columns: 'ON语句',
statistics_execute_sql: '实际值计算SQL',
comparison_name: '期望值名',
comparison_execute_sql: '期望值计算SQL',
comparison_type: '期望值类型',
writer_connector_type: '输出数据类型',
writer_datasource_id: '输出数据源',
target_field: '目标表检测列',
field_length: '字段长度限制',
logic_operator: '逻辑操作符',
regexp_pattern: '正则表达式',
deadline: '截止时间',
datetime_format: '时间格式',
enum_list: '枚举值列表',
begin_time: '起始时间',
fix_value: '固定值',
required: '必填',
emr_flow_define_json: 'jobFlowDefineJson',
emr_flow_define_json_tips: '请输入工作流定义'
}
}
const security = {
tenant: {
tenant_manage: '租户管理',
create_tenant: '创建租户',
search_tips: '请输入关键词',
tenant_code: '操作系统租户',
description: '描述',
queue_name: '队列',
create_time: '创建时间',
update_time: '更新时间',
actions: '操作',
edit_tenant: '编辑租户',
tenant_code_tips: '请输入操作系统租户',
queue_name_tips: '请选择队列',
description_tips: '请输入描述',
delete_confirm: '确定删除吗?',
edit: '编辑',
delete: '删除'
},
alarm_group: {
create_alarm_group: '创建告警组',
edit_alarm_group: '编辑告警组',
search_tips: '请输入关键词',
alert_group_name_tips: '请输入告警组名称',
alarm_plugin_instance: '告警组实例',
alarm_plugin_instance_tips: '请选择告警组实例',
alarm_group_description_tips: '请输入告警组描述',
alert_group_name: '告警组名称',
alarm_group_description: '告警组描述',
create_time: '创建时间',
update_time: '更新时间',
operation: '操作',
delete_confirm: '确定删除吗?',
edit: '编辑',
delete: '删除'
},
worker_group: {
create_worker_group: '创建Worker分组',
edit_worker_group: '编辑Worker分组',
search_tips: '请输入关键词',
operation: '操作',
delete_confirm: '确定删除吗?',
edit: '编辑',
delete: '删除',
group_name: '分组名称',
group_name_tips: '请输入分组名称',
worker_addresses: 'Worker地址',
worker_addresses_tips: '请选择Worker地址',
create_time: '创建时间',
update_time: '更新时间'
},
yarn_queue: {
create_queue: '创建队列',
edit_queue: '编辑队列',
search_tips: '请输入关键词',
queue_name: '队列名',
queue_value: '队列值',
create_time: '创建时间',
update_time: '更新时间',
operation: '操作',
edit: '编辑',
queue_name_tips: '请输入队列名',
queue_value_tips: '请输入队列值'
},
environment: {
create_environment: '创建环境',
edit_environment: '编辑环境',
search_tips: '请输入关键词',
edit: '编辑',
delete: '删除',
environment_name: '环境名称',
environment_config: '环境配置',
environment_desc: '环境描述',
worker_groups: 'Worker分组',
create_time: '创建时间',
update_time: '更新时间',
operation: '操作',
delete_confirm: '确定删除吗?',
environment_name_tips: '请输入环境名',
environment_config_tips: '请输入环境配置',
environment_description_tips: '请输入环境描述',
worker_group_tips: '请选择Worker分组'
},
token: {
create_token: '创建令牌',
edit_token: '编辑令牌',
search_tips: '请输入关键词',
user: '用户',
user_tips: '请选择用户',
token: '令牌',
token_tips: '请输入令牌',
expiration_time: '失效时间',
expiration_time_tips: '请选择失效时间',
create_time: '创建时间',
update_time: '更新时间',
operation: '操作',
edit: '编辑',
delete: '删除',
delete_confirm: '确定删除吗?'
},
user: {
user_manage: '用户管理',
create_user: '创建用户',
update_user: '更新用户',
delete_user: '删除用户',
delete_confirm: '确定删除吗?',
project: '项目',
resource: '资源',
file_resource: '文件资源',
udf_resource: 'UDF资源',
datasource: '数据源',
udf: 'UDF函数',
authorize_project: '项目授权',
authorize_resource: '资源授权',
authorize_datasource: '数据源授权',
authorize_udf: 'UDF函数授权',
username: '用户名',
username_exists: '用户名已存在',
username_tips: '请输入用户名',
user_password: '密码',
user_password_tips: '请输入包含字母和数字,长度在6~20之间的密码',
user_type: '用户类型',
ordinary_user: '普通用户',
administrator: '管理员',
tenant_code: '租户',
tenant_id_tips: '请选择租户',
queue: '队列',
queue_tips: '默认为租户关联队列',
email: '邮件',
email_empty_tips: '请输入邮箱',
emial_correct_tips: '请输入正确的邮箱格式',
phone: '手机',
phone_empty_tips: '请输入手机号码',
phone_correct_tips: '请输入正确的手机格式',
state: '状态',
state_enabled: '启用',
state_disabled: '停用',
create_time: '创建时间',
update_time: '更新时间',
operation: '操作',
edit: '编辑',
delete: '删除',
authorize: '授权',
save_error_msg: '保存失败,请重试',
delete_error_msg: '删除失败,请重试',
auth_error_msg: '授权失败,请重试',
auth_success_msg: '授权成功',
enable: '启用',
disable: '停用'
},
alarm_instance: {
search_input_tips: '请输入关键字',
alarm_instance_manage: '告警实例管理',
alarm_instance: '告警实例',
alarm_instance_name: '告警实例名称',
alarm_instance_name_tips: '请输入告警实例名称',
alarm_plugin_name: '告警插件名称',
create_time: '创建时间',
update_time: '更新时间',
operation: '操作',
edit: '编辑',
delete: '删除',
confirm: '确定',
cancel: '取消',
submit: '提交',
create: '创建',
select_plugin: '选择插件',
select_plugin_tips: '请选择告警插件',
instance_parameter_exception: '实例参数异常',
WebHook: 'Web钩子',
webHook: 'Web钩子',
IsEnableProxy: '启用代理',
Proxy: '代理',
Port: '端口',
User: '用户',
corpId: '企业ID',
secret: '密钥',
Secret: '密钥',
users: '群员',
userSendMsg: '群员信息',
agentId: '应用ID',
showType: '内容展示类型',
receivers: '收件人',
receiverCcs: '抄送人',
serverHost: 'SMTP服务器',
serverPort: 'SMTP端口',
sender: '发件人',
enableSmtpAuth: '请求认证',
Password: '密码',
starttlsEnable: 'STARTTLS连接',
sslEnable: 'SSL连接',
smtpSslTrust: 'SSL证书信任',
url: 'URL',
requestType: '请求方式',
headerParams: '请求头',
bodyParams: '请求体',
contentField: '内容字段',
Keyword: '关键词',
userParams: '自定义参数',
path: '脚本路径',
type: '类型',
sendType: '发送类型',
username: '用户名',
botToken: '机器人Token',
chatId: '频道ID',
parseMode: '解析类型'
},
k8s_namespace: {
create_namespace: '创建命名空间',
edit_namespace: '编辑命名空间',
search_tips: '请输入关键词',
k8s_namespace: 'K8S命名空间',
k8s_namespace_tips: '请输入k8s命名空间',
k8s_cluster: 'K8S集群',
k8s_cluster_tips: '请输入k8s集群',
owner: '负责人',
owner_tips: '请输入负责人',
tag: '标签',
tag_tips: '请输入标签',
limit_cpu: '最大CPU',
limit_cpu_tips: '请输入最大CPU',
limit_memory: '最大内存',
limit_memory_tips: '请输入最大内存',
create_time: '创建时间',
update_time: '更新时间',
operation: '操作',
edit: '编辑',
delete: '删除',
delete_confirm: '确定删除吗?'
}
}
const datasource = {
datasource: '数据源',
create_datasource: '创建数据源',
search_input_tips: '请输入关键字',
datasource_name: '数据源名称',
datasource_name_tips: '请输入数据源名称',
datasource_user_name: '所属用户',
datasource_type: '数据源类型',
datasource_parameter: '数据源参数',
description: '描述',
description_tips: '请输入描述',
create_time: '创建时间',
update_time: '更新时间',
operation: '操作',
click_to_view: '点击查看',
delete: '删除',
confirm: '确定',
cancel: '取消',
create: '创建',
edit: '编辑',
success: '成功',
test_connect: '测试连接',
ip: 'IP主机名',
ip_tips: '请输入IP主机名',
port: '端口',
port_tips: '请输入端口',
database_name: '数据库名',
database_name_tips: '请输入数据库名',
oracle_connect_type: '服务名或SID',
oracle_connect_type_tips: '请选择服务名或SID',
oracle_service_name: '服务名',
oracle_sid: 'SID',
jdbc_connect_parameters: 'jdbc连接参数',
principal_tips: '请输入Principal',
krb5_conf_tips: '请输入kerberos认证参数 java.security.krb5.conf',
keytab_username_tips: '请输入kerberos认证参数 login.user.keytab.username',
keytab_path_tips: '请输入kerberos认证参数 login.user.keytab.path',
format_tips: '请输入格式为',
connection_parameter: '连接参数',
user_name: '用户名',
user_name_tips: '请输入用户名',
user_password: '密码',
user_password_tips: '请输入密码'
}
const data_quality = {
task_result: {
task_name: '任务名称',
workflow_instance: '工作流实例',
rule_type: '规则类型',
rule_name: '规则名称',
state: '状态',
actual_value: '实际值',
excepted_value: '期望值',
check_type: '检测类型',
operator: '操作符',
threshold: '阈值',
failure_strategy: '失败策略',
excepted_value_type: '期望值类型',
error_output_path: '错误数据路径',
username: '用户名',
create_time: '创建时间',
update_time: '更新时间',
undone: '未完成',
success: '成功',
failure: '失败',
single_table: '单表检测',
single_table_custom_sql: '自定义SQL',
multi_table_accuracy: '多表准确性',
multi_table_comparison: '两表值对比',
expected_and_actual_or_expected: '(期望值-实际值)/实际值 x 100%',
expected_and_actual: '期望值-实际值',
actual_and_expected: '实际值-期望值',
actual_or_expected: '实际值/期望值 x 100%'
},
rule: {
actions: '操作',
name: '规则名称',
type: '规则类型',
username: '用户名',
create_time: '创建时间',
update_time: '更新时间',
input_item: '规则输入项',
view_input_item: '查看规则输入项信息',
input_item_title: '输入项标题',
input_item_placeholder: '输入项占位符',
input_item_type: '输入项类型',
src_connector_type: '源数据类型',
src_datasource_id: '源数据源',
src_table: '源数据表',
src_filter: '源表过滤条件',
src_field: '源表检测列',
statistics_name: '实际值名',
check_type: '校验方式',
operator: '校验操作符',
threshold: '阈值',
failure_strategy: '失败策略',
target_connector_type: '目标数据类型',
target_datasource_id: '目标数据源',
target_table: '目标数据表',
target_filter: '目标表过滤条件',
mapping_columns: 'ON语句',
statistics_execute_sql: '实际值计算SQL',
comparison_name: '期望值名',
comparison_execute_sql: '期望值计算SQL',
comparison_type: '期望值类型',
writer_connector_type: '输出数据类型',
writer_datasource_id: '输出数据源',
target_field: '目标表检测列',
field_length: '字段长度限制',
logic_operator: '逻辑操作符',
regexp_pattern: '正则表达式',
deadline: '截止时间',
datetime_format: '时间格式',
enum_list: '枚举值列表',
begin_time: '起始时间',
fix_value: '固定值',
null_check: '空值检测',
custom_sql: '自定义SQL',
single_table: '单表检测',
multi_table_accuracy: '多表准确性',
multi_table_value_comparison: '两表值比对',
field_length_check: '字段长度校验',
uniqueness_check: '唯一性校验',
regexp_check: '正则表达式',
timeliness_check: '及时性校验',
enumeration_check: '枚举值校验',
table_count_check: '表行数校验',
all: '全部',
FixValue: '固定值',
DailyAvg: '日均值',
WeeklyAvg: '周均值',
MonthlyAvg: '月均值',
Last7DayAvg: '最近7天均值',
Last30DayAvg: '最近30天均值',
SrcTableTotalRows: '源表总行数',
TargetTableTotalRows: '目标表总行数'
}
}
const crontab = {
second: '秒',
minute: '分',
hour: '时',
day: '天',
month: '月',
year: '年',
monday: '星期一',
tuesday: '星期二',
wednesday: '星期三',
thursday: '星期四',
friday: '星期五',
saturday: '星期六',
sunday: '星期天',
every_second: '每一秒钟',
every: '每隔',
second_carried_out: '秒执行 从',
second_start: '秒开始',
specific_second: '具体秒数(可多选)',
specific_second_tip: '请选择具体秒数',
cycle_from: '周期从',
to: '到',
every_minute: '每一分钟',
minute_carried_out: '分执行 从',
minute_start: '分开始',
specific_minute: '具体分钟数(可多选)',
specific_minute_tip: '请选择具体分钟数',
every_hour: '每一小时',
hour_carried_out: '小时执行 从',
hour_start: '小时开始',
specific_hour: '具体小时数(可多选)',
specific_hour_tip: '请选择具体小时数',
every_day: '每一天',
week_carried_out: '周执行 从',
start: '开始',
day_carried_out: '天执行 从',
day_start: '天开始',
specific_week: '具体星期几(可多选)',
specific_week_tip: '请选择具体周几',
specific_day: '具体天数(可多选)',
specific_day_tip: '请选择具体天数',
last_day_of_month: '在这个月的最后一天',
last_work_day_of_month: '在这个月的最后一个工作日',
last_of_month: '在这个月的最后一个',
before_end_of_month: '在本月底前',
recent_business_day_to_month: '最近的工作日(周一至周五)至本月',
in_this_months: '在这个月的第',
every_month: '每一月',
month_carried_out: '月执行 从',
month_start: '月开始',
specific_month: '具体月数(可多选)',
specific_month_tip: '请选择具体月数',
every_year: '每一年',
year_carried_out: '年执行 从',
year_start: '年开始',
specific_year: '具体年数(可多选)',
specific_year_tip: '请选择具体年数',
one_hour: '小时',
one_day: '日'
}
export default {
login,
modal,
theme,
userDropdown,
menu,
home,
password,
profile,
monitor,
resource,
project,
security,
datasource,
data_quality,
crontab
}
|
closed
|
apache/dolphinscheduler
|
https://github.com/apache/dolphinscheduler
| 8,940 |
[Bug] [UI Next][V1.0.0-Alpha] Workflow modal timeout alert internationalization
|
### Search before asking
- [X] I had searched in the [issues](https://github.com/apache/dolphinscheduler/issues?q=is%3Aissue) and found no similar issues.
### What happened
<img width="1181" alt="image" src="https://user-images.githubusercontent.com/8847400/158723553-cc81fb55-4b09-478b-9b79-de66bbccc4d9.png">
### What you expected to happen
minute are displayed in english
### How to reproduce
Open workflow definition and click save button to open modal
### Anything else
_No response_
### Version
dev
### Are you willing to submit PR?
- [X] Yes I am willing to submit a PR!
### Code of Conduct
- [X] I agree to follow this project's [Code of Conduct](https://www.apache.org/foundation/policies/conduct)
|
https://github.com/apache/dolphinscheduler/issues/8940
|
https://github.com/apache/dolphinscheduler/pull/8950
|
8fcca27fcb4e1d01019c98126c30a56f8a1e5255
|
192086e639d32ca09fe15ea27595e95e35dbd218
| 2022-03-17T02:22:36Z |
java
| 2022-03-17T04:37:40Z |
dolphinscheduler-ui-next/src/views/projects/workflow/components/dag/dag-save-modal.tsx
|
/*
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership.
* The ASF licenses this file to You under the Apache License, Version 2.0
* (the "License"); you may not use this file except in compliance with
* the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
import { defineComponent, PropType, ref, computed, onMounted, watch } from 'vue'
import Modal from '@/components/modal'
import { useI18n } from 'vue-i18n'
import {
NForm,
NFormItem,
NInput,
NSelect,
NSwitch,
NInputNumber,
NDynamicInput,
NCheckbox
} from 'naive-ui'
import { queryTenantList } from '@/service/modules/tenants'
import { useRoute } from 'vue-router'
import { verifyName } from '@/service/modules/process-definition'
import './x6-style.scss'
import { positiveIntegerRegex } from '@/utils/regex'
import type { SaveForm, WorkflowDefinition, WorkflowInstance } from './types'
const props = {
visible: {
type: Boolean as PropType<boolean>,
default: false
},
// If this prop is passed, it means from definition detail
definition: {
type: Object as PropType<WorkflowDefinition>,
default: undefined
},
instance: {
type: Object as PropType<WorkflowInstance>,
default: undefined
}
}
interface Tenant {
tenantCode: string
id: number
}
export default defineComponent({
name: 'dag-save-modal',
props,
emits: ['update:show', 'save'],
setup(props, context) {
const route = useRoute()
const { t } = useI18n()
const projectCode = Number(route.params.projectCode)
const tenants = ref<Tenant[]>([])
const tenantsDropdown = computed(() => {
if (tenants.value) {
return tenants.value
.map((t) => ({
label: t.tenantCode,
value: t.tenantCode
}))
.concat({ label: 'default', value: 'default' })
}
return []
})
onMounted(() => {
queryTenantList().then((res: any) => {
tenants.value = res
})
})
const formValue = ref<SaveForm>({
name: '',
description: '',
tenantCode: 'default',
timeoutFlag: false,
timeout: 0,
globalParams: [],
release: false,
sync: false
})
const formRef = ref()
const rule = {
name: {
required: true,
message: t('project.dag.dag_name_empty')
},
timeout: {
validator() {
if (
formValue.value.timeoutFlag &&
!positiveIntegerRegex.test(String(formValue.value.timeout))
) {
return new Error(t('project.dag.positive_integer'))
}
}
},
globalParams: {
validator() {
const props = new Set()
for (const param of formValue.value.globalParams) {
const prop = param.value
if (!prop) {
return new Error(t('project.dag.prop_empty'))
}
if (props.has(prop)) {
return new Error(t('project.dag.prop_repeat'))
}
props.add(prop)
}
}
}
}
const onSubmit = () => {
formRef.value.validate(async (valid: any) => {
if (!valid) {
const params = {
name: formValue.value.name
}
if (
props.definition?.processDefinition.name !== formValue.value.name
) {
verifyName(params, projectCode).then(() =>
context.emit('save', formValue.value)
)
} else {
context.emit('save', formValue.value)
}
}
})
}
const onCancel = () => {
context.emit('update:show', false)
}
const updateModalData = () => {
const process = props.definition?.processDefinition
if (process) {
formValue.value.name = process.name
formValue.value.description = process.description
formValue.value.tenantCode = process.tenantCode || 'default'
if (process.timeout && process.timeout > 0) {
formValue.value.timeoutFlag = true
formValue.value.timeout = process.timeout
}
formValue.value.globalParams = process.globalParamList.map((param) => ({
key: param.prop,
value: param.value
}))
}
}
onMounted(() => updateModalData())
watch(
() => props.definition?.processDefinition,
() => updateModalData()
)
return () => (
<Modal
show={props.visible}
title={t('project.dag.basic_info')}
onConfirm={onSubmit}
onCancel={onCancel}
autoFocus={false}
>
<NForm model={formValue.value} rules={rule} ref={formRef}>
<NFormItem label={t('project.dag.workflow_name')} path='name'>
<NInput v-model:value={formValue.value.name} class='input-name' />
</NFormItem>
<NFormItem label={t('project.dag.description')} path='description'>
<NInput
type='textarea'
v-model:value={formValue.value.description}
class='input-description'
/>
</NFormItem>
<NFormItem label={t('project.dag.tenant')} path='tenantCode'>
<NSelect
options={tenantsDropdown.value}
v-model:value={formValue.value.tenantCode}
class='btn-select-tenant-code'
/>
</NFormItem>
<NFormItem label={t('project.dag.timeout_alert')} path='timeoutFlag'>
<NSwitch v-model:value={formValue.value.timeoutFlag} />
</NFormItem>
{formValue.value.timeoutFlag && (
<NFormItem label=' ' path='timeout'>
<NInputNumber
v-model:value={formValue.value.timeout}
show-button={false}
min={0}
v-slots={{
suffix: () => '分'
}}
/>
</NFormItem>
)}
<NFormItem
label={t('project.dag.global_variables')}
path='globalParams'
>
<NDynamicInput
v-model:value={formValue.value.globalParams}
preset='pair'
key-placeholder={t('project.dag.key')}
value-placeholder={t('project.dag.value')}
class='input-global-params'
/>
</NFormItem>
{props.definition && !props.instance && (
<NFormItem path='timeoutFlag'>
<NCheckbox v-model:checked={formValue.value.release}>
{t('project.dag.online_directly')}
</NCheckbox>
</NFormItem>
)}
{props.instance && (
<NFormItem path='sync'>
<NCheckbox v-model:checked={formValue.value.sync}>
{t('project.dag.update_directly')}
</NCheckbox>
</NFormItem>
)}
</NForm>
</Modal>
)
}
})
|
closed
|
apache/dolphinscheduler
|
https://github.com/apache/dolphinscheduler
| 8,943 |
[Bug] [UI Next][V1.0.0-Alpha] The workflow instance name is not clickable in task instance table.
|
### Search before asking
- [X] I had searched in the [issues](https://github.com/apache/dolphinscheduler/issues?q=is%3Aissue) and found no similar issues.
### What happened
<img width="1894" alt="image" src="https://user-images.githubusercontent.com/97265214/158726443-3c786f4e-6fe8-4b28-a420-e26ed87626de.png">
### What you expected to happen
It is clickable and links to instance list page.
### How to reproduce
1. Open the task instance page.
### Anything else
_No response_
### Version
dev
### Are you willing to submit PR?
- [X] Yes I am willing to submit a PR!
### Code of Conduct
- [X] I agree to follow this project's [Code of Conduct](https://www.apache.org/foundation/policies/conduct)
|
https://github.com/apache/dolphinscheduler/issues/8943
|
https://github.com/apache/dolphinscheduler/pull/8952
|
192086e639d32ca09fe15ea27595e95e35dbd218
|
b86dce53a3ff1e8a3eed409acfd3e339c03d2470
| 2022-03-17T02:47:45Z |
java
| 2022-03-17T04:39:09Z |
dolphinscheduler-ui-next/src/views/projects/task/instance/use-table.ts
|
/*
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership.
* The ASF licenses this file to You under the Apache License, Version 2.0
* (the "License"); you may not use this file except in compliance with
* the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
import { useI18n } from 'vue-i18n'
import { h, reactive, ref } from 'vue'
import { useAsyncState } from '@vueuse/core'
import {
queryTaskListPaging,
forceSuccess,
downloadLog
} from '@/service/modules/task-instances'
import { NButton, NIcon, NSpace, NTooltip } from 'naive-ui'
import {
AlignLeftOutlined,
CheckCircleOutlined,
DownloadOutlined
} from '@vicons/antd'
import { format } from 'date-fns'
import { useRoute } from 'vue-router'
import { parseTime } from '@/utils/common'
import type { TaskInstancesRes } from '@/service/modules/task-instances/types'
export function useTable() {
const { t } = useI18n()
const route = useRoute()
const projectCode = Number(route.params.projectCode)
const processInstanceId = Number(route.params.processInstanceId)
const variables = reactive({
columns: [],
tableData: [],
page: ref(1),
pageSize: ref(10),
searchVal: ref(null),
processInstanceId: ref(processInstanceId ? processInstanceId : null),
host: ref(null),
stateType: ref(null),
datePickerRange: ref(null),
executorName: ref(null),
processInstanceName: ref(null),
totalPage: ref(1),
showModalRef: ref(false),
row: {}
})
const createColumns = (variables: any) => {
variables.columns = [
{
title: '#',
key: 'index',
render: (row: any, index: number) => index + 1
},
{
title: t('project.task.task_name'),
key: 'name'
},
{
title: t('project.task.workflow_instance'),
key: 'processInstanceName',
width: 250
},
{
title: t('project.task.executor'),
key: 'executorName'
},
{
title: t('project.task.node_type'),
key: 'taskType'
},
{
title: t('project.task.state'),
key: 'state'
},
{
title: t('project.task.submit_time'),
key: 'submitTime',
width: 170
},
{
title: t('project.task.start_time'),
key: 'startTime',
width: 170
},
{
title: t('project.task.end_time'),
key: 'endTime',
width: 170
},
{
title: t('project.task.duration'),
key: 'duration',
render: (row: any) => h('span', null, row.duration ? row.duration : '-')
},
{
title: t('project.task.retry_count'),
key: 'retryTimes'
},
{
title: t('project.task.dry_run_flag'),
key: 'dryRun'
},
{
title: t('project.task.host'),
key: 'host',
width: 160
},
{
title: t('project.task.operation'),
key: 'operation',
width: 150,
render(row: any) {
return h(NSpace, null, {
default: () => [
h(
NTooltip,
{},
{
trigger: () =>
h(
NButton,
{
circle: true,
type: 'info',
size: 'small',
disabled: !(
row.state === 'FAILURE' ||
row.state === 'NEED_FAULT_TOLERANCE' ||
row.state === 'KILL'
),
onClick: () => {
handleForcedSuccess(row)
}
},
{
icon: () =>
h(NIcon, null, {
default: () => h(CheckCircleOutlined)
})
}
),
default: () => t('project.task.forced_success')
}
),
h(
NTooltip,
{},
{
trigger: () =>
h(
NButton,
{
circle: true,
type: 'info',
size: 'small',
onClick: () => handleLog(row)
},
{
icon: () =>
h(NIcon, null, {
default: () => h(AlignLeftOutlined)
})
}
),
default: () => t('project.task.view_log')
}
),
h(
NTooltip,
{},
{
trigger: () =>
h(
NButton,
{
circle: true,
type: 'info',
size: 'small',
onClick: () => downloadLog(row.id)
},
{
icon: () =>
h(NIcon, null, { default: () => h(DownloadOutlined) })
}
),
default: () => t('project.task.download_log')
}
)
]
})
}
}
]
}
const handleLog = (row: any) => {
variables.showModalRef = true
variables.row = row
}
const handleForcedSuccess = (row: any) => {
forceSuccess({ id: row.id }, { projectCode }).then(() => {
getTableData({
pageSize: variables.pageSize,
pageNo:
variables.tableData.length === 1 && variables.page > 1
? variables.page - 1
: variables.page,
searchVal: variables.searchVal,
processInstanceId: variables.processInstanceId,
host: variables.host,
stateType: variables.stateType,
datePickerRange: variables.datePickerRange,
executorName: variables.executorName,
processInstanceName: variables.processInstanceName
})
})
}
const getTableData = (params: any) => {
const data = {
pageSize: params.pageSize,
pageNo: params.pageNo,
searchVal: params.searchVal,
processInstanceId: params.processInstanceId,
host: params.host,
stateType: params.stateType,
startDate: params.datePickerRange
? format(parseTime(params.datePickerRange[0]), 'yyyy-MM-dd HH:mm:ss')
: '',
endDate: params.datePickerRange
? format(parseTime(params.datePickerRange[1]), 'yyyy-MM-dd HH:mm:ss')
: '',
executorName: params.executorName,
processInstanceName: params.processInstanceName
}
const { state } = useAsyncState(
queryTaskListPaging(data, { projectCode }).then(
(res: TaskInstancesRes) => {
variables.tableData = res.totalList.map((item, unused) => {
item.submitTime = format(
parseTime(item.submitTime),
'yyyy-MM-dd HH:mm:ss'
)
item.startTime = format(
parseTime(item.startTime),
'yyyy-MM-dd HH:mm:ss'
)
item.endTime = format(
parseTime(item.endTime),
'yyyy-MM-dd HH:mm:ss'
)
return {
...item
}
}) as any
}
),
{}
)
return state
}
return {
t,
variables,
getTableData,
createColumns
}
}
|
closed
|
apache/dolphinscheduler
|
https://github.com/apache/dolphinscheduler
| 8,953 |
[Bug] [UI Next][V1.0.0-Alpha] The pagination of task instance table always shows one page
|
### Search before asking
- [X] I had searched in the [issues](https://github.com/apache/dolphinscheduler/issues?q=is%3Aissue) and found no similar issues.
### What happened
The pagination of task instance table always shows one page.
### What you expected to happen
The pagination shows the correct page.
### How to reproduce
1. Open the task instance page.
### Anything else
_No response_
### Version
dev
### Are you willing to submit PR?
- [X] Yes I am willing to submit a PR!
### Code of Conduct
- [X] I agree to follow this project's [Code of Conduct](https://www.apache.org/foundation/policies/conduct)
|
https://github.com/apache/dolphinscheduler/issues/8953
|
https://github.com/apache/dolphinscheduler/pull/8954
|
3955d84ce3c1652efec58a91da0e6e447a6882f9
|
aa7dcf3a2760009970ea220602e544a815c250ba
| 2022-03-17T06:16:29Z |
java
| 2022-03-17T07:19:10Z |
dolphinscheduler-ui-next/src/views/projects/task/instance/use-table.ts
|
/*
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership.
* The ASF licenses this file to You under the Apache License, Version 2.0
* (the "License"); you may not use this file except in compliance with
* the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
import { useI18n } from 'vue-i18n'
import { h, reactive, ref } from 'vue'
import { useAsyncState } from '@vueuse/core'
import {
queryTaskListPaging,
forceSuccess,
downloadLog
} from '@/service/modules/task-instances'
import { NButton, NIcon, NSpace, NTooltip } from 'naive-ui'
import ButtonLink from '@/components/button-link'
import {
AlignLeftOutlined,
CheckCircleOutlined,
DownloadOutlined
} from '@vicons/antd'
import { format } from 'date-fns'
import { useRoute, useRouter } from 'vue-router'
import { parseTime } from '@/utils/common'
import type { Router } from 'vue-router'
import type { TaskInstancesRes } from '@/service/modules/task-instances/types'
export function useTable() {
const { t } = useI18n()
const route = useRoute()
const router: Router = useRouter()
const projectCode = Number(route.params.projectCode)
const processInstanceId = Number(route.params.processInstanceId)
const variables = reactive({
columns: [],
tableData: [],
page: ref(1),
pageSize: ref(10),
searchVal: ref(null),
processInstanceId: ref(processInstanceId ? processInstanceId : null),
host: ref(null),
stateType: ref(null),
datePickerRange: ref(null),
executorName: ref(null),
processInstanceName: ref(null),
totalPage: ref(1),
showModalRef: ref(false),
row: {}
})
const createColumns = (variables: any) => {
variables.columns = [
{
title: '#',
key: 'index',
render: (row: any, index: number) => index + 1
},
{
title: t('project.task.task_name'),
key: 'name'
},
{
title: t('project.task.workflow_instance'),
key: 'processInstanceName',
width: 250,
render: (row: {
processInstanceId: number
processInstanceName: string
}) =>
h(
ButtonLink,
{
onClick: () =>
void router.push({
name: 'workflow-instance-detail',
params: { id: row.processInstanceId },
query: { code: projectCode }
})
},
{ default: () => row.processInstanceName }
)
},
{
title: t('project.task.executor'),
key: 'executorName'
},
{
title: t('project.task.node_type'),
key: 'taskType'
},
{
title: t('project.task.state'),
key: 'state'
},
{
title: t('project.task.submit_time'),
key: 'submitTime',
width: 170
},
{
title: t('project.task.start_time'),
key: 'startTime',
width: 170
},
{
title: t('project.task.end_time'),
key: 'endTime',
width: 170
},
{
title: t('project.task.duration'),
key: 'duration',
render: (row: any) => h('span', null, row.duration ? row.duration : '-')
},
{
title: t('project.task.retry_count'),
key: 'retryTimes'
},
{
title: t('project.task.dry_run_flag'),
key: 'dryRun'
},
{
title: t('project.task.host'),
key: 'host',
width: 160
},
{
title: t('project.task.operation'),
key: 'operation',
width: 150,
render(row: any) {
return h(NSpace, null, {
default: () => [
h(
NTooltip,
{},
{
trigger: () =>
h(
NButton,
{
circle: true,
type: 'info',
size: 'small',
disabled: !(
row.state === 'FAILURE' ||
row.state === 'NEED_FAULT_TOLERANCE' ||
row.state === 'KILL'
),
onClick: () => {
handleForcedSuccess(row)
}
},
{
icon: () =>
h(NIcon, null, {
default: () => h(CheckCircleOutlined)
})
}
),
default: () => t('project.task.forced_success')
}
),
h(
NTooltip,
{},
{
trigger: () =>
h(
NButton,
{
circle: true,
type: 'info',
size: 'small',
onClick: () => handleLog(row)
},
{
icon: () =>
h(NIcon, null, {
default: () => h(AlignLeftOutlined)
})
}
),
default: () => t('project.task.view_log')
}
),
h(
NTooltip,
{},
{
trigger: () =>
h(
NButton,
{
circle: true,
type: 'info',
size: 'small',
onClick: () => downloadLog(row.id)
},
{
icon: () =>
h(NIcon, null, { default: () => h(DownloadOutlined) })
}
),
default: () => t('project.task.download_log')
}
)
]
})
}
}
]
}
const handleLog = (row: any) => {
variables.showModalRef = true
variables.row = row
}
const handleForcedSuccess = (row: any) => {
forceSuccess({ id: row.id }, { projectCode }).then(() => {
getTableData({
pageSize: variables.pageSize,
pageNo:
variables.tableData.length === 1 && variables.page > 1
? variables.page - 1
: variables.page,
searchVal: variables.searchVal,
processInstanceId: variables.processInstanceId,
host: variables.host,
stateType: variables.stateType,
datePickerRange: variables.datePickerRange,
executorName: variables.executorName,
processInstanceName: variables.processInstanceName
})
})
}
const getTableData = (params: any) => {
const data = {
pageSize: params.pageSize,
pageNo: params.pageNo,
searchVal: params.searchVal,
processInstanceId: params.processInstanceId,
host: params.host,
stateType: params.stateType,
startDate: params.datePickerRange
? format(parseTime(params.datePickerRange[0]), 'yyyy-MM-dd HH:mm:ss')
: '',
endDate: params.datePickerRange
? format(parseTime(params.datePickerRange[1]), 'yyyy-MM-dd HH:mm:ss')
: '',
executorName: params.executorName,
processInstanceName: params.processInstanceName
}
const { state } = useAsyncState(
queryTaskListPaging(data, { projectCode }).then(
(res: TaskInstancesRes) => {
variables.tableData = res.totalList.map((item, unused) => {
item.submitTime = format(
parseTime(item.submitTime),
'yyyy-MM-dd HH:mm:ss'
)
item.startTime = format(
parseTime(item.startTime),
'yyyy-MM-dd HH:mm:ss'
)
item.endTime = format(
parseTime(item.endTime),
'yyyy-MM-dd HH:mm:ss'
)
return {
...item
}
}) as any
}
),
{}
)
return state
}
return {
t,
variables,
getTableData,
createColumns
}
}
|
closed
|
apache/dolphinscheduler
|
https://github.com/apache/dolphinscheduler
| 8,941 |
[Bug] [UI Next][V1.0.0-Alpha] Enviroment name display error in cron manage
|
### Search before asking
- [X] I had searched in the [issues](https://github.com/apache/dolphinscheduler/issues?q=is%3Aissue) and found no similar issues.
### What happened
- Environment Name display -1
<img width="729" alt="image" src="https://user-images.githubusercontent.com/8847400/158725457-3f03c71c-3802-4235-97c5-7b22b5143b15.png">
### What you expected to happen
Environment Name display is blank.
### How to reproduce
above
### Anything else
_No response_
### Version
dev
### Are you willing to submit PR?
- [X] Yes I am willing to submit a PR!
### Code of Conduct
- [X] I agree to follow this project's [Code of Conduct](https://www.apache.org/foundation/policies/conduct)
|
https://github.com/apache/dolphinscheduler/issues/8941
|
https://github.com/apache/dolphinscheduler/pull/8957
|
aa7dcf3a2760009970ea220602e544a815c250ba
|
2b63de029703d1b1222187a4bdf24b346101a9c9
| 2022-03-17T02:39:53Z |
java
| 2022-03-17T07:46:36Z |
dolphinscheduler-ui-next/src/views/projects/workflow/definition/components/timing-modal.tsx
|
/*
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership.
* The ASF licenses this file to You under the Apache License, Version 2.0
* (the "License"); you may not use this file except in compliance with
* the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
import {
defineComponent,
PropType,
toRefs,
h,
onMounted,
ref,
watch
} from 'vue'
import { useI18n } from 'vue-i18n'
import Modal from '@/components/modal'
import { useForm } from './use-form'
import { useModal } from './use-modal'
import {
NForm,
NFormItem,
NButton,
NIcon,
NInput,
NSpace,
NRadio,
NRadioGroup,
NSelect,
NDatePicker,
NInputGroup,
NList,
NListItem,
NThing,
NPopover
} from 'naive-ui'
import { ArrowDownOutlined, ArrowUpOutlined } from '@vicons/antd'
import { timezoneList } from '@/utils/timezone'
import Crontab from '@/components/crontab'
const props = {
row: {
type: Object,
default: {}
},
show: {
type: Boolean as PropType<boolean>,
default: false
},
type: {
type: String as PropType<String>,
default: 'create'
}
}
export default defineComponent({
name: 'workflowDefinitionStart',
props,
emits: ['update:show', 'update:row', 'updateList'],
setup(props, ctx) {
const crontabRef = ref()
const parallelismRef = ref(false)
const { t } = useI18n()
const { timingState } = useForm()
const {
variables,
handleCreateTiming,
handleUpdateTiming,
getWorkerGroups,
getAlertGroups,
getEnvironmentList,
getPreviewSchedule
} = useModal(timingState, ctx)
const hideModal = () => {
ctx.emit('update:show')
}
const handleTiming = () => {
if (props.type === 'create') {
handleCreateTiming(props.row.code as number)
} else {
handleUpdateTiming(props.row.id)
}
}
const generalWarningTypeListOptions = () => [
{
value: 'NONE',
label: t('project.workflow.none_send')
},
{
value: 'SUCCESS',
label: t('project.workflow.success_send')
},
{
value: 'FAILURE',
label: t('project.workflow.failure_send')
},
{
value: 'ALL',
label: t('project.workflow.all_send')
}
]
const generalPriorityList = () => [
{
value: 'HIGHEST',
label: 'HIGHEST',
color: '#ff0000',
icon: ArrowUpOutlined
},
{
value: 'HIGH',
label: 'HIGH',
color: '#ff0000',
icon: ArrowUpOutlined
},
{
value: 'MEDIUM',
label: 'MEDIUM',
color: '#EA7D24',
icon: ArrowUpOutlined
},
{
value: 'LOW',
label: 'LOW',
color: '#2A8734',
icon: ArrowDownOutlined
},
{
value: 'LOWEST',
label: 'LOWEST',
color: '#2A8734',
icon: ArrowDownOutlined
}
]
const timezoneOptions = () =>
timezoneList.map((item) => ({ label: item, value: item }))
const renderLabel = (option: any) => {
return [
h(
NIcon,
{
style: {
verticalAlign: 'middle',
marginRight: '4px',
marginBottom: '3px'
},
color: option.color
},
{
default: () => h(option.icon)
}
),
option.label
]
}
const updateWorkerGroup = () => {
timingState.timingForm.environmentCode = null
}
const handlePreview = () => {
getPreviewSchedule()
}
onMounted(() => {
getWorkerGroups()
getAlertGroups()
getEnvironmentList()
})
watch(
() => props.row,
() => {
if (!props.row.crontab) return
timingState.timingForm.startEndTime = [
new Date(props.row.startTime),
new Date(props.row.endTime)
]
timingState.timingForm.crontab = props.row.crontab
timingState.timingForm.timezoneId = props.row.timezoneId
timingState.timingForm.failureStrategy = props.row.failureStrategy
timingState.timingForm.warningType = props.row.warningType
timingState.timingForm.processInstancePriority =
props.row.processInstancePriority
timingState.timingForm.warningGroupId = props.row.warningGroupId
timingState.timingForm.workerGroup = props.row.workerGroup
timingState.timingForm.environmentCode = props.row.environmentCode
}
)
return {
t,
crontabRef,
parallelismRef,
hideModal,
handleTiming,
generalWarningTypeListOptions,
generalPriorityList,
timezoneOptions,
renderLabel,
updateWorkerGroup,
handlePreview,
...toRefs(variables),
...toRefs(timingState),
...toRefs(props)
}
},
render() {
const { t } = this
if (Number(this.timingForm.warningGroupId) === 0) {
this.timingForm.warningGroupId = ''
}
return (
<Modal
show={this.show}
title={t('project.workflow.set_parameters_before_timing')}
onCancel={this.hideModal}
onConfirm={this.handleTiming}
confirmLoading={this.saving}
>
<NForm ref='timingFormRef' label-placement='left' label-width='160'>
<NFormItem
label={t('project.workflow.start_and_stop_time')}
path='startEndTime'
>
<NDatePicker
type='datetimerange'
clearable
v-model:value={this.timingForm.startEndTime}
/>
</NFormItem>
<NFormItem label={t('project.workflow.timing')} path='crontab'>
<NInputGroup>
<NPopover
trigger='click'
showArrow={false}
placement='bottom'
style={{ width: '500px' }}
>
{{
trigger: () => (
<NInput
style={{ width: '80%' }}
readonly={true}
v-model:value={this.timingForm.crontab}
></NInput>
),
default: () => (
<Crontab v-model:value={this.timingForm.crontab} />
)
}}
</NPopover>
<NButton type='primary' ghost onClick={this.handlePreview}>
{t('project.workflow.execute_time')}
</NButton>
</NInputGroup>
</NFormItem>
<NFormItem
label={t('project.workflow.timezone')}
path='timezoneId'
showFeedback={false}
>
<NSelect
v-model:value={this.timingForm.timezoneId}
options={this.timezoneOptions()}
/>
</NFormItem>
<NFormItem label=' ' showFeedback={false}>
<NList>
<NListItem>
<NThing
description={t('project.workflow.next_five_execution_times')}
>
{this.schedulePreviewList.map((item: string) => (
<NSpace>
{item}
<br />
</NSpace>
))}
</NThing>
</NListItem>
</NList>
</NFormItem>
<NFormItem
label={t('project.workflow.failure_strategy')}
path='failureStrategy'
>
<NRadioGroup v-model:value={this.timingForm.failureStrategy}>
<NSpace>
<NRadio value='CONTINUE'>
{t('project.workflow.continue')}
</NRadio>
<NRadio value='END'>{t('project.workflow.end')}</NRadio>
</NSpace>
</NRadioGroup>
</NFormItem>
<NFormItem
label={t('project.workflow.notification_strategy')}
path='warningType'
>
<NSelect
options={this.generalWarningTypeListOptions()}
v-model:value={this.timingForm.warningType}
/>
</NFormItem>
<NFormItem
label={t('project.workflow.workflow_priority')}
path='processInstancePriority'
>
<NSelect
options={this.generalPriorityList()}
renderLabel={this.renderLabel}
v-model:value={this.timingForm.processInstancePriority}
/>
</NFormItem>
<NFormItem
label={t('project.workflow.worker_group')}
path='workerGroup'
>
<NSelect
options={this.workerGroups}
onUpdateValue={this.updateWorkerGroup}
v-model:value={this.timingForm.workerGroup}
/>
</NFormItem>
<NFormItem
label={t('project.workflow.environment_name')}
path='environmentCode'
>
<NSelect
options={this.environmentList.filter((item: any) =>
item.workerGroups?.includes(this.timingForm.workerGroup)
)}
v-model:value={this.timingForm.environmentCode}
clearable
/>
</NFormItem>
<NFormItem
label={t('project.workflow.alarm_group')}
path='warningGroupId'
>
<NSelect
options={this.alertGroups}
placeholder={t('project.workflow.please_choose')}
v-model:value={this.timingForm.warningGroupId}
clearable
/>
</NFormItem>
</NForm>
</Modal>
)
}
})
|
closed
|
apache/dolphinscheduler
|
https://github.com/apache/dolphinscheduler
| 8,941 |
[Bug] [UI Next][V1.0.0-Alpha] Enviroment name display error in cron manage
|
### Search before asking
- [X] I had searched in the [issues](https://github.com/apache/dolphinscheduler/issues?q=is%3Aissue) and found no similar issues.
### What happened
- Environment Name display -1
<img width="729" alt="image" src="https://user-images.githubusercontent.com/8847400/158725457-3f03c71c-3802-4235-97c5-7b22b5143b15.png">
### What you expected to happen
Environment Name display is blank.
### How to reproduce
above
### Anything else
_No response_
### Version
dev
### Are you willing to submit PR?
- [X] Yes I am willing to submit a PR!
### Code of Conduct
- [X] I agree to follow this project's [Code of Conduct](https://www.apache.org/foundation/policies/conduct)
|
https://github.com/apache/dolphinscheduler/issues/8941
|
https://github.com/apache/dolphinscheduler/pull/8957
|
aa7dcf3a2760009970ea220602e544a815c250ba
|
2b63de029703d1b1222187a4bdf24b346101a9c9
| 2022-03-17T02:39:53Z |
java
| 2022-03-17T07:46:36Z |
dolphinscheduler-ui-next/src/views/projects/workflow/definition/components/types.ts
| |
closed
|
apache/dolphinscheduler
|
https://github.com/apache/dolphinscheduler
| 8,941 |
[Bug] [UI Next][V1.0.0-Alpha] Enviroment name display error in cron manage
|
### Search before asking
- [X] I had searched in the [issues](https://github.com/apache/dolphinscheduler/issues?q=is%3Aissue) and found no similar issues.
### What happened
- Environment Name display -1
<img width="729" alt="image" src="https://user-images.githubusercontent.com/8847400/158725457-3f03c71c-3802-4235-97c5-7b22b5143b15.png">
### What you expected to happen
Environment Name display is blank.
### How to reproduce
above
### Anything else
_No response_
### Version
dev
### Are you willing to submit PR?
- [X] Yes I am willing to submit a PR!
### Code of Conduct
- [X] I agree to follow this project's [Code of Conduct](https://www.apache.org/foundation/policies/conduct)
|
https://github.com/apache/dolphinscheduler/issues/8941
|
https://github.com/apache/dolphinscheduler/pull/8957
|
aa7dcf3a2760009970ea220602e544a815c250ba
|
2b63de029703d1b1222187a4bdf24b346101a9c9
| 2022-03-17T02:39:53Z |
java
| 2022-03-17T07:46:36Z |
dolphinscheduler-ui-next/src/views/projects/workflow/definition/components/use-form.ts
|
/*
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership.
* The ASF licenses this file to You under the Apache License, Version 2.0
* (the "License"); you may not use this file except in compliance with
* the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
import { reactive, ref } from 'vue'
import { useI18n } from 'vue-i18n'
import type { FormRules } from 'naive-ui'
export const useForm = () => {
const { t } = useI18n()
const date = new Date()
const year = date.getFullYear()
const month = date.getMonth()
const day = date.getDate()
const importState = reactive({
importFormRef: ref(),
importForm: {
name: '',
file: ''
},
saving: false,
importRules: {
file: {
required: true,
trigger: ['input', 'blur'],
validator() {
if (importState.importForm.name === '') {
return new Error(t('project.workflow.enter_name_tips'))
}
}
}
} as FormRules
})
const startState = reactive({
startFormRef: ref(),
startForm: {
processDefinitionCode: -1,
startEndTime: [new Date(year, month, day), new Date(year, month, day)],
scheduleTime: null,
failureStrategy: 'CONTINUE',
warningType: 'NONE',
warningGroupId: null,
execType: 'START_PROCESS',
startNodeList: '',
taskDependType: 'TASK_POST',
dependentMode: 'OFF_MODE',
runMode: 'RUN_MODE_SERIAL',
processInstancePriority: 'MEDIUM',
workerGroup: 'default',
environmentCode: null,
startParams: null,
expectedParallelismNumber: '',
dryRun: 0
},
saving: false
})
const timingState = reactive({
timingFormRef: ref(),
timingForm: {
startEndTime: [
new Date(year, month, day),
new Date(year + 100, month, day)
],
crontab: '0 0 * * * ? *',
timezoneId: Intl.DateTimeFormat().resolvedOptions().timeZone,
failureStrategy: 'CONTINUE',
warningType: 'NONE',
processInstancePriority: 'MEDIUM',
warningGroupId: '',
workerGroup: 'default',
environmentCode: null
},
saving: false
})
const copyState = reactive({
copyFormRef: ref(),
copyForm: {
projectCode: null
},
saving: false,
copyRules: {
projectCode: {
required: true,
trigger: ['input', 'blur'],
validator() {
if (copyState.copyForm.projectCode === '') {
return new Error(t('project.workflow.project_name_required'))
}
}
}
} as FormRules
})
return {
importState,
startState,
timingState,
copyState
}
}
|
closed
|
apache/dolphinscheduler
|
https://github.com/apache/dolphinscheduler
| 8,941 |
[Bug] [UI Next][V1.0.0-Alpha] Enviroment name display error in cron manage
|
### Search before asking
- [X] I had searched in the [issues](https://github.com/apache/dolphinscheduler/issues?q=is%3Aissue) and found no similar issues.
### What happened
- Environment Name display -1
<img width="729" alt="image" src="https://user-images.githubusercontent.com/8847400/158725457-3f03c71c-3802-4235-97c5-7b22b5143b15.png">
### What you expected to happen
Environment Name display is blank.
### How to reproduce
above
### Anything else
_No response_
### Version
dev
### Are you willing to submit PR?
- [X] Yes I am willing to submit a PR!
### Code of Conduct
- [X] I agree to follow this project's [Code of Conduct](https://www.apache.org/foundation/policies/conduct)
|
https://github.com/apache/dolphinscheduler/issues/8941
|
https://github.com/apache/dolphinscheduler/pull/8957
|
aa7dcf3a2760009970ea220602e544a815c250ba
|
2b63de029703d1b1222187a4bdf24b346101a9c9
| 2022-03-17T02:39:53Z |
java
| 2022-03-17T07:46:36Z |
dolphinscheduler-ui-next/src/views/projects/workflow/definition/components/use-modal.ts
|
/*
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership.
* The ASF licenses this file to You under the Apache License, Version 2.0
* (the "License"); you may not use this file except in compliance with
* the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
import _ from 'lodash'
import { reactive, SetupContext } from 'vue'
import { useI18n } from 'vue-i18n'
import { useRoute, useRouter } from 'vue-router'
import type { Router } from 'vue-router'
import { format } from 'date-fns'
import {
batchCopyByCodes,
importProcessDefinition,
queryProcessDefinitionByCode
} from '@/service/modules/process-definition'
import { queryAllWorkerGroups } from '@/service/modules/worker-groups'
import { queryAllEnvironmentList } from '@/service/modules/environment'
import { listAlertGroupById } from '@/service/modules/alert-group'
import { startProcessInstance } from '@/service/modules/executors'
import {
createSchedule,
updateSchedule,
previewSchedule
} from '@/service/modules/schedules'
import { parseTime } from '@/utils/common'
export function useModal(
state: any,
ctx: SetupContext<('update:show' | 'update:row' | 'updateList')[]>
) {
const { t } = useI18n()
const router: Router = useRouter()
const route = useRoute()
const variables = reactive({
projectCode: Number(route.params.projectCode),
workerGroups: [],
alertGroups: [],
environmentList: [],
startParamsList: [] as Array<{ prop: string; value: string }>,
schedulePreviewList: []
})
const resetImportForm = () => {
state.importForm.name = ''
state.importForm.file = ''
}
const handleImportDefinition = async () => {
await state.importFormRef.validate()
if (state.saving) return
state.saving = true
try {
const formData = new FormData()
formData.append('file', state.importForm.file)
const code = Number(router.currentRoute.value.params.projectCode)
await importProcessDefinition(formData, code)
window.$message.success(t('project.workflow.success'))
state.saving = false
ctx.emit('updateList')
ctx.emit('update:show')
resetImportForm()
} catch (err) {
state.saving = false
}
}
const handleStartDefinition = async (code: number) => {
await state.startFormRef.validate()
if (state.saving) return
state.saving = true
try {
state.startForm.processDefinitionCode = code
if (state.startForm.startEndTime) {
const start = format(
new Date(state.startForm.startEndTime[0]),
'yyyy-MM-dd hh:mm:ss'
)
const end = format(
new Date(state.startForm.startEndTime[1]),
'yyyy-MM-dd hh:mm:ss'
)
state.startForm.scheduleTime = `${start},${end}`
}
const startParams = {} as any
for (const item of variables.startParamsList) {
if (item.value !== '') {
startParams[item.prop] = item.value
}
}
state.startForm.startParams = !_.isEmpty(startParams)
? JSON.stringify(startParams)
: ''
await startProcessInstance(state.startForm, variables.projectCode)
window.$message.success(t('project.workflow.success'))
state.saving = false
ctx.emit('updateList')
ctx.emit('update:show')
} catch (err) {
state.saving = false
}
}
const handleCreateTiming = async (code: number) => {
await state.timingFormRef.validate()
if (state.saving) return
state.saving = true
try {
const data: any = getTimingData()
data.processDefinitionCode = code
await createSchedule(data, variables.projectCode)
window.$message.success(t('project.workflow.success'))
state.saving = false
ctx.emit('updateList')
ctx.emit('update:show')
} catch (err) {
state.saving = false
}
}
const handleUpdateTiming = async (id: number) => {
await state.timingFormRef.validate()
if (state.saving) return
state.saving = true
try {
const data: any = getTimingData()
data.id = id
await updateSchedule(data, variables.projectCode, id)
window.$message.success(t('project.workflow.success'))
state.saving = false
ctx.emit('updateList')
ctx.emit('update:show')
} catch (err) {
state.saving = false
}
}
const handleBatchCopyDefinition = async (codes: Array<string>) => {
await state.copyFormRef.validate()
if (state.saving) return
state.saving = true
try {
const data = {
codes: _.join(codes, ','),
targetProjectCode: state.copyForm.projectCode
}
await batchCopyByCodes(data, variables.projectCode)
window.$message.success(t('project.workflow.success'))
state.saving = false
ctx.emit('updateList')
ctx.emit('update:show')
state.copyForm.projectCode = ''
} catch (err) {
state.saving = false
}
}
const getTimingData = () => {
const start = format(
parseTime(state.timingForm.startEndTime[0]),
'yyyy-MM-dd hh:mm:ss'
)
const end = format(
parseTime(state.timingForm.startEndTime[1]),
'yyyy-MM-dd hh:mm:ss'
)
const data = {
schedule: JSON.stringify({
startTime: start,
endTime: end,
crontab: state.timingForm.crontab,
timezoneId: state.timingForm.timezoneId
}),
failureStrategy: state.timingForm.failureStrategy,
warningType: state.timingForm.warningType,
processInstancePriority: state.timingForm.processInstancePriority,
warningGroupId:
state.timingForm.warningGroupId === ''
? 0
: state.timingForm.warningGroupId,
workerGroup: state.timingForm.workerGroup,
environmentCode: state.timingForm.environmentCode
}
return data
}
const getWorkerGroups = () => {
queryAllWorkerGroups().then((res: any) => {
variables.workerGroups = res.map((item: string) => ({
label: item,
value: item
}))
})
}
const getEnvironmentList = () => {
queryAllEnvironmentList().then((res: any) => {
variables.environmentList = res.map((item: any) => ({
label: item.name,
value: item.code,
workerGroups: item.workerGroups
}))
})
}
const getAlertGroups = () => {
listAlertGroupById().then((res: any) => {
variables.alertGroups = res.map((item: any) => ({
label: item.groupName,
value: item.id
}))
})
}
const getStartParamsList = (code: number) => {
queryProcessDefinitionByCode(code, variables.projectCode).then(
(res: any) => {
variables.startParamsList = res.processDefinition.globalParamList
}
)
}
const getPreviewSchedule = () => {
state.timingFormRef.validate(async (valid: any) => {
if (!valid) {
const projectCode = Number(router.currentRoute.value.params.projectCode)
const start = format(
new Date(state.timingForm.startEndTime[0]),
'yyyy-MM-dd hh:mm:ss'
)
const end = format(
new Date(state.timingForm.startEndTime[1]),
'yyyy-MM-dd hh:mm:ss'
)
const schedule = JSON.stringify({
startTime: start,
endTime: end,
crontab: state.timingForm.crontab
})
previewSchedule({ schedule }, projectCode).then((res: any) => {
variables.schedulePreviewList = res
})
}
})
}
return {
variables,
handleImportDefinition,
handleStartDefinition,
handleCreateTiming,
handleUpdateTiming,
handleBatchCopyDefinition,
getWorkerGroups,
getAlertGroups,
getEnvironmentList,
getStartParamsList,
getPreviewSchedule
}
}
|
closed
|
apache/dolphinscheduler
|
https://github.com/apache/dolphinscheduler
| 8,959 |
[Bug] [UI Next][V1.0.0-Alpha] The stop button shows the error tips and it should be clickable when the state is STOP
|
### Search before asking
- [X] I had searched in the [issues](https://github.com/apache/dolphinscheduler/issues?q=is%3Aissue) and found no similar issues.
### What happened
The stop button shows the error tips and it should be clickable when the state is STOP.
<img width="1151" alt="image" src="https://user-images.githubusercontent.com/97265214/158758714-0983fec9-4a57-4135-b379-319bae09c69a.png">
### What you expected to happen
<img width="981" alt="image" src="https://user-images.githubusercontent.com/97265214/158758782-1b261b91-04e5-4064-9da6-aa481d443798.png">
### How to reproduce
1. Open the process instance page.
2. Pick one record which state is STOP.
### Anything else
_No response_
### Version
dev
### Are you willing to submit PR?
- [X] Yes I am willing to submit a PR!
### Code of Conduct
- [X] I agree to follow this project's [Code of Conduct](https://www.apache.org/foundation/policies/conduct)
|
https://github.com/apache/dolphinscheduler/issues/8959
|
https://github.com/apache/dolphinscheduler/pull/8960
|
2b63de029703d1b1222187a4bdf24b346101a9c9
|
b9e89b1922c979e1b4273564ee3bb8708e36f54a
| 2022-03-17T07:34:53Z |
java
| 2022-03-17T08:30:53Z |
dolphinscheduler-ui-next/src/views/projects/workflow/instance/components/table-action.tsx
|
/*
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership.
* The ASF licenses this file to You under the Apache License, Version 2.0
* (the "License"); you may not use this file except in compliance with
* the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
import { defineComponent, PropType, toRefs } from 'vue'
import { NSpace, NTooltip, NButton, NIcon, NPopconfirm } from 'naive-ui'
import {
DeleteOutlined,
FormOutlined,
InfoCircleFilled,
SyncOutlined,
CloseOutlined,
CloseCircleOutlined,
PauseCircleOutlined,
ControlOutlined,
PlayCircleOutlined
} from '@vicons/antd'
import { useI18n } from 'vue-i18n'
import { useRouter } from 'vue-router'
import type { Router } from 'vue-router'
import { IWorkflowInstance } from '@/service/modules/process-instances/types'
const props = {
row: {
type: Object as PropType<IWorkflowInstance>,
required: true
}
}
export default defineComponent({
name: 'TableAction',
props,
emits: [
'updateList',
'reRun',
'reStore',
'stop',
'suspend',
'deleteInstance'
],
setup(props, ctx) {
const router: Router = useRouter()
const handleEdit = () => {
router.push({
name: 'workflow-instance-detail',
params: { id: props.row!.id },
query: { code: props.row!.processDefinitionCode }
})
}
const handleGantt = () => {
router.push({
name: 'workflow-instance-gantt',
params: { id: props.row!.id },
query: { code: props.row!.processDefinitionCode }
})
}
const handleReRun = () => {
ctx.emit('reRun')
}
const handleReStore = () => {
ctx.emit('reStore')
}
const handleStop = () => {
ctx.emit('stop')
}
const handleSuspend = () => {
ctx.emit('suspend')
}
const handleDeleteInstance = () => {
ctx.emit('deleteInstance')
}
return {
handleEdit,
handleReRun,
handleReStore,
handleStop,
handleSuspend,
handleDeleteInstance,
handleGantt,
...toRefs(props)
}
},
render() {
const { t } = useI18n()
const state = this.row?.state
return (
<NSpace>
<NTooltip trigger={'hover'}>
{{
default: () => t('project.workflow.edit'),
trigger: () => (
<NButton
tag='div'
size='small'
type='info'
circle
class='btn-edit'
disabled={
(state !== 'SUCCESS' &&
state !== 'PAUSE' &&
state !== 'FAILURE' &&
state !== 'STOP') ||
this.row?.disabled
}
onClick={this.handleEdit}
>
<NIcon>
<FormOutlined />
</NIcon>
</NButton>
)
}}
</NTooltip>
<NTooltip trigger={'hover'}>
{{
default: () => t('project.workflow.rerun'),
trigger: () => {
return (
<NButton
tag='div'
size='small'
type='info'
circle
onClick={this.handleReRun}
class='btn-rerun'
disabled={
(state !== 'SUCCESS' &&
state !== 'PAUSE' &&
state !== 'FAILURE' &&
state !== 'STOP') ||
this.row?.disabled
}
>
{this.row?.buttonType === 'run' ? (
<span>{this.row?.count}</span>
) : (
<NIcon>
<SyncOutlined />
</NIcon>
)}
</NButton>
)
}
}}
</NTooltip>
<NTooltip trigger={'hover'}>
{{
default: () => t('project.workflow.recovery_failed'),
trigger: () => (
<NButton
tag='div'
size='small'
type='primary'
circle
onClick={this.handleReStore}
disabled={state !== 'FAILURE' || this.row?.disabled}
>
{this.row?.buttonType === 'store' ? (
<span>{this.row?.count}</span>
) : (
<NIcon>
<CloseCircleOutlined />
</NIcon>
)}
</NButton>
)
}}
</NTooltip>
<NTooltip trigger={'hover'}>
{{
default: () =>
state === 'PAUSE'
? t('project.workflow.recovery_failed')
: t('project.workflow.stop'),
trigger: () => (
<NButton
tag='div'
size='small'
type='error'
circle
onClick={this.handleStop}
disabled={
(state !== 'RUNNING_EXECUTION' && state !== 'PAUSE') ||
this.row?.disabled
}
>
<NIcon>
{state === 'STOP' ? (
<PlayCircleOutlined />
) : (
<CloseOutlined />
)}
</NIcon>
</NButton>
)
}}
</NTooltip>
<NTooltip trigger={'hover'}>
{{
default: () =>
state === 'PAUSE'
? t('project.workflow.recovery_suspend')
: t('project.workflow.pause'),
trigger: () => (
<NButton
tag='div'
size='small'
type='warning'
circle
disabled={
(state !== 'RUNNING_EXECUTION' && state !== 'PAUSE') ||
this.row?.disabled
}
onClick={this.handleSuspend}
>
<NIcon>
{state === 'PAUSE' ? (
<PlayCircleOutlined />
) : (
<PauseCircleOutlined />
)}
</NIcon>
</NButton>
)
}}
</NTooltip>
<NTooltip trigger={'hover'}>
{{
default: () => t('project.workflow.delete'),
trigger: () => (
<NButton
tag='div'
size='small'
type='error'
circle
disabled={
(state !== 'SUCCESS' &&
state !== 'FAILURE' &&
state !== 'STOP' &&
state !== 'PAUSE') ||
this.row?.disabled
}
>
<NPopconfirm onPositiveClick={this.handleDeleteInstance}>
{{
default: () => t('project.workflow.delete_confirm'),
icon: () => (
<NIcon>
<InfoCircleFilled />
</NIcon>
),
trigger: () => (
<NIcon>
<DeleteOutlined />
</NIcon>
)
}}
</NPopconfirm>
</NButton>
)
}}
</NTooltip>
<NTooltip trigger={'hover'}>
{{
default: () => t('project.workflow.gantt'),
trigger: () => (
<NButton
tag='div'
size='small'
type='info'
circle
disabled={this.row?.disabled}
onClick={this.handleGantt}
>
<NIcon>
<ControlOutlined />
</NIcon>
</NButton>
)
}}
</NTooltip>
</NSpace>
)
}
})
|
closed
|
apache/dolphinscheduler
|
https://github.com/apache/dolphinscheduler
| 8,834 |
[Bug][UI Next][V1.0.0-Alpha] missing path in resources center
|
### Search before asking
- [X] I had searched in the [issues](https://github.com/apache/dolphinscheduler/issues?q=is%3Aissue) and found no similar issues.
### What happened


### What you expected to happen
above.
### How to reproduce
above.
### Anything else
_No response_
### Version
dev
### Are you willing to submit PR?
- [ ] Yes I am willing to submit a PR!
### Code of Conduct
- [X] I agree to follow this project's [Code of Conduct](https://www.apache.org/foundation/policies/conduct)
|
https://github.com/apache/dolphinscheduler/issues/8834
|
https://github.com/apache/dolphinscheduler/pull/8963
|
b9e89b1922c979e1b4273564ee3bb8708e36f54a
|
44c8d615a41a851a3547d34ff9332a97ee6d5997
| 2022-03-11T08:19:45Z |
java
| 2022-03-17T09:52:04Z |
dolphinscheduler-ui-next/src/components/card/index.tsx
|
/*
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership.
* The ASF licenses this file to You under the Apache License, Version 2.0
* (the "License"); you may not use this file except in compliance with
* the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
import { defineComponent, PropType } from 'vue'
import { NCard } from 'naive-ui'
const headerStyle = {
borderBottom: '1px solid var(--n-border-color)'
}
const contentStyle = {
padding: '8px 10px'
}
const props = {
title: {
type: String as PropType<string>
}
}
const Card = defineComponent({
name: 'Card',
props,
render() {
const { title, $slots } = this
return (
<NCard
title={title}
size='small'
headerStyle={headerStyle}
contentStyle={contentStyle}
>
{$slots}
</NCard>
)
}
})
export default Card
|
closed
|
apache/dolphinscheduler
|
https://github.com/apache/dolphinscheduler
| 8,834 |
[Bug][UI Next][V1.0.0-Alpha] missing path in resources center
|
### Search before asking
- [X] I had searched in the [issues](https://github.com/apache/dolphinscheduler/issues?q=is%3Aissue) and found no similar issues.
### What happened


### What you expected to happen
above.
### How to reproduce
above.
### Anything else
_No response_
### Version
dev
### Are you willing to submit PR?
- [ ] Yes I am willing to submit a PR!
### Code of Conduct
- [X] I agree to follow this project's [Code of Conduct](https://www.apache.org/foundation/policies/conduct)
|
https://github.com/apache/dolphinscheduler/issues/8834
|
https://github.com/apache/dolphinscheduler/pull/8963
|
b9e89b1922c979e1b4273564ee3bb8708e36f54a
|
44c8d615a41a851a3547d34ff9332a97ee6d5997
| 2022-03-11T08:19:45Z |
java
| 2022-03-17T09:52:04Z |
dolphinscheduler-ui-next/src/views/resource/file/index.module.scss
|
/*
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership.
* The ASF licenses this file to You under the Apache License, Version 2.0
* (the "License"); you may not use this file except in compliance with
* the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
.file-edit-content {
width: 100%;
background: #fff;
padding-bottom: 20px;
> h2 {
line-height: 60px;
text-align: center;
padding-right: 170px;
position: relative;
}
}
.form-content {
padding: 0 50px 0 50px;
}
.submit {
text-align: left;
padding-top: 12px;
margin-left: 160px;
}
.pagination {
display: flex;
justify-content: center;
align-items: center;
margin-top: 20px;
}
.table-box {
table {
width: 100%;
tr {
height: 40px;
font-size: 12px;
th,
td {
&:nth-child(1) {
width: 50px;
text-align: center;
}
}
th {
&:nth-child(1) {
width: 60px;
text-align: center;
}
> span {
font-size: 12px;
color: #555;
}
}
}
}
}
.conditions-model {
display: flex;
justify-content: space-between;
align-items: center;
margin: 10px 0;
.right {
> .form-box {
.list {
float: right;
margin: 3px 0 3px 4px;
}
}
}
}
|
closed
|
apache/dolphinscheduler
|
https://github.com/apache/dolphinscheduler
| 8,834 |
[Bug][UI Next][V1.0.0-Alpha] missing path in resources center
|
### Search before asking
- [X] I had searched in the [issues](https://github.com/apache/dolphinscheduler/issues?q=is%3Aissue) and found no similar issues.
### What happened


### What you expected to happen
above.
### How to reproduce
above.
### Anything else
_No response_
### Version
dev
### Are you willing to submit PR?
- [ ] Yes I am willing to submit a PR!
### Code of Conduct
- [X] I agree to follow this project's [Code of Conduct](https://www.apache.org/foundation/policies/conduct)
|
https://github.com/apache/dolphinscheduler/issues/8834
|
https://github.com/apache/dolphinscheduler/pull/8963
|
b9e89b1922c979e1b4273564ee3bb8708e36f54a
|
44c8d615a41a851a3547d34ff9332a97ee6d5997
| 2022-03-11T08:19:45Z |
java
| 2022-03-17T09:52:04Z |
dolphinscheduler-ui-next/src/views/resource/file/index.tsx
|
/*
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership.
* The ASF licenses this file to You under the Apache License, Version 2.0
* (the "License"); you may not use this file except in compliance with
* the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
import { useRouter } from 'vue-router'
import {
defineComponent,
onMounted,
ref,
reactive,
Ref,
watch,
inject
} from 'vue'
import {
NIcon,
NSpace,
NDataTable,
NButtonGroup,
NButton,
NPagination,
NInput
} from 'naive-ui'
import { useI18n } from 'vue-i18n'
import { SearchOutlined } from '@vicons/antd'
import Card from '@/components/card'
import { useTable } from './table/use-table'
import { useFileState } from './use-file'
import ResourceFolderModal from './folder'
import ResourceUploadModal from './upload'
import ResourceRenameModal from './rename'
import { IRenameFile } from './types'
import type { Router } from 'vue-router'
import styles from './index.module.scss'
import { useFileStore } from '@/store/file/file'
import { queryCurrentResourceById } from '@/service/modules/resources'
import { ResourceFile } from '@/service/modules/resources/types'
export default defineComponent({
name: 'File',
inject: ['reload'],
setup() {
const router: Router = useRouter()
const fileId = ref(Number(router.currentRoute.value.params.id) || -1)
const reload: any = inject('reload')
const resourceListRef = ref()
const folderShowRef = ref(false)
const uploadShowRef = ref(false)
const renameShowRef = ref(false)
const serachRef = ref()
const renameInfo = reactive({
id: -1,
name: '',
description: ''
})
const paginationReactive = reactive({
page: 1,
pageSize: 10,
itemCount: 0,
pageSizes: [10, 30, 50]
})
const handleUpdatePage = (page: number) => {
paginationReactive.page = page
resourceListRef.value = getResourceListState(
fileId.value,
serachRef.value,
paginationReactive.page,
paginationReactive.pageSize
)
}
const handleUpdatePageSize = (pageSize: number) => {
paginationReactive.page = 1
paginationReactive.pageSize = pageSize
resourceListRef.value = getResourceListState(
fileId.value,
serachRef.value,
paginationReactive.page,
paginationReactive.pageSize
)
}
const handleShowModal = (showRef: Ref<Boolean>) => {
showRef.value = true
}
const setPagination = (count: number) => {
paginationReactive.itemCount = count
}
const { getResourceListState } = useFileState(setPagination)
const handleConditions = () => {
resourceListRef.value = getResourceListState(
fileId.value,
serachRef.value
)
}
const handleCreateFolder = () => {
handleShowModal(folderShowRef)
}
const handleCreateFile = () => {
const name = fileId.value
? 'resource-subfile-create'
: 'resource-file-create'
router.push({
name,
params: { id: fileId.value }
})
}
const handleUploadFile = () => {
handleShowModal(uploadShowRef)
}
const handleRenameFile: IRenameFile = (id, name, description) => {
renameInfo.id = id
renameInfo.name = name
renameInfo.description = description
handleShowModal(renameShowRef)
}
const updateList = () => {
resourceListRef.value = getResourceListState(
fileId.value,
serachRef.value
)
}
const fileStore = useFileStore()
onMounted(() => {
resourceListRef.value = getResourceListState(fileId.value)
})
watch(
() => router.currentRoute.value.params.id,
// @ts-ignore
() => {
reload()
const currFileId = Number(router.currentRoute.value.params.id) || -1
if (currFileId === -1) {
fileStore.setCurrentDir('/')
} else {
queryCurrentResourceById(currFileId).then((res: ResourceFile) => {
if (res.fullName) {
fileStore.setCurrentDir(res.fullName)
}
})
}
}
)
return {
fileId,
serachRef,
folderShowRef,
uploadShowRef,
renameShowRef,
handleShowModal,
resourceListRef,
updateList,
handleConditions,
handleCreateFolder,
handleCreateFile,
handleUploadFile,
handleRenameFile,
handleUpdatePage,
handleUpdatePageSize,
pagination: paginationReactive,
renameInfo
}
},
render() {
const { t } = useI18n()
const { columnsRef } = useTable(this.handleRenameFile, this.updateList)
const {
handleConditions,
handleCreateFolder,
handleCreateFile,
handleUploadFile
} = this
return (
<div>
<Card style={{ marginBottom: '8px' }}>
<div class={styles['conditions-model']}>
<NSpace>
<NButtonGroup>
<NButton
onClick={handleCreateFolder}
class='btn-create-directory'
>
{t('resource.file.create_folder')}
</NButton>
<NButton onClick={handleCreateFile} class='btn-create-file'>
{t('resource.file.create_file')}
</NButton>
<NButton onClick={handleUploadFile} class='btn-upload-file'>
{t('resource.file.upload_files')}
</NButton>
</NButtonGroup>
</NSpace>
<div class={styles.right}>
<div class={styles['form-box']}>
<div class={styles.list}>
<NButton onClick={handleConditions}>
<NIcon>
<SearchOutlined />
</NIcon>
</NButton>
</div>
<div class={styles.list}>
<NInput
placeholder={t('resource.file.enter_keyword_tips')}
v-model={[this.serachRef, 'value']}
/>
</div>
</div>
</div>
</div>
</Card>
<Card title={t('resource.file.file_manage')}>
<NDataTable
remote
columns={columnsRef}
data={this.resourceListRef?.value.table}
striped
size={'small'}
class={styles['table-box']}
row-class-name='items'
/>
<div class={styles.pagination}>
<NPagination
v-model:page={this.pagination.page}
v-model:pageSize={this.pagination.pageSize}
pageSizes={this.pagination.pageSizes}
item-count={this.pagination.itemCount}
onUpdatePage={this.handleUpdatePage}
onUpdatePageSize={this.handleUpdatePageSize}
show-quick-jumper
show-size-picker
/>
</div>
<ResourceFolderModal
v-model:show={this.folderShowRef}
onUpdateList={this.updateList}
/>
<ResourceUploadModal
v-model:show={this.uploadShowRef}
onUpdateList={this.updateList}
/>
<ResourceRenameModal
v-model:show={this.renameShowRef}
id={this.renameInfo.id}
name={this.renameInfo.name}
description={this.renameInfo.description}
onUpdateList={this.updateList}
/>
</Card>
</div>
)
}
})
|
closed
|
apache/dolphinscheduler
|
https://github.com/apache/dolphinscheduler
| 8,834 |
[Bug][UI Next][V1.0.0-Alpha] missing path in resources center
|
### Search before asking
- [X] I had searched in the [issues](https://github.com/apache/dolphinscheduler/issues?q=is%3Aissue) and found no similar issues.
### What happened


### What you expected to happen
above.
### How to reproduce
above.
### Anything else
_No response_
### Version
dev
### Are you willing to submit PR?
- [ ] Yes I am willing to submit a PR!
### Code of Conduct
- [X] I agree to follow this project's [Code of Conduct](https://www.apache.org/foundation/policies/conduct)
|
https://github.com/apache/dolphinscheduler/issues/8834
|
https://github.com/apache/dolphinscheduler/pull/8963
|
b9e89b1922c979e1b4273564ee3bb8708e36f54a
|
44c8d615a41a851a3547d34ff9332a97ee6d5997
| 2022-03-11T08:19:45Z |
java
| 2022-03-17T09:52:04Z |
dolphinscheduler-ui-next/src/views/resource/file/types.ts
|
/*
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership.
* The ASF licenses this file to You under the Apache License, Version 2.0
* (the "License"); you may not use this file except in compliance with
* the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
export interface ResourceFileTableData {
id: number
name: string
user_name: string
directory: string
file_name: string
description: string
size: number
update_time: string
}
export interface IEmit {
(event: any, ...args: any[]): void
}
export interface IRenameFile {
(id: number, name: string, description: string): void
}
export interface IRtDisb {
(name: string, size: number): boolean
}
export interface IResourceListState {
(id?: number, searchVal?: string, pageNo?: number, pageSize?: number): any
}
export interface BasicTableProps {
title?: string
dataSource: Function
columns: any[]
pagination: object
showPagination: boolean
actionColumn: any[]
canResize: boolean
resizeHeightOffset: number
}
export interface PaginationProps {
page?: number
pageCount?: number
pageSize?: number
pageSizes?: number[]
showSizePicker?: boolean
showQuickJumper?: boolean
}
export interface ISetPagination {
(itemCount: number): void
}
|
closed
|
apache/dolphinscheduler
|
https://github.com/apache/dolphinscheduler
| 8,961 |
[Bug-FE][UI Next][V1.0.0-Alpha] English should be displayed here
|
### Search before asking
- [X] I had searched in the [issues](https://github.com/apache/dolphinscheduler/issues?q=is%3Aissue) and found no similar issues.
### What happened
English should be displayed here
<img width="1915" alt="image" src="https://user-images.githubusercontent.com/76080484/158768663-3e3fa1d1-1e98-41d6-a767-7aea5a652e1c.png">
### What you expected to happen
English should be displayed here
### How to reproduce
English should be displayed here
### Anything else
_No response_
### Version
dev
### Are you willing to submit PR?
- [ ] Yes I am willing to submit a PR!
### Code of Conduct
- [X] I agree to follow this project's [Code of Conduct](https://www.apache.org/foundation/policies/conduct)
|
https://github.com/apache/dolphinscheduler/issues/8961
|
https://github.com/apache/dolphinscheduler/pull/8968
|
44c8d615a41a851a3547d34ff9332a97ee6d5997
|
451f2849c10e972b61ed0c3f89e0e65791db95c5
| 2022-03-17T08:31:04Z |
java
| 2022-03-17T12:16:11Z |
dolphinscheduler-ui-next/src/views/security/alarm-instance-manage/index.tsx
|
/*
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership.
* The ASF licenses this file to You under the Apache License, Version 2.0
* (the "License"); you may not use this file except in compliance with
* the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
import { defineComponent, onMounted, ref, toRefs } from 'vue'
import {
NButton,
NInput,
NIcon,
NDataTable,
NPagination,
NSpace
} from 'naive-ui'
import Card from '@/components/card'
import DetailModal from './detail'
import { SearchOutlined } from '@vicons/antd'
import { useI18n } from 'vue-i18n'
import { useUserInfo } from './use-userinfo'
import { useColumns } from './use-columns'
import { useTable } from './use-table'
import styles from './index.module.scss'
import type { IRecord } from './types'
const AlarmInstanceManage = defineComponent({
name: 'alarm-instance-manage',
setup() {
const { t } = useI18n()
const showDetailModal = ref(false)
const currentRecord = ref()
const { IS_ADMIN } = useUserInfo()
const { columnsRef } = useColumns(
(record: IRecord, type: 'edit' | 'delete') => {
if (type === 'edit') {
showDetailModal.value = true
currentRecord.value = record
} else {
deleteRecord(record.id)
}
}
)
const { data, changePage, changePageSize, deleteRecord, updateList } =
useTable()
const onCreate = () => {
currentRecord.value = null
showDetailModal.value = true
}
const onCloseModal = () => {
showDetailModal.value = false
currentRecord.value = {}
}
onMounted(() => {
changePage(1)
})
return {
t,
IS_ADMIN,
showDetailModal,
currentRecord: currentRecord,
columnsRef,
...toRefs(data),
changePage,
changePageSize,
onCreate,
onCloseModal,
onUpdatedList: updateList
}
},
render() {
const {
t,
IS_ADMIN,
currentRecord,
showDetailModal,
columnsRef,
list,
page,
pageSize,
itemCount,
loading,
changePage,
changePageSize,
onCreate,
onUpdatedList,
onCloseModal
} = this
return (
<>
<Card title=''>
{{
default: () => (
<div class={styles['conditions']}>
{IS_ADMIN && (
<NButton onClick={onCreate} type='primary'>
{t('security.alarm_instance.create') +
t('security.alarm_instance.alarm_instance')}
</NButton>
)}
<NSpace
class={styles['conditions-search']}
justify='end'
wrap={false}
>
<div class={styles['conditions-search-input']}>
<NInput
v-model={[this.searchVal, 'value']}
placeholder={`${t(
'security.alarm_instance.search_input_tips'
)}`}
/>
</div>
<NButton type='primary' onClick={onUpdatedList}>
<NIcon>
<SearchOutlined />
</NIcon>
</NButton>
</NSpace>
</div>
)
}}
</Card>
<Card title='' class={styles['mt-8']}>
<NDataTable
columns={columnsRef}
data={list}
loading={loading}
striped
/>
<NPagination
page={page}
page-size={pageSize}
item-count={itemCount}
show-quick-jumper
class={styles['pagination']}
on-update:page={changePage}
on-update:page-size={changePageSize}
/>
</Card>
{IS_ADMIN && (
<DetailModal
show={showDetailModal}
currentRecord={currentRecord}
onCancel={onCloseModal}
onUpdate={onUpdatedList}
/>
)}
</>
)
}
})
export default AlarmInstanceManage
|
closed
|
apache/dolphinscheduler
|
https://github.com/apache/dolphinscheduler
| 8,961 |
[Bug-FE][UI Next][V1.0.0-Alpha] English should be displayed here
|
### Search before asking
- [X] I had searched in the [issues](https://github.com/apache/dolphinscheduler/issues?q=is%3Aissue) and found no similar issues.
### What happened
English should be displayed here
<img width="1915" alt="image" src="https://user-images.githubusercontent.com/76080484/158768663-3e3fa1d1-1e98-41d6-a767-7aea5a652e1c.png">
### What you expected to happen
English should be displayed here
### How to reproduce
English should be displayed here
### Anything else
_No response_
### Version
dev
### Are you willing to submit PR?
- [ ] Yes I am willing to submit a PR!
### Code of Conduct
- [X] I agree to follow this project's [Code of Conduct](https://www.apache.org/foundation/policies/conduct)
|
https://github.com/apache/dolphinscheduler/issues/8961
|
https://github.com/apache/dolphinscheduler/pull/8968
|
44c8d615a41a851a3547d34ff9332a97ee6d5997
|
451f2849c10e972b61ed0c3f89e0e65791db95c5
| 2022-03-17T08:31:04Z |
java
| 2022-03-17T12:16:11Z |
dolphinscheduler-ui-next/src/views/security/alarm-instance-manage/use-columns.ts
|
/*
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership.
* The ASF licenses this file to You under the Apache License, Version 2.0
* (the "License"); you may not use this file except in compliance with
* the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
import { h } from 'vue'
import { useI18n } from 'vue-i18n'
import { NButton, NIcon, NPopconfirm, NSpace } from 'naive-ui'
import { EditOutlined, DeleteOutlined } from '@vicons/antd'
import { TableColumns } from './types'
export function useColumns(onCallback: Function) {
const { t } = useI18n()
const columnsRef: TableColumns = [
{
title: '#',
key: 'index',
render: (rowData, rowIndex) => rowIndex + 1
},
{
title: t('security.alarm_instance.alarm_instance_name'),
key: 'instanceName'
},
{
title: t('security.alarm_instance.alarm_plugin_name'),
key: 'alertPluginName'
},
{
title: t('security.alarm_instance.create_time'),
key: 'createTime'
},
{
title: t('security.alarm_instance.update_time'),
key: 'updateTime'
},
{
title: t('security.alarm_instance.operation'),
key: 'operation',
width: 150,
render: (rowData, unused) => {
return h(NSpace, null, {
default: () => [
h(
NButton,
{
circle: true,
type: 'info',
onClick: () => void onCallback(rowData, 'edit')
},
{
default: () =>
h(NIcon, null, { default: () => h(EditOutlined) })
}
),
h(
NPopconfirm,
{
onPositiveClick: () => void onCallback(rowData, 'delete'),
negativeText: t('security.alarm_instance.cancel'),
positiveText: t('security.alarm_instance.confirm')
},
{
trigger: () =>
h(
NButton,
{
circle: true,
type: 'error'
},
{
default: () =>
h(NIcon, null, { default: () => h(DeleteOutlined) })
}
),
default: () => t('security.alarm_instance.delete')
}
)
]
})
}
}
]
return {
columnsRef
}
}
|
closed
|
apache/dolphinscheduler
|
https://github.com/apache/dolphinscheduler
| 8,969 |
[Bug][UI Next][V1.0.0-Alpha] After the data source center switches languages, the header language does not change.
|
### Search before asking
- [X] I had searched in the [issues](https://github.com/apache/dolphinscheduler/issues?q=is%3Aissue) and found no similar issues.
### What happened

### What you expected to happen
After the data source center switches languages, the header language does not change.
### How to reproduce
After the data source center switches the language, the header should also be changed accordingly.
### Anything else
_No response_
### Version
dev
### Are you willing to submit PR?
- [X] Yes I am willing to submit a PR!
### Code of Conduct
- [X] I agree to follow this project's [Code of Conduct](https://www.apache.org/foundation/policies/conduct)
|
https://github.com/apache/dolphinscheduler/issues/8969
|
https://github.com/apache/dolphinscheduler/pull/8970
|
451f2849c10e972b61ed0c3f89e0e65791db95c5
|
045ef753d1276aafe938fa319b16f444be783845
| 2022-03-17T09:50:29Z |
java
| 2022-03-17T13:26:59Z |
dolphinscheduler-ui-next/src/views/datasource/list/index.tsx
|
/*
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership.
* The ASF licenses this file to You under the Apache License, Version 2.0
* (the "License"); you may not use this file except in compliance with
* the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
import { defineComponent, onMounted, ref, toRefs } from 'vue'
import {
NButton,
NInput,
NIcon,
NDataTable,
NPagination,
NSpace
} from 'naive-ui'
import Card from '@/components/card'
import DetailModal from './detail'
import { SearchOutlined } from '@vicons/antd'
import { useI18n } from 'vue-i18n'
import { useColumns } from './use-columns'
import { useTable } from './use-table'
import styles from './index.module.scss'
const list = defineComponent({
name: 'list',
setup() {
const { t } = useI18n()
const showDetailModal = ref(false)
const selectId = ref()
const { columnsRef } = useColumns((id: number, type: 'edit' | 'delete') => {
if (type === 'edit') {
showDetailModal.value = true
selectId.value = id
} else {
deleteRecord(id)
}
})
const { data, changePage, changePageSize, deleteRecord, updateList } =
useTable()
const onCreate = () => {
selectId.value = null
showDetailModal.value = true
}
onMounted(() => {
changePage(1)
})
return {
t,
showDetailModal,
id: selectId,
columnsRef,
...toRefs(data),
changePage,
changePageSize,
onCreate,
onUpdatedList: updateList
}
},
render() {
const {
t,
id,
showDetailModal,
columnsRef,
list,
page,
pageSize,
itemCount,
loading,
changePage,
changePageSize,
onCreate,
onUpdatedList
} = this
return (
<>
<Card title=''>
{{
default: () => (
<div class={styles['conditions']}>
<NButton
onClick={onCreate}
type='primary'
class='btn-create-data-source'
>
{t('datasource.create_datasource')}
</NButton>
<NSpace
class={styles['conditions-search']}
justify='end'
wrap={false}
>
<div class={styles['conditions-search-input']}>
<NInput
v-model={[this.searchVal, 'value']}
placeholder={`${t('datasource.search_input_tips')}`}
/>
</div>
<NButton type='primary' onClick={onUpdatedList}>
<NIcon>
<SearchOutlined />
</NIcon>
</NButton>
</NSpace>
</div>
)
}}
</Card>
<Card title='' class={styles['mt-8']}>
<NDataTable
row-class-name='data-source-items'
columns={columnsRef}
data={list}
loading={loading}
striped
/>
<NPagination
page={page}
page-size={pageSize}
item-count={itemCount}
show-quick-jumper
class={styles['pagination']}
on-update:page={changePage}
on-update:page-size={changePageSize}
/>
</Card>
<DetailModal
show={showDetailModal}
id={id}
onCancel={() => void (this.showDetailModal = false)}
onUpdate={onUpdatedList}
/>
</>
)
}
})
export default list
|
closed
|
apache/dolphinscheduler
|
https://github.com/apache/dolphinscheduler
| 8,969 |
[Bug][UI Next][V1.0.0-Alpha] After the data source center switches languages, the header language does not change.
|
### Search before asking
- [X] I had searched in the [issues](https://github.com/apache/dolphinscheduler/issues?q=is%3Aissue) and found no similar issues.
### What happened

### What you expected to happen
After the data source center switches languages, the header language does not change.
### How to reproduce
After the data source center switches the language, the header should also be changed accordingly.
### Anything else
_No response_
### Version
dev
### Are you willing to submit PR?
- [X] Yes I am willing to submit a PR!
### Code of Conduct
- [X] I agree to follow this project's [Code of Conduct](https://www.apache.org/foundation/policies/conduct)
|
https://github.com/apache/dolphinscheduler/issues/8969
|
https://github.com/apache/dolphinscheduler/pull/8970
|
451f2849c10e972b61ed0c3f89e0e65791db95c5
|
045ef753d1276aafe938fa319b16f444be783845
| 2022-03-17T09:50:29Z |
java
| 2022-03-17T13:26:59Z |
dolphinscheduler-ui-next/src/views/datasource/list/use-columns.ts
|
/*
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership.
* The ASF licenses this file to You under the Apache License, Version 2.0
* (the "License"); you may not use this file except in compliance with
* the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
import { h } from 'vue'
import { useI18n } from 'vue-i18n'
import { NPopover, NButton, NIcon, NPopconfirm, NSpace } from 'naive-ui'
import { EditOutlined, DeleteOutlined } from '@vicons/antd'
import JsonHighlight from './json-highlight'
import ButtonLink from '@/components/button-link'
import { TableColumns } from './types'
export function useColumns(onCallback: Function) {
const { t } = useI18n()
const columnsRef: TableColumns = [
{
title: '#',
key: 'index',
render: (rowData, rowIndex) => rowIndex + 1
},
{
title: t('datasource.datasource_name'),
key: 'name'
},
{
title: t('datasource.datasource_user_name'),
key: 'userName'
},
{
title: t('datasource.datasource_type'),
key: 'type'
},
{
title: t('datasource.datasource_parameter'),
key: 'parameter',
render: (rowData) => {
return h(
NPopover,
{ trigger: 'click' },
{
trigger: () =>
h(ButtonLink, null, {
default: () => t('datasource.click_to_view')
}),
default: () => h(JsonHighlight, { rowData })
}
)
}
},
{
title: t('datasource.description'),
key: 'note'
},
{
title: t('datasource.create_time'),
key: 'createTime'
},
{
title: t('datasource.update_time'),
key: 'updateTime'
},
{
title: t('datasource.operation'),
key: 'operation',
width: 150,
render: (rowData, unused) => {
return h(NSpace, null, {
default: () => [
h(
NButton,
{
circle: true,
type: 'info',
onClick: () => void onCallback(rowData.id, 'edit')
},
{
default: () =>
h(NIcon, null, { default: () => h(EditOutlined) })
}
),
h(
NPopconfirm,
{
onPositiveClick: () => void onCallback(rowData.id, 'delete'),
negativeText: t('datasource.cancel'),
positiveText: t('datasource.confirm')
},
{
trigger: () =>
h(
NButton,
{
circle: true,
type: 'error',
class: 'btn-delete'
},
{
default: () =>
h(NIcon, null, { default: () => h(DeleteOutlined) })
}
),
default: () => t('datasource.delete')
}
)
]
})
}
}
]
return {
columnsRef
}
}
|
closed
|
apache/dolphinscheduler
|
https://github.com/apache/dolphinscheduler
| 8,969 |
[Bug][UI Next][V1.0.0-Alpha] After the data source center switches languages, the header language does not change.
|
### Search before asking
- [X] I had searched in the [issues](https://github.com/apache/dolphinscheduler/issues?q=is%3Aissue) and found no similar issues.
### What happened

### What you expected to happen
After the data source center switches languages, the header language does not change.
### How to reproduce
After the data source center switches the language, the header should also be changed accordingly.
### Anything else
_No response_
### Version
dev
### Are you willing to submit PR?
- [X] Yes I am willing to submit a PR!
### Code of Conduct
- [X] I agree to follow this project's [Code of Conduct](https://www.apache.org/foundation/policies/conduct)
|
https://github.com/apache/dolphinscheduler/issues/8969
|
https://github.com/apache/dolphinscheduler/pull/8970
|
451f2849c10e972b61ed0c3f89e0e65791db95c5
|
045ef753d1276aafe938fa319b16f444be783845
| 2022-03-17T09:50:29Z |
java
| 2022-03-17T13:26:59Z |
dolphinscheduler-ui-next/src/views/projects/workflow/components/dag/dag-save-modal.tsx
|
/*
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership.
* The ASF licenses this file to You under the Apache License, Version 2.0
* (the "License"); you may not use this file except in compliance with
* the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
import { defineComponent, PropType, ref, computed, onMounted, watch } from 'vue'
import Modal from '@/components/modal'
import { useI18n } from 'vue-i18n'
import {
NForm,
NFormItem,
NInput,
NSelect,
NSwitch,
NInputNumber,
NDynamicInput,
NCheckbox
} from 'naive-ui'
import { queryTenantList } from '@/service/modules/tenants'
import { useRoute } from 'vue-router'
import { verifyName } from '@/service/modules/process-definition'
import './x6-style.scss'
import { positiveIntegerRegex } from '@/utils/regex'
import type { SaveForm, WorkflowDefinition, WorkflowInstance } from './types'
const props = {
visible: {
type: Boolean as PropType<boolean>,
default: false
},
// If this prop is passed, it means from definition detail
definition: {
type: Object as PropType<WorkflowDefinition>,
default: undefined
},
instance: {
type: Object as PropType<WorkflowInstance>,
default: undefined
}
}
interface Tenant {
tenantCode: string
id: number
}
export default defineComponent({
name: 'dag-save-modal',
props,
emits: ['update:show', 'save'],
setup(props, context) {
const route = useRoute()
const { t } = useI18n()
const projectCode = Number(route.params.projectCode)
const tenants = ref<Tenant[]>([])
const tenantsDropdown = computed(() => {
if (tenants.value) {
return tenants.value
.map((t) => ({
label: t.tenantCode,
value: t.tenantCode
}))
.concat({ label: 'default', value: 'default' })
}
return []
})
onMounted(() => {
queryTenantList().then((res: any) => {
tenants.value = res
})
})
const formValue = ref<SaveForm>({
name: '',
description: '',
tenantCode: 'default',
timeoutFlag: false,
timeout: 0,
globalParams: [],
release: false,
sync: false
})
const formRef = ref()
const rule = {
name: {
required: true,
message: t('project.dag.dag_name_empty')
},
timeout: {
validator() {
if (
formValue.value.timeoutFlag &&
!positiveIntegerRegex.test(String(formValue.value.timeout))
) {
return new Error(t('project.dag.positive_integer'))
}
}
},
globalParams: {
validator() {
const props = new Set()
for (const param of formValue.value.globalParams) {
const prop = param.value
if (!prop) {
return new Error(t('project.dag.prop_empty'))
}
if (props.has(prop)) {
return new Error(t('project.dag.prop_repeat'))
}
props.add(prop)
}
}
}
}
const onSubmit = () => {
formRef.value.validate(async (valid: any) => {
if (!valid) {
const params = {
name: formValue.value.name
}
if (
props.definition?.processDefinition.name !== formValue.value.name
) {
verifyName(params, projectCode).then(() =>
context.emit('save', formValue.value)
)
} else {
context.emit('save', formValue.value)
}
}
})
}
const onCancel = () => {
context.emit('update:show', false)
}
const updateModalData = () => {
const process = props.definition?.processDefinition
if (process) {
formValue.value.name = process.name
formValue.value.description = process.description
formValue.value.tenantCode = process.tenantCode || 'default'
if (process.timeout && process.timeout > 0) {
formValue.value.timeoutFlag = true
formValue.value.timeout = process.timeout
}
formValue.value.globalParams = process.globalParamList.map((param) => ({
key: param.prop,
value: param.value
}))
}
}
onMounted(() => updateModalData())
watch(
() => props.definition?.processDefinition,
() => updateModalData()
)
return () => (
<Modal
show={props.visible}
title={t('project.dag.basic_info')}
onConfirm={onSubmit}
onCancel={onCancel}
autoFocus={false}
>
<NForm model={formValue.value} rules={rule} ref={formRef}>
<NFormItem label={t('project.dag.workflow_name')} path='name'>
<NInput v-model:value={formValue.value.name} class='input-name' />
</NFormItem>
<NFormItem label={t('project.dag.description')} path='description'>
<NInput
type='textarea'
v-model:value={formValue.value.description}
class='input-description'
/>
</NFormItem>
<NFormItem label={t('project.dag.tenant')} path='tenantCode'>
<NSelect
options={tenantsDropdown.value}
v-model:value={formValue.value.tenantCode}
class='btn-select-tenant-code'
/>
</NFormItem>
<NFormItem label={t('project.dag.timeout_alert')} path='timeoutFlag'>
<NSwitch v-model:value={formValue.value.timeoutFlag} />
</NFormItem>
{formValue.value.timeoutFlag && (
<NFormItem label=' ' path='timeout'>
<NInputNumber
v-model:value={formValue.value.timeout}
show-button={false}
min={0}
v-slots={{
suffix: () => t('project.dag.minute')
}}
/>
</NFormItem>
)}
<NFormItem
label={t('project.dag.global_variables')}
path='globalParams'
>
<NDynamicInput
v-model:value={formValue.value.globalParams}
preset='pair'
key-placeholder={t('project.dag.key')}
value-placeholder={t('project.dag.value')}
class='input-global-params'
/>
</NFormItem>
{props.definition && !props.instance && (
<NFormItem path='timeoutFlag'>
<NCheckbox v-model:checked={formValue.value.release}>
{t('project.dag.online_directly')}
</NCheckbox>
</NFormItem>
)}
{props.instance && (
<NFormItem path='sync'>
<NCheckbox v-model:checked={formValue.value.sync}>
{t('project.dag.update_directly')}
</NCheckbox>
</NFormItem>
)}
</NForm>
</Modal>
)
}
})
|
closed
|
apache/dolphinscheduler
|
https://github.com/apache/dolphinscheduler
| 8,969 |
[Bug][UI Next][V1.0.0-Alpha] After the data source center switches languages, the header language does not change.
|
### Search before asking
- [X] I had searched in the [issues](https://github.com/apache/dolphinscheduler/issues?q=is%3Aissue) and found no similar issues.
### What happened

### What you expected to happen
After the data source center switches languages, the header language does not change.
### How to reproduce
After the data source center switches the language, the header should also be changed accordingly.
### Anything else
_No response_
### Version
dev
### Are you willing to submit PR?
- [X] Yes I am willing to submit a PR!
### Code of Conduct
- [X] I agree to follow this project's [Code of Conduct](https://www.apache.org/foundation/policies/conduct)
|
https://github.com/apache/dolphinscheduler/issues/8969
|
https://github.com/apache/dolphinscheduler/pull/8970
|
451f2849c10e972b61ed0c3f89e0e65791db95c5
|
045ef753d1276aafe938fa319b16f444be783845
| 2022-03-17T09:50:29Z |
java
| 2022-03-17T13:26:59Z |
dolphinscheduler-ui-next/src/views/projects/workflow/definition/components/start-modal.tsx
|
/*
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership.
* The ASF licenses this file to You under the Apache License, Version 2.0
* (the "License"); you may not use this file except in compliance with
* the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
import {
defineComponent,
PropType,
toRefs,
h,
onMounted,
ref,
watch
} from 'vue'
import { useI18n } from 'vue-i18n'
import Modal from '@/components/modal'
import { useForm } from './use-form'
import { useModal } from './use-modal'
import {
NForm,
NFormItem,
NButton,
NIcon,
NInput,
NSpace,
NRadio,
NRadioGroup,
NSelect,
NSwitch,
NCheckbox,
NDatePicker
} from 'naive-ui'
import {
ArrowDownOutlined,
ArrowUpOutlined,
DeleteOutlined,
PlusCircleOutlined
} from '@vicons/antd'
import { IDefinitionData } from '../types'
import styles from '../index.module.scss'
const props = {
row: {
type: Object as PropType<IDefinitionData>,
default: {}
},
show: {
type: Boolean as PropType<boolean>,
default: false
}
}
export default defineComponent({
name: 'workflowDefinitionStart',
props,
emits: ['update:show', 'update:row', 'updateList'],
setup(props, ctx) {
const parallelismRef = ref(false)
const { t } = useI18n()
const { startState } = useForm()
const {
variables,
handleStartDefinition,
getWorkerGroups,
getAlertGroups,
getEnvironmentList,
getStartParamsList
} = useModal(startState, ctx)
const hideModal = () => {
ctx.emit('update:show')
}
const handleStart = () => {
handleStartDefinition(props.row.code)
}
const generalWarningTypeListOptions = () => [
{
value: 'NONE',
label: t('project.workflow.none_send')
},
{
value: 'SUCCESS',
label: t('project.workflow.success_send')
},
{
value: 'FAILURE',
label: t('project.workflow.failure_send')
},
{
value: 'ALL',
label: t('project.workflow.all_send')
}
]
const generalPriorityList = () => [
{
value: 'HIGHEST',
label: 'HIGHEST',
color: '#ff0000',
icon: ArrowUpOutlined
},
{
value: 'HIGH',
label: 'HIGH',
color: '#ff0000',
icon: ArrowUpOutlined
},
{
value: 'MEDIUM',
label: 'MEDIUM',
color: '#EA7D24',
icon: ArrowUpOutlined
},
{
value: 'LOW',
label: 'LOW',
color: '#2A8734',
icon: ArrowDownOutlined
},
{
value: 'LOWEST',
label: 'LOWEST',
color: '#2A8734',
icon: ArrowDownOutlined
}
]
const renderLabel = (option: any) => {
return [
h(
NIcon,
{
style: {
verticalAlign: 'middle',
marginRight: '4px',
marginBottom: '3px'
},
color: option.color
},
{
default: () => h(option.icon)
}
),
option.label
]
}
const updateWorkerGroup = () => {
startState.startForm.environmentCode = null
}
const addStartParams = () => {
variables.startParamsList.push({
prop: '',
value: ''
})
}
const updateParamsList = (index: number, param: Array<string>) => {
variables.startParamsList[index].prop = param[0]
variables.startParamsList[index].value = param[1]
}
const removeStartParams = (index: number) => {
variables.startParamsList.splice(index, 1)
}
onMounted(() => {
getWorkerGroups()
getAlertGroups()
getEnvironmentList()
})
watch(
() => props.row,
() => getStartParamsList(props.row.code)
)
return {
t,
parallelismRef,
hideModal,
handleStart,
generalWarningTypeListOptions,
generalPriorityList,
renderLabel,
updateWorkerGroup,
removeStartParams,
addStartParams,
updateParamsList,
...toRefs(variables),
...toRefs(startState),
...toRefs(props)
}
},
render() {
const { t } = this
return (
<Modal
show={this.show}
title={t('project.workflow.set_parameters_before_starting')}
onCancel={this.hideModal}
onConfirm={this.handleStart}
confirmLoading={this.saving}
>
<NForm ref='startFormRef' label-placement='left' label-width='160'>
<NFormItem
label={t('project.workflow.workflow_name')}
path='workflow_name'
>
{this.row.name}
</NFormItem>
<NFormItem
label={t('project.workflow.failure_strategy')}
path='failureStrategy'
>
<NRadioGroup v-model:value={this.startForm.failureStrategy}>
<NSpace>
<NRadio value='CONTINUE'>
{t('project.workflow.continue')}
</NRadio>
<NRadio value='END'>{t('project.workflow.end')}</NRadio>
</NSpace>
</NRadioGroup>
</NFormItem>
<NFormItem
label={t('project.workflow.notification_strategy')}
path='warningType'
>
<NSelect
options={this.generalWarningTypeListOptions()}
v-model:value={this.startForm.warningType}
/>
</NFormItem>
<NFormItem
label={t('project.workflow.workflow_priority')}
path='processInstancePriority'
>
<NSelect
options={this.generalPriorityList()}
renderLabel={this.renderLabel}
v-model:value={this.startForm.processInstancePriority}
/>
</NFormItem>
<NFormItem
label={t('project.workflow.worker_group')}
path='workerGroup'
>
<NSelect
options={this.workerGroups}
onUpdateValue={this.updateWorkerGroup}
v-model:value={this.startForm.workerGroup}
/>
</NFormItem>
<NFormItem
label={t('project.workflow.environment_name')}
path='environmentCode'
>
<NSelect
options={this.environmentList.filter((item: any) =>
item.workerGroups?.includes(this.startForm.workerGroup)
)}
v-model:value={this.startForm.environmentCode}
clearable
/>
</NFormItem>
<NFormItem
label={t('project.workflow.alarm_group')}
path='warningGroupId'
>
<NSelect
options={this.alertGroups}
placeholder={t('project.workflow.please_choose')}
v-model:value={this.startForm.warningGroupId}
clearable
/>
</NFormItem>
<NFormItem
label={t('project.workflow.complement_data')}
path='complement_data'
>
<NCheckbox
checkedValue={'COMPLEMENT_DATA'}
uncheckedValue={'START_PROCESS'}
v-model:checked={this.startForm.execType}
>
{t('project.workflow.whether_complement_data')}
</NCheckbox>
</NFormItem>
{this.startForm.execType &&
this.startForm.execType !== 'START_PROCESS' && (
<NSpace>
<NFormItem
label={t('project.workflow.mode_of_dependent')}
path='dependentMode'
>
<NRadioGroup v-model:value={this.startForm.dependentMode}>
<NSpace>
<NRadio value={'OFF_MODE'}>
{t('project.workflow.close')}
</NRadio>
<NRadio value={'ALL_DEPENDENT'}>
{t('project.workflow.open')}
</NRadio>
</NSpace>
</NRadioGroup>
</NFormItem>
<NFormItem
label={t('project.workflow.mode_of_execution')}
path='runMode'
>
<NRadioGroup v-model:value={this.startForm.runMode}>
<NSpace>
<NRadio value={'RUN_MODE_SERIAL'}>
{t('project.workflow.serial_execution')}
</NRadio>
<NRadio value={'RUN_MODE_PARALLEL'}>
{t('project.workflow.parallel_execution')}
</NRadio>
</NSpace>
</NRadioGroup>
</NFormItem>
{this.startForm.runMode === 'RUN_MODE_PARALLEL' && (
<NFormItem
label={t('project.workflow.parallelism')}
path='expectedParallelismNumber'
>
<NCheckbox v-model:checked={this.parallelismRef}>
{t('project.workflow.custom_parallelism')}
</NCheckbox>
<NInput
disabled={!this.parallelismRef}
placeholder={t(
'project.workflow.please_enter_parallelism'
)}
v-model:value={this.startForm.expectedParallelismNumber}
/>
</NFormItem>
)}
<NFormItem
label={t('project.workflow.schedule_date')}
path='startEndTime'
>
<NDatePicker
type='datetimerange'
clearable
v-model:value={this.startForm.startEndTime}
/>
</NFormItem>
</NSpace>
)}
<NFormItem
label={t('project.workflow.startup_parameter')}
path='startup_parameter'
>
{this.startParamsList.length === 0 ? (
<NButton text type='primary' onClick={this.addStartParams}>
<NIcon>
<PlusCircleOutlined />
</NIcon>
</NButton>
) : (
<NSpace vertical>
{this.startParamsList.map((item, index) => (
<NSpace class={styles.startup} key={index}>
<NInput
pair
separator=':'
placeholder={['prop', 'value']}
defaultValue={[item.prop, item.value]}
onUpdateValue={(param) =>
this.updateParamsList(index, param)
}
/>
<NButton
text
type='error'
onClick={() => this.removeStartParams(index)}
class='btn-delete-custom-parameter'
>
<NIcon>
<DeleteOutlined />
</NIcon>
</NButton>
<NButton
text
type='primary'
onClick={this.addStartParams}
class='btn-create-custom-parameter'
>
<NIcon>
<PlusCircleOutlined />
</NIcon>
</NButton>
</NSpace>
))}
</NSpace>
)}
</NFormItem>
<NFormItem
label={t('project.workflow.whether_dry_run')}
path='dryRun'
>
<NSwitch
checkedValue={1}
uncheckedValue={0}
v-model:value={this.startForm.dryRun}
/>
</NFormItem>
</NForm>
</Modal>
)
}
})
|
closed
|
apache/dolphinscheduler
|
https://github.com/apache/dolphinscheduler
| 8,969 |
[Bug][UI Next][V1.0.0-Alpha] After the data source center switches languages, the header language does not change.
|
### Search before asking
- [X] I had searched in the [issues](https://github.com/apache/dolphinscheduler/issues?q=is%3Aissue) and found no similar issues.
### What happened

### What you expected to happen
After the data source center switches languages, the header language does not change.
### How to reproduce
After the data source center switches the language, the header should also be changed accordingly.
### Anything else
_No response_
### Version
dev
### Are you willing to submit PR?
- [X] Yes I am willing to submit a PR!
### Code of Conduct
- [X] I agree to follow this project's [Code of Conduct](https://www.apache.org/foundation/policies/conduct)
|
https://github.com/apache/dolphinscheduler/issues/8969
|
https://github.com/apache/dolphinscheduler/pull/8970
|
451f2849c10e972b61ed0c3f89e0e65791db95c5
|
045ef753d1276aafe938fa319b16f444be783845
| 2022-03-17T09:50:29Z |
java
| 2022-03-17T13:26:59Z |
dolphinscheduler-ui-next/src/views/projects/workflow/definition/index.tsx
|
/*
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership.
* The ASF licenses this file to You under the Apache License, Version 2.0
* (the "License"); you may not use this file except in compliance with
* the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
import Card from '@/components/card'
import { SearchOutlined } from '@vicons/antd'
import {
NButton,
NDataTable,
NIcon,
NInput,
NPagination,
NSpace,
NTooltip,
NPopconfirm
} from 'naive-ui'
import { defineComponent, onMounted, toRefs, watch } from 'vue'
import { useI18n } from 'vue-i18n'
import { useTable } from './use-table'
import ImportModal from './components/import-modal'
import StartModal from './components/start-modal'
import TimingModal from './components/timing-modal'
import VersionModal from './components/version-modal'
import CopyModal from './components/copy-modal'
import { useRouter, useRoute } from 'vue-router'
import type { Router } from 'vue-router'
import styles from './index.module.scss'
export default defineComponent({
name: 'WorkflowDefinitionList',
setup() {
const router: Router = useRouter()
const route = useRoute()
const projectCode = Number(route.params.projectCode)
const {
variables,
createColumns,
getTableData,
batchDeleteWorkflow,
batchExportWorkflow,
batchCopyWorkflow
} = useTable()
const requestData = () => {
getTableData({
pageSize: variables.pageSize,
pageNo: variables.page,
searchVal: variables.searchVal
})
}
const handleUpdateList = () => {
requestData()
}
const handleCopyUpdateList = () => {
variables.checkedRowKeys = []
requestData()
}
const handleSearch = () => {
variables.page = 1
requestData()
}
const handleChangePageSize = () => {
variables.page = 1
requestData()
}
const createDefinition = () => {
router.push({
path: `/projects/${projectCode}/workflow/definitions/create`
})
}
watch(useI18n().locale, () => {
createColumns(variables)
})
onMounted(() => {
createColumns(variables)
requestData()
})
return {
requestData,
handleSearch,
handleUpdateList,
createDefinition,
handleChangePageSize,
batchDeleteWorkflow,
batchExportWorkflow,
batchCopyWorkflow,
handleCopyUpdateList,
...toRefs(variables)
}
},
render() {
const { t } = useI18n()
return (
<div class={styles.content}>
<Card class={styles.card}>
<div class={styles.header}>
<NSpace>
<NButton
type='primary'
onClick={this.createDefinition}
class='btn-create-process'
>
{t('project.workflow.create_workflow')}
</NButton>
<NButton strong secondary onClick={() => (this.showRef = true)}>
{t('project.workflow.import_workflow')}
</NButton>
</NSpace>
<div class={styles.right}>
<div class={styles.search}>
<div class={styles.list}>
<NButton type='primary' onClick={this.handleSearch}>
<NIcon>
<SearchOutlined />
</NIcon>
</NButton>
</div>
<div class={styles.list}>
<NInput
placeholder={t('resource.function.enter_keyword_tips')}
v-model={[this.searchVal, 'value']}
/>
</div>
</div>
</div>
</div>
</Card>
<Card title={t('project.workflow.workflow_definition')}>
<NDataTable
rowKey={(row) => row.code}
columns={this.columns}
data={this.tableData}
striped
size={'small'}
class={styles.table}
v-model:checked-row-keys={this.checkedRowKeys}
row-class-name='items'
/>
<div class={styles.pagination}>
<NPagination
v-model:page={this.page}
v-model:page-size={this.pageSize}
page-count={this.totalPage}
show-size-picker
page-sizes={[10, 30, 50]}
show-quick-jumper
onUpdatePage={this.requestData}
onUpdatePageSize={this.handleChangePageSize}
/>
</div>
<div class={styles['batch-button']}>
<NTooltip>
{{
default: () => t('project.workflow.delete'),
trigger: () => (
<NButton
tag='div'
type='primary'
disabled={this.checkedRowKeys.length <= 0}
class='btn-delete-all'
>
<NPopconfirm onPositiveClick={this.batchDeleteWorkflow}>
{{
default: () => t('project.workflow.delete_confirm'),
trigger: () => t('project.workflow.delete')
}}
</NPopconfirm>
</NButton>
)
}}
</NTooltip>
<NTooltip>
{{
default: () => t('project.workflow.export'),
trigger: () => (
<NButton
tag='div'
type='primary'
disabled={this.checkedRowKeys.length <= 0}
onClick={this.batchExportWorkflow}
class='btn-delete-all'
>
{t('project.workflow.export')}
</NButton>
)
}}
</NTooltip>
<NTooltip>
{{
default: () => t('project.workflow.batch_copy'),
trigger: () => (
<NButton
tag='div'
type='primary'
disabled={this.checkedRowKeys.length <= 0}
onClick={() => (this.copyShowRef = true)}
class='btn-delete-all'
>
{t('project.workflow.batch_copy')}
</NButton>
)
}}
</NTooltip>
</div>
</Card>
<ImportModal
v-model:show={this.showRef}
onUpdateList={this.handleUpdateList}
/>
<StartModal
v-model:row={this.row}
v-model:show={this.startShowRef}
onUpdateList={this.handleUpdateList}
/>
<TimingModal
v-model:row={this.row}
v-model:show={this.timingShowRef}
onUpdateList={this.handleUpdateList}
/>
<VersionModal
v-model:row={this.row}
v-model:show={this.versionShowRef}
onUpdateList={this.handleUpdateList}
/>
<CopyModal
v-model:codes={this.checkedRowKeys}
v-model:show={this.copyShowRef}
onUpdateList={this.handleCopyUpdateList}
/>
</div>
)
}
})
|
closed
|
apache/dolphinscheduler
|
https://github.com/apache/dolphinscheduler
| 8,971 |
[Bug][UI Next][V1.0.0-Alpha] The table action button in the data source center lacks a floating prompt.
|
### Search before asking
- [X] I had searched in the [issues](https://github.com/apache/dolphinscheduler/issues?q=is%3Aissue) and found no similar issues.
### What happened

### What you expected to happen
The table action button in the data source center lacks a floating prompt.
### How to reproduce
Data source center table operation button adds floating prompt
### Anything else
_No response_
### Version
dev
### Are you willing to submit PR?
- [X] Yes I am willing to submit a PR!
### Code of Conduct
- [X] I agree to follow this project's [Code of Conduct](https://www.apache.org/foundation/policies/conduct)
|
https://github.com/apache/dolphinscheduler/issues/8971
|
https://github.com/apache/dolphinscheduler/pull/8977
|
045ef753d1276aafe938fa319b16f444be783845
|
a485771a738397dc8ced69636a3098eb89b47741
| 2022-03-17T10:12:23Z |
java
| 2022-03-18T06:29:51Z |
dolphinscheduler-ui-next/src/locales/modules/en_US.ts
|
/*
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership.
* The ASF licenses this file to You under the Apache License, Version 2.0
* (the "License"); you may not use this file except in compliance with
* the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
const login = {
test: 'Test',
userName: 'Username',
userName_tips: 'Please enter your username',
userPassword: 'Password',
userPassword_tips: 'Please enter your password',
login: 'Login'
}
const modal = {
cancel: 'Cancel',
confirm: 'Confirm'
}
const theme = {
light: 'Light',
dark: 'Dark'
}
const userDropdown = {
profile: 'Profile',
password: 'Password',
logout: 'Logout'
}
const menu = {
home: 'Home',
project: 'Project',
resources: 'Resources',
datasource: 'Datasource',
monitor: 'Monitor',
security: 'Security',
project_overview: 'Project Overview',
workflow_relation: 'Workflow Relation',
workflow: 'Workflow',
workflow_definition: 'Workflow Definition',
workflow_instance: 'Workflow Instance',
task: 'Task',
task_instance: 'Task Instance',
task_definition: 'Task Definition',
file_manage: 'File Manage',
udf_manage: 'UDF Manage',
resource_manage: 'Resource Manage',
function_manage: 'Function Manage',
service_manage: 'Service Manage',
master: 'Master',
worker: 'Worker',
db: 'DB',
statistical_manage: 'Statistical Manage',
statistics: 'Statistics',
audit_log: 'Audit Log',
tenant_manage: 'Tenant Manage',
user_manage: 'User Manage',
alarm_group_manage: 'Alarm Group Manage',
alarm_instance_manage: 'Alarm Instance Manage',
worker_group_manage: 'Worker Group Manage',
yarn_queue_manage: 'Yarn Queue Manage',
environment_manage: 'Environment Manage',
k8s_namespace_manage: 'K8S Namespace Manage',
token_manage: 'Token Manage',
task_group_manage: 'Task Group Manage',
task_group_option: 'Task Group Option',
task_group_queue: 'Task Group Queue',
data_quality: 'Data Quality',
task_result: 'Task Result',
rule: 'Rule management'
}
const home = {
task_state_statistics: 'Task State Statistics',
process_state_statistics: 'Process State Statistics',
process_definition_statistics: 'Process Definition Statistics',
number: 'Number',
state: 'State',
submitted_success: 'SUBMITTED_SUCCESS',
running_execution: 'RUNNING_EXECUTION',
ready_pause: 'READY_PAUSE',
pause: 'PAUSE',
ready_stop: 'READY_STOP',
stop: 'STOP',
failure: 'FAILURE',
success: 'SUCCESS',
need_fault_tolerance: 'NEED_FAULT_TOLERANCE',
kill: 'KILL',
waiting_thread: 'WAITING_THREAD',
waiting_depend: 'WAITING_DEPEND',
delay_execution: 'DELAY_EXECUTION',
forced_success: 'FORCED_SUCCESS',
serial_wait: 'SERIAL_WAIT',
ready_block: 'READY_BLOCK',
block: 'BLOCK'
}
const password = {
edit_password: 'Edit Password',
password: 'Password',
confirm_password: 'Confirm Password',
password_tips: 'Please enter your password',
confirm_password_tips: 'Please enter your confirm password',
two_password_entries_are_inconsistent:
'Two password entries are inconsistent',
submit: 'Submit'
}
const profile = {
profile: 'Profile',
edit: 'Edit',
username: 'Username',
email: 'Email',
phone: 'Phone',
state: 'State',
permission: 'Permission',
create_time: 'Create Time',
update_time: 'Update Time',
administrator: 'Administrator',
ordinary_user: 'Ordinary User',
edit_profile: 'Edit Profile',
username_tips: 'Please enter your username',
email_tips: 'Please enter your email',
email_correct_tips: 'Please enter your email in the correct format',
phone_tips: 'Please enter your phone',
state_tips: 'Please choose your state',
enable: 'Enable',
disable: 'Disable',
timezone_success: 'Time zone updated successful',
please_select_timezone: 'Choose timeZone'
}
const monitor = {
master: {
cpu_usage: 'CPU Usage',
memory_usage: 'Memory Usage',
load_average: 'Load Average',
create_time: 'Create Time',
last_heartbeat_time: 'Last Heartbeat Time',
directory_detail: 'Directory Detail',
host: 'Host',
directory: 'Directory'
},
worker: {
cpu_usage: 'CPU Usage',
memory_usage: 'Memory Usage',
load_average: 'Load Average',
create_time: 'Create Time',
last_heartbeat_time: 'Last Heartbeat Time',
directory_detail: 'Directory Detail',
host: 'Host',
directory: 'Directory'
},
db: {
health_state: 'Health State',
max_connections: 'Max Connections',
threads_connections: 'Threads Connections',
threads_running_connections: 'Threads Running Connections'
},
statistics: {
command_number_of_waiting_for_running:
'Command Number Of Waiting For Running',
failure_command_number: 'Failure Command Number',
tasks_number_of_waiting_running: 'Tasks Number Of Waiting Running',
task_number_of_ready_to_kill: 'Task Number Of Ready To Kill'
},
audit_log: {
user_name: 'User Name',
resource_type: 'Resource Type',
project_name: 'Project Name',
operation_type: 'Operation Type',
create_time: 'Create Time',
start_time: 'Start Time',
end_time: 'End Time',
user_audit: 'User Audit',
project_audit: 'Project Audit',
create: 'Create',
update: 'Update',
delete: 'Delete',
read: 'Read'
}
}
const resource = {
file: {
file_manage: 'File Manage',
create_folder: 'Create Folder',
create_file: 'Create File',
upload_files: 'Upload Files',
enter_keyword_tips: 'Please enter keyword',
name: 'Name',
user_name: 'Resource userName',
whether_directory: 'Whether directory',
file_name: 'File Name',
description: 'Description',
size: 'Size',
update_time: 'Update Time',
operation: 'Operation',
edit: 'Edit',
rename: 'Rename',
download: 'Download',
delete: 'Delete',
yes: 'Yes',
no: 'No',
folder_name: 'Folder Name',
enter_name_tips: 'Please enter name',
enter_description_tips: 'Please enter description',
enter_content_tips: 'Please enter the resource content',
file_format: 'File Format',
file_content: 'File Content',
delete_confirm: 'Delete?',
confirm: 'Confirm',
cancel: 'Cancel',
success: 'Success',
file_details: 'File Details',
return: 'Return',
save: 'Save'
},
udf: {
udf_resources: 'UDF resources',
create_folder: 'Create Folder',
upload_udf_resources: 'Upload UDF Resources',
udf_source_name: 'UDF Resource Name',
whether_directory: 'Whether directory',
file_name: 'File Name',
file_size: 'File Size',
description: 'Description',
create_time: 'Create Time',
update_time: 'Update Time',
operation: 'Operation',
yes: 'Yes',
no: 'No',
edit: 'Edit',
download: 'Download',
delete: 'Delete',
delete_confirm: 'Delete?',
success: 'Success',
folder_name: 'Folder Name',
upload: 'Upload',
upload_files: 'Upload Files',
file_upload: 'File Upload',
enter_keyword_tips: 'Please enter keyword',
enter_name_tips: 'Please enter name',
enter_description_tips: 'Please enter description'
},
function: {
udf_function: 'UDF Function',
create_udf_function: 'Create UDF Function',
edit_udf_function: 'Create UDF Function',
udf_function_name: 'UDF Function Name',
class_name: 'Class Name',
type: 'Type',
description: 'Description',
jar_package: 'Jar Package',
update_time: 'Update Time',
operation: 'Operation',
rename: 'Rename',
edit: 'Edit',
delete: 'Delete',
success: 'Success',
package_name: 'Package Name',
udf_resources: 'UDF Resources',
instructions: 'Instructions',
upload_resources: 'Upload Resources',
udf_resources_directory: 'UDF resources directory',
delete_confirm: 'Delete?',
enter_keyword_tips: 'Please enter keyword',
enter_udf_unction_name_tips: 'Please enter a UDF function name',
enter_package_name_tips: 'Please enter a Package name',
enter_select_udf_resources_tips: 'Please select UDF resources',
enter_select_udf_resources_directory_tips:
'Please select UDF resources directory',
enter_instructions_tips: 'Please enter a instructions',
enter_name_tips: 'Please enter name',
enter_description_tips: 'Please enter description'
},
task_group_option: {
manage: 'Task group manage',
option: 'Task group option',
create: 'Create task group',
edit: 'Edit task group',
delete: 'Delete task group',
view_queue: 'View the queue of the task group',
switch_status: 'Switch status',
code: 'Task group code',
name: 'Task group name',
project_name: 'Project name',
resource_pool_size: 'Resource pool size',
resource_pool_size_be_a_number:
'The size of the task group resource pool should be more than 1',
resource_used_pool_size: 'Used resource',
desc: 'Task group desc',
status: 'Task group status',
enable_status: 'Enable',
disable_status: 'Disable',
please_enter_name: 'Please enter task group name',
please_enter_desc: 'Please enter task group description',
please_enter_resource_pool_size:
'Please enter task group resource pool size',
please_select_project: 'Please select a project',
create_time: 'Create time',
update_time: 'Update time',
actions: 'Actions',
please_enter_keywords: 'Please enter keywords'
},
task_group_queue: {
actions: 'Actions',
task_name: 'Task name',
task_group_name: 'Task group name',
project_name: 'Project name',
process_name: 'Process name',
process_instance_name: 'Process instance',
queue: 'Task group queue',
priority: 'Priority',
priority_be_a_number:
'The priority of the task group queue should be a positive number',
force_starting_status: 'Starting status',
in_queue: 'In queue',
task_status: 'Task status',
view: 'View task group queue',
the_status_of_waiting: 'Waiting into the queue',
the_status_of_queuing: 'Queuing',
the_status_of_releasing: 'Released',
modify_priority: 'Edit the priority',
start_task: 'Start the task',
priority_not_empty: 'The value of priority can not be empty',
priority_must_be_number: 'The value of priority should be number',
please_select_task_name: 'Please select a task name',
create_time: 'Create time',
update_time: 'Update time',
edit_priority: 'Edit the task priority'
}
}
const project = {
list: {
create_project: 'Create Project',
edit_project: 'Edit Project',
project_list: 'Project List',
project_tips: 'Please enter your project',
description_tips: 'Please enter your description',
username_tips: 'Please enter your username',
project_name: 'Project Name',
project_description: 'Project Description',
owned_users: 'Owned Users',
workflow_define_count: 'Workflow Define Count',
process_instance_running_count: 'Process Instance Running Count',
description: 'Description',
create_time: 'Create Time',
update_time: 'Update Time',
operation: 'Operation',
edit: 'Edit',
delete: 'Delete',
confirm: 'Confirm',
cancel: 'Cancel',
delete_confirm: 'Delete?'
},
workflow: {
workflow_relation: 'Workflow Relation',
create_workflow: 'Create Workflow',
import_workflow: 'Import Workflow',
workflow_name: 'Workflow Name',
current_selection: 'Current Selection',
online: 'Online',
offline: 'Offline',
refresh: 'Refresh',
show_hide_label: 'Show / Hide Label',
workflow_offline: 'Workflow Offline',
schedule_offline: 'Schedule Offline',
schedule_start_time: 'Schedule Start Time',
schedule_end_time: 'Schedule End Time',
crontab_expression: 'Crontab',
workflow_publish_status: 'Workflow Publish Status',
schedule_publish_status: 'Schedule Publish Status',
workflow_definition: 'Workflow Definition',
workflow_instance: 'Workflow Instance',
status: 'Status',
create_time: 'Create Time',
update_time: 'Update Time',
description: 'Description',
create_user: 'Create User',
modify_user: 'Modify User',
operation: 'Operation',
edit: 'Edit',
start: 'Start',
timing: 'Timing',
timezone: 'Timezone',
up_line: 'Online',
down_line: 'Offline',
copy_workflow: 'Copy Workflow',
cron_manage: 'Cron manage',
delete: 'Delete',
tree_view: 'Tree View',
tree_limit: 'Limit Size',
export: 'Export',
batch_copy: 'Batch Copy',
version_info: 'Version Info',
version: 'Version',
file_upload: 'File Upload',
upload_file: 'Upload File',
upload: 'Upload',
file_name: 'File Name',
success: 'Success',
set_parameters_before_starting: 'Please set the parameters before starting',
set_parameters_before_timing: 'Set parameters before timing',
start_and_stop_time: 'Start and stop time',
next_five_execution_times: 'Next five execution times',
execute_time: 'Execute time',
failure_strategy: 'Failure Strategy',
notification_strategy: 'Notification Strategy',
workflow_priority: 'Workflow Priority',
worker_group: 'Worker Group',
environment_name: 'Environment Name',
alarm_group: 'Alarm Group',
complement_data: 'Complement Data',
startup_parameter: 'Startup Parameter',
whether_dry_run: 'Whether Dry-Run',
continue: 'Continue',
end: 'End',
none_send: 'None',
success_send: 'Success',
failure_send: 'Failure',
all_send: 'All',
whether_complement_data: 'Whether it is a complement process?',
schedule_date: 'Schedule date',
mode_of_execution: 'Mode of execution',
serial_execution: 'Serial execution',
parallel_execution: 'Parallel execution',
parallelism: 'Parallelism',
custom_parallelism: 'Custom Parallelism',
please_enter_parallelism: 'Please enter Parallelism',
please_choose: 'Please Choose',
start_time: 'Start Time',
end_time: 'End Time',
crontab: 'Crontab',
delete_confirm: 'Delete?',
enter_name_tips: 'Please enter name',
switch_version: 'Switch To This Version',
confirm_switch_version: 'Confirm Switch To This Version?',
current_version: 'Current Version',
run_type: 'Run Type',
scheduling_time: 'Scheduling Time',
duration: 'Duration',
run_times: 'Run Times',
fault_tolerant_sign: 'Fault-tolerant Sign',
dry_run_flag: 'Dry-run Flag',
executor: 'Executor',
host: 'Host',
start_process: 'Start Process',
execute_from_the_current_node: 'Execute from the current node',
recover_tolerance_fault_process: 'Recover tolerance fault process',
resume_the_suspension_process: 'Resume the suspension process',
execute_from_the_failed_nodes: 'Execute from the failed nodes',
scheduling_execution: 'Scheduling execution',
rerun: 'Rerun',
stop: 'Stop',
pause: 'Pause',
recovery_waiting_thread: 'Recovery waiting thread',
recover_serial_wait: 'Recover serial wait',
recovery_suspend: 'Recovery Suspend',
recovery_failed: 'Recovery Failed',
gantt: 'Gantt',
name: 'Name',
all_status: 'AllStatus',
submit_success: 'Submitted successfully',
running: 'Running',
ready_to_pause: 'Ready to pause',
ready_to_stop: 'Ready to stop',
failed: 'Failed',
need_fault_tolerance: 'Need fault tolerance',
kill: 'Kill',
waiting_for_thread: 'Waiting for thread',
waiting_for_dependence: 'Waiting for dependence',
waiting_for_dependency_to_complete: 'Waiting for dependency to complete',
delay_execution: 'Delay execution',
forced_success: 'Forced success',
serial_wait: 'Serial wait',
executing: 'Executing',
startup_type: 'Startup Type',
complement_range: 'Complement Range',
parameters_variables: 'Parameters variables',
global_parameters: 'Global parameters',
local_parameters: 'Local parameters',
type: 'Type',
retry_count: 'Retry Count',
submit_time: 'Submit Time',
refresh_status_succeeded: 'Refresh status succeeded',
view_log: 'View log',
update_log_success: 'Update log success',
no_more_log: 'No more logs',
no_log: 'No log',
loading_log: 'Loading Log...',
close: 'Close',
download_log: 'Download Log',
refresh_log: 'Refresh Log',
enter_full_screen: 'Enter full screen',
cancel_full_screen: 'Cancel full screen',
task_state: 'Task status',
mode_of_dependent: 'Mode of dependent',
open: 'Open',
project_name_required: 'Project name is required',
related_items: 'Related items',
project_name: 'Project Name',
project_tips: 'Please select project name'
},
task: {
task_name: 'Task Name',
task_type: 'Task Type',
create_task: 'Create Task',
workflow_instance: 'Workflow Instance',
workflow_name: 'Workflow Name',
workflow_name_tips: 'Please select workflow name',
workflow_state: 'Workflow State',
version: 'Version',
current_version: 'Current Version',
switch_version: 'Switch To This Version',
confirm_switch_version: 'Confirm Switch To This Version?',
description: 'Description',
move: 'Move',
upstream_tasks: 'Upstream Tasks',
executor: 'Executor',
node_type: 'Node Type',
state: 'State',
submit_time: 'Submit Time',
start_time: 'Start Time',
create_time: 'Create Time',
update_time: 'Update Time',
end_time: 'End Time',
duration: 'Duration',
retry_count: 'Retry Count',
dry_run_flag: 'Dry Run Flag',
host: 'Host',
operation: 'Operation',
edit: 'Edit',
delete: 'Delete',
delete_confirm: 'Delete?',
submitted_success: 'Submitted Success',
running_execution: 'Running Execution',
ready_pause: 'Ready Pause',
pause: 'Pause',
ready_stop: 'Ready Stop',
stop: 'Stop',
failure: 'Failure',
success: 'Success',
need_fault_tolerance: 'Need Fault Tolerance',
kill: 'Kill',
waiting_thread: 'Waiting Thread',
waiting_depend: 'Waiting Depend',
delay_execution: 'Delay Execution',
forced_success: 'Forced Success',
view_log: 'View Log',
download_log: 'Download Log',
refresh: 'Refresh',
serial_wait: 'Serial Wait'
},
dag: {
create: 'Create Workflow',
search: 'Search',
download_png: 'Download PNG',
fullscreen_open: 'Open Fullscreen',
fullscreen_close: 'Close Fullscreen',
save: 'Save',
close: 'Close',
format: 'Format',
refresh_dag_status: 'Refresh DAG status',
layout_type: 'Layout Type',
grid_layout: 'Grid',
dagre_layout: 'Dagre',
rows: 'Rows',
cols: 'Cols',
copy_success: 'Copy Success',
workflow_name: 'Workflow Name',
description: 'Description',
tenant: 'Tenant',
timeout_alert: 'Timeout Alert',
global_variables: 'Global Variables',
basic_info: 'Basic Information',
minute: 'Minute',
key: 'Key',
value: 'Value',
success: 'Success',
delete_cell: 'Delete selected edges and nodes',
online_directly: 'Whether to go online the process definition',
update_directly: 'Whether to update the process definition',
dag_name_empty: 'DAG graph name cannot be empty',
positive_integer: 'Please enter a positive integer greater than 0',
prop_empty: 'prop is empty',
prop_repeat: 'prop is repeat',
node_not_created: 'Failed to save node not created',
copy_name: 'Copy Name',
view_variables: 'View Variables',
startup_parameter: 'Startup Parameter'
},
node: {
current_node_settings: 'Current node settings',
instructions: 'Instructions',
view_history: 'View history',
view_log: 'View log',
enter_this_child_node: 'Enter this child node',
name: 'Node name',
name_tips: 'Please enter name (required)',
task_type: 'Task Type',
task_type_tips: 'Please select a task type (required)',
process_name: 'Process Name',
process_name_tips: 'Please select a process (required)',
child_node: 'Child Node',
enter_child_node: 'Enter child node',
run_flag: 'Run flag',
normal: 'Normal',
prohibition_execution: 'Prohibition execution',
description: 'Description',
description_tips: 'Please enter description',
task_priority: 'Task priority',
worker_group: 'Worker group',
worker_group_tips:
'The Worker group no longer exists, please select the correct Worker group!',
environment_name: 'Environment Name',
task_group_name: 'Task group name',
task_group_queue_priority: 'Priority',
number_of_failed_retries: 'Number of failed retries',
times: 'Times',
failed_retry_interval: 'Failed retry interval',
minute: 'Minute',
delay_execution_time: 'Delay execution time',
state: 'State',
branch_flow: 'Branch flow',
cancel: 'Cancel',
loading: 'Loading...',
confirm: 'Confirm',
success: 'Success',
failed: 'Failed',
backfill_tips:
'The newly created sub-Process has not yet been executed and cannot enter the sub-Process',
task_instance_tips:
'The task has not been executed and cannot enter the sub-Process',
branch_tips:
'Cannot select the same node for successful branch flow and failed branch flow',
timeout_alarm: 'Timeout alarm',
timeout_strategy: 'Timeout strategy',
timeout_strategy_tips: 'Timeout strategy must be selected',
timeout_failure: 'Timeout failure',
timeout_period: 'Timeout period',
timeout_period_tips: 'Timeout must be a positive integer',
script: 'Script',
script_tips: 'Please enter script(required)',
resources: 'Resources',
resources_tips: 'Please select resources',
non_resources_tips: 'Please delete all non-existent resources',
useless_resources_tips: 'Unauthorized or deleted resources',
custom_parameters: 'Custom Parameters',
copy_success: 'Copy success',
copy_failed: 'The browser does not support automatic copying',
prop_tips: 'prop(required)',
prop_repeat: 'prop is repeat',
value_tips: 'value(optional)',
value_required_tips: 'value(required)',
pre_tasks: 'Pre tasks',
program_type: 'Program Type',
spark_version: 'Spark Version',
main_class: 'Main Class',
main_class_tips: 'Please enter main class',
main_package: 'Main Package',
main_package_tips: 'Please enter main package',
deploy_mode: 'Deploy Mode',
app_name: 'App Name',
app_name_tips: 'Please enter app name(optional)',
driver_cores: 'Driver Cores',
driver_cores_tips: 'Please enter Driver cores',
driver_memory: 'Driver Memory',
driver_memory_tips: 'Please enter Driver memory',
executor_number: 'Executor Number',
executor_number_tips: 'Please enter Executor number',
executor_memory: 'Executor Memory',
executor_memory_tips: 'Please enter Executor memory',
executor_cores: 'Executor Cores',
executor_cores_tips: 'Please enter Executor cores',
main_arguments: 'Main Arguments',
main_arguments_tips: 'Please enter main arguments',
option_parameters: 'Option Parameters',
option_parameters_tips: 'Please enter option parameters',
positive_integer_tips: 'should be a positive integer',
flink_version: 'Flink Version',
job_manager_memory: 'JobManager Memory',
job_manager_memory_tips: 'Please enter JobManager memory',
task_manager_memory: 'TaskManager Memory',
task_manager_memory_tips: 'Please enter TaskManager memory',
slot_number: 'Slot Number',
slot_number_tips: 'Please enter Slot number',
parallelism: 'Parallelism',
custom_parallelism: 'Configure parallelism',
parallelism_tips: 'Please enter Parallelism',
parallelism_number_tips: 'Parallelism number should be positive integer',
parallelism_complement_tips:
'If there are a large number of tasks requiring complement, you can use the custom parallelism to ' +
'set the complement task thread to a reasonable value to avoid too large impact on the server.',
task_manager_number: 'TaskManager Number',
task_manager_number_tips: 'Please enter TaskManager number',
http_url: 'Http Url',
http_url_tips: 'Please Enter Http Url',
http_method: 'Http Method',
http_parameters: 'Http Parameters',
http_check_condition: 'Http Check Condition',
http_condition: 'Http Condition',
http_condition_tips: 'Please Enter Http Condition',
timeout_settings: 'Timeout Settings',
connect_timeout: 'Connect Timeout',
ms: 'ms',
socket_timeout: 'Socket Timeout',
status_code_default: 'Default response code 200',
status_code_custom: 'Custom response code',
body_contains: 'Content includes',
body_not_contains: 'Content does not contain',
http_parameters_position: 'Http Parameters Position',
target_task_name: 'Target Task Name',
target_task_name_tips: 'Please enter the Pigeon task name',
datasource_type: 'Datasource types',
datasource_instances: 'Datasource instances',
sql_type: 'SQL Type',
sql_type_query: 'Query',
sql_type_non_query: 'Non Query',
sql_statement: 'SQL Statement',
pre_sql_statement: 'Pre SQL Statement',
post_sql_statement: 'Post SQL Statement',
sql_input_placeholder: 'Please enter non-query sql.',
sql_empty_tips: 'The sql can not be empty.',
procedure_method: 'SQL Statement',
procedure_method_tips: 'Please enter the procedure script',
procedure_method_snippet:
'--Please enter the procedure script \n\n--call procedure:call <procedure-name>[(<arg1>,<arg2>, ...)]\n\n--call function:?= call <procedure-name>[(<arg1>,<arg2>, ...)]',
start: 'Start',
edit: 'Edit',
copy: 'Copy',
delete: 'Delete',
custom_job: 'Custom Job',
custom_script: 'Custom Script',
sqoop_job_name: 'Job Name',
sqoop_job_name_tips: 'Please enter Job Name(required)',
direct: 'Direct',
hadoop_custom_params: 'Hadoop Params',
sqoop_advanced_parameters: 'Sqoop Advanced Parameters',
data_source: 'Data Source',
type: 'Type',
datasource: 'Datasource',
datasource_tips: 'Please select the datasource',
model_type: 'ModelType',
form: 'Form',
table: 'Table',
table_tips: 'Please enter Mysql Table(required)',
column_type: 'ColumnType',
all_columns: 'All Columns',
some_columns: 'Some Columns',
column: 'Column',
column_tips: 'Please enter Columns (Comma separated)',
database: 'Database',
database_tips: 'Please enter Hive Database(required)',
hive_table_tips: 'Please enter Hive Table(required)',
hive_partition_keys: 'Hive partition Keys',
hive_partition_keys_tips: 'Please enter Hive Partition Keys',
hive_partition_values: 'Hive partition Values',
hive_partition_values_tips: 'Please enter Hive Partition Values',
export_dir: 'Export Dir',
export_dir_tips: 'Please enter Export Dir(required)',
sql_statement_tips: 'SQL Statement(required)',
map_column_hive: 'Map Column Hive',
map_column_java: 'Map Column Java',
data_target: 'Data Target',
create_hive_table: 'CreateHiveTable',
drop_delimiter: 'DropDelimiter',
over_write_src: 'OverWriteSrc',
hive_target_dir: 'Hive Target Dir',
hive_target_dir_tips: 'Please enter hive target dir',
replace_delimiter: 'ReplaceDelimiter',
replace_delimiter_tips: 'Please enter Replace Delimiter',
target_dir: 'Target Dir',
target_dir_tips: 'Please enter Target Dir(required)',
delete_target_dir: 'DeleteTargetDir',
compression_codec: 'CompressionCodec',
file_type: 'FileType',
fields_terminated: 'FieldsTerminated',
fields_terminated_tips: 'Please enter Fields Terminated',
lines_terminated: 'LinesTerminated',
lines_terminated_tips: 'Please enter Lines Terminated',
is_update: 'IsUpdate',
update_key: 'UpdateKey',
update_key_tips: 'Please enter Update Key',
update_mode: 'UpdateMode',
only_update: 'OnlyUpdate',
allow_insert: 'AllowInsert',
concurrency: 'Concurrency',
concurrency_tips: 'Please enter Concurrency',
sea_tunnel_master: 'Master',
sea_tunnel_master_url: 'Master URL',
sea_tunnel_queue: 'Queue',
sea_tunnel_master_url_tips:
'Please enter the master url, e.g., 127.0.0.1:7077',
switch_condition: 'Condition',
switch_branch_flow: 'Branch Flow',
and: 'and',
or: 'or',
datax_custom_template: 'Custom Template Switch',
datax_json_template: 'JSON',
datax_target_datasource_type: 'Target Datasource Type',
datax_target_database: 'Target Database',
datax_target_table: 'Target Table',
datax_target_table_tips: 'Please enter the name of the target table',
datax_target_database_pre_sql: 'Pre SQL Statement',
datax_target_database_post_sql: 'Post SQL Statement',
datax_non_query_sql_tips: 'Please enter the non-query sql statement',
datax_job_speed_byte: 'Speed(Byte count)',
datax_job_speed_byte_info: '(0 means unlimited)',
datax_job_speed_record: 'Speed(Record count)',
datax_job_speed_record_info: '(0 means unlimited)',
datax_job_runtime_memory: 'Runtime Memory Limits',
datax_job_runtime_memory_xms: 'Low Limit Value',
datax_job_runtime_memory_xmx: 'High Limit Value',
datax_job_runtime_memory_unit: 'G',
current_hour: 'CurrentHour',
last_1_hour: 'Last1Hour',
last_2_hour: 'Last2Hours',
last_3_hour: 'Last3Hours',
last_24_hour: 'Last24Hours',
today: 'today',
last_1_days: 'Last1Days',
last_2_days: 'Last2Days',
last_3_days: 'Last3Days',
last_7_days: 'Last7Days',
this_week: 'ThisWeek',
last_week: 'LastWeek',
last_monday: 'LastMonday',
last_tuesday: 'LastTuesday',
last_wednesday: 'LastWednesday',
last_thursday: 'LastThursday',
last_friday: 'LastFriday',
last_saturday: 'LastSaturday',
last_sunday: 'LastSunday',
this_month: 'ThisMonth',
last_month: 'LastMonth',
last_month_begin: 'LastMonthBegin',
last_month_end: 'LastMonthEnd',
month: 'month',
week: 'week',
day: 'day',
hour: 'hour',
add_dependency: 'Add dependency',
waiting_dependent_start: 'Waiting Dependent start',
check_interval: 'Check interval',
waiting_dependent_complete: 'Waiting Dependent complete',
rule_name: 'Rule Name',
null_check: 'NullCheck',
custom_sql: 'CustomSql',
multi_table_accuracy: 'MulTableAccuracy',
multi_table_value_comparison: 'MulTableCompare',
field_length_check: 'FieldLengthCheck',
uniqueness_check: 'UniquenessCheck',
regexp_check: 'RegexpCheck',
timeliness_check: 'TimelinessCheck',
enumeration_check: 'EnumerationCheck',
table_count_check: 'TableCountCheck',
src_connector_type: 'SrcConnType',
src_datasource_id: 'SrcSource',
src_table: 'SrcTable',
src_filter: 'SrcFilter',
src_field: 'SrcField',
statistics_name: 'ActualValName',
check_type: 'CheckType',
operator: 'Operator',
threshold: 'Threshold',
failure_strategy: 'FailureStrategy',
target_connector_type: 'TargetConnType',
target_datasource_id: 'TargetSourceId',
target_table: 'TargetTable',
target_filter: 'TargetFilter',
mapping_columns: 'OnClause',
statistics_execute_sql: 'ActualValExecSql',
comparison_name: 'ExceptedValName',
comparison_execute_sql: 'ExceptedValExecSql',
comparison_type: 'ExceptedValType',
writer_connector_type: 'WriterConnType',
writer_datasource_id: 'WriterSourceId',
target_field: 'TargetField',
field_length: 'FieldLength',
logic_operator: 'LogicOperator',
regexp_pattern: 'RegexpPattern',
deadline: 'Deadline',
datetime_format: 'DatetimeFormat',
enum_list: 'EnumList',
begin_time: 'BeginTime',
fix_value: 'FixValue',
required: 'required',
emr_flow_define_json: 'jobFlowDefineJson',
emr_flow_define_json_tips: 'Please enter the definition of the job flow.'
}
}
const security = {
tenant: {
tenant_manage: 'Tenant Manage',
create_tenant: 'Create Tenant',
search_tips: 'Please enter keywords',
tenant_code: 'Operating System Tenant',
description: 'Description',
queue_name: 'QueueName',
create_time: 'Create Time',
update_time: 'Update Time',
actions: 'Operation',
edit_tenant: 'Edit Tenant',
tenant_code_tips: 'Please enter the operating system tenant',
queue_name_tips: 'Please select queue',
description_tips: 'Please enter a description',
delete_confirm: 'Delete?',
edit: 'Edit',
delete: 'Delete'
},
alarm_group: {
create_alarm_group: 'Create Alarm Group',
edit_alarm_group: 'Edit Alarm Group',
search_tips: 'Please enter keywords',
alert_group_name_tips: 'Please enter your alert group name',
alarm_plugin_instance: 'Alarm Plugin Instance',
alarm_plugin_instance_tips: 'Please select alert plugin instance',
alarm_group_description_tips: 'Please enter your alarm group description',
alert_group_name: 'Alert Group Name',
alarm_group_description: 'Alarm Group Description',
create_time: 'Create Time',
update_time: 'Update Time',
operation: 'Operation',
delete_confirm: 'Delete?',
edit: 'Edit',
delete: 'Delete'
},
worker_group: {
create_worker_group: 'Create Worker Group',
edit_worker_group: 'Edit Worker Group',
search_tips: 'Please enter keywords',
operation: 'Operation',
delete_confirm: 'Delete?',
edit: 'Edit',
delete: 'Delete',
group_name: 'Group Name',
group_name_tips: 'Please enter your group name',
worker_addresses: 'Worker Addresses',
worker_addresses_tips: 'Please select worker addresses',
create_time: 'Create Time',
update_time: 'Update Time'
},
yarn_queue: {
create_queue: 'Create Queue',
edit_queue: 'Edit Queue',
search_tips: 'Please enter keywords',
queue_name: 'Queue Name',
queue_value: 'Queue Value',
create_time: 'Create Time',
update_time: 'Update Time',
operation: 'Operation',
edit: 'Edit',
queue_name_tips: 'Please enter your queue name',
queue_value_tips: 'Please enter your queue value'
},
environment: {
create_environment: 'Create Environment',
edit_environment: 'Edit Environment',
search_tips: 'Please enter keywords',
edit: 'Edit',
delete: 'Delete',
environment_name: 'Environment Name',
environment_config: 'Environment Config',
environment_desc: 'Environment Desc',
worker_groups: 'Worker Groups',
create_time: 'Create Time',
update_time: 'Update Time',
operation: 'Operation',
delete_confirm: 'Delete?',
environment_name_tips: 'Please enter your environment name',
environment_config_tips: 'Please enter your environment config',
environment_description_tips: 'Please enter your environment description',
worker_group_tips: 'Please select worker group'
},
token: {
create_token: 'Create Token',
edit_token: 'Edit Token',
search_tips: 'Please enter keywords',
user: 'User',
user_tips: 'Please select user',
token: 'Token',
token_tips: 'Please enter your token',
expiration_time: 'Expiration Time',
expiration_time_tips: 'Please select expiration time',
create_time: 'Create Time',
update_time: 'Update Time',
operation: 'Operation',
edit: 'Edit',
delete: 'Delete',
delete_confirm: 'Delete?'
},
user: {
user_manage: 'User Manage',
create_user: 'Create User',
update_user: 'Update User',
delete_user: 'Delete User',
delete_confirm: 'Are you sure to delete?',
delete_confirm_tip:
'Deleting user is a dangerous operation,please be careful',
project: 'Project',
resource: 'Resource',
file_resource: 'File Resource',
udf_resource: 'UDF Resource',
datasource: 'Datasource',
udf: 'UDF Function',
authorize_project: 'Project Authorize',
authorize_resource: 'Resource Authorize',
authorize_datasource: 'Datasource Authorize',
authorize_udf: 'UDF Function Authorize',
username: 'Username',
username_exists: 'The username already exists',
username_tips: 'Please enter username',
user_password: 'Password',
user_password_tips:
'Please enter a password containing letters and numbers with a length between 6 and 20',
user_type: 'User Type',
ordinary_user: 'Ordinary users',
administrator: 'Administrator',
tenant_code: 'Tenant',
tenant_id_tips: 'Please select tenant',
queue: 'Queue',
queue_tips: 'Please select a queue',
email: 'Email',
email_empty_tips: 'Please enter email',
emial_correct_tips: 'Please enter the correct email format',
phone: 'Phone',
phone_empty_tips: 'Please enter phone number',
phone_correct_tips: 'Please enter the correct mobile phone format',
state: 'State',
state_enabled: 'Enabled',
state_disabled: 'Disabled',
create_time: 'Create Time',
update_time: 'Update Time',
operation: 'Operation',
edit: 'Edit',
delete: 'Delete',
authorize: 'Authorize',
save_error_msg: 'Failed to save, please retry',
delete_error_msg: 'Failed to delete, please retry',
auth_error_msg: 'Failed to authorize, please retry',
auth_success_msg: 'Authorize succeeded',
enable: 'Enable',
disable: 'Disable'
},
alarm_instance: {
search_input_tips: 'Please input the keywords',
alarm_instance_manage: 'Alarm instance manage',
alarm_instance: 'Alarm Instance',
alarm_instance_name: 'Alarm instance name',
alarm_instance_name_tips: 'Please enter alarm plugin instance name',
alarm_plugin_name: 'Alarm plugin name',
create_time: 'Create Time',
update_time: 'Update Time',
operation: 'Operation',
edit: 'Edit',
delete: 'Delete',
confirm: 'Confirm',
cancel: 'Cancel',
submit: 'Submit',
create: 'Create',
select_plugin: 'Select plugin',
select_plugin_tips: 'Select Alarm plugin',
instance_parameter_exception: 'Instance parameter exception',
WebHook: 'WebHook',
webHook: 'WebHook',
IsEnableProxy: 'Enable Proxy',
Proxy: 'Proxy',
Port: 'Port',
User: 'User',
corpId: 'CorpId',
secret: 'Secret',
Secret: 'Secret',
users: 'Users',
userSendMsg: 'UserSendMsg',
agentId: 'AgentId',
showType: 'Show Type',
receivers: 'Receivers',
receiverCcs: 'ReceiverCcs',
serverHost: 'SMTP Host',
serverPort: 'SMTP Port',
sender: 'Sender',
enableSmtpAuth: 'SMTP Auth',
Password: 'Password',
starttlsEnable: 'SMTP STARTTLS Enable',
sslEnable: 'SMTP SSL Enable',
smtpSslTrust: 'SMTP SSL Trust',
url: 'URL',
requestType: 'Request Type',
headerParams: 'Headers',
bodyParams: 'Body',
contentField: 'Content Field',
Keyword: 'Keyword',
userParams: 'User Params',
path: 'Script Path',
type: 'Type',
sendType: 'Send Type',
username: 'Username',
botToken: 'Bot Token',
chatId: 'Channel Chat Id',
parseMode: 'Parse Mode'
},
k8s_namespace: {
create_namespace: 'Create Namespace',
edit_namespace: 'Edit Namespace',
search_tips: 'Please enter keywords',
k8s_namespace: 'K8S Namespace',
k8s_namespace_tips: 'Please enter k8s namespace',
k8s_cluster: 'K8S Cluster',
k8s_cluster_tips: 'Please enter k8s cluster',
owner: 'Owner',
owner_tips: 'Please enter owner',
tag: 'Tag',
tag_tips: 'Please enter tag',
limit_cpu: 'Limit CPU',
limit_cpu_tips: 'Please enter limit CPU',
limit_memory: 'Limit Memory',
limit_memory_tips: 'Please enter limit memory',
create_time: 'Create Time',
update_time: 'Update Time',
operation: 'Operation',
edit: 'Edit',
delete: 'Delete',
delete_confirm: 'Delete?'
}
}
const datasource = {
datasource: 'DataSource',
create_datasource: 'Create DataSource',
search_input_tips: 'Please input the keywords',
datasource_name: 'Datasource Name',
datasource_name_tips: 'Please enter datasource name',
datasource_user_name: 'Owner',
datasource_type: 'Datasource Type',
datasource_parameter: 'Datasource Parameter',
description: 'Description',
description_tips: 'Please enter description',
create_time: 'Create Time',
update_time: 'Update Time',
operation: 'Operation',
click_to_view: 'Click to view',
delete: 'Delete',
confirm: 'Confirm',
cancel: 'Cancel',
create: 'Create',
edit: 'Edit',
success: 'Success',
test_connect: 'Test Connect',
ip: 'IP',
ip_tips: 'Please enter IP',
port: 'Port',
port_tips: 'Please enter port',
database_name: 'Database Name',
database_name_tips: 'Please enter database name',
oracle_connect_type: 'ServiceName or SID',
oracle_connect_type_tips: 'Please select serviceName or SID',
oracle_service_name: 'ServiceName',
oracle_sid: 'SID',
jdbc_connect_parameters: 'jdbc connect parameters',
principal_tips: 'Please enter Principal',
krb5_conf_tips:
'Please enter the kerberos authentication parameter java.security.krb5.conf',
keytab_username_tips:
'Please enter the kerberos authentication parameter login.user.keytab.username',
keytab_path_tips:
'Please enter the kerberos authentication parameter login.user.keytab.path',
format_tips: 'Please enter format',
connection_parameter: 'connection parameter',
user_name: 'User Name',
user_name_tips: 'Please enter your username',
user_password: 'Password',
user_password_tips: 'Please enter your password'
}
const data_quality = {
task_result: {
task_name: 'Task Name',
workflow_instance: 'Workflow Instance',
rule_type: 'Rule Type',
rule_name: 'Rule Name',
state: 'State',
actual_value: 'Actual Value',
excepted_value: 'Excepted Value',
check_type: 'Check Type',
operator: 'Operator',
threshold: 'Threshold',
failure_strategy: 'Failure Strategy',
excepted_value_type: 'Excepted Value Type',
error_output_path: 'Error Output Path',
username: 'Username',
create_time: 'Create Time',
update_time: 'Update Time',
undone: 'Undone',
success: 'Success',
failure: 'Failure',
single_table: 'Single Table',
single_table_custom_sql: 'Single Table Custom Sql',
multi_table_accuracy: 'Multi Table Accuracy',
multi_table_comparison: 'Multi Table Comparison',
expected_and_actual_or_expected: '(Expected - Actual) / Expected x 100%',
expected_and_actual: 'Expected - Actual',
actual_and_expected: 'Actual - Expected',
actual_or_expected: 'Actual / Expected x 100%'
},
rule: {
actions: 'Actions',
name: 'Rule Name',
type: 'Rule Type',
username: 'User Name',
create_time: 'Create Time',
update_time: 'Update Time',
input_item: 'Rule input item',
view_input_item: 'View input items',
input_item_title: 'Input item title',
input_item_placeholder: 'Input item placeholder',
input_item_type: 'Input item type',
src_connector_type: 'SrcConnType',
src_datasource_id: 'SrcSource',
src_table: 'SrcTable',
src_filter: 'SrcFilter',
src_field: 'SrcField',
statistics_name: 'ActualValName',
check_type: 'CheckType',
operator: 'Operator',
threshold: 'Threshold',
failure_strategy: 'FailureStrategy',
target_connector_type: 'TargetConnType',
target_datasource_id: 'TargetSourceId',
target_table: 'TargetTable',
target_filter: 'TargetFilter',
mapping_columns: 'OnClause',
statistics_execute_sql: 'ActualValExecSql',
comparison_name: 'ExceptedValName',
comparison_execute_sql: 'ExceptedValExecSql',
comparison_type: 'ExceptedValType',
writer_connector_type: 'WriterConnType',
writer_datasource_id: 'WriterSourceId',
target_field: 'TargetField',
field_length: 'FieldLength',
logic_operator: 'LogicOperator',
regexp_pattern: 'RegexpPattern',
deadline: 'Deadline',
datetime_format: 'DatetimeFormat',
enum_list: 'EnumList',
begin_time: 'BeginTime',
fix_value: 'FixValue',
null_check: 'NullCheck',
custom_sql: 'Custom Sql',
single_table: 'Single Table',
single_table_custom_sql: 'Single Table Custom Sql',
multi_table_accuracy: 'Multi Table Accuracy',
multi_table_value_comparison: 'Multi Table Compare',
field_length_check: 'FieldLengthCheck',
uniqueness_check: 'UniquenessCheck',
regexp_check: 'RegexpCheck',
timeliness_check: 'TimelinessCheck',
enumeration_check: 'EnumerationCheck',
table_count_check: 'TableCountCheck',
All: 'All',
FixValue: 'FixValue',
DailyAvg: 'DailyAvg',
WeeklyAvg: 'WeeklyAvg',
MonthlyAvg: 'MonthlyAvg',
Last7DayAvg: 'Last7DayAvg',
Last30DayAvg: 'Last30DayAvg',
SrcTableTotalRows: 'SrcTableTotalRows',
TargetTableTotalRows: 'TargetTableTotalRows'
}
}
const crontab = {
second: 'second',
minute: 'minute',
hour: 'hour',
day: 'day',
month: 'month',
year: 'year',
monday: 'Monday',
tuesday: 'Tuesday',
wednesday: 'Wednesday',
thursday: 'Thursday',
friday: 'Friday',
saturday: 'Saturday',
sunday: 'Sunday',
every_second: 'Every second',
every: 'Every',
second_carried_out: 'second carried out',
second_start: 'Start',
specific_second: 'Specific second(multiple)',
specific_second_tip: 'Please enter a specific second',
cycle_from: 'Cycle from',
to: 'to',
every_minute: 'Every minute',
minute_carried_out: 'minute carried out',
minute_start: 'Start',
specific_minute: 'Specific minute(multiple)',
specific_minute_tip: 'Please enter a specific minute',
every_hour: 'Every hour',
hour_carried_out: 'hour carried out',
hour_start: 'Start',
specific_hour: 'Specific hour(multiple)',
specific_hour_tip: 'Please enter a specific hour',
every_day: 'Every day',
week_carried_out: 'week carried out',
start: 'Start',
day_carried_out: 'day carried out',
day_start: 'Start',
specific_week: 'Specific day of the week(multiple)',
specific_week_tip: 'Please enter a specific week',
specific_day: 'Specific days(multiple)',
specific_day_tip: 'Please enter a days',
last_day_of_month: 'On the last day of the month',
last_work_day_of_month: 'On the last working day of the month',
last_of_month: 'At the last of this month',
before_end_of_month: 'Before the end of this month',
recent_business_day_to_month:
'The most recent business day (Monday to Friday) to this month',
in_this_months: 'In this months',
every_month: 'Every month',
month_carried_out: 'month carried out',
month_start: 'Start',
specific_month: 'Specific months(multiple)',
specific_month_tip: 'Please enter a months',
every_year: 'Every year',
year_carried_out: 'year carried out',
year_start: 'Start',
specific_year: 'Specific year(multiple)',
specific_year_tip: 'Please enter a year',
one_hour: 'hour',
one_day: 'day'
}
export default {
login,
modal,
theme,
userDropdown,
menu,
home,
password,
profile,
monitor,
resource,
project,
security,
datasource,
data_quality,
crontab
}
|
closed
|
apache/dolphinscheduler
|
https://github.com/apache/dolphinscheduler
| 8,971 |
[Bug][UI Next][V1.0.0-Alpha] The table action button in the data source center lacks a floating prompt.
|
### Search before asking
- [X] I had searched in the [issues](https://github.com/apache/dolphinscheduler/issues?q=is%3Aissue) and found no similar issues.
### What happened

### What you expected to happen
The table action button in the data source center lacks a floating prompt.
### How to reproduce
Data source center table operation button adds floating prompt
### Anything else
_No response_
### Version
dev
### Are you willing to submit PR?
- [X] Yes I am willing to submit a PR!
### Code of Conduct
- [X] I agree to follow this project's [Code of Conduct](https://www.apache.org/foundation/policies/conduct)
|
https://github.com/apache/dolphinscheduler/issues/8971
|
https://github.com/apache/dolphinscheduler/pull/8977
|
045ef753d1276aafe938fa319b16f444be783845
|
a485771a738397dc8ced69636a3098eb89b47741
| 2022-03-17T10:12:23Z |
java
| 2022-03-18T06:29:51Z |
dolphinscheduler-ui-next/src/locales/modules/zh_CN.ts
|
/*
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership.
* The ASF licenses this file to You under the Apache License, Version 2.0
* (the "License"); you may not use this file except in compliance with
* the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
const login = {
test: '测试',
userName: '用户名',
userName_tips: '请输入用户名',
userPassword: '密码',
userPassword_tips: '请输入密码',
login: '登录'
}
const modal = {
cancel: '取消',
confirm: '确定'
}
const theme = {
light: '浅色',
dark: '深色'
}
const userDropdown = {
profile: '用户信息',
password: '密码管理',
logout: '退出登录'
}
const menu = {
home: '首页',
project: '项目管理',
resources: '资源中心',
datasource: '数据源中心',
monitor: '监控中心',
security: '安全中心',
project_overview: '项目概览',
workflow_relation: '工作流关系',
workflow: '工作流',
workflow_definition: '工作流定义',
workflow_instance: '工作流实例',
task: '任务',
task_instance: '任务实例',
task_definition: '任务定义',
file_manage: '文件管理',
udf_manage: 'UDF管理',
resource_manage: '资源管理',
function_manage: '函数管理',
service_manage: '服务管理',
master: 'Master',
worker: 'Worker',
db: 'DB',
statistical_manage: '统计管理',
statistics: 'Statistics',
audit_log: '审计日志',
tenant_manage: '租户管理',
user_manage: '用户管理',
alarm_group_manage: '告警组管理',
alarm_instance_manage: '告警实例管理',
worker_group_manage: 'Worker分组管理',
yarn_queue_manage: 'Yarn队列管理',
environment_manage: '环境管理',
k8s_namespace_manage: 'K8S命名空间管理',
token_manage: '令牌管理',
task_group_manage: '任务组管理',
task_group_option: '任务组配置',
task_group_queue: '任务组队列',
data_quality: '数据质量',
task_result: '任务结果',
rule: '规则管理'
}
const home = {
task_state_statistics: '任务状态统计',
process_state_statistics: '流程状态统计',
process_definition_statistics: '流程定义统计',
number: '数量',
state: '状态',
submitted_success: '提交成功',
running_execution: '正在运行',
ready_pause: '准备暂停',
pause: '暂停',
ready_stop: '准备停止',
stop: '停止',
failure: '失败',
success: '成功',
need_fault_tolerance: '需要容错',
kill: 'KILL',
waiting_thread: '等待线程',
waiting_depend: '等待依赖完成',
delay_execution: '延时执行',
forced_success: '强制成功',
serial_wait: '串行等待',
ready_block: '准备阻断',
block: '阻断'
}
const password = {
edit_password: '修改密码',
password: '密码',
confirm_password: '确认密码',
password_tips: '请输入密码',
confirm_password_tips: '请输入确认密码',
two_password_entries_are_inconsistent: '两次密码输入不一致',
submit: '提交'
}
const profile = {
profile: '用户信息',
edit: '编辑',
username: '用户名',
email: '邮箱',
phone: '手机',
state: '状态',
permission: '权限',
create_time: '创建时间',
update_time: '更新时间',
administrator: '管理员',
ordinary_user: '普通用户',
edit_profile: '编辑用户',
username_tips: '请输入用户名',
email_tips: '请输入邮箱',
email_correct_tips: '请输入正确格式的邮箱',
phone_tips: '请输入手机号',
state_tips: '请选择状态',
enable: '启用',
disable: '禁用',
timezone_success: '时区更新成功',
please_select_timezone: '请选择时区'
}
const monitor = {
master: {
cpu_usage: '处理器使用量',
memory_usage: '内存使用量',
load_average: '平均负载量',
create_time: '创建时间',
last_heartbeat_time: '最后心跳时间',
directory_detail: '目录详情',
host: '主机',
directory: '注册目录'
},
worker: {
cpu_usage: '处理器使用量',
memory_usage: '内存使用量',
load_average: '平均负载量',
create_time: '创建时间',
last_heartbeat_time: '最后心跳时间',
directory_detail: '目录详情',
host: '主机',
directory: '注册目录'
},
db: {
health_state: '健康状态',
max_connections: '最大连接数',
threads_connections: '当前连接数',
threads_running_connections: '数据库当前活跃连接数'
},
statistics: {
command_number_of_waiting_for_running: '待执行的命令数',
failure_command_number: '执行失败的命令数',
tasks_number_of_waiting_running: '待运行任务数',
task_number_of_ready_to_kill: '待杀死任务数'
},
audit_log: {
user_name: '用户名称',
resource_type: '资源类型',
project_name: '项目名称',
operation_type: '操作类型',
create_time: '创建时间',
start_time: '开始时间',
end_time: '结束时间',
user_audit: '用户管理审计',
project_audit: '项目管理审计',
create: '创建',
update: '更新',
delete: '删除',
read: '读取'
}
}
const resource = {
file: {
file_manage: '文件管理',
create_folder: '创建文件夹',
create_file: '创建文件',
upload_files: '上传文件',
enter_keyword_tips: '请输入关键词',
name: '名称',
user_name: '所属用户',
whether_directory: '是否文件夹',
file_name: '文件名称',
description: '描述',
size: '大小',
update_time: '更新时间',
operation: '操作',
edit: '编辑',
rename: '重命名',
download: '下载',
delete: '删除',
yes: '是',
no: '否',
folder_name: '文件夹名称',
enter_name_tips: '请输入名称',
enter_description_tips: '请输入描述',
enter_content_tips: '请输入资源内容',
enter_suffix_tips: '请输入文件后缀',
file_format: '文件格式',
file_content: '文件内容',
delete_confirm: '确定删除吗?',
confirm: '确定',
cancel: '取消',
success: '成功',
file_details: '文件详情',
return: '返回',
save: '保存'
},
udf: {
udf_resources: 'UDF资源',
create_folder: '创建文件夹',
upload_udf_resources: '上传UDF资源',
udf_source_name: 'UDF资源名称',
whether_directory: '是否文件夹',
file_name: '文件名称',
file_size: '文件大小',
description: '描述',
create_time: '创建时间',
update_time: '更新时间',
operation: '操作',
yes: '是',
no: '否',
edit: '编辑',
download: '下载',
delete: '删除',
success: '成功',
folder_name: '文件夹名称',
upload: '上传',
upload_files: '上传文件',
file_upload: '文件上传',
delete_confirm: '确定删除吗?',
enter_keyword_tips: '请输入关键词',
enter_name_tips: '请输入名称',
enter_description_tips: '请输入描述'
},
function: {
udf_function: 'UDF函数',
create_udf_function: '创建UDF函数',
edit_udf_function: '编辑UDF函数',
udf_function_name: 'UDF函数名称',
class_name: '类名',
type: '类型',
description: '描述',
jar_package: 'jar包',
update_time: '更新时间',
operation: '操作',
rename: '重命名',
edit: '编辑',
delete: '删除',
success: '成功',
package_name: '包名类名',
udf_resources: 'UDF资源',
instructions: '使用说明',
upload_resources: '上传资源',
udf_resources_directory: 'UDF资源目录',
delete_confirm: '确定删除吗?',
enter_keyword_tips: '请输入关键词',
enter_udf_unction_name_tips: '请输入UDF函数名称',
enter_package_name_tips: '请输入包名类名',
enter_select_udf_resources_tips: '请选择UDF资源',
enter_select_udf_resources_directory_tips: '请选择UDF资源目录',
enter_instructions_tips: '请输入使用说明',
enter_name_tips: '请输入名称',
enter_description_tips: '请输入描述'
},
task_group_option: {
manage: '任务组管理',
option: '任务组配置',
create: '创建任务组',
edit: '编辑任务组',
delete: '删除任务组',
view_queue: '查看任务组队列',
switch_status: '切换任务组状态',
code: '任务组编号',
name: '任务组名称',
project_name: '项目名称',
resource_pool_size: '资源容量',
resource_used_pool_size: '已用资源',
desc: '描述信息',
status: '任务组状态',
enable_status: '启用',
disable_status: '不可用',
please_enter_name: '请输入任务组名称',
please_enter_desc: '请输入任务组描述',
please_enter_resource_pool_size: '请输入资源容量大小',
resource_pool_size_be_a_number: '资源容量大小必须大于等于1的数值',
please_select_project: '请选择项目',
create_time: '创建时间',
update_time: '更新时间',
actions: '操作',
please_enter_keywords: '请输入搜索关键词'
},
task_group_queue: {
actions: '操作',
task_name: '任务名称',
task_group_name: '任务组名称',
project_name: '项目名称',
process_name: '工作流名称',
process_instance_name: '工作流实例',
queue: '任务组队列',
priority: '组内优先级',
priority_be_a_number: '优先级必须是大于等于0的数值',
force_starting_status: '是否强制启动',
in_queue: '是否排队中',
task_status: '任务状态',
view_task_group_queue: '查看任务组队列',
the_status_of_waiting: '等待入队',
the_status_of_queuing: '排队中',
the_status_of_releasing: '已释放',
modify_priority: '修改优先级',
start_task: '强制启动',
priority_not_empty: '优先级不能为空',
priority_must_be_number: '优先级必须是数值',
please_select_task_name: '请选择节点名称',
create_time: '创建时间',
update_time: '更新时间',
edit_priority: '修改优先级'
}
}
const project = {
list: {
create_project: '创建项目',
edit_project: '编辑项目',
project_list: '项目列表',
project_tips: '请输入项目名称',
description_tips: '请输入项目描述',
username_tips: '请输入所属用户',
project_name: '项目名称',
project_description: '项目描述',
owned_users: '所属用户',
workflow_define_count: '工作流定义数',
process_instance_running_count: '正在运行的流程数',
description: '描述',
create_time: '创建时间',
update_time: '更新时间',
operation: '操作',
edit: '编辑',
delete: '删除',
confirm: '确定',
cancel: '取消',
delete_confirm: '确定删除吗?'
},
workflow: {
workflow_relation: '工作流关系',
create_workflow: '创建工作流',
import_workflow: '导入工作流',
workflow_name: '工作流名称',
current_selection: '当前选择',
online: '已上线',
offline: '已下线',
refresh: '刷新',
show_hide_label: '显示 / 隐藏标签',
workflow_offline: '工作流下线',
schedule_offline: '调度下线',
schedule_start_time: '定时开始时间',
schedule_end_time: '定时结束时间',
crontab_expression: 'Crontab',
workflow_publish_status: '工作流上线状态',
schedule_publish_status: '定时状态',
workflow_definition: '工作流定义',
workflow_instance: '工作流实例',
status: '状态',
create_time: '创建时间',
update_time: '更新时间',
description: '描述',
create_user: '创建用户',
modify_user: '修改用户',
operation: '操作',
edit: '编辑',
confirm: '确定',
cancel: '取消',
start: '运行',
timing: '定时',
timezone: '时区',
up_line: '上线',
down_line: '下线',
copy_workflow: '复制工作流',
cron_manage: '定时管理',
delete: '删除',
tree_view: '工作流树形图',
tree_limit: '限制大小',
export: '导出',
batch_copy: '批量复制',
version_info: '版本信息',
version: '版本',
file_upload: '文件上传',
upload_file: '上传文件',
upload: '上传',
file_name: '文件名称',
success: '成功',
set_parameters_before_starting: '启动前请先设置参数',
set_parameters_before_timing: '定时前请先设置参数',
start_and_stop_time: '起止时间',
next_five_execution_times: '接下来五次执行时间',
execute_time: '执行时间',
failure_strategy: '失败策略',
notification_strategy: '通知策略',
workflow_priority: '流程优先级',
worker_group: 'Worker分组',
environment_name: '环境名称',
alarm_group: '告警组',
complement_data: '补数',
startup_parameter: '启动参数',
whether_dry_run: '是否空跑',
continue: '继续',
end: '结束',
none_send: '都不发',
success_send: '成功发',
failure_send: '失败发',
all_send: '成功或失败都发',
whether_complement_data: '是否是补数',
schedule_date: '调度日期',
mode_of_execution: '执行方式',
serial_execution: '串行执行',
parallel_execution: '并行执行',
parallelism: '并行度',
custom_parallelism: '自定义并行度',
please_enter_parallelism: '请输入并行度',
please_choose: '请选择',
start_time: '开始时间',
end_time: '结束时间',
crontab: 'Crontab',
delete_confirm: '确定删除吗?',
enter_name_tips: '请输入名称',
switch_version: '切换到该版本',
confirm_switch_version: '确定切换到该版本吗?',
current_version: '当前版本',
run_type: '运行类型',
scheduling_time: '调度时间',
duration: '运行时长',
run_times: '运行次数',
fault_tolerant_sign: '容错标识',
dry_run_flag: '空跑标识',
executor: '执行用户',
host: 'Host',
start_process: '启动工作流',
execute_from_the_current_node: '从当前节点开始执行',
recover_tolerance_fault_process: '恢复被容错的工作流',
resume_the_suspension_process: '恢复运行流程',
execute_from_the_failed_nodes: '从失败节点开始执行',
scheduling_execution: '调度执行',
rerun: '重跑',
stop: '停止',
pause: '暂停',
recovery_waiting_thread: '恢复等待线程',
recover_serial_wait: '串行恢复',
recovery_suspend: '恢复运行',
recovery_failed: '恢复失败',
gantt: '甘特图',
name: '名称',
all_status: '全部状态',
submit_success: '提交成功',
running: '正在运行',
ready_to_pause: '准备暂停',
ready_to_stop: '准备停止',
failed: '失败',
need_fault_tolerance: '需要容错',
kill: 'Kill',
waiting_for_thread: '等待线程',
waiting_for_dependence: '等待依赖',
waiting_for_dependency_to_complete: '等待依赖完成',
delay_execution: '延时执行',
forced_success: '强制成功',
serial_wait: '串行等待',
executing: '正在执行',
startup_type: '启动类型',
complement_range: '补数范围',
parameters_variables: '参数变量',
global_parameters: '全局参数',
local_parameters: '局部参数',
type: '类型',
retry_count: '重试次数',
submit_time: '提交时间',
refresh_status_succeeded: '刷新状态成功',
view_log: '查看日志',
update_log_success: '更新日志成功',
no_more_log: '暂无更多日志',
no_log: '暂无日志',
loading_log: '正在努力请求日志中...',
close: '关闭',
download_log: '下载日志',
refresh_log: '刷新日志',
enter_full_screen: '进入全屏',
cancel_full_screen: '取消全屏',
task_state: '任务状态',
mode_of_dependent: '依赖模式',
open: '打开',
project_name_required: '项目名称必填',
related_items: '关联项目',
project_name: '项目名称',
project_tips: '请选择项目'
},
task: {
task_name: '任务名称',
task_type: '任务类型',
create_task: '创建任务',
workflow_instance: '工作流实例',
workflow_name: '工作流名称',
workflow_name_tips: '请选择工作流名称',
workflow_state: '工作流状态',
version: '版本',
current_version: '当前版本',
switch_version: '切换到该版本',
confirm_switch_version: '确定切换到该版本吗?',
description: '描述',
move: '移动',
upstream_tasks: '上游任务',
executor: '执行用户',
node_type: '节点类型',
state: '状态',
submit_time: '提交时间',
start_time: '开始时间',
create_time: '创建时间',
update_time: '更新时间',
end_time: '结束时间',
duration: '运行时间',
retry_count: '重试次数',
dry_run_flag: '空跑标识',
host: '主机',
operation: '操作',
edit: '编辑',
delete: '删除',
delete_confirm: '确定删除吗?',
submitted_success: '提交成功',
running_execution: '正在运行',
ready_pause: '准备暂停',
pause: '暂停',
ready_stop: '准备停止',
stop: '停止',
failure: '失败',
success: '成功',
need_fault_tolerance: '需要容错',
kill: 'KILL',
waiting_thread: '等待线程',
waiting_depend: '等待依赖完成',
delay_execution: '延时执行',
forced_success: '强制成功',
view_log: '查看日志',
download_log: '下载日志',
refresh: '刷新',
serial_wait: '串行等待'
},
dag: {
create: '创建工作流',
search: '搜索',
download_png: '下载工作流图片',
fullscreen_open: '全屏',
fullscreen_close: '退出全屏',
save: '保存',
close: '关闭',
format: '格式化',
refresh_dag_status: '刷新DAG状态',
layout_type: '布局类型',
grid_layout: '网格布局',
dagre_layout: '层次布局',
rows: '行数',
cols: '列数',
copy_success: '复制成功',
workflow_name: '工作流名称',
description: '描述',
tenant: '租户',
timeout_alert: '超时告警',
global_variables: '全局变量',
basic_info: '基本信息',
minute: '分',
key: '键',
value: '值',
success: '成功',
delete_cell: '删除选中的线或节点',
online_directly: '是否上线流程定义',
update_directly: '是否更新流程定义',
dag_name_empty: 'DAG图名称不能为空',
positive_integer: '请输入大于 0 的正整数',
prop_empty: '自定义参数prop不能为空',
prop_repeat: 'prop中有重复',
node_not_created: '未创建节点保存失败',
copy_name: '复制名称',
view_variables: '查看变量',
startup_parameter: '启动参数'
},
node: {
current_node_settings: '当前节点设置',
instructions: '使用说明',
view_history: '查看历史',
view_log: '查看日志',
enter_this_child_node: '进入该子节点',
name: '节点名称',
name_tips: '请输入名称(必填)',
task_type: '任务类型',
task_type_tips: '请选择任务类型(必选)',
process_name: '工作流名称',
process_name_tips: '请选择工作流(必选)',
child_node: '子节点',
enter_child_node: '进入该子节点',
run_flag: '运行标志',
normal: '正常',
prohibition_execution: '禁止执行',
description: '描述',
description_tips: '请输入描述',
task_priority: '任务优先级',
worker_group: 'Worker分组',
worker_group_tips: '该Worker分组已经不存在,请选择正确的Worker分组!',
environment_name: '环境名称',
task_group_name: '任务组名称',
task_group_queue_priority: '组内优先级',
number_of_failed_retries: '失败重试次数',
times: '次',
failed_retry_interval: '失败重试间隔',
minute: '分',
delay_execution_time: '延时执行时间',
state: '状态',
branch_flow: '分支流转',
cancel: '取消',
loading: '正在努力加载中...',
confirm: '确定',
success: '成功',
failed: '失败',
backfill_tips: '新创建子工作流还未执行,不能进入子工作流',
task_instance_tips: '该任务还未执行,不能进入子工作流',
branch_tips: '成功分支流转和失败分支流转不能选择同一个节点',
timeout_alarm: '超时告警',
timeout_strategy: '超时策略',
timeout_strategy_tips: '超时策略必须选一个',
timeout_failure: '超时失败',
timeout_period: '超时时长',
timeout_period_tips: '超时时长必须为正整数',
script: '脚本',
script_tips: '请输入脚本(必填)',
resources: '资源',
resources_tips: '请选择资源',
no_resources_tips: '请删除所有未授权或已删除资源',
useless_resources_tips: '未授权或已删除资源',
custom_parameters: '自定义参数',
copy_failed: '该浏览器不支持自动复制',
prop_tips: 'prop(必填)',
prop_repeat: 'prop中有重复',
value_tips: 'value(选填)',
value_required_tips: 'value(必填)',
pre_tasks: '前置任务',
program_type: '程序类型',
spark_version: 'Spark版本',
main_class: '主函数的Class',
main_class_tips: '请填写主函数的Class',
main_package: '主程序包',
main_package_tips: '请选择主程序包',
deploy_mode: '部署方式',
app_name: '任务名称',
app_name_tips: '请输入任务名称(选填)',
driver_cores: 'Driver核心数',
driver_cores_tips: '请输入Driver核心数',
driver_memory: 'Driver内存数',
driver_memory_tips: '请输入Driver内存数',
executor_number: 'Executor数量',
executor_number_tips: '请输入Executor数量',
executor_memory: 'Executor内存数',
executor_memory_tips: '请输入Executor内存数',
executor_cores: 'Executor核心数',
executor_cores_tips: '请输入Executor核心数',
main_arguments: '主程序参数',
main_arguments_tips: '请输入主程序参数',
option_parameters: '选项参数',
option_parameters_tips: '请输入选项参数',
positive_integer_tips: '应为正整数',
flink_version: 'Flink版本',
job_manager_memory: 'JobManager内存数',
job_manager_memory_tips: '请输入JobManager内存数',
task_manager_memory: 'TaskManager内存数',
task_manager_memory_tips: '请输入TaskManager内存数',
slot_number: 'Slot数量',
slot_number_tips: '请输入Slot数量',
parallelism: '并行度',
custom_parallelism: '自定义并行度',
parallelism_tips: '请输入并行度',
parallelism_number_tips: '并行度必须为正整数',
parallelism_complement_tips:
'如果存在大量任务需要补数时,可以利用自定义并行度将补数的任务线程设置成合理的数值,避免对服务器造成过大的影响',
task_manager_number: 'TaskManager数量',
task_manager_number_tips: '请输入TaskManager数量',
http_url: '请求地址',
http_url_tips: '请填写请求地址(必填)',
http_method: '请求类型',
http_parameters: '请求参数',
http_check_condition: '校验条件',
http_condition: '校验内容',
http_condition_tips: '请填写校验内容',
timeout_settings: '超时设置',
connect_timeout: '连接超时',
ms: '毫秒',
socket_timeout: 'Socket超时',
status_code_default: '默认响应码200',
status_code_custom: '自定义响应码',
body_contains: '内容包含',
body_not_contains: '内容不包含',
http_parameters_position: '参数位置',
target_task_name: '目标任务名',
target_task_name_tips: '请输入Pigeon任务名',
datasource_type: '数据源类型',
datasource_instances: '数据源实例',
sql_type: 'SQL类型',
sql_type_query: '查询',
sql_type_non_query: '非查询',
sql_statement: 'SQL语句',
pre_sql_statement: '前置SQL语句',
post_sql_statement: '后置SQL语句',
sql_input_placeholder: '请输入非查询SQL语句',
sql_empty_tips: '语句不能为空',
procedure_method: 'SQL语句',
procedure_method_tips: '请输入存储脚本',
procedure_method_snippet:
'--请输入存储脚本 \n\n--调用存储过程: call <procedure-name>[(<arg1>,<arg2>, ...)] \n\n--调用存储函数:?= call <procedure-name>[(<arg1>,<arg2>, ...)]',
start: '运行',
edit: '编辑',
copy: '复制节点',
delete: '删除',
custom_job: '自定义任务',
custom_script: '自定义脚本',
sqoop_job_name: '任务名称',
sqoop_job_name_tips: '请输入任务名称(必填)',
direct: '流向',
hadoop_custom_params: 'Hadoop参数',
sqoop_advanced_parameters: 'Sqoop参数',
data_source: '数据来源',
type: '类型',
datasource: '数据源',
datasource_tips: '请选择数据源',
model_type: '模式',
form: '表单',
table: '表名',
table_tips: '请输入Mysql表名(必填)',
column_type: '列类型',
all_columns: '全表导入',
some_columns: '选择列',
column: '列',
column_tips: '请输入列名,用 , 隔开',
database: '数据库',
database_tips: '请输入Hive数据库(必填)',
hive_table_tips: '请输入Hive表名(必填)',
hive_partition_keys: 'Hive 分区键',
hive_partition_keys_tips: '请输入分区键',
hive_partition_values: 'Hive 分区值',
hive_partition_values_tips: '请输入分区值',
export_dir: '数据源路径',
export_dir_tips: '请输入数据源路径(必填)',
sql_statement_tips: 'SQL语句(必填)',
map_column_hive: 'Hive类型映射',
map_column_java: 'Java类型映射',
data_target: '数据目的',
create_hive_table: '是否创建新表',
drop_delimiter: '是否删除分隔符',
over_write_src: '是否覆盖数据源',
hive_target_dir: 'Hive目标路径',
hive_target_dir_tips: '请输入Hive临时目录',
replace_delimiter: '替换分隔符',
replace_delimiter_tips: '请输入替换分隔符',
target_dir: '目标路径',
target_dir_tips: '请输入目标路径(必填)',
delete_target_dir: '是否删除目录',
compression_codec: '压缩类型',
file_type: '保存格式',
fields_terminated: '列分隔符',
fields_terminated_tips: '请输入列分隔符',
lines_terminated: '行分隔符',
lines_terminated_tips: '请输入行分隔符',
is_update: '是否更新',
update_key: '更新列',
update_key_tips: '请输入更新列',
update_mode: '更新类型',
only_update: '只更新',
allow_insert: '无更新便插入',
concurrency: '并发度',
concurrency_tips: '请输入并发度',
sea_tunnel_master: 'Master',
sea_tunnel_master_url: 'Master URL',
sea_tunnel_queue: '队列',
sea_tunnel_master_url_tips: '请直接填写地址,例如:127.0.0.1:7077',
switch_condition: '条件',
switch_branch_flow: '分支流转',
and: '且',
or: '或',
datax_custom_template: '自定义模板',
datax_json_template: 'JSON',
datax_target_datasource_type: '目标源类型',
datax_target_database: '目标源实例',
datax_target_table: '目标表',
datax_target_table_tips: '请输入目标表名',
datax_target_database_pre_sql: '目标库前置SQL',
datax_target_database_post_sql: '目标库后置SQL',
datax_non_query_sql_tips: '请输入非查询SQL语句',
datax_job_speed_byte: '限流(字节数)',
datax_job_speed_byte_info: '(KB,0代表不限制)',
datax_job_speed_record: '限流(记录数)',
datax_job_speed_record_info: '(0代表不限制)',
datax_job_runtime_memory: '运行内存',
datax_job_runtime_memory_xms: '最小内存',
datax_job_runtime_memory_xmx: '最大内存',
datax_job_runtime_memory_unit: 'G',
current_hour: '当前小时',
last_1_hour: '前1小时',
last_2_hour: '前2小时',
last_3_hour: '前3小时',
last_24_hour: '前24小时',
today: '今天',
last_1_days: '昨天',
last_2_days: '前两天',
last_3_days: '前三天',
last_7_days: '前七天',
this_week: '本周',
last_week: '上周',
last_monday: '上周一',
last_tuesday: '上周二',
last_wednesday: '上周三',
last_thursday: '上周四',
last_friday: '上周五',
last_saturday: '上周六',
last_sunday: '上周日',
this_month: '本月',
last_month: '上月',
last_month_begin: '上月初',
last_month_end: '上月末',
month: '月',
week: '周',
day: '日',
hour: '时',
add_dependency: '添加依赖',
waiting_dependent_start: '等待依赖启动',
check_interval: '检查间隔',
waiting_dependent_complete: '等待依赖完成',
rule_name: '规则名称',
null_check: '空值检测',
custom_sql: '自定义SQL',
multi_table_accuracy: '多表准确性',
multi_table_value_comparison: '两表值比对',
field_length_check: '字段长度校验',
uniqueness_check: '唯一性校验',
regexp_check: '正则表达式',
timeliness_check: '及时性校验',
enumeration_check: '枚举值校验',
table_count_check: '表行数校验',
src_connector_type: '源数据类型',
src_datasource_id: '源数据源',
src_table: '源数据表',
src_filter: '源表过滤条件',
src_field: '源表检测列',
statistics_name: '实际值名',
check_type: '校验方式',
operator: '校验操作符',
threshold: '阈值',
failure_strategy: '失败策略',
target_connector_type: '目标数据类型',
target_datasource_id: '目标数据源',
target_table: '目标数据表',
target_filter: '目标表过滤条件',
mapping_columns: 'ON语句',
statistics_execute_sql: '实际值计算SQL',
comparison_name: '期望值名',
comparison_execute_sql: '期望值计算SQL',
comparison_type: '期望值类型',
writer_connector_type: '输出数据类型',
writer_datasource_id: '输出数据源',
target_field: '目标表检测列',
field_length: '字段长度限制',
logic_operator: '逻辑操作符',
regexp_pattern: '正则表达式',
deadline: '截止时间',
datetime_format: '时间格式',
enum_list: '枚举值列表',
begin_time: '起始时间',
fix_value: '固定值',
required: '必填',
emr_flow_define_json: 'jobFlowDefineJson',
emr_flow_define_json_tips: '请输入工作流定义'
}
}
const security = {
tenant: {
tenant_manage: '租户管理',
create_tenant: '创建租户',
search_tips: '请输入关键词',
tenant_code: '操作系统租户',
description: '描述',
queue_name: '队列',
create_time: '创建时间',
update_time: '更新时间',
actions: '操作',
edit_tenant: '编辑租户',
tenant_code_tips: '请输入操作系统租户',
queue_name_tips: '请选择队列',
description_tips: '请输入描述',
delete_confirm: '确定删除吗?',
edit: '编辑',
delete: '删除'
},
alarm_group: {
create_alarm_group: '创建告警组',
edit_alarm_group: '编辑告警组',
search_tips: '请输入关键词',
alert_group_name_tips: '请输入告警组名称',
alarm_plugin_instance: '告警组实例',
alarm_plugin_instance_tips: '请选择告警组实例',
alarm_group_description_tips: '请输入告警组描述',
alert_group_name: '告警组名称',
alarm_group_description: '告警组描述',
create_time: '创建时间',
update_time: '更新时间',
operation: '操作',
delete_confirm: '确定删除吗?',
edit: '编辑',
delete: '删除'
},
worker_group: {
create_worker_group: '创建Worker分组',
edit_worker_group: '编辑Worker分组',
search_tips: '请输入关键词',
operation: '操作',
delete_confirm: '确定删除吗?',
edit: '编辑',
delete: '删除',
group_name: '分组名称',
group_name_tips: '请输入分组名称',
worker_addresses: 'Worker地址',
worker_addresses_tips: '请选择Worker地址',
create_time: '创建时间',
update_time: '更新时间'
},
yarn_queue: {
create_queue: '创建队列',
edit_queue: '编辑队列',
search_tips: '请输入关键词',
queue_name: '队列名',
queue_value: '队列值',
create_time: '创建时间',
update_time: '更新时间',
operation: '操作',
edit: '编辑',
queue_name_tips: '请输入队列名',
queue_value_tips: '请输入队列值'
},
environment: {
create_environment: '创建环境',
edit_environment: '编辑环境',
search_tips: '请输入关键词',
edit: '编辑',
delete: '删除',
environment_name: '环境名称',
environment_config: '环境配置',
environment_desc: '环境描述',
worker_groups: 'Worker分组',
create_time: '创建时间',
update_time: '更新时间',
operation: '操作',
delete_confirm: '确定删除吗?',
environment_name_tips: '请输入环境名',
environment_config_tips: '请输入环境配置',
environment_description_tips: '请输入环境描述',
worker_group_tips: '请选择Worker分组'
},
token: {
create_token: '创建令牌',
edit_token: '编辑令牌',
search_tips: '请输入关键词',
user: '用户',
user_tips: '请选择用户',
token: '令牌',
token_tips: '请输入令牌',
expiration_time: '失效时间',
expiration_time_tips: '请选择失效时间',
create_time: '创建时间',
update_time: '更新时间',
operation: '操作',
edit: '编辑',
delete: '删除',
delete_confirm: '确定删除吗?'
},
user: {
user_manage: '用户管理',
create_user: '创建用户',
update_user: '更新用户',
delete_user: '删除用户',
delete_confirm: '确定删除吗?',
project: '项目',
resource: '资源',
file_resource: '文件资源',
udf_resource: 'UDF资源',
datasource: '数据源',
udf: 'UDF函数',
authorize_project: '项目授权',
authorize_resource: '资源授权',
authorize_datasource: '数据源授权',
authorize_udf: 'UDF函数授权',
username: '用户名',
username_exists: '用户名已存在',
username_tips: '请输入用户名',
user_password: '密码',
user_password_tips: '请输入包含字母和数字,长度在6~20之间的密码',
user_type: '用户类型',
ordinary_user: '普通用户',
administrator: '管理员',
tenant_code: '租户',
tenant_id_tips: '请选择租户',
queue: '队列',
queue_tips: '默认为租户关联队列',
email: '邮件',
email_empty_tips: '请输入邮箱',
emial_correct_tips: '请输入正确的邮箱格式',
phone: '手机',
phone_empty_tips: '请输入手机号码',
phone_correct_tips: '请输入正确的手机格式',
state: '状态',
state_enabled: '启用',
state_disabled: '停用',
create_time: '创建时间',
update_time: '更新时间',
operation: '操作',
edit: '编辑',
delete: '删除',
authorize: '授权',
save_error_msg: '保存失败,请重试',
delete_error_msg: '删除失败,请重试',
auth_error_msg: '授权失败,请重试',
auth_success_msg: '授权成功',
enable: '启用',
disable: '停用'
},
alarm_instance: {
search_input_tips: '请输入关键字',
alarm_instance_manage: '告警实例管理',
alarm_instance: '告警实例',
alarm_instance_name: '告警实例名称',
alarm_instance_name_tips: '请输入告警实例名称',
alarm_plugin_name: '告警插件名称',
create_time: '创建时间',
update_time: '更新时间',
operation: '操作',
edit: '编辑',
delete: '删除',
confirm: '确定',
cancel: '取消',
submit: '提交',
create: '创建',
select_plugin: '选择插件',
select_plugin_tips: '请选择告警插件',
instance_parameter_exception: '实例参数异常',
WebHook: 'Web钩子',
webHook: 'Web钩子',
IsEnableProxy: '启用代理',
Proxy: '代理',
Port: '端口',
User: '用户',
corpId: '企业ID',
secret: '密钥',
Secret: '密钥',
users: '群员',
userSendMsg: '群员信息',
agentId: '应用ID',
showType: '内容展示类型',
receivers: '收件人',
receiverCcs: '抄送人',
serverHost: 'SMTP服务器',
serverPort: 'SMTP端口',
sender: '发件人',
enableSmtpAuth: '请求认证',
Password: '密码',
starttlsEnable: 'STARTTLS连接',
sslEnable: 'SSL连接',
smtpSslTrust: 'SSL证书信任',
url: 'URL',
requestType: '请求方式',
headerParams: '请求头',
bodyParams: '请求体',
contentField: '内容字段',
Keyword: '关键词',
userParams: '自定义参数',
path: '脚本路径',
type: '类型',
sendType: '发送类型',
username: '用户名',
botToken: '机器人Token',
chatId: '频道ID',
parseMode: '解析类型'
},
k8s_namespace: {
create_namespace: '创建命名空间',
edit_namespace: '编辑命名空间',
search_tips: '请输入关键词',
k8s_namespace: 'K8S命名空间',
k8s_namespace_tips: '请输入k8s命名空间',
k8s_cluster: 'K8S集群',
k8s_cluster_tips: '请输入k8s集群',
owner: '负责人',
owner_tips: '请输入负责人',
tag: '标签',
tag_tips: '请输入标签',
limit_cpu: '最大CPU',
limit_cpu_tips: '请输入最大CPU',
limit_memory: '最大内存',
limit_memory_tips: '请输入最大内存',
create_time: '创建时间',
update_time: '更新时间',
operation: '操作',
edit: '编辑',
delete: '删除',
delete_confirm: '确定删除吗?'
}
}
const datasource = {
datasource: '数据源',
create_datasource: '创建数据源',
search_input_tips: '请输入关键字',
datasource_name: '数据源名称',
datasource_name_tips: '请输入数据源名称',
datasource_user_name: '所属用户',
datasource_type: '数据源类型',
datasource_parameter: '数据源参数',
description: '描述',
description_tips: '请输入描述',
create_time: '创建时间',
update_time: '更新时间',
operation: '操作',
click_to_view: '点击查看',
delete: '删除',
confirm: '确定',
cancel: '取消',
create: '创建',
edit: '编辑',
success: '成功',
test_connect: '测试连接',
ip: 'IP主机名',
ip_tips: '请输入IP主机名',
port: '端口',
port_tips: '请输入端口',
database_name: '数据库名',
database_name_tips: '请输入数据库名',
oracle_connect_type: '服务名或SID',
oracle_connect_type_tips: '请选择服务名或SID',
oracle_service_name: '服务名',
oracle_sid: 'SID',
jdbc_connect_parameters: 'jdbc连接参数',
principal_tips: '请输入Principal',
krb5_conf_tips: '请输入kerberos认证参数 java.security.krb5.conf',
keytab_username_tips: '请输入kerberos认证参数 login.user.keytab.username',
keytab_path_tips: '请输入kerberos认证参数 login.user.keytab.path',
format_tips: '请输入格式为',
connection_parameter: '连接参数',
user_name: '用户名',
user_name_tips: '请输入用户名',
user_password: '密码',
user_password_tips: '请输入密码'
}
const data_quality = {
task_result: {
task_name: '任务名称',
workflow_instance: '工作流实例',
rule_type: '规则类型',
rule_name: '规则名称',
state: '状态',
actual_value: '实际值',
excepted_value: '期望值',
check_type: '检测类型',
operator: '操作符',
threshold: '阈值',
failure_strategy: '失败策略',
excepted_value_type: '期望值类型',
error_output_path: '错误数据路径',
username: '用户名',
create_time: '创建时间',
update_time: '更新时间',
undone: '未完成',
success: '成功',
failure: '失败',
single_table: '单表检测',
single_table_custom_sql: '自定义SQL',
multi_table_accuracy: '多表准确性',
multi_table_comparison: '两表值对比',
expected_and_actual_or_expected: '(期望值-实际值)/实际值 x 100%',
expected_and_actual: '期望值-实际值',
actual_and_expected: '实际值-期望值',
actual_or_expected: '实际值/期望值 x 100%'
},
rule: {
actions: '操作',
name: '规则名称',
type: '规则类型',
username: '用户名',
create_time: '创建时间',
update_time: '更新时间',
input_item: '规则输入项',
view_input_item: '查看规则输入项信息',
input_item_title: '输入项标题',
input_item_placeholder: '输入项占位符',
input_item_type: '输入项类型',
src_connector_type: '源数据类型',
src_datasource_id: '源数据源',
src_table: '源数据表',
src_filter: '源表过滤条件',
src_field: '源表检测列',
statistics_name: '实际值名',
check_type: '校验方式',
operator: '校验操作符',
threshold: '阈值',
failure_strategy: '失败策略',
target_connector_type: '目标数据类型',
target_datasource_id: '目标数据源',
target_table: '目标数据表',
target_filter: '目标表过滤条件',
mapping_columns: 'ON语句',
statistics_execute_sql: '实际值计算SQL',
comparison_name: '期望值名',
comparison_execute_sql: '期望值计算SQL',
comparison_type: '期望值类型',
writer_connector_type: '输出数据类型',
writer_datasource_id: '输出数据源',
target_field: '目标表检测列',
field_length: '字段长度限制',
logic_operator: '逻辑操作符',
regexp_pattern: '正则表达式',
deadline: '截止时间',
datetime_format: '时间格式',
enum_list: '枚举值列表',
begin_time: '起始时间',
fix_value: '固定值',
null_check: '空值检测',
custom_sql: '自定义SQL',
single_table: '单表检测',
multi_table_accuracy: '多表准确性',
multi_table_value_comparison: '两表值比对',
field_length_check: '字段长度校验',
uniqueness_check: '唯一性校验',
regexp_check: '正则表达式',
timeliness_check: '及时性校验',
enumeration_check: '枚举值校验',
table_count_check: '表行数校验',
all: '全部',
FixValue: '固定值',
DailyAvg: '日均值',
WeeklyAvg: '周均值',
MonthlyAvg: '月均值',
Last7DayAvg: '最近7天均值',
Last30DayAvg: '最近30天均值',
SrcTableTotalRows: '源表总行数',
TargetTableTotalRows: '目标表总行数'
}
}
const crontab = {
second: '秒',
minute: '分',
hour: '时',
day: '天',
month: '月',
year: '年',
monday: '星期一',
tuesday: '星期二',
wednesday: '星期三',
thursday: '星期四',
friday: '星期五',
saturday: '星期六',
sunday: '星期天',
every_second: '每一秒钟',
every: '每隔',
second_carried_out: '秒执行 从',
second_start: '秒开始',
specific_second: '具体秒数(可多选)',
specific_second_tip: '请选择具体秒数',
cycle_from: '周期从',
to: '到',
every_minute: '每一分钟',
minute_carried_out: '分执行 从',
minute_start: '分开始',
specific_minute: '具体分钟数(可多选)',
specific_minute_tip: '请选择具体分钟数',
every_hour: '每一小时',
hour_carried_out: '小时执行 从',
hour_start: '小时开始',
specific_hour: '具体小时数(可多选)',
specific_hour_tip: '请选择具体小时数',
every_day: '每一天',
week_carried_out: '周执行 从',
start: '开始',
day_carried_out: '天执行 从',
day_start: '天开始',
specific_week: '具体星期几(可多选)',
specific_week_tip: '请选择具体周几',
specific_day: '具体天数(可多选)',
specific_day_tip: '请选择具体天数',
last_day_of_month: '在这个月的最后一天',
last_work_day_of_month: '在这个月的最后一个工作日',
last_of_month: '在这个月的最后一个',
before_end_of_month: '在本月底前',
recent_business_day_to_month: '最近的工作日(周一至周五)至本月',
in_this_months: '在这个月的第',
every_month: '每一月',
month_carried_out: '月执行 从',
month_start: '月开始',
specific_month: '具体月数(可多选)',
specific_month_tip: '请选择具体月数',
every_year: '每一年',
year_carried_out: '年执行 从',
year_start: '年开始',
specific_year: '具体年数(可多选)',
specific_year_tip: '请选择具体年数',
one_hour: '小时',
one_day: '日'
}
export default {
login,
modal,
theme,
userDropdown,
menu,
home,
password,
profile,
monitor,
resource,
project,
security,
datasource,
data_quality,
crontab
}
|
closed
|
apache/dolphinscheduler
|
https://github.com/apache/dolphinscheduler
| 8,971 |
[Bug][UI Next][V1.0.0-Alpha] The table action button in the data source center lacks a floating prompt.
|
### Search before asking
- [X] I had searched in the [issues](https://github.com/apache/dolphinscheduler/issues?q=is%3Aissue) and found no similar issues.
### What happened

### What you expected to happen
The table action button in the data source center lacks a floating prompt.
### How to reproduce
Data source center table operation button adds floating prompt
### Anything else
_No response_
### Version
dev
### Are you willing to submit PR?
- [X] Yes I am willing to submit a PR!
### Code of Conduct
- [X] I agree to follow this project's [Code of Conduct](https://www.apache.org/foundation/policies/conduct)
|
https://github.com/apache/dolphinscheduler/issues/8971
|
https://github.com/apache/dolphinscheduler/pull/8977
|
045ef753d1276aafe938fa319b16f444be783845
|
a485771a738397dc8ced69636a3098eb89b47741
| 2022-03-17T10:12:23Z |
java
| 2022-03-18T06:29:51Z |
dolphinscheduler-ui-next/src/views/datasource/list/use-columns.ts
|
/*
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership.
* The ASF licenses this file to You under the Apache License, Version 2.0
* (the "License"); you may not use this file except in compliance with
* the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
import { h } from 'vue'
import { useI18n } from 'vue-i18n'
import { NPopover, NButton, NIcon, NPopconfirm, NSpace } from 'naive-ui'
import { EditOutlined, DeleteOutlined } from '@vicons/antd'
import JsonHighlight from './json-highlight'
import ButtonLink from '@/components/button-link'
import type { TableColumns } from './types'
export function useColumns(onCallback: Function) {
const { t } = useI18n()
const getColumns = (): TableColumns => {
return [
{
title: '#',
key: 'index',
render: (rowData, rowIndex) => rowIndex + 1
},
{
title: t('datasource.datasource_name'),
key: 'name'
},
{
title: t('datasource.datasource_user_name'),
key: 'userName'
},
{
title: t('datasource.datasource_type'),
key: 'type'
},
{
title: t('datasource.datasource_parameter'),
key: 'parameter',
render: (rowData) => {
return h(
NPopover,
{ trigger: 'click' },
{
trigger: () =>
h(ButtonLink, null, {
default: () => t('datasource.click_to_view')
}),
default: () => h(JsonHighlight, { rowData })
}
)
}
},
{
title: t('datasource.description'),
key: 'note'
},
{
title: t('datasource.create_time'),
key: 'createTime'
},
{
title: t('datasource.update_time'),
key: 'updateTime'
},
{
title: t('datasource.operation'),
key: 'operation',
width: 150,
render: (rowData, unused) => {
return h(NSpace, null, {
default: () => [
h(
NButton,
{
circle: true,
type: 'info',
onClick: () => void onCallback(rowData.id, 'edit')
},
{
default: () =>
h(NIcon, null, { default: () => h(EditOutlined) })
}
),
h(
NPopconfirm,
{
onPositiveClick: () => void onCallback(rowData.id, 'delete'),
negativeText: t('datasource.cancel'),
positiveText: t('datasource.confirm')
},
{
trigger: () =>
h(
NButton,
{
circle: true,
type: 'error',
class: 'btn-delete'
},
{
default: () =>
h(NIcon, null, { default: () => h(DeleteOutlined) })
}
),
default: () => t('datasource.delete')
}
)
]
})
}
}
]
}
return {
getColumns
}
}
|
closed
|
apache/dolphinscheduler
|
https://github.com/apache/dolphinscheduler
| 8,967 |
[Bug][UI Next][V1.0.0-Alpha] There is no floating prompt for the table operation button in the alarm instance management.
|
### Search before asking
- [X] I had searched in the [issues](https://github.com/apache/dolphinscheduler/issues?q=is%3Aissue) and found no similar issues.
### What happened

### What you expected to happen
There is no floating prompt for the table operation button in the alarm instance management.
### How to reproduce
Add hover prompt.
### Anything else
_No response_
### Version
dev
### Are you willing to submit PR?
- [X] Yes I am willing to submit a PR!
### Code of Conduct
- [X] I agree to follow this project's [Code of Conduct](https://www.apache.org/foundation/policies/conduct)
|
https://github.com/apache/dolphinscheduler/issues/8967
|
https://github.com/apache/dolphinscheduler/pull/8978
|
a485771a738397dc8ced69636a3098eb89b47741
|
c29a51a8c71fd015cb459daa1ae77d1cc3255e28
| 2022-03-17T09:40:02Z |
java
| 2022-03-18T06:32:22Z |
dolphinscheduler-ui-next/src/locales/modules/en_US.ts
|
/*
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership.
* The ASF licenses this file to You under the Apache License, Version 2.0
* (the "License"); you may not use this file except in compliance with
* the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
const login = {
test: 'Test',
userName: 'Username',
userName_tips: 'Please enter your username',
userPassword: 'Password',
userPassword_tips: 'Please enter your password',
login: 'Login'
}
const modal = {
cancel: 'Cancel',
confirm: 'Confirm'
}
const theme = {
light: 'Light',
dark: 'Dark'
}
const userDropdown = {
profile: 'Profile',
password: 'Password',
logout: 'Logout'
}
const menu = {
home: 'Home',
project: 'Project',
resources: 'Resources',
datasource: 'Datasource',
monitor: 'Monitor',
security: 'Security',
project_overview: 'Project Overview',
workflow_relation: 'Workflow Relation',
workflow: 'Workflow',
workflow_definition: 'Workflow Definition',
workflow_instance: 'Workflow Instance',
task: 'Task',
task_instance: 'Task Instance',
task_definition: 'Task Definition',
file_manage: 'File Manage',
udf_manage: 'UDF Manage',
resource_manage: 'Resource Manage',
function_manage: 'Function Manage',
service_manage: 'Service Manage',
master: 'Master',
worker: 'Worker',
db: 'DB',
statistical_manage: 'Statistical Manage',
statistics: 'Statistics',
audit_log: 'Audit Log',
tenant_manage: 'Tenant Manage',
user_manage: 'User Manage',
alarm_group_manage: 'Alarm Group Manage',
alarm_instance_manage: 'Alarm Instance Manage',
worker_group_manage: 'Worker Group Manage',
yarn_queue_manage: 'Yarn Queue Manage',
environment_manage: 'Environment Manage',
k8s_namespace_manage: 'K8S Namespace Manage',
token_manage: 'Token Manage',
task_group_manage: 'Task Group Manage',
task_group_option: 'Task Group Option',
task_group_queue: 'Task Group Queue',
data_quality: 'Data Quality',
task_result: 'Task Result',
rule: 'Rule management'
}
const home = {
task_state_statistics: 'Task State Statistics',
process_state_statistics: 'Process State Statistics',
process_definition_statistics: 'Process Definition Statistics',
number: 'Number',
state: 'State',
submitted_success: 'SUBMITTED_SUCCESS',
running_execution: 'RUNNING_EXECUTION',
ready_pause: 'READY_PAUSE',
pause: 'PAUSE',
ready_stop: 'READY_STOP',
stop: 'STOP',
failure: 'FAILURE',
success: 'SUCCESS',
need_fault_tolerance: 'NEED_FAULT_TOLERANCE',
kill: 'KILL',
waiting_thread: 'WAITING_THREAD',
waiting_depend: 'WAITING_DEPEND',
delay_execution: 'DELAY_EXECUTION',
forced_success: 'FORCED_SUCCESS',
serial_wait: 'SERIAL_WAIT',
ready_block: 'READY_BLOCK',
block: 'BLOCK'
}
const password = {
edit_password: 'Edit Password',
password: 'Password',
confirm_password: 'Confirm Password',
password_tips: 'Please enter your password',
confirm_password_tips: 'Please enter your confirm password',
two_password_entries_are_inconsistent:
'Two password entries are inconsistent',
submit: 'Submit'
}
const profile = {
profile: 'Profile',
edit: 'Edit',
username: 'Username',
email: 'Email',
phone: 'Phone',
state: 'State',
permission: 'Permission',
create_time: 'Create Time',
update_time: 'Update Time',
administrator: 'Administrator',
ordinary_user: 'Ordinary User',
edit_profile: 'Edit Profile',
username_tips: 'Please enter your username',
email_tips: 'Please enter your email',
email_correct_tips: 'Please enter your email in the correct format',
phone_tips: 'Please enter your phone',
state_tips: 'Please choose your state',
enable: 'Enable',
disable: 'Disable',
timezone_success: 'Time zone updated successful',
please_select_timezone: 'Choose timeZone'
}
const monitor = {
master: {
cpu_usage: 'CPU Usage',
memory_usage: 'Memory Usage',
load_average: 'Load Average',
create_time: 'Create Time',
last_heartbeat_time: 'Last Heartbeat Time',
directory_detail: 'Directory Detail',
host: 'Host',
directory: 'Directory'
},
worker: {
cpu_usage: 'CPU Usage',
memory_usage: 'Memory Usage',
load_average: 'Load Average',
create_time: 'Create Time',
last_heartbeat_time: 'Last Heartbeat Time',
directory_detail: 'Directory Detail',
host: 'Host',
directory: 'Directory'
},
db: {
health_state: 'Health State',
max_connections: 'Max Connections',
threads_connections: 'Threads Connections',
threads_running_connections: 'Threads Running Connections'
},
statistics: {
command_number_of_waiting_for_running:
'Command Number Of Waiting For Running',
failure_command_number: 'Failure Command Number',
tasks_number_of_waiting_running: 'Tasks Number Of Waiting Running',
task_number_of_ready_to_kill: 'Task Number Of Ready To Kill'
},
audit_log: {
user_name: 'User Name',
resource_type: 'Resource Type',
project_name: 'Project Name',
operation_type: 'Operation Type',
create_time: 'Create Time',
start_time: 'Start Time',
end_time: 'End Time',
user_audit: 'User Audit',
project_audit: 'Project Audit',
create: 'Create',
update: 'Update',
delete: 'Delete',
read: 'Read'
}
}
const resource = {
file: {
file_manage: 'File Manage',
create_folder: 'Create Folder',
create_file: 'Create File',
upload_files: 'Upload Files',
enter_keyword_tips: 'Please enter keyword',
name: 'Name',
user_name: 'Resource userName',
whether_directory: 'Whether directory',
file_name: 'File Name',
description: 'Description',
size: 'Size',
update_time: 'Update Time',
operation: 'Operation',
edit: 'Edit',
rename: 'Rename',
download: 'Download',
delete: 'Delete',
yes: 'Yes',
no: 'No',
folder_name: 'Folder Name',
enter_name_tips: 'Please enter name',
enter_description_tips: 'Please enter description',
enter_content_tips: 'Please enter the resource content',
file_format: 'File Format',
file_content: 'File Content',
delete_confirm: 'Delete?',
confirm: 'Confirm',
cancel: 'Cancel',
success: 'Success',
file_details: 'File Details',
return: 'Return',
save: 'Save'
},
udf: {
udf_resources: 'UDF resources',
create_folder: 'Create Folder',
upload_udf_resources: 'Upload UDF Resources',
udf_source_name: 'UDF Resource Name',
whether_directory: 'Whether directory',
file_name: 'File Name',
file_size: 'File Size',
description: 'Description',
create_time: 'Create Time',
update_time: 'Update Time',
operation: 'Operation',
yes: 'Yes',
no: 'No',
edit: 'Edit',
download: 'Download',
delete: 'Delete',
delete_confirm: 'Delete?',
success: 'Success',
folder_name: 'Folder Name',
upload: 'Upload',
upload_files: 'Upload Files',
file_upload: 'File Upload',
enter_keyword_tips: 'Please enter keyword',
enter_name_tips: 'Please enter name',
enter_description_tips: 'Please enter description'
},
function: {
udf_function: 'UDF Function',
create_udf_function: 'Create UDF Function',
edit_udf_function: 'Create UDF Function',
udf_function_name: 'UDF Function Name',
class_name: 'Class Name',
type: 'Type',
description: 'Description',
jar_package: 'Jar Package',
update_time: 'Update Time',
operation: 'Operation',
rename: 'Rename',
edit: 'Edit',
delete: 'Delete',
success: 'Success',
package_name: 'Package Name',
udf_resources: 'UDF Resources',
instructions: 'Instructions',
upload_resources: 'Upload Resources',
udf_resources_directory: 'UDF resources directory',
delete_confirm: 'Delete?',
enter_keyword_tips: 'Please enter keyword',
enter_udf_unction_name_tips: 'Please enter a UDF function name',
enter_package_name_tips: 'Please enter a Package name',
enter_select_udf_resources_tips: 'Please select UDF resources',
enter_select_udf_resources_directory_tips:
'Please select UDF resources directory',
enter_instructions_tips: 'Please enter a instructions',
enter_name_tips: 'Please enter name',
enter_description_tips: 'Please enter description'
},
task_group_option: {
manage: 'Task group manage',
option: 'Task group option',
create: 'Create task group',
edit: 'Edit task group',
delete: 'Delete task group',
view_queue: 'View the queue of the task group',
switch_status: 'Switch status',
code: 'Task group code',
name: 'Task group name',
project_name: 'Project name',
resource_pool_size: 'Resource pool size',
resource_pool_size_be_a_number:
'The size of the task group resource pool should be more than 1',
resource_used_pool_size: 'Used resource',
desc: 'Task group desc',
status: 'Task group status',
enable_status: 'Enable',
disable_status: 'Disable',
please_enter_name: 'Please enter task group name',
please_enter_desc: 'Please enter task group description',
please_enter_resource_pool_size:
'Please enter task group resource pool size',
please_select_project: 'Please select a project',
create_time: 'Create time',
update_time: 'Update time',
actions: 'Actions',
please_enter_keywords: 'Please enter keywords'
},
task_group_queue: {
actions: 'Actions',
task_name: 'Task name',
task_group_name: 'Task group name',
project_name: 'Project name',
process_name: 'Process name',
process_instance_name: 'Process instance',
queue: 'Task group queue',
priority: 'Priority',
priority_be_a_number:
'The priority of the task group queue should be a positive number',
force_starting_status: 'Starting status',
in_queue: 'In queue',
task_status: 'Task status',
view: 'View task group queue',
the_status_of_waiting: 'Waiting into the queue',
the_status_of_queuing: 'Queuing',
the_status_of_releasing: 'Released',
modify_priority: 'Edit the priority',
start_task: 'Start the task',
priority_not_empty: 'The value of priority can not be empty',
priority_must_be_number: 'The value of priority should be number',
please_select_task_name: 'Please select a task name',
create_time: 'Create time',
update_time: 'Update time',
edit_priority: 'Edit the task priority'
}
}
const project = {
list: {
create_project: 'Create Project',
edit_project: 'Edit Project',
project_list: 'Project List',
project_tips: 'Please enter your project',
description_tips: 'Please enter your description',
username_tips: 'Please enter your username',
project_name: 'Project Name',
project_description: 'Project Description',
owned_users: 'Owned Users',
workflow_define_count: 'Workflow Define Count',
process_instance_running_count: 'Process Instance Running Count',
description: 'Description',
create_time: 'Create Time',
update_time: 'Update Time',
operation: 'Operation',
edit: 'Edit',
delete: 'Delete',
confirm: 'Confirm',
cancel: 'Cancel',
delete_confirm: 'Delete?'
},
workflow: {
workflow_relation: 'Workflow Relation',
create_workflow: 'Create Workflow',
import_workflow: 'Import Workflow',
workflow_name: 'Workflow Name',
current_selection: 'Current Selection',
online: 'Online',
offline: 'Offline',
refresh: 'Refresh',
show_hide_label: 'Show / Hide Label',
workflow_offline: 'Workflow Offline',
schedule_offline: 'Schedule Offline',
schedule_start_time: 'Schedule Start Time',
schedule_end_time: 'Schedule End Time',
crontab_expression: 'Crontab',
workflow_publish_status: 'Workflow Publish Status',
schedule_publish_status: 'Schedule Publish Status',
workflow_definition: 'Workflow Definition',
workflow_instance: 'Workflow Instance',
status: 'Status',
create_time: 'Create Time',
update_time: 'Update Time',
description: 'Description',
create_user: 'Create User',
modify_user: 'Modify User',
operation: 'Operation',
edit: 'Edit',
start: 'Start',
timing: 'Timing',
timezone: 'Timezone',
up_line: 'Online',
down_line: 'Offline',
copy_workflow: 'Copy Workflow',
cron_manage: 'Cron manage',
delete: 'Delete',
tree_view: 'Tree View',
tree_limit: 'Limit Size',
export: 'Export',
batch_copy: 'Batch Copy',
version_info: 'Version Info',
version: 'Version',
file_upload: 'File Upload',
upload_file: 'Upload File',
upload: 'Upload',
file_name: 'File Name',
success: 'Success',
set_parameters_before_starting: 'Please set the parameters before starting',
set_parameters_before_timing: 'Set parameters before timing',
start_and_stop_time: 'Start and stop time',
next_five_execution_times: 'Next five execution times',
execute_time: 'Execute time',
failure_strategy: 'Failure Strategy',
notification_strategy: 'Notification Strategy',
workflow_priority: 'Workflow Priority',
worker_group: 'Worker Group',
environment_name: 'Environment Name',
alarm_group: 'Alarm Group',
complement_data: 'Complement Data',
startup_parameter: 'Startup Parameter',
whether_dry_run: 'Whether Dry-Run',
continue: 'Continue',
end: 'End',
none_send: 'None',
success_send: 'Success',
failure_send: 'Failure',
all_send: 'All',
whether_complement_data: 'Whether it is a complement process?',
schedule_date: 'Schedule date',
mode_of_execution: 'Mode of execution',
serial_execution: 'Serial execution',
parallel_execution: 'Parallel execution',
parallelism: 'Parallelism',
custom_parallelism: 'Custom Parallelism',
please_enter_parallelism: 'Please enter Parallelism',
please_choose: 'Please Choose',
start_time: 'Start Time',
end_time: 'End Time',
crontab: 'Crontab',
delete_confirm: 'Delete?',
enter_name_tips: 'Please enter name',
switch_version: 'Switch To This Version',
confirm_switch_version: 'Confirm Switch To This Version?',
current_version: 'Current Version',
run_type: 'Run Type',
scheduling_time: 'Scheduling Time',
duration: 'Duration',
run_times: 'Run Times',
fault_tolerant_sign: 'Fault-tolerant Sign',
dry_run_flag: 'Dry-run Flag',
executor: 'Executor',
host: 'Host',
start_process: 'Start Process',
execute_from_the_current_node: 'Execute from the current node',
recover_tolerance_fault_process: 'Recover tolerance fault process',
resume_the_suspension_process: 'Resume the suspension process',
execute_from_the_failed_nodes: 'Execute from the failed nodes',
scheduling_execution: 'Scheduling execution',
rerun: 'Rerun',
stop: 'Stop',
pause: 'Pause',
recovery_waiting_thread: 'Recovery waiting thread',
recover_serial_wait: 'Recover serial wait',
recovery_suspend: 'Recovery Suspend',
recovery_failed: 'Recovery Failed',
gantt: 'Gantt',
name: 'Name',
all_status: 'AllStatus',
submit_success: 'Submitted successfully',
running: 'Running',
ready_to_pause: 'Ready to pause',
ready_to_stop: 'Ready to stop',
failed: 'Failed',
need_fault_tolerance: 'Need fault tolerance',
kill: 'Kill',
waiting_for_thread: 'Waiting for thread',
waiting_for_dependence: 'Waiting for dependence',
waiting_for_dependency_to_complete: 'Waiting for dependency to complete',
delay_execution: 'Delay execution',
forced_success: 'Forced success',
serial_wait: 'Serial wait',
executing: 'Executing',
startup_type: 'Startup Type',
complement_range: 'Complement Range',
parameters_variables: 'Parameters variables',
global_parameters: 'Global parameters',
local_parameters: 'Local parameters',
type: 'Type',
retry_count: 'Retry Count',
submit_time: 'Submit Time',
refresh_status_succeeded: 'Refresh status succeeded',
view_log: 'View log',
update_log_success: 'Update log success',
no_more_log: 'No more logs',
no_log: 'No log',
loading_log: 'Loading Log...',
close: 'Close',
download_log: 'Download Log',
refresh_log: 'Refresh Log',
enter_full_screen: 'Enter full screen',
cancel_full_screen: 'Cancel full screen',
task_state: 'Task status',
mode_of_dependent: 'Mode of dependent',
open: 'Open',
project_name_required: 'Project name is required',
related_items: 'Related items',
project_name: 'Project Name',
project_tips: 'Please select project name'
},
task: {
task_name: 'Task Name',
task_type: 'Task Type',
create_task: 'Create Task',
workflow_instance: 'Workflow Instance',
workflow_name: 'Workflow Name',
workflow_name_tips: 'Please select workflow name',
workflow_state: 'Workflow State',
version: 'Version',
current_version: 'Current Version',
switch_version: 'Switch To This Version',
confirm_switch_version: 'Confirm Switch To This Version?',
description: 'Description',
move: 'Move',
upstream_tasks: 'Upstream Tasks',
executor: 'Executor',
node_type: 'Node Type',
state: 'State',
submit_time: 'Submit Time',
start_time: 'Start Time',
create_time: 'Create Time',
update_time: 'Update Time',
end_time: 'End Time',
duration: 'Duration',
retry_count: 'Retry Count',
dry_run_flag: 'Dry Run Flag',
host: 'Host',
operation: 'Operation',
edit: 'Edit',
delete: 'Delete',
delete_confirm: 'Delete?',
submitted_success: 'Submitted Success',
running_execution: 'Running Execution',
ready_pause: 'Ready Pause',
pause: 'Pause',
ready_stop: 'Ready Stop',
stop: 'Stop',
failure: 'Failure',
success: 'Success',
need_fault_tolerance: 'Need Fault Tolerance',
kill: 'Kill',
waiting_thread: 'Waiting Thread',
waiting_depend: 'Waiting Depend',
delay_execution: 'Delay Execution',
forced_success: 'Forced Success',
view_log: 'View Log',
download_log: 'Download Log',
refresh: 'Refresh',
serial_wait: 'Serial Wait'
},
dag: {
create: 'Create Workflow',
search: 'Search',
download_png: 'Download PNG',
fullscreen_open: 'Open Fullscreen',
fullscreen_close: 'Close Fullscreen',
save: 'Save',
close: 'Close',
format: 'Format',
refresh_dag_status: 'Refresh DAG status',
layout_type: 'Layout Type',
grid_layout: 'Grid',
dagre_layout: 'Dagre',
rows: 'Rows',
cols: 'Cols',
copy_success: 'Copy Success',
workflow_name: 'Workflow Name',
description: 'Description',
tenant: 'Tenant',
timeout_alert: 'Timeout Alert',
global_variables: 'Global Variables',
basic_info: 'Basic Information',
minute: 'Minute',
key: 'Key',
value: 'Value',
success: 'Success',
delete_cell: 'Delete selected edges and nodes',
online_directly: 'Whether to go online the process definition',
update_directly: 'Whether to update the process definition',
dag_name_empty: 'DAG graph name cannot be empty',
positive_integer: 'Please enter a positive integer greater than 0',
prop_empty: 'prop is empty',
prop_repeat: 'prop is repeat',
node_not_created: 'Failed to save node not created',
copy_name: 'Copy Name',
view_variables: 'View Variables',
startup_parameter: 'Startup Parameter'
},
node: {
current_node_settings: 'Current node settings',
instructions: 'Instructions',
view_history: 'View history',
view_log: 'View log',
enter_this_child_node: 'Enter this child node',
name: 'Node name',
name_tips: 'Please enter name (required)',
task_type: 'Task Type',
task_type_tips: 'Please select a task type (required)',
process_name: 'Process Name',
process_name_tips: 'Please select a process (required)',
child_node: 'Child Node',
enter_child_node: 'Enter child node',
run_flag: 'Run flag',
normal: 'Normal',
prohibition_execution: 'Prohibition execution',
description: 'Description',
description_tips: 'Please enter description',
task_priority: 'Task priority',
worker_group: 'Worker group',
worker_group_tips:
'The Worker group no longer exists, please select the correct Worker group!',
environment_name: 'Environment Name',
task_group_name: 'Task group name',
task_group_queue_priority: 'Priority',
number_of_failed_retries: 'Number of failed retries',
times: 'Times',
failed_retry_interval: 'Failed retry interval',
minute: 'Minute',
delay_execution_time: 'Delay execution time',
state: 'State',
branch_flow: 'Branch flow',
cancel: 'Cancel',
loading: 'Loading...',
confirm: 'Confirm',
success: 'Success',
failed: 'Failed',
backfill_tips:
'The newly created sub-Process has not yet been executed and cannot enter the sub-Process',
task_instance_tips:
'The task has not been executed and cannot enter the sub-Process',
branch_tips:
'Cannot select the same node for successful branch flow and failed branch flow',
timeout_alarm: 'Timeout alarm',
timeout_strategy: 'Timeout strategy',
timeout_strategy_tips: 'Timeout strategy must be selected',
timeout_failure: 'Timeout failure',
timeout_period: 'Timeout period',
timeout_period_tips: 'Timeout must be a positive integer',
script: 'Script',
script_tips: 'Please enter script(required)',
resources: 'Resources',
resources_tips: 'Please select resources',
non_resources_tips: 'Please delete all non-existent resources',
useless_resources_tips: 'Unauthorized or deleted resources',
custom_parameters: 'Custom Parameters',
copy_success: 'Copy success',
copy_failed: 'The browser does not support automatic copying',
prop_tips: 'prop(required)',
prop_repeat: 'prop is repeat',
value_tips: 'value(optional)',
value_required_tips: 'value(required)',
pre_tasks: 'Pre tasks',
program_type: 'Program Type',
spark_version: 'Spark Version',
main_class: 'Main Class',
main_class_tips: 'Please enter main class',
main_package: 'Main Package',
main_package_tips: 'Please enter main package',
deploy_mode: 'Deploy Mode',
app_name: 'App Name',
app_name_tips: 'Please enter app name(optional)',
driver_cores: 'Driver Cores',
driver_cores_tips: 'Please enter Driver cores',
driver_memory: 'Driver Memory',
driver_memory_tips: 'Please enter Driver memory',
executor_number: 'Executor Number',
executor_number_tips: 'Please enter Executor number',
executor_memory: 'Executor Memory',
executor_memory_tips: 'Please enter Executor memory',
executor_cores: 'Executor Cores',
executor_cores_tips: 'Please enter Executor cores',
main_arguments: 'Main Arguments',
main_arguments_tips: 'Please enter main arguments',
option_parameters: 'Option Parameters',
option_parameters_tips: 'Please enter option parameters',
positive_integer_tips: 'should be a positive integer',
flink_version: 'Flink Version',
job_manager_memory: 'JobManager Memory',
job_manager_memory_tips: 'Please enter JobManager memory',
task_manager_memory: 'TaskManager Memory',
task_manager_memory_tips: 'Please enter TaskManager memory',
slot_number: 'Slot Number',
slot_number_tips: 'Please enter Slot number',
parallelism: 'Parallelism',
custom_parallelism: 'Configure parallelism',
parallelism_tips: 'Please enter Parallelism',
parallelism_number_tips: 'Parallelism number should be positive integer',
parallelism_complement_tips:
'If there are a large number of tasks requiring complement, you can use the custom parallelism to ' +
'set the complement task thread to a reasonable value to avoid too large impact on the server.',
task_manager_number: 'TaskManager Number',
task_manager_number_tips: 'Please enter TaskManager number',
http_url: 'Http Url',
http_url_tips: 'Please Enter Http Url',
http_method: 'Http Method',
http_parameters: 'Http Parameters',
http_check_condition: 'Http Check Condition',
http_condition: 'Http Condition',
http_condition_tips: 'Please Enter Http Condition',
timeout_settings: 'Timeout Settings',
connect_timeout: 'Connect Timeout',
ms: 'ms',
socket_timeout: 'Socket Timeout',
status_code_default: 'Default response code 200',
status_code_custom: 'Custom response code',
body_contains: 'Content includes',
body_not_contains: 'Content does not contain',
http_parameters_position: 'Http Parameters Position',
target_task_name: 'Target Task Name',
target_task_name_tips: 'Please enter the Pigeon task name',
datasource_type: 'Datasource types',
datasource_instances: 'Datasource instances',
sql_type: 'SQL Type',
sql_type_query: 'Query',
sql_type_non_query: 'Non Query',
sql_statement: 'SQL Statement',
pre_sql_statement: 'Pre SQL Statement',
post_sql_statement: 'Post SQL Statement',
sql_input_placeholder: 'Please enter non-query sql.',
sql_empty_tips: 'The sql can not be empty.',
procedure_method: 'SQL Statement',
procedure_method_tips: 'Please enter the procedure script',
procedure_method_snippet:
'--Please enter the procedure script \n\n--call procedure:call <procedure-name>[(<arg1>,<arg2>, ...)]\n\n--call function:?= call <procedure-name>[(<arg1>,<arg2>, ...)]',
start: 'Start',
edit: 'Edit',
copy: 'Copy',
delete: 'Delete',
custom_job: 'Custom Job',
custom_script: 'Custom Script',
sqoop_job_name: 'Job Name',
sqoop_job_name_tips: 'Please enter Job Name(required)',
direct: 'Direct',
hadoop_custom_params: 'Hadoop Params',
sqoop_advanced_parameters: 'Sqoop Advanced Parameters',
data_source: 'Data Source',
type: 'Type',
datasource: 'Datasource',
datasource_tips: 'Please select the datasource',
model_type: 'ModelType',
form: 'Form',
table: 'Table',
table_tips: 'Please enter Mysql Table(required)',
column_type: 'ColumnType',
all_columns: 'All Columns',
some_columns: 'Some Columns',
column: 'Column',
column_tips: 'Please enter Columns (Comma separated)',
database: 'Database',
database_tips: 'Please enter Hive Database(required)',
hive_table_tips: 'Please enter Hive Table(required)',
hive_partition_keys: 'Hive partition Keys',
hive_partition_keys_tips: 'Please enter Hive Partition Keys',
hive_partition_values: 'Hive partition Values',
hive_partition_values_tips: 'Please enter Hive Partition Values',
export_dir: 'Export Dir',
export_dir_tips: 'Please enter Export Dir(required)',
sql_statement_tips: 'SQL Statement(required)',
map_column_hive: 'Map Column Hive',
map_column_java: 'Map Column Java',
data_target: 'Data Target',
create_hive_table: 'CreateHiveTable',
drop_delimiter: 'DropDelimiter',
over_write_src: 'OverWriteSrc',
hive_target_dir: 'Hive Target Dir',
hive_target_dir_tips: 'Please enter hive target dir',
replace_delimiter: 'ReplaceDelimiter',
replace_delimiter_tips: 'Please enter Replace Delimiter',
target_dir: 'Target Dir',
target_dir_tips: 'Please enter Target Dir(required)',
delete_target_dir: 'DeleteTargetDir',
compression_codec: 'CompressionCodec',
file_type: 'FileType',
fields_terminated: 'FieldsTerminated',
fields_terminated_tips: 'Please enter Fields Terminated',
lines_terminated: 'LinesTerminated',
lines_terminated_tips: 'Please enter Lines Terminated',
is_update: 'IsUpdate',
update_key: 'UpdateKey',
update_key_tips: 'Please enter Update Key',
update_mode: 'UpdateMode',
only_update: 'OnlyUpdate',
allow_insert: 'AllowInsert',
concurrency: 'Concurrency',
concurrency_tips: 'Please enter Concurrency',
sea_tunnel_master: 'Master',
sea_tunnel_master_url: 'Master URL',
sea_tunnel_queue: 'Queue',
sea_tunnel_master_url_tips:
'Please enter the master url, e.g., 127.0.0.1:7077',
switch_condition: 'Condition',
switch_branch_flow: 'Branch Flow',
and: 'and',
or: 'or',
datax_custom_template: 'Custom Template Switch',
datax_json_template: 'JSON',
datax_target_datasource_type: 'Target Datasource Type',
datax_target_database: 'Target Database',
datax_target_table: 'Target Table',
datax_target_table_tips: 'Please enter the name of the target table',
datax_target_database_pre_sql: 'Pre SQL Statement',
datax_target_database_post_sql: 'Post SQL Statement',
datax_non_query_sql_tips: 'Please enter the non-query sql statement',
datax_job_speed_byte: 'Speed(Byte count)',
datax_job_speed_byte_info: '(0 means unlimited)',
datax_job_speed_record: 'Speed(Record count)',
datax_job_speed_record_info: '(0 means unlimited)',
datax_job_runtime_memory: 'Runtime Memory Limits',
datax_job_runtime_memory_xms: 'Low Limit Value',
datax_job_runtime_memory_xmx: 'High Limit Value',
datax_job_runtime_memory_unit: 'G',
current_hour: 'CurrentHour',
last_1_hour: 'Last1Hour',
last_2_hour: 'Last2Hours',
last_3_hour: 'Last3Hours',
last_24_hour: 'Last24Hours',
today: 'today',
last_1_days: 'Last1Days',
last_2_days: 'Last2Days',
last_3_days: 'Last3Days',
last_7_days: 'Last7Days',
this_week: 'ThisWeek',
last_week: 'LastWeek',
last_monday: 'LastMonday',
last_tuesday: 'LastTuesday',
last_wednesday: 'LastWednesday',
last_thursday: 'LastThursday',
last_friday: 'LastFriday',
last_saturday: 'LastSaturday',
last_sunday: 'LastSunday',
this_month: 'ThisMonth',
last_month: 'LastMonth',
last_month_begin: 'LastMonthBegin',
last_month_end: 'LastMonthEnd',
month: 'month',
week: 'week',
day: 'day',
hour: 'hour',
add_dependency: 'Add dependency',
waiting_dependent_start: 'Waiting Dependent start',
check_interval: 'Check interval',
waiting_dependent_complete: 'Waiting Dependent complete',
rule_name: 'Rule Name',
null_check: 'NullCheck',
custom_sql: 'CustomSql',
multi_table_accuracy: 'MulTableAccuracy',
multi_table_value_comparison: 'MulTableCompare',
field_length_check: 'FieldLengthCheck',
uniqueness_check: 'UniquenessCheck',
regexp_check: 'RegexpCheck',
timeliness_check: 'TimelinessCheck',
enumeration_check: 'EnumerationCheck',
table_count_check: 'TableCountCheck',
src_connector_type: 'SrcConnType',
src_datasource_id: 'SrcSource',
src_table: 'SrcTable',
src_filter: 'SrcFilter',
src_field: 'SrcField',
statistics_name: 'ActualValName',
check_type: 'CheckType',
operator: 'Operator',
threshold: 'Threshold',
failure_strategy: 'FailureStrategy',
target_connector_type: 'TargetConnType',
target_datasource_id: 'TargetSourceId',
target_table: 'TargetTable',
target_filter: 'TargetFilter',
mapping_columns: 'OnClause',
statistics_execute_sql: 'ActualValExecSql',
comparison_name: 'ExceptedValName',
comparison_execute_sql: 'ExceptedValExecSql',
comparison_type: 'ExceptedValType',
writer_connector_type: 'WriterConnType',
writer_datasource_id: 'WriterSourceId',
target_field: 'TargetField',
field_length: 'FieldLength',
logic_operator: 'LogicOperator',
regexp_pattern: 'RegexpPattern',
deadline: 'Deadline',
datetime_format: 'DatetimeFormat',
enum_list: 'EnumList',
begin_time: 'BeginTime',
fix_value: 'FixValue',
required: 'required',
emr_flow_define_json: 'jobFlowDefineJson',
emr_flow_define_json_tips: 'Please enter the definition of the job flow.'
}
}
const security = {
tenant: {
tenant_manage: 'Tenant Manage',
create_tenant: 'Create Tenant',
search_tips: 'Please enter keywords',
tenant_code: 'Operating System Tenant',
description: 'Description',
queue_name: 'QueueName',
create_time: 'Create Time',
update_time: 'Update Time',
actions: 'Operation',
edit_tenant: 'Edit Tenant',
tenant_code_tips: 'Please enter the operating system tenant',
queue_name_tips: 'Please select queue',
description_tips: 'Please enter a description',
delete_confirm: 'Delete?',
edit: 'Edit',
delete: 'Delete'
},
alarm_group: {
create_alarm_group: 'Create Alarm Group',
edit_alarm_group: 'Edit Alarm Group',
search_tips: 'Please enter keywords',
alert_group_name_tips: 'Please enter your alert group name',
alarm_plugin_instance: 'Alarm Plugin Instance',
alarm_plugin_instance_tips: 'Please select alert plugin instance',
alarm_group_description_tips: 'Please enter your alarm group description',
alert_group_name: 'Alert Group Name',
alarm_group_description: 'Alarm Group Description',
create_time: 'Create Time',
update_time: 'Update Time',
operation: 'Operation',
delete_confirm: 'Delete?',
edit: 'Edit',
delete: 'Delete'
},
worker_group: {
create_worker_group: 'Create Worker Group',
edit_worker_group: 'Edit Worker Group',
search_tips: 'Please enter keywords',
operation: 'Operation',
delete_confirm: 'Delete?',
edit: 'Edit',
delete: 'Delete',
group_name: 'Group Name',
group_name_tips: 'Please enter your group name',
worker_addresses: 'Worker Addresses',
worker_addresses_tips: 'Please select worker addresses',
create_time: 'Create Time',
update_time: 'Update Time'
},
yarn_queue: {
create_queue: 'Create Queue',
edit_queue: 'Edit Queue',
search_tips: 'Please enter keywords',
queue_name: 'Queue Name',
queue_value: 'Queue Value',
create_time: 'Create Time',
update_time: 'Update Time',
operation: 'Operation',
edit: 'Edit',
queue_name_tips: 'Please enter your queue name',
queue_value_tips: 'Please enter your queue value'
},
environment: {
create_environment: 'Create Environment',
edit_environment: 'Edit Environment',
search_tips: 'Please enter keywords',
edit: 'Edit',
delete: 'Delete',
environment_name: 'Environment Name',
environment_config: 'Environment Config',
environment_desc: 'Environment Desc',
worker_groups: 'Worker Groups',
create_time: 'Create Time',
update_time: 'Update Time',
operation: 'Operation',
delete_confirm: 'Delete?',
environment_name_tips: 'Please enter your environment name',
environment_config_tips: 'Please enter your environment config',
environment_description_tips: 'Please enter your environment description',
worker_group_tips: 'Please select worker group'
},
token: {
create_token: 'Create Token',
edit_token: 'Edit Token',
search_tips: 'Please enter keywords',
user: 'User',
user_tips: 'Please select user',
token: 'Token',
token_tips: 'Please enter your token',
expiration_time: 'Expiration Time',
expiration_time_tips: 'Please select expiration time',
create_time: 'Create Time',
update_time: 'Update Time',
operation: 'Operation',
edit: 'Edit',
delete: 'Delete',
delete_confirm: 'Delete?'
},
user: {
user_manage: 'User Manage',
create_user: 'Create User',
update_user: 'Update User',
delete_user: 'Delete User',
delete_confirm: 'Are you sure to delete?',
delete_confirm_tip:
'Deleting user is a dangerous operation,please be careful',
project: 'Project',
resource: 'Resource',
file_resource: 'File Resource',
udf_resource: 'UDF Resource',
datasource: 'Datasource',
udf: 'UDF Function',
authorize_project: 'Project Authorize',
authorize_resource: 'Resource Authorize',
authorize_datasource: 'Datasource Authorize',
authorize_udf: 'UDF Function Authorize',
username: 'Username',
username_exists: 'The username already exists',
username_tips: 'Please enter username',
user_password: 'Password',
user_password_tips:
'Please enter a password containing letters and numbers with a length between 6 and 20',
user_type: 'User Type',
ordinary_user: 'Ordinary users',
administrator: 'Administrator',
tenant_code: 'Tenant',
tenant_id_tips: 'Please select tenant',
queue: 'Queue',
queue_tips: 'Please select a queue',
email: 'Email',
email_empty_tips: 'Please enter email',
emial_correct_tips: 'Please enter the correct email format',
phone: 'Phone',
phone_empty_tips: 'Please enter phone number',
phone_correct_tips: 'Please enter the correct mobile phone format',
state: 'State',
state_enabled: 'Enabled',
state_disabled: 'Disabled',
create_time: 'Create Time',
update_time: 'Update Time',
operation: 'Operation',
edit: 'Edit',
delete: 'Delete',
authorize: 'Authorize',
save_error_msg: 'Failed to save, please retry',
delete_error_msg: 'Failed to delete, please retry',
auth_error_msg: 'Failed to authorize, please retry',
auth_success_msg: 'Authorize succeeded',
enable: 'Enable',
disable: 'Disable'
},
alarm_instance: {
search_input_tips: 'Please input the keywords',
alarm_instance_manage: 'Alarm instance manage',
alarm_instance: 'Alarm Instance',
alarm_instance_name: 'Alarm instance name',
alarm_instance_name_tips: 'Please enter alarm plugin instance name',
alarm_plugin_name: 'Alarm plugin name',
create_time: 'Create Time',
update_time: 'Update Time',
operation: 'Operation',
edit: 'Edit',
delete: 'Delete',
confirm: 'Confirm',
cancel: 'Cancel',
submit: 'Submit',
create: 'Create',
select_plugin: 'Select plugin',
select_plugin_tips: 'Select Alarm plugin',
instance_parameter_exception: 'Instance parameter exception',
WebHook: 'WebHook',
webHook: 'WebHook',
IsEnableProxy: 'Enable Proxy',
Proxy: 'Proxy',
Port: 'Port',
User: 'User',
corpId: 'CorpId',
secret: 'Secret',
Secret: 'Secret',
users: 'Users',
userSendMsg: 'UserSendMsg',
agentId: 'AgentId',
showType: 'Show Type',
receivers: 'Receivers',
receiverCcs: 'ReceiverCcs',
serverHost: 'SMTP Host',
serverPort: 'SMTP Port',
sender: 'Sender',
enableSmtpAuth: 'SMTP Auth',
Password: 'Password',
starttlsEnable: 'SMTP STARTTLS Enable',
sslEnable: 'SMTP SSL Enable',
smtpSslTrust: 'SMTP SSL Trust',
url: 'URL',
requestType: 'Request Type',
headerParams: 'Headers',
bodyParams: 'Body',
contentField: 'Content Field',
Keyword: 'Keyword',
userParams: 'User Params',
path: 'Script Path',
type: 'Type',
sendType: 'Send Type',
username: 'Username',
botToken: 'Bot Token',
chatId: 'Channel Chat Id',
parseMode: 'Parse Mode'
},
k8s_namespace: {
create_namespace: 'Create Namespace',
edit_namespace: 'Edit Namespace',
search_tips: 'Please enter keywords',
k8s_namespace: 'K8S Namespace',
k8s_namespace_tips: 'Please enter k8s namespace',
k8s_cluster: 'K8S Cluster',
k8s_cluster_tips: 'Please enter k8s cluster',
owner: 'Owner',
owner_tips: 'Please enter owner',
tag: 'Tag',
tag_tips: 'Please enter tag',
limit_cpu: 'Limit CPU',
limit_cpu_tips: 'Please enter limit CPU',
limit_memory: 'Limit Memory',
limit_memory_tips: 'Please enter limit memory',
create_time: 'Create Time',
update_time: 'Update Time',
operation: 'Operation',
edit: 'Edit',
delete: 'Delete',
delete_confirm: 'Delete?'
}
}
const datasource = {
datasource: 'DataSource',
create_datasource: 'Create DataSource',
search_input_tips: 'Please input the keywords',
datasource_name: 'Datasource Name',
datasource_name_tips: 'Please enter datasource name',
datasource_user_name: 'Owner',
datasource_type: 'Datasource Type',
datasource_parameter: 'Datasource Parameter',
description: 'Description',
description_tips: 'Please enter description',
create_time: 'Create Time',
update_time: 'Update Time',
operation: 'Operation',
click_to_view: 'Click to view',
delete: 'Delete',
confirm: 'Confirm',
delete_confirm: 'Delete?',
cancel: 'Cancel',
create: 'Create',
edit: 'Edit',
success: 'Success',
test_connect: 'Test Connect',
ip: 'IP',
ip_tips: 'Please enter IP',
port: 'Port',
port_tips: 'Please enter port',
database_name: 'Database Name',
database_name_tips: 'Please enter database name',
oracle_connect_type: 'ServiceName or SID',
oracle_connect_type_tips: 'Please select serviceName or SID',
oracle_service_name: 'ServiceName',
oracle_sid: 'SID',
jdbc_connect_parameters: 'jdbc connect parameters',
principal_tips: 'Please enter Principal',
krb5_conf_tips:
'Please enter the kerberos authentication parameter java.security.krb5.conf',
keytab_username_tips:
'Please enter the kerberos authentication parameter login.user.keytab.username',
keytab_path_tips:
'Please enter the kerberos authentication parameter login.user.keytab.path',
format_tips: 'Please enter format',
connection_parameter: 'connection parameter',
user_name: 'User Name',
user_name_tips: 'Please enter your username',
user_password: 'Password',
user_password_tips: 'Please enter your password'
}
const data_quality = {
task_result: {
task_name: 'Task Name',
workflow_instance: 'Workflow Instance',
rule_type: 'Rule Type',
rule_name: 'Rule Name',
state: 'State',
actual_value: 'Actual Value',
excepted_value: 'Excepted Value',
check_type: 'Check Type',
operator: 'Operator',
threshold: 'Threshold',
failure_strategy: 'Failure Strategy',
excepted_value_type: 'Excepted Value Type',
error_output_path: 'Error Output Path',
username: 'Username',
create_time: 'Create Time',
update_time: 'Update Time',
undone: 'Undone',
success: 'Success',
failure: 'Failure',
single_table: 'Single Table',
single_table_custom_sql: 'Single Table Custom Sql',
multi_table_accuracy: 'Multi Table Accuracy',
multi_table_comparison: 'Multi Table Comparison',
expected_and_actual_or_expected: '(Expected - Actual) / Expected x 100%',
expected_and_actual: 'Expected - Actual',
actual_and_expected: 'Actual - Expected',
actual_or_expected: 'Actual / Expected x 100%'
},
rule: {
actions: 'Actions',
name: 'Rule Name',
type: 'Rule Type',
username: 'User Name',
create_time: 'Create Time',
update_time: 'Update Time',
input_item: 'Rule input item',
view_input_item: 'View input items',
input_item_title: 'Input item title',
input_item_placeholder: 'Input item placeholder',
input_item_type: 'Input item type',
src_connector_type: 'SrcConnType',
src_datasource_id: 'SrcSource',
src_table: 'SrcTable',
src_filter: 'SrcFilter',
src_field: 'SrcField',
statistics_name: 'ActualValName',
check_type: 'CheckType',
operator: 'Operator',
threshold: 'Threshold',
failure_strategy: 'FailureStrategy',
target_connector_type: 'TargetConnType',
target_datasource_id: 'TargetSourceId',
target_table: 'TargetTable',
target_filter: 'TargetFilter',
mapping_columns: 'OnClause',
statistics_execute_sql: 'ActualValExecSql',
comparison_name: 'ExceptedValName',
comparison_execute_sql: 'ExceptedValExecSql',
comparison_type: 'ExceptedValType',
writer_connector_type: 'WriterConnType',
writer_datasource_id: 'WriterSourceId',
target_field: 'TargetField',
field_length: 'FieldLength',
logic_operator: 'LogicOperator',
regexp_pattern: 'RegexpPattern',
deadline: 'Deadline',
datetime_format: 'DatetimeFormat',
enum_list: 'EnumList',
begin_time: 'BeginTime',
fix_value: 'FixValue',
null_check: 'NullCheck',
custom_sql: 'Custom Sql',
single_table: 'Single Table',
single_table_custom_sql: 'Single Table Custom Sql',
multi_table_accuracy: 'Multi Table Accuracy',
multi_table_value_comparison: 'Multi Table Compare',
field_length_check: 'FieldLengthCheck',
uniqueness_check: 'UniquenessCheck',
regexp_check: 'RegexpCheck',
timeliness_check: 'TimelinessCheck',
enumeration_check: 'EnumerationCheck',
table_count_check: 'TableCountCheck',
All: 'All',
FixValue: 'FixValue',
DailyAvg: 'DailyAvg',
WeeklyAvg: 'WeeklyAvg',
MonthlyAvg: 'MonthlyAvg',
Last7DayAvg: 'Last7DayAvg',
Last30DayAvg: 'Last30DayAvg',
SrcTableTotalRows: 'SrcTableTotalRows',
TargetTableTotalRows: 'TargetTableTotalRows'
}
}
const crontab = {
second: 'second',
minute: 'minute',
hour: 'hour',
day: 'day',
month: 'month',
year: 'year',
monday: 'Monday',
tuesday: 'Tuesday',
wednesday: 'Wednesday',
thursday: 'Thursday',
friday: 'Friday',
saturday: 'Saturday',
sunday: 'Sunday',
every_second: 'Every second',
every: 'Every',
second_carried_out: 'second carried out',
second_start: 'Start',
specific_second: 'Specific second(multiple)',
specific_second_tip: 'Please enter a specific second',
cycle_from: 'Cycle from',
to: 'to',
every_minute: 'Every minute',
minute_carried_out: 'minute carried out',
minute_start: 'Start',
specific_minute: 'Specific minute(multiple)',
specific_minute_tip: 'Please enter a specific minute',
every_hour: 'Every hour',
hour_carried_out: 'hour carried out',
hour_start: 'Start',
specific_hour: 'Specific hour(multiple)',
specific_hour_tip: 'Please enter a specific hour',
every_day: 'Every day',
week_carried_out: 'week carried out',
start: 'Start',
day_carried_out: 'day carried out',
day_start: 'Start',
specific_week: 'Specific day of the week(multiple)',
specific_week_tip: 'Please enter a specific week',
specific_day: 'Specific days(multiple)',
specific_day_tip: 'Please enter a days',
last_day_of_month: 'On the last day of the month',
last_work_day_of_month: 'On the last working day of the month',
last_of_month: 'At the last of this month',
before_end_of_month: 'Before the end of this month',
recent_business_day_to_month:
'The most recent business day (Monday to Friday) to this month',
in_this_months: 'In this months',
every_month: 'Every month',
month_carried_out: 'month carried out',
month_start: 'Start',
specific_month: 'Specific months(multiple)',
specific_month_tip: 'Please enter a months',
every_year: 'Every year',
year_carried_out: 'year carried out',
year_start: 'Start',
specific_year: 'Specific year(multiple)',
specific_year_tip: 'Please enter a year',
one_hour: 'hour',
one_day: 'day'
}
export default {
login,
modal,
theme,
userDropdown,
menu,
home,
password,
profile,
monitor,
resource,
project,
security,
datasource,
data_quality,
crontab
}
|
closed
|
apache/dolphinscheduler
|
https://github.com/apache/dolphinscheduler
| 8,967 |
[Bug][UI Next][V1.0.0-Alpha] There is no floating prompt for the table operation button in the alarm instance management.
|
### Search before asking
- [X] I had searched in the [issues](https://github.com/apache/dolphinscheduler/issues?q=is%3Aissue) and found no similar issues.
### What happened

### What you expected to happen
There is no floating prompt for the table operation button in the alarm instance management.
### How to reproduce
Add hover prompt.
### Anything else
_No response_
### Version
dev
### Are you willing to submit PR?
- [X] Yes I am willing to submit a PR!
### Code of Conduct
- [X] I agree to follow this project's [Code of Conduct](https://www.apache.org/foundation/policies/conduct)
|
https://github.com/apache/dolphinscheduler/issues/8967
|
https://github.com/apache/dolphinscheduler/pull/8978
|
a485771a738397dc8ced69636a3098eb89b47741
|
c29a51a8c71fd015cb459daa1ae77d1cc3255e28
| 2022-03-17T09:40:02Z |
java
| 2022-03-18T06:32:22Z |
dolphinscheduler-ui-next/src/locales/modules/zh_CN.ts
|
/*
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership.
* The ASF licenses this file to You under the Apache License, Version 2.0
* (the "License"); you may not use this file except in compliance with
* the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
const login = {
test: '测试',
userName: '用户名',
userName_tips: '请输入用户名',
userPassword: '密码',
userPassword_tips: '请输入密码',
login: '登录'
}
const modal = {
cancel: '取消',
confirm: '确定'
}
const theme = {
light: '浅色',
dark: '深色'
}
const userDropdown = {
profile: '用户信息',
password: '密码管理',
logout: '退出登录'
}
const menu = {
home: '首页',
project: '项目管理',
resources: '资源中心',
datasource: '数据源中心',
monitor: '监控中心',
security: '安全中心',
project_overview: '项目概览',
workflow_relation: '工作流关系',
workflow: '工作流',
workflow_definition: '工作流定义',
workflow_instance: '工作流实例',
task: '任务',
task_instance: '任务实例',
task_definition: '任务定义',
file_manage: '文件管理',
udf_manage: 'UDF管理',
resource_manage: '资源管理',
function_manage: '函数管理',
service_manage: '服务管理',
master: 'Master',
worker: 'Worker',
db: 'DB',
statistical_manage: '统计管理',
statistics: 'Statistics',
audit_log: '审计日志',
tenant_manage: '租户管理',
user_manage: '用户管理',
alarm_group_manage: '告警组管理',
alarm_instance_manage: '告警实例管理',
worker_group_manage: 'Worker分组管理',
yarn_queue_manage: 'Yarn队列管理',
environment_manage: '环境管理',
k8s_namespace_manage: 'K8S命名空间管理',
token_manage: '令牌管理',
task_group_manage: '任务组管理',
task_group_option: '任务组配置',
task_group_queue: '任务组队列',
data_quality: '数据质量',
task_result: '任务结果',
rule: '规则管理'
}
const home = {
task_state_statistics: '任务状态统计',
process_state_statistics: '流程状态统计',
process_definition_statistics: '流程定义统计',
number: '数量',
state: '状态',
submitted_success: '提交成功',
running_execution: '正在运行',
ready_pause: '准备暂停',
pause: '暂停',
ready_stop: '准备停止',
stop: '停止',
failure: '失败',
success: '成功',
need_fault_tolerance: '需要容错',
kill: 'KILL',
waiting_thread: '等待线程',
waiting_depend: '等待依赖完成',
delay_execution: '延时执行',
forced_success: '强制成功',
serial_wait: '串行等待',
ready_block: '准备阻断',
block: '阻断'
}
const password = {
edit_password: '修改密码',
password: '密码',
confirm_password: '确认密码',
password_tips: '请输入密码',
confirm_password_tips: '请输入确认密码',
two_password_entries_are_inconsistent: '两次密码输入不一致',
submit: '提交'
}
const profile = {
profile: '用户信息',
edit: '编辑',
username: '用户名',
email: '邮箱',
phone: '手机',
state: '状态',
permission: '权限',
create_time: '创建时间',
update_time: '更新时间',
administrator: '管理员',
ordinary_user: '普通用户',
edit_profile: '编辑用户',
username_tips: '请输入用户名',
email_tips: '请输入邮箱',
email_correct_tips: '请输入正确格式的邮箱',
phone_tips: '请输入手机号',
state_tips: '请选择状态',
enable: '启用',
disable: '禁用',
timezone_success: '时区更新成功',
please_select_timezone: '请选择时区'
}
const monitor = {
master: {
cpu_usage: '处理器使用量',
memory_usage: '内存使用量',
load_average: '平均负载量',
create_time: '创建时间',
last_heartbeat_time: '最后心跳时间',
directory_detail: '目录详情',
host: '主机',
directory: '注册目录'
},
worker: {
cpu_usage: '处理器使用量',
memory_usage: '内存使用量',
load_average: '平均负载量',
create_time: '创建时间',
last_heartbeat_time: '最后心跳时间',
directory_detail: '目录详情',
host: '主机',
directory: '注册目录'
},
db: {
health_state: '健康状态',
max_connections: '最大连接数',
threads_connections: '当前连接数',
threads_running_connections: '数据库当前活跃连接数'
},
statistics: {
command_number_of_waiting_for_running: '待执行的命令数',
failure_command_number: '执行失败的命令数',
tasks_number_of_waiting_running: '待运行任务数',
task_number_of_ready_to_kill: '待杀死任务数'
},
audit_log: {
user_name: '用户名称',
resource_type: '资源类型',
project_name: '项目名称',
operation_type: '操作类型',
create_time: '创建时间',
start_time: '开始时间',
end_time: '结束时间',
user_audit: '用户管理审计',
project_audit: '项目管理审计',
create: '创建',
update: '更新',
delete: '删除',
read: '读取'
}
}
const resource = {
file: {
file_manage: '文件管理',
create_folder: '创建文件夹',
create_file: '创建文件',
upload_files: '上传文件',
enter_keyword_tips: '请输入关键词',
name: '名称',
user_name: '所属用户',
whether_directory: '是否文件夹',
file_name: '文件名称',
description: '描述',
size: '大小',
update_time: '更新时间',
operation: '操作',
edit: '编辑',
rename: '重命名',
download: '下载',
delete: '删除',
yes: '是',
no: '否',
folder_name: '文件夹名称',
enter_name_tips: '请输入名称',
enter_description_tips: '请输入描述',
enter_content_tips: '请输入资源内容',
enter_suffix_tips: '请输入文件后缀',
file_format: '文件格式',
file_content: '文件内容',
delete_confirm: '确定删除吗?',
confirm: '确定',
cancel: '取消',
success: '成功',
file_details: '文件详情',
return: '返回',
save: '保存'
},
udf: {
udf_resources: 'UDF资源',
create_folder: '创建文件夹',
upload_udf_resources: '上传UDF资源',
udf_source_name: 'UDF资源名称',
whether_directory: '是否文件夹',
file_name: '文件名称',
file_size: '文件大小',
description: '描述',
create_time: '创建时间',
update_time: '更新时间',
operation: '操作',
yes: '是',
no: '否',
edit: '编辑',
download: '下载',
delete: '删除',
success: '成功',
folder_name: '文件夹名称',
upload: '上传',
upload_files: '上传文件',
file_upload: '文件上传',
delete_confirm: '确定删除吗?',
enter_keyword_tips: '请输入关键词',
enter_name_tips: '请输入名称',
enter_description_tips: '请输入描述'
},
function: {
udf_function: 'UDF函数',
create_udf_function: '创建UDF函数',
edit_udf_function: '编辑UDF函数',
udf_function_name: 'UDF函数名称',
class_name: '类名',
type: '类型',
description: '描述',
jar_package: 'jar包',
update_time: '更新时间',
operation: '操作',
rename: '重命名',
edit: '编辑',
delete: '删除',
success: '成功',
package_name: '包名类名',
udf_resources: 'UDF资源',
instructions: '使用说明',
upload_resources: '上传资源',
udf_resources_directory: 'UDF资源目录',
delete_confirm: '确定删除吗?',
enter_keyword_tips: '请输入关键词',
enter_udf_unction_name_tips: '请输入UDF函数名称',
enter_package_name_tips: '请输入包名类名',
enter_select_udf_resources_tips: '请选择UDF资源',
enter_select_udf_resources_directory_tips: '请选择UDF资源目录',
enter_instructions_tips: '请输入使用说明',
enter_name_tips: '请输入名称',
enter_description_tips: '请输入描述'
},
task_group_option: {
manage: '任务组管理',
option: '任务组配置',
create: '创建任务组',
edit: '编辑任务组',
delete: '删除任务组',
view_queue: '查看任务组队列',
switch_status: '切换任务组状态',
code: '任务组编号',
name: '任务组名称',
project_name: '项目名称',
resource_pool_size: '资源容量',
resource_used_pool_size: '已用资源',
desc: '描述信息',
status: '任务组状态',
enable_status: '启用',
disable_status: '不可用',
please_enter_name: '请输入任务组名称',
please_enter_desc: '请输入任务组描述',
please_enter_resource_pool_size: '请输入资源容量大小',
resource_pool_size_be_a_number: '资源容量大小必须大于等于1的数值',
please_select_project: '请选择项目',
create_time: '创建时间',
update_time: '更新时间',
actions: '操作',
please_enter_keywords: '请输入搜索关键词'
},
task_group_queue: {
actions: '操作',
task_name: '任务名称',
task_group_name: '任务组名称',
project_name: '项目名称',
process_name: '工作流名称',
process_instance_name: '工作流实例',
queue: '任务组队列',
priority: '组内优先级',
priority_be_a_number: '优先级必须是大于等于0的数值',
force_starting_status: '是否强制启动',
in_queue: '是否排队中',
task_status: '任务状态',
view_task_group_queue: '查看任务组队列',
the_status_of_waiting: '等待入队',
the_status_of_queuing: '排队中',
the_status_of_releasing: '已释放',
modify_priority: '修改优先级',
start_task: '强制启动',
priority_not_empty: '优先级不能为空',
priority_must_be_number: '优先级必须是数值',
please_select_task_name: '请选择节点名称',
create_time: '创建时间',
update_time: '更新时间',
edit_priority: '修改优先级'
}
}
const project = {
list: {
create_project: '创建项目',
edit_project: '编辑项目',
project_list: '项目列表',
project_tips: '请输入项目名称',
description_tips: '请输入项目描述',
username_tips: '请输入所属用户',
project_name: '项目名称',
project_description: '项目描述',
owned_users: '所属用户',
workflow_define_count: '工作流定义数',
process_instance_running_count: '正在运行的流程数',
description: '描述',
create_time: '创建时间',
update_time: '更新时间',
operation: '操作',
edit: '编辑',
delete: '删除',
confirm: '确定',
cancel: '取消',
delete_confirm: '确定删除吗?'
},
workflow: {
workflow_relation: '工作流关系',
create_workflow: '创建工作流',
import_workflow: '导入工作流',
workflow_name: '工作流名称',
current_selection: '当前选择',
online: '已上线',
offline: '已下线',
refresh: '刷新',
show_hide_label: '显示 / 隐藏标签',
workflow_offline: '工作流下线',
schedule_offline: '调度下线',
schedule_start_time: '定时开始时间',
schedule_end_time: '定时结束时间',
crontab_expression: 'Crontab',
workflow_publish_status: '工作流上线状态',
schedule_publish_status: '定时状态',
workflow_definition: '工作流定义',
workflow_instance: '工作流实例',
status: '状态',
create_time: '创建时间',
update_time: '更新时间',
description: '描述',
create_user: '创建用户',
modify_user: '修改用户',
operation: '操作',
edit: '编辑',
confirm: '确定',
cancel: '取消',
start: '运行',
timing: '定时',
timezone: '时区',
up_line: '上线',
down_line: '下线',
copy_workflow: '复制工作流',
cron_manage: '定时管理',
delete: '删除',
tree_view: '工作流树形图',
tree_limit: '限制大小',
export: '导出',
batch_copy: '批量复制',
version_info: '版本信息',
version: '版本',
file_upload: '文件上传',
upload_file: '上传文件',
upload: '上传',
file_name: '文件名称',
success: '成功',
set_parameters_before_starting: '启动前请先设置参数',
set_parameters_before_timing: '定时前请先设置参数',
start_and_stop_time: '起止时间',
next_five_execution_times: '接下来五次执行时间',
execute_time: '执行时间',
failure_strategy: '失败策略',
notification_strategy: '通知策略',
workflow_priority: '流程优先级',
worker_group: 'Worker分组',
environment_name: '环境名称',
alarm_group: '告警组',
complement_data: '补数',
startup_parameter: '启动参数',
whether_dry_run: '是否空跑',
continue: '继续',
end: '结束',
none_send: '都不发',
success_send: '成功发',
failure_send: '失败发',
all_send: '成功或失败都发',
whether_complement_data: '是否是补数',
schedule_date: '调度日期',
mode_of_execution: '执行方式',
serial_execution: '串行执行',
parallel_execution: '并行执行',
parallelism: '并行度',
custom_parallelism: '自定义并行度',
please_enter_parallelism: '请输入并行度',
please_choose: '请选择',
start_time: '开始时间',
end_time: '结束时间',
crontab: 'Crontab',
delete_confirm: '确定删除吗?',
enter_name_tips: '请输入名称',
switch_version: '切换到该版本',
confirm_switch_version: '确定切换到该版本吗?',
current_version: '当前版本',
run_type: '运行类型',
scheduling_time: '调度时间',
duration: '运行时长',
run_times: '运行次数',
fault_tolerant_sign: '容错标识',
dry_run_flag: '空跑标识',
executor: '执行用户',
host: 'Host',
start_process: '启动工作流',
execute_from_the_current_node: '从当前节点开始执行',
recover_tolerance_fault_process: '恢复被容错的工作流',
resume_the_suspension_process: '恢复运行流程',
execute_from_the_failed_nodes: '从失败节点开始执行',
scheduling_execution: '调度执行',
rerun: '重跑',
stop: '停止',
pause: '暂停',
recovery_waiting_thread: '恢复等待线程',
recover_serial_wait: '串行恢复',
recovery_suspend: '恢复运行',
recovery_failed: '恢复失败',
gantt: '甘特图',
name: '名称',
all_status: '全部状态',
submit_success: '提交成功',
running: '正在运行',
ready_to_pause: '准备暂停',
ready_to_stop: '准备停止',
failed: '失败',
need_fault_tolerance: '需要容错',
kill: 'Kill',
waiting_for_thread: '等待线程',
waiting_for_dependence: '等待依赖',
waiting_for_dependency_to_complete: '等待依赖完成',
delay_execution: '延时执行',
forced_success: '强制成功',
serial_wait: '串行等待',
executing: '正在执行',
startup_type: '启动类型',
complement_range: '补数范围',
parameters_variables: '参数变量',
global_parameters: '全局参数',
local_parameters: '局部参数',
type: '类型',
retry_count: '重试次数',
submit_time: '提交时间',
refresh_status_succeeded: '刷新状态成功',
view_log: '查看日志',
update_log_success: '更新日志成功',
no_more_log: '暂无更多日志',
no_log: '暂无日志',
loading_log: '正在努力请求日志中...',
close: '关闭',
download_log: '下载日志',
refresh_log: '刷新日志',
enter_full_screen: '进入全屏',
cancel_full_screen: '取消全屏',
task_state: '任务状态',
mode_of_dependent: '依赖模式',
open: '打开',
project_name_required: '项目名称必填',
related_items: '关联项目',
project_name: '项目名称',
project_tips: '请选择项目'
},
task: {
task_name: '任务名称',
task_type: '任务类型',
create_task: '创建任务',
workflow_instance: '工作流实例',
workflow_name: '工作流名称',
workflow_name_tips: '请选择工作流名称',
workflow_state: '工作流状态',
version: '版本',
current_version: '当前版本',
switch_version: '切换到该版本',
confirm_switch_version: '确定切换到该版本吗?',
description: '描述',
move: '移动',
upstream_tasks: '上游任务',
executor: '执行用户',
node_type: '节点类型',
state: '状态',
submit_time: '提交时间',
start_time: '开始时间',
create_time: '创建时间',
update_time: '更新时间',
end_time: '结束时间',
duration: '运行时间',
retry_count: '重试次数',
dry_run_flag: '空跑标识',
host: '主机',
operation: '操作',
edit: '编辑',
delete: '删除',
delete_confirm: '确定删除吗?',
submitted_success: '提交成功',
running_execution: '正在运行',
ready_pause: '准备暂停',
pause: '暂停',
ready_stop: '准备停止',
stop: '停止',
failure: '失败',
success: '成功',
need_fault_tolerance: '需要容错',
kill: 'KILL',
waiting_thread: '等待线程',
waiting_depend: '等待依赖完成',
delay_execution: '延时执行',
forced_success: '强制成功',
view_log: '查看日志',
download_log: '下载日志',
refresh: '刷新',
serial_wait: '串行等待'
},
dag: {
create: '创建工作流',
search: '搜索',
download_png: '下载工作流图片',
fullscreen_open: '全屏',
fullscreen_close: '退出全屏',
save: '保存',
close: '关闭',
format: '格式化',
refresh_dag_status: '刷新DAG状态',
layout_type: '布局类型',
grid_layout: '网格布局',
dagre_layout: '层次布局',
rows: '行数',
cols: '列数',
copy_success: '复制成功',
workflow_name: '工作流名称',
description: '描述',
tenant: '租户',
timeout_alert: '超时告警',
global_variables: '全局变量',
basic_info: '基本信息',
minute: '分',
key: '键',
value: '值',
success: '成功',
delete_cell: '删除选中的线或节点',
online_directly: '是否上线流程定义',
update_directly: '是否更新流程定义',
dag_name_empty: 'DAG图名称不能为空',
positive_integer: '请输入大于 0 的正整数',
prop_empty: '自定义参数prop不能为空',
prop_repeat: 'prop中有重复',
node_not_created: '未创建节点保存失败',
copy_name: '复制名称',
view_variables: '查看变量',
startup_parameter: '启动参数'
},
node: {
current_node_settings: '当前节点设置',
instructions: '使用说明',
view_history: '查看历史',
view_log: '查看日志',
enter_this_child_node: '进入该子节点',
name: '节点名称',
name_tips: '请输入名称(必填)',
task_type: '任务类型',
task_type_tips: '请选择任务类型(必选)',
process_name: '工作流名称',
process_name_tips: '请选择工作流(必选)',
child_node: '子节点',
enter_child_node: '进入该子节点',
run_flag: '运行标志',
normal: '正常',
prohibition_execution: '禁止执行',
description: '描述',
description_tips: '请输入描述',
task_priority: '任务优先级',
worker_group: 'Worker分组',
worker_group_tips: '该Worker分组已经不存在,请选择正确的Worker分组!',
environment_name: '环境名称',
task_group_name: '任务组名称',
task_group_queue_priority: '组内优先级',
number_of_failed_retries: '失败重试次数',
times: '次',
failed_retry_interval: '失败重试间隔',
minute: '分',
delay_execution_time: '延时执行时间',
state: '状态',
branch_flow: '分支流转',
cancel: '取消',
loading: '正在努力加载中...',
confirm: '确定',
success: '成功',
failed: '失败',
backfill_tips: '新创建子工作流还未执行,不能进入子工作流',
task_instance_tips: '该任务还未执行,不能进入子工作流',
branch_tips: '成功分支流转和失败分支流转不能选择同一个节点',
timeout_alarm: '超时告警',
timeout_strategy: '超时策略',
timeout_strategy_tips: '超时策略必须选一个',
timeout_failure: '超时失败',
timeout_period: '超时时长',
timeout_period_tips: '超时时长必须为正整数',
script: '脚本',
script_tips: '请输入脚本(必填)',
resources: '资源',
resources_tips: '请选择资源',
no_resources_tips: '请删除所有未授权或已删除资源',
useless_resources_tips: '未授权或已删除资源',
custom_parameters: '自定义参数',
copy_failed: '该浏览器不支持自动复制',
prop_tips: 'prop(必填)',
prop_repeat: 'prop中有重复',
value_tips: 'value(选填)',
value_required_tips: 'value(必填)',
pre_tasks: '前置任务',
program_type: '程序类型',
spark_version: 'Spark版本',
main_class: '主函数的Class',
main_class_tips: '请填写主函数的Class',
main_package: '主程序包',
main_package_tips: '请选择主程序包',
deploy_mode: '部署方式',
app_name: '任务名称',
app_name_tips: '请输入任务名称(选填)',
driver_cores: 'Driver核心数',
driver_cores_tips: '请输入Driver核心数',
driver_memory: 'Driver内存数',
driver_memory_tips: '请输入Driver内存数',
executor_number: 'Executor数量',
executor_number_tips: '请输入Executor数量',
executor_memory: 'Executor内存数',
executor_memory_tips: '请输入Executor内存数',
executor_cores: 'Executor核心数',
executor_cores_tips: '请输入Executor核心数',
main_arguments: '主程序参数',
main_arguments_tips: '请输入主程序参数',
option_parameters: '选项参数',
option_parameters_tips: '请输入选项参数',
positive_integer_tips: '应为正整数',
flink_version: 'Flink版本',
job_manager_memory: 'JobManager内存数',
job_manager_memory_tips: '请输入JobManager内存数',
task_manager_memory: 'TaskManager内存数',
task_manager_memory_tips: '请输入TaskManager内存数',
slot_number: 'Slot数量',
slot_number_tips: '请输入Slot数量',
parallelism: '并行度',
custom_parallelism: '自定义并行度',
parallelism_tips: '请输入并行度',
parallelism_number_tips: '并行度必须为正整数',
parallelism_complement_tips:
'如果存在大量任务需要补数时,可以利用自定义并行度将补数的任务线程设置成合理的数值,避免对服务器造成过大的影响',
task_manager_number: 'TaskManager数量',
task_manager_number_tips: '请输入TaskManager数量',
http_url: '请求地址',
http_url_tips: '请填写请求地址(必填)',
http_method: '请求类型',
http_parameters: '请求参数',
http_check_condition: '校验条件',
http_condition: '校验内容',
http_condition_tips: '请填写校验内容',
timeout_settings: '超时设置',
connect_timeout: '连接超时',
ms: '毫秒',
socket_timeout: 'Socket超时',
status_code_default: '默认响应码200',
status_code_custom: '自定义响应码',
body_contains: '内容包含',
body_not_contains: '内容不包含',
http_parameters_position: '参数位置',
target_task_name: '目标任务名',
target_task_name_tips: '请输入Pigeon任务名',
datasource_type: '数据源类型',
datasource_instances: '数据源实例',
sql_type: 'SQL类型',
sql_type_query: '查询',
sql_type_non_query: '非查询',
sql_statement: 'SQL语句',
pre_sql_statement: '前置SQL语句',
post_sql_statement: '后置SQL语句',
sql_input_placeholder: '请输入非查询SQL语句',
sql_empty_tips: '语句不能为空',
procedure_method: 'SQL语句',
procedure_method_tips: '请输入存储脚本',
procedure_method_snippet:
'--请输入存储脚本 \n\n--调用存储过程: call <procedure-name>[(<arg1>,<arg2>, ...)] \n\n--调用存储函数:?= call <procedure-name>[(<arg1>,<arg2>, ...)]',
start: '运行',
edit: '编辑',
copy: '复制节点',
delete: '删除',
custom_job: '自定义任务',
custom_script: '自定义脚本',
sqoop_job_name: '任务名称',
sqoop_job_name_tips: '请输入任务名称(必填)',
direct: '流向',
hadoop_custom_params: 'Hadoop参数',
sqoop_advanced_parameters: 'Sqoop参数',
data_source: '数据来源',
type: '类型',
datasource: '数据源',
datasource_tips: '请选择数据源',
model_type: '模式',
form: '表单',
table: '表名',
table_tips: '请输入Mysql表名(必填)',
column_type: '列类型',
all_columns: '全表导入',
some_columns: '选择列',
column: '列',
column_tips: '请输入列名,用 , 隔开',
database: '数据库',
database_tips: '请输入Hive数据库(必填)',
hive_table_tips: '请输入Hive表名(必填)',
hive_partition_keys: 'Hive 分区键',
hive_partition_keys_tips: '请输入分区键',
hive_partition_values: 'Hive 分区值',
hive_partition_values_tips: '请输入分区值',
export_dir: '数据源路径',
export_dir_tips: '请输入数据源路径(必填)',
sql_statement_tips: 'SQL语句(必填)',
map_column_hive: 'Hive类型映射',
map_column_java: 'Java类型映射',
data_target: '数据目的',
create_hive_table: '是否创建新表',
drop_delimiter: '是否删除分隔符',
over_write_src: '是否覆盖数据源',
hive_target_dir: 'Hive目标路径',
hive_target_dir_tips: '请输入Hive临时目录',
replace_delimiter: '替换分隔符',
replace_delimiter_tips: '请输入替换分隔符',
target_dir: '目标路径',
target_dir_tips: '请输入目标路径(必填)',
delete_target_dir: '是否删除目录',
compression_codec: '压缩类型',
file_type: '保存格式',
fields_terminated: '列分隔符',
fields_terminated_tips: '请输入列分隔符',
lines_terminated: '行分隔符',
lines_terminated_tips: '请输入行分隔符',
is_update: '是否更新',
update_key: '更新列',
update_key_tips: '请输入更新列',
update_mode: '更新类型',
only_update: '只更新',
allow_insert: '无更新便插入',
concurrency: '并发度',
concurrency_tips: '请输入并发度',
sea_tunnel_master: 'Master',
sea_tunnel_master_url: 'Master URL',
sea_tunnel_queue: '队列',
sea_tunnel_master_url_tips: '请直接填写地址,例如:127.0.0.1:7077',
switch_condition: '条件',
switch_branch_flow: '分支流转',
and: '且',
or: '或',
datax_custom_template: '自定义模板',
datax_json_template: 'JSON',
datax_target_datasource_type: '目标源类型',
datax_target_database: '目标源实例',
datax_target_table: '目标表',
datax_target_table_tips: '请输入目标表名',
datax_target_database_pre_sql: '目标库前置SQL',
datax_target_database_post_sql: '目标库后置SQL',
datax_non_query_sql_tips: '请输入非查询SQL语句',
datax_job_speed_byte: '限流(字节数)',
datax_job_speed_byte_info: '(KB,0代表不限制)',
datax_job_speed_record: '限流(记录数)',
datax_job_speed_record_info: '(0代表不限制)',
datax_job_runtime_memory: '运行内存',
datax_job_runtime_memory_xms: '最小内存',
datax_job_runtime_memory_xmx: '最大内存',
datax_job_runtime_memory_unit: 'G',
current_hour: '当前小时',
last_1_hour: '前1小时',
last_2_hour: '前2小时',
last_3_hour: '前3小时',
last_24_hour: '前24小时',
today: '今天',
last_1_days: '昨天',
last_2_days: '前两天',
last_3_days: '前三天',
last_7_days: '前七天',
this_week: '本周',
last_week: '上周',
last_monday: '上周一',
last_tuesday: '上周二',
last_wednesday: '上周三',
last_thursday: '上周四',
last_friday: '上周五',
last_saturday: '上周六',
last_sunday: '上周日',
this_month: '本月',
last_month: '上月',
last_month_begin: '上月初',
last_month_end: '上月末',
month: '月',
week: '周',
day: '日',
hour: '时',
add_dependency: '添加依赖',
waiting_dependent_start: '等待依赖启动',
check_interval: '检查间隔',
waiting_dependent_complete: '等待依赖完成',
rule_name: '规则名称',
null_check: '空值检测',
custom_sql: '自定义SQL',
multi_table_accuracy: '多表准确性',
multi_table_value_comparison: '两表值比对',
field_length_check: '字段长度校验',
uniqueness_check: '唯一性校验',
regexp_check: '正则表达式',
timeliness_check: '及时性校验',
enumeration_check: '枚举值校验',
table_count_check: '表行数校验',
src_connector_type: '源数据类型',
src_datasource_id: '源数据源',
src_table: '源数据表',
src_filter: '源表过滤条件',
src_field: '源表检测列',
statistics_name: '实际值名',
check_type: '校验方式',
operator: '校验操作符',
threshold: '阈值',
failure_strategy: '失败策略',
target_connector_type: '目标数据类型',
target_datasource_id: '目标数据源',
target_table: '目标数据表',
target_filter: '目标表过滤条件',
mapping_columns: 'ON语句',
statistics_execute_sql: '实际值计算SQL',
comparison_name: '期望值名',
comparison_execute_sql: '期望值计算SQL',
comparison_type: '期望值类型',
writer_connector_type: '输出数据类型',
writer_datasource_id: '输出数据源',
target_field: '目标表检测列',
field_length: '字段长度限制',
logic_operator: '逻辑操作符',
regexp_pattern: '正则表达式',
deadline: '截止时间',
datetime_format: '时间格式',
enum_list: '枚举值列表',
begin_time: '起始时间',
fix_value: '固定值',
required: '必填',
emr_flow_define_json: 'jobFlowDefineJson',
emr_flow_define_json_tips: '请输入工作流定义'
}
}
const security = {
tenant: {
tenant_manage: '租户管理',
create_tenant: '创建租户',
search_tips: '请输入关键词',
tenant_code: '操作系统租户',
description: '描述',
queue_name: '队列',
create_time: '创建时间',
update_time: '更新时间',
actions: '操作',
edit_tenant: '编辑租户',
tenant_code_tips: '请输入操作系统租户',
queue_name_tips: '请选择队列',
description_tips: '请输入描述',
delete_confirm: '确定删除吗?',
edit: '编辑',
delete: '删除'
},
alarm_group: {
create_alarm_group: '创建告警组',
edit_alarm_group: '编辑告警组',
search_tips: '请输入关键词',
alert_group_name_tips: '请输入告警组名称',
alarm_plugin_instance: '告警组实例',
alarm_plugin_instance_tips: '请选择告警组实例',
alarm_group_description_tips: '请输入告警组描述',
alert_group_name: '告警组名称',
alarm_group_description: '告警组描述',
create_time: '创建时间',
update_time: '更新时间',
operation: '操作',
delete_confirm: '确定删除吗?',
edit: '编辑',
delete: '删除'
},
worker_group: {
create_worker_group: '创建Worker分组',
edit_worker_group: '编辑Worker分组',
search_tips: '请输入关键词',
operation: '操作',
delete_confirm: '确定删除吗?',
edit: '编辑',
delete: '删除',
group_name: '分组名称',
group_name_tips: '请输入分组名称',
worker_addresses: 'Worker地址',
worker_addresses_tips: '请选择Worker地址',
create_time: '创建时间',
update_time: '更新时间'
},
yarn_queue: {
create_queue: '创建队列',
edit_queue: '编辑队列',
search_tips: '请输入关键词',
queue_name: '队列名',
queue_value: '队列值',
create_time: '创建时间',
update_time: '更新时间',
operation: '操作',
edit: '编辑',
queue_name_tips: '请输入队列名',
queue_value_tips: '请输入队列值'
},
environment: {
create_environment: '创建环境',
edit_environment: '编辑环境',
search_tips: '请输入关键词',
edit: '编辑',
delete: '删除',
environment_name: '环境名称',
environment_config: '环境配置',
environment_desc: '环境描述',
worker_groups: 'Worker分组',
create_time: '创建时间',
update_time: '更新时间',
operation: '操作',
delete_confirm: '确定删除吗?',
environment_name_tips: '请输入环境名',
environment_config_tips: '请输入环境配置',
environment_description_tips: '请输入环境描述',
worker_group_tips: '请选择Worker分组'
},
token: {
create_token: '创建令牌',
edit_token: '编辑令牌',
search_tips: '请输入关键词',
user: '用户',
user_tips: '请选择用户',
token: '令牌',
token_tips: '请输入令牌',
expiration_time: '失效时间',
expiration_time_tips: '请选择失效时间',
create_time: '创建时间',
update_time: '更新时间',
operation: '操作',
edit: '编辑',
delete: '删除',
delete_confirm: '确定删除吗?'
},
user: {
user_manage: '用户管理',
create_user: '创建用户',
update_user: '更新用户',
delete_user: '删除用户',
delete_confirm: '确定删除吗?',
project: '项目',
resource: '资源',
file_resource: '文件资源',
udf_resource: 'UDF资源',
datasource: '数据源',
udf: 'UDF函数',
authorize_project: '项目授权',
authorize_resource: '资源授权',
authorize_datasource: '数据源授权',
authorize_udf: 'UDF函数授权',
username: '用户名',
username_exists: '用户名已存在',
username_tips: '请输入用户名',
user_password: '密码',
user_password_tips: '请输入包含字母和数字,长度在6~20之间的密码',
user_type: '用户类型',
ordinary_user: '普通用户',
administrator: '管理员',
tenant_code: '租户',
tenant_id_tips: '请选择租户',
queue: '队列',
queue_tips: '默认为租户关联队列',
email: '邮件',
email_empty_tips: '请输入邮箱',
emial_correct_tips: '请输入正确的邮箱格式',
phone: '手机',
phone_empty_tips: '请输入手机号码',
phone_correct_tips: '请输入正确的手机格式',
state: '状态',
state_enabled: '启用',
state_disabled: '停用',
create_time: '创建时间',
update_time: '更新时间',
operation: '操作',
edit: '编辑',
delete: '删除',
authorize: '授权',
save_error_msg: '保存失败,请重试',
delete_error_msg: '删除失败,请重试',
auth_error_msg: '授权失败,请重试',
auth_success_msg: '授权成功',
enable: '启用',
disable: '停用'
},
alarm_instance: {
search_input_tips: '请输入关键字',
alarm_instance_manage: '告警实例管理',
alarm_instance: '告警实例',
alarm_instance_name: '告警实例名称',
alarm_instance_name_tips: '请输入告警实例名称',
alarm_plugin_name: '告警插件名称',
create_time: '创建时间',
update_time: '更新时间',
operation: '操作',
edit: '编辑',
delete: '删除',
confirm: '确定',
cancel: '取消',
submit: '提交',
create: '创建',
select_plugin: '选择插件',
select_plugin_tips: '请选择告警插件',
instance_parameter_exception: '实例参数异常',
WebHook: 'Web钩子',
webHook: 'Web钩子',
IsEnableProxy: '启用代理',
Proxy: '代理',
Port: '端口',
User: '用户',
corpId: '企业ID',
secret: '密钥',
Secret: '密钥',
users: '群员',
userSendMsg: '群员信息',
agentId: '应用ID',
showType: '内容展示类型',
receivers: '收件人',
receiverCcs: '抄送人',
serverHost: 'SMTP服务器',
serverPort: 'SMTP端口',
sender: '发件人',
enableSmtpAuth: '请求认证',
Password: '密码',
starttlsEnable: 'STARTTLS连接',
sslEnable: 'SSL连接',
smtpSslTrust: 'SSL证书信任',
url: 'URL',
requestType: '请求方式',
headerParams: '请求头',
bodyParams: '请求体',
contentField: '内容字段',
Keyword: '关键词',
userParams: '自定义参数',
path: '脚本路径',
type: '类型',
sendType: '发送类型',
username: '用户名',
botToken: '机器人Token',
chatId: '频道ID',
parseMode: '解析类型'
},
k8s_namespace: {
create_namespace: '创建命名空间',
edit_namespace: '编辑命名空间',
search_tips: '请输入关键词',
k8s_namespace: 'K8S命名空间',
k8s_namespace_tips: '请输入k8s命名空间',
k8s_cluster: 'K8S集群',
k8s_cluster_tips: '请输入k8s集群',
owner: '负责人',
owner_tips: '请输入负责人',
tag: '标签',
tag_tips: '请输入标签',
limit_cpu: '最大CPU',
limit_cpu_tips: '请输入最大CPU',
limit_memory: '最大内存',
limit_memory_tips: '请输入最大内存',
create_time: '创建时间',
update_time: '更新时间',
operation: '操作',
edit: '编辑',
delete: '删除',
delete_confirm: '确定删除吗?'
}
}
const datasource = {
datasource: '数据源',
create_datasource: '创建数据源',
search_input_tips: '请输入关键字',
datasource_name: '数据源名称',
datasource_name_tips: '请输入数据源名称',
datasource_user_name: '所属用户',
datasource_type: '数据源类型',
datasource_parameter: '数据源参数',
description: '描述',
description_tips: '请输入描述',
create_time: '创建时间',
update_time: '更新时间',
operation: '操作',
click_to_view: '点击查看',
delete: '删除',
confirm: '确定',
delete_confirm: '删除?',
cancel: '取消',
create: '创建',
edit: '编辑',
success: '成功',
test_connect: '测试连接',
ip: 'IP主机名',
ip_tips: '请输入IP主机名',
port: '端口',
port_tips: '请输入端口',
database_name: '数据库名',
database_name_tips: '请输入数据库名',
oracle_connect_type: '服务名或SID',
oracle_connect_type_tips: '请选择服务名或SID',
oracle_service_name: '服务名',
oracle_sid: 'SID',
jdbc_connect_parameters: 'jdbc连接参数',
principal_tips: '请输入Principal',
krb5_conf_tips: '请输入kerberos认证参数 java.security.krb5.conf',
keytab_username_tips: '请输入kerberos认证参数 login.user.keytab.username',
keytab_path_tips: '请输入kerberos认证参数 login.user.keytab.path',
format_tips: '请输入格式为',
connection_parameter: '连接参数',
user_name: '用户名',
user_name_tips: '请输入用户名',
user_password: '密码',
user_password_tips: '请输入密码'
}
const data_quality = {
task_result: {
task_name: '任务名称',
workflow_instance: '工作流实例',
rule_type: '规则类型',
rule_name: '规则名称',
state: '状态',
actual_value: '实际值',
excepted_value: '期望值',
check_type: '检测类型',
operator: '操作符',
threshold: '阈值',
failure_strategy: '失败策略',
excepted_value_type: '期望值类型',
error_output_path: '错误数据路径',
username: '用户名',
create_time: '创建时间',
update_time: '更新时间',
undone: '未完成',
success: '成功',
failure: '失败',
single_table: '单表检测',
single_table_custom_sql: '自定义SQL',
multi_table_accuracy: '多表准确性',
multi_table_comparison: '两表值对比',
expected_and_actual_or_expected: '(期望值-实际值)/实际值 x 100%',
expected_and_actual: '期望值-实际值',
actual_and_expected: '实际值-期望值',
actual_or_expected: '实际值/期望值 x 100%'
},
rule: {
actions: '操作',
name: '规则名称',
type: '规则类型',
username: '用户名',
create_time: '创建时间',
update_time: '更新时间',
input_item: '规则输入项',
view_input_item: '查看规则输入项信息',
input_item_title: '输入项标题',
input_item_placeholder: '输入项占位符',
input_item_type: '输入项类型',
src_connector_type: '源数据类型',
src_datasource_id: '源数据源',
src_table: '源数据表',
src_filter: '源表过滤条件',
src_field: '源表检测列',
statistics_name: '实际值名',
check_type: '校验方式',
operator: '校验操作符',
threshold: '阈值',
failure_strategy: '失败策略',
target_connector_type: '目标数据类型',
target_datasource_id: '目标数据源',
target_table: '目标数据表',
target_filter: '目标表过滤条件',
mapping_columns: 'ON语句',
statistics_execute_sql: '实际值计算SQL',
comparison_name: '期望值名',
comparison_execute_sql: '期望值计算SQL',
comparison_type: '期望值类型',
writer_connector_type: '输出数据类型',
writer_datasource_id: '输出数据源',
target_field: '目标表检测列',
field_length: '字段长度限制',
logic_operator: '逻辑操作符',
regexp_pattern: '正则表达式',
deadline: '截止时间',
datetime_format: '时间格式',
enum_list: '枚举值列表',
begin_time: '起始时间',
fix_value: '固定值',
null_check: '空值检测',
custom_sql: '自定义SQL',
single_table: '单表检测',
multi_table_accuracy: '多表准确性',
multi_table_value_comparison: '两表值比对',
field_length_check: '字段长度校验',
uniqueness_check: '唯一性校验',
regexp_check: '正则表达式',
timeliness_check: '及时性校验',
enumeration_check: '枚举值校验',
table_count_check: '表行数校验',
all: '全部',
FixValue: '固定值',
DailyAvg: '日均值',
WeeklyAvg: '周均值',
MonthlyAvg: '月均值',
Last7DayAvg: '最近7天均值',
Last30DayAvg: '最近30天均值',
SrcTableTotalRows: '源表总行数',
TargetTableTotalRows: '目标表总行数'
}
}
const crontab = {
second: '秒',
minute: '分',
hour: '时',
day: '天',
month: '月',
year: '年',
monday: '星期一',
tuesday: '星期二',
wednesday: '星期三',
thursday: '星期四',
friday: '星期五',
saturday: '星期六',
sunday: '星期天',
every_second: '每一秒钟',
every: '每隔',
second_carried_out: '秒执行 从',
second_start: '秒开始',
specific_second: '具体秒数(可多选)',
specific_second_tip: '请选择具体秒数',
cycle_from: '周期从',
to: '到',
every_minute: '每一分钟',
minute_carried_out: '分执行 从',
minute_start: '分开始',
specific_minute: '具体分钟数(可多选)',
specific_minute_tip: '请选择具体分钟数',
every_hour: '每一小时',
hour_carried_out: '小时执行 从',
hour_start: '小时开始',
specific_hour: '具体小时数(可多选)',
specific_hour_tip: '请选择具体小时数',
every_day: '每一天',
week_carried_out: '周执行 从',
start: '开始',
day_carried_out: '天执行 从',
day_start: '天开始',
specific_week: '具体星期几(可多选)',
specific_week_tip: '请选择具体周几',
specific_day: '具体天数(可多选)',
specific_day_tip: '请选择具体天数',
last_day_of_month: '在这个月的最后一天',
last_work_day_of_month: '在这个月的最后一个工作日',
last_of_month: '在这个月的最后一个',
before_end_of_month: '在本月底前',
recent_business_day_to_month: '最近的工作日(周一至周五)至本月',
in_this_months: '在这个月的第',
every_month: '每一月',
month_carried_out: '月执行 从',
month_start: '月开始',
specific_month: '具体月数(可多选)',
specific_month_tip: '请选择具体月数',
every_year: '每一年',
year_carried_out: '年执行 从',
year_start: '年开始',
specific_year: '具体年数(可多选)',
specific_year_tip: '请选择具体年数',
one_hour: '小时',
one_day: '日'
}
export default {
login,
modal,
theme,
userDropdown,
menu,
home,
password,
profile,
monitor,
resource,
project,
security,
datasource,
data_quality,
crontab
}
|
closed
|
apache/dolphinscheduler
|
https://github.com/apache/dolphinscheduler
| 8,967 |
[Bug][UI Next][V1.0.0-Alpha] There is no floating prompt for the table operation button in the alarm instance management.
|
### Search before asking
- [X] I had searched in the [issues](https://github.com/apache/dolphinscheduler/issues?q=is%3Aissue) and found no similar issues.
### What happened

### What you expected to happen
There is no floating prompt for the table operation button in the alarm instance management.
### How to reproduce
Add hover prompt.
### Anything else
_No response_
### Version
dev
### Are you willing to submit PR?
- [X] Yes I am willing to submit a PR!
### Code of Conduct
- [X] I agree to follow this project's [Code of Conduct](https://www.apache.org/foundation/policies/conduct)
|
https://github.com/apache/dolphinscheduler/issues/8967
|
https://github.com/apache/dolphinscheduler/pull/8978
|
a485771a738397dc8ced69636a3098eb89b47741
|
c29a51a8c71fd015cb459daa1ae77d1cc3255e28
| 2022-03-17T09:40:02Z |
java
| 2022-03-18T06:32:22Z |
dolphinscheduler-ui-next/src/views/security/alarm-instance-manage/use-columns.ts
|
/*
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership.
* The ASF licenses this file to You under the Apache License, Version 2.0
* (the "License"); you may not use this file except in compliance with
* the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
import { h } from 'vue'
import { useI18n } from 'vue-i18n'
import { NButton, NIcon, NPopconfirm, NSpace } from 'naive-ui'
import { EditOutlined, DeleteOutlined } from '@vicons/antd'
import type { TableColumns } from './types'
export function useColumns(onCallback: Function) {
const { t } = useI18n()
const getColumns = (): TableColumns => {
return [
{
title: '#',
key: 'index',
render: (rowData, rowIndex) => rowIndex + 1
},
{
title: t('security.alarm_instance.alarm_instance_name'),
key: 'instanceName'
},
{
title: t('security.alarm_instance.alarm_plugin_name'),
key: 'alertPluginName'
},
{
title: t('security.alarm_instance.create_time'),
key: 'createTime'
},
{
title: t('security.alarm_instance.update_time'),
key: 'updateTime'
},
{
title: t('security.alarm_instance.operation'),
key: 'operation',
width: 150,
render: (rowData, unused) => {
return h(NSpace, null, {
default: () => [
h(
NButton,
{
circle: true,
type: 'info',
onClick: () => void onCallback(rowData, 'edit')
},
{
default: () =>
h(NIcon, null, { default: () => h(EditOutlined) })
}
),
h(
NPopconfirm,
{
onPositiveClick: () => void onCallback(rowData, 'delete'),
negativeText: t('security.alarm_instance.cancel'),
positiveText: t('security.alarm_instance.confirm')
},
{
trigger: () =>
h(
NButton,
{
circle: true,
type: 'error'
},
{
default: () =>
h(NIcon, null, { default: () => h(DeleteOutlined) })
}
),
default: () => t('security.alarm_instance.delete')
}
)
]
})
}
}
]
}
return {
getColumns
}
}
|
closed
|
apache/dolphinscheduler
|
https://github.com/apache/dolphinscheduler
| 8,983 |
[Bug][UI Next][V1.0.0-Alpha] The new button in the English state of the alarm instance page lacks a space.
|
### Search before asking
- [X] I had searched in the [issues](https://github.com/apache/dolphinscheduler/issues?q=is%3Aissue) and found no similar issues.
### What happened

### What you expected to happen
The new button in the English state of the alarm instance page lacks a space.
### How to reproduce
Add space
### Anything else
_No response_
### Version
dev
### Are you willing to submit PR?
- [X] Yes I am willing to submit a PR!
### Code of Conduct
- [X] I agree to follow this project's [Code of Conduct](https://www.apache.org/foundation/policies/conduct)
|
https://github.com/apache/dolphinscheduler/issues/8983
|
https://github.com/apache/dolphinscheduler/pull/8984
|
c29a51a8c71fd015cb459daa1ae77d1cc3255e28
|
9fbc62f7849836edb408c95cd409cad0df2f7225
| 2022-03-18T06:37:49Z |
java
| 2022-03-18T07:50:34Z |
dolphinscheduler-ui-next/src/locales/modules/en_US.ts
|
/*
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership.
* The ASF licenses this file to You under the Apache License, Version 2.0
* (the "License"); you may not use this file except in compliance with
* the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
const login = {
test: 'Test',
userName: 'Username',
userName_tips: 'Please enter your username',
userPassword: 'Password',
userPassword_tips: 'Please enter your password',
login: 'Login'
}
const modal = {
cancel: 'Cancel',
confirm: 'Confirm'
}
const theme = {
light: 'Light',
dark: 'Dark'
}
const userDropdown = {
profile: 'Profile',
password: 'Password',
logout: 'Logout'
}
const menu = {
home: 'Home',
project: 'Project',
resources: 'Resources',
datasource: 'Datasource',
monitor: 'Monitor',
security: 'Security',
project_overview: 'Project Overview',
workflow_relation: 'Workflow Relation',
workflow: 'Workflow',
workflow_definition: 'Workflow Definition',
workflow_instance: 'Workflow Instance',
task: 'Task',
task_instance: 'Task Instance',
task_definition: 'Task Definition',
file_manage: 'File Manage',
udf_manage: 'UDF Manage',
resource_manage: 'Resource Manage',
function_manage: 'Function Manage',
service_manage: 'Service Manage',
master: 'Master',
worker: 'Worker',
db: 'DB',
statistical_manage: 'Statistical Manage',
statistics: 'Statistics',
audit_log: 'Audit Log',
tenant_manage: 'Tenant Manage',
user_manage: 'User Manage',
alarm_group_manage: 'Alarm Group Manage',
alarm_instance_manage: 'Alarm Instance Manage',
worker_group_manage: 'Worker Group Manage',
yarn_queue_manage: 'Yarn Queue Manage',
environment_manage: 'Environment Manage',
k8s_namespace_manage: 'K8S Namespace Manage',
token_manage: 'Token Manage',
task_group_manage: 'Task Group Manage',
task_group_option: 'Task Group Option',
task_group_queue: 'Task Group Queue',
data_quality: 'Data Quality',
task_result: 'Task Result',
rule: 'Rule management'
}
const home = {
task_state_statistics: 'Task State Statistics',
process_state_statistics: 'Process State Statistics',
process_definition_statistics: 'Process Definition Statistics',
number: 'Number',
state: 'State',
submitted_success: 'SUBMITTED_SUCCESS',
running_execution: 'RUNNING_EXECUTION',
ready_pause: 'READY_PAUSE',
pause: 'PAUSE',
ready_stop: 'READY_STOP',
stop: 'STOP',
failure: 'FAILURE',
success: 'SUCCESS',
need_fault_tolerance: 'NEED_FAULT_TOLERANCE',
kill: 'KILL',
waiting_thread: 'WAITING_THREAD',
waiting_depend: 'WAITING_DEPEND',
delay_execution: 'DELAY_EXECUTION',
forced_success: 'FORCED_SUCCESS',
serial_wait: 'SERIAL_WAIT',
ready_block: 'READY_BLOCK',
block: 'BLOCK'
}
const password = {
edit_password: 'Edit Password',
password: 'Password',
confirm_password: 'Confirm Password',
password_tips: 'Please enter your password',
confirm_password_tips: 'Please enter your confirm password',
two_password_entries_are_inconsistent:
'Two password entries are inconsistent',
submit: 'Submit'
}
const profile = {
profile: 'Profile',
edit: 'Edit',
username: 'Username',
email: 'Email',
phone: 'Phone',
state: 'State',
permission: 'Permission',
create_time: 'Create Time',
update_time: 'Update Time',
administrator: 'Administrator',
ordinary_user: 'Ordinary User',
edit_profile: 'Edit Profile',
username_tips: 'Please enter your username',
email_tips: 'Please enter your email',
email_correct_tips: 'Please enter your email in the correct format',
phone_tips: 'Please enter your phone',
state_tips: 'Please choose your state',
enable: 'Enable',
disable: 'Disable',
timezone_success: 'Time zone updated successful',
please_select_timezone: 'Choose timeZone'
}
const monitor = {
master: {
cpu_usage: 'CPU Usage',
memory_usage: 'Memory Usage',
load_average: 'Load Average',
create_time: 'Create Time',
last_heartbeat_time: 'Last Heartbeat Time',
directory_detail: 'Directory Detail',
host: 'Host',
directory: 'Directory'
},
worker: {
cpu_usage: 'CPU Usage',
memory_usage: 'Memory Usage',
load_average: 'Load Average',
create_time: 'Create Time',
last_heartbeat_time: 'Last Heartbeat Time',
directory_detail: 'Directory Detail',
host: 'Host',
directory: 'Directory'
},
db: {
health_state: 'Health State',
max_connections: 'Max Connections',
threads_connections: 'Threads Connections',
threads_running_connections: 'Threads Running Connections'
},
statistics: {
command_number_of_waiting_for_running:
'Command Number Of Waiting For Running',
failure_command_number: 'Failure Command Number',
tasks_number_of_waiting_running: 'Tasks Number Of Waiting Running',
task_number_of_ready_to_kill: 'Task Number Of Ready To Kill'
},
audit_log: {
user_name: 'User Name',
resource_type: 'Resource Type',
project_name: 'Project Name',
operation_type: 'Operation Type',
create_time: 'Create Time',
start_time: 'Start Time',
end_time: 'End Time',
user_audit: 'User Audit',
project_audit: 'Project Audit',
create: 'Create',
update: 'Update',
delete: 'Delete',
read: 'Read'
}
}
const resource = {
file: {
file_manage: 'File Manage',
create_folder: 'Create Folder',
create_file: 'Create File',
upload_files: 'Upload Files',
enter_keyword_tips: 'Please enter keyword',
name: 'Name',
user_name: 'Resource userName',
whether_directory: 'Whether directory',
file_name: 'File Name',
description: 'Description',
size: 'Size',
update_time: 'Update Time',
operation: 'Operation',
edit: 'Edit',
rename: 'Rename',
download: 'Download',
delete: 'Delete',
yes: 'Yes',
no: 'No',
folder_name: 'Folder Name',
enter_name_tips: 'Please enter name',
enter_description_tips: 'Please enter description',
enter_content_tips: 'Please enter the resource content',
file_format: 'File Format',
file_content: 'File Content',
delete_confirm: 'Delete?',
confirm: 'Confirm',
cancel: 'Cancel',
success: 'Success',
file_details: 'File Details',
return: 'Return',
save: 'Save'
},
udf: {
udf_resources: 'UDF resources',
create_folder: 'Create Folder',
upload_udf_resources: 'Upload UDF Resources',
udf_source_name: 'UDF Resource Name',
whether_directory: 'Whether directory',
file_name: 'File Name',
file_size: 'File Size',
description: 'Description',
create_time: 'Create Time',
update_time: 'Update Time',
operation: 'Operation',
yes: 'Yes',
no: 'No',
edit: 'Edit',
download: 'Download',
delete: 'Delete',
delete_confirm: 'Delete?',
success: 'Success',
folder_name: 'Folder Name',
upload: 'Upload',
upload_files: 'Upload Files',
file_upload: 'File Upload',
enter_keyword_tips: 'Please enter keyword',
enter_name_tips: 'Please enter name',
enter_description_tips: 'Please enter description'
},
function: {
udf_function: 'UDF Function',
create_udf_function: 'Create UDF Function',
edit_udf_function: 'Create UDF Function',
udf_function_name: 'UDF Function Name',
class_name: 'Class Name',
type: 'Type',
description: 'Description',
jar_package: 'Jar Package',
update_time: 'Update Time',
operation: 'Operation',
rename: 'Rename',
edit: 'Edit',
delete: 'Delete',
success: 'Success',
package_name: 'Package Name',
udf_resources: 'UDF Resources',
instructions: 'Instructions',
upload_resources: 'Upload Resources',
udf_resources_directory: 'UDF resources directory',
delete_confirm: 'Delete?',
enter_keyword_tips: 'Please enter keyword',
enter_udf_unction_name_tips: 'Please enter a UDF function name',
enter_package_name_tips: 'Please enter a Package name',
enter_select_udf_resources_tips: 'Please select UDF resources',
enter_select_udf_resources_directory_tips:
'Please select UDF resources directory',
enter_instructions_tips: 'Please enter a instructions',
enter_name_tips: 'Please enter name',
enter_description_tips: 'Please enter description'
},
task_group_option: {
manage: 'Task group manage',
option: 'Task group option',
create: 'Create task group',
edit: 'Edit task group',
delete: 'Delete task group',
view_queue: 'View the queue of the task group',
switch_status: 'Switch status',
code: 'Task group code',
name: 'Task group name',
project_name: 'Project name',
resource_pool_size: 'Resource pool size',
resource_pool_size_be_a_number:
'The size of the task group resource pool should be more than 1',
resource_used_pool_size: 'Used resource',
desc: 'Task group desc',
status: 'Task group status',
enable_status: 'Enable',
disable_status: 'Disable',
please_enter_name: 'Please enter task group name',
please_enter_desc: 'Please enter task group description',
please_enter_resource_pool_size:
'Please enter task group resource pool size',
please_select_project: 'Please select a project',
create_time: 'Create time',
update_time: 'Update time',
actions: 'Actions',
please_enter_keywords: 'Please enter keywords'
},
task_group_queue: {
actions: 'Actions',
task_name: 'Task name',
task_group_name: 'Task group name',
project_name: 'Project name',
process_name: 'Process name',
process_instance_name: 'Process instance',
queue: 'Task group queue',
priority: 'Priority',
priority_be_a_number:
'The priority of the task group queue should be a positive number',
force_starting_status: 'Starting status',
in_queue: 'In queue',
task_status: 'Task status',
view: 'View task group queue',
the_status_of_waiting: 'Waiting into the queue',
the_status_of_queuing: 'Queuing',
the_status_of_releasing: 'Released',
modify_priority: 'Edit the priority',
start_task: 'Start the task',
priority_not_empty: 'The value of priority can not be empty',
priority_must_be_number: 'The value of priority should be number',
please_select_task_name: 'Please select a task name',
create_time: 'Create time',
update_time: 'Update time',
edit_priority: 'Edit the task priority'
}
}
const project = {
list: {
create_project: 'Create Project',
edit_project: 'Edit Project',
project_list: 'Project List',
project_tips: 'Please enter your project',
description_tips: 'Please enter your description',
username_tips: 'Please enter your username',
project_name: 'Project Name',
project_description: 'Project Description',
owned_users: 'Owned Users',
workflow_define_count: 'Workflow Define Count',
process_instance_running_count: 'Process Instance Running Count',
description: 'Description',
create_time: 'Create Time',
update_time: 'Update Time',
operation: 'Operation',
edit: 'Edit',
delete: 'Delete',
confirm: 'Confirm',
cancel: 'Cancel',
delete_confirm: 'Delete?'
},
workflow: {
workflow_relation: 'Workflow Relation',
create_workflow: 'Create Workflow',
import_workflow: 'Import Workflow',
workflow_name: 'Workflow Name',
current_selection: 'Current Selection',
online: 'Online',
offline: 'Offline',
refresh: 'Refresh',
show_hide_label: 'Show / Hide Label',
workflow_offline: 'Workflow Offline',
schedule_offline: 'Schedule Offline',
schedule_start_time: 'Schedule Start Time',
schedule_end_time: 'Schedule End Time',
crontab_expression: 'Crontab',
workflow_publish_status: 'Workflow Publish Status',
schedule_publish_status: 'Schedule Publish Status',
workflow_definition: 'Workflow Definition',
workflow_instance: 'Workflow Instance',
status: 'Status',
create_time: 'Create Time',
update_time: 'Update Time',
description: 'Description',
create_user: 'Create User',
modify_user: 'Modify User',
operation: 'Operation',
edit: 'Edit',
start: 'Start',
timing: 'Timing',
timezone: 'Timezone',
up_line: 'Online',
down_line: 'Offline',
copy_workflow: 'Copy Workflow',
cron_manage: 'Cron manage',
delete: 'Delete',
tree_view: 'Tree View',
tree_limit: 'Limit Size',
export: 'Export',
batch_copy: 'Batch Copy',
version_info: 'Version Info',
version: 'Version',
file_upload: 'File Upload',
upload_file: 'Upload File',
upload: 'Upload',
file_name: 'File Name',
success: 'Success',
set_parameters_before_starting: 'Please set the parameters before starting',
set_parameters_before_timing: 'Set parameters before timing',
start_and_stop_time: 'Start and stop time',
next_five_execution_times: 'Next five execution times',
execute_time: 'Execute time',
failure_strategy: 'Failure Strategy',
notification_strategy: 'Notification Strategy',
workflow_priority: 'Workflow Priority',
worker_group: 'Worker Group',
environment_name: 'Environment Name',
alarm_group: 'Alarm Group',
complement_data: 'Complement Data',
startup_parameter: 'Startup Parameter',
whether_dry_run: 'Whether Dry-Run',
continue: 'Continue',
end: 'End',
none_send: 'None',
success_send: 'Success',
failure_send: 'Failure',
all_send: 'All',
whether_complement_data: 'Whether it is a complement process?',
schedule_date: 'Schedule date',
mode_of_execution: 'Mode of execution',
serial_execution: 'Serial execution',
parallel_execution: 'Parallel execution',
parallelism: 'Parallelism',
custom_parallelism: 'Custom Parallelism',
please_enter_parallelism: 'Please enter Parallelism',
please_choose: 'Please Choose',
start_time: 'Start Time',
end_time: 'End Time',
crontab: 'Crontab',
delete_confirm: 'Delete?',
enter_name_tips: 'Please enter name',
switch_version: 'Switch To This Version',
confirm_switch_version: 'Confirm Switch To This Version?',
current_version: 'Current Version',
run_type: 'Run Type',
scheduling_time: 'Scheduling Time',
duration: 'Duration',
run_times: 'Run Times',
fault_tolerant_sign: 'Fault-tolerant Sign',
dry_run_flag: 'Dry-run Flag',
executor: 'Executor',
host: 'Host',
start_process: 'Start Process',
execute_from_the_current_node: 'Execute from the current node',
recover_tolerance_fault_process: 'Recover tolerance fault process',
resume_the_suspension_process: 'Resume the suspension process',
execute_from_the_failed_nodes: 'Execute from the failed nodes',
scheduling_execution: 'Scheduling execution',
rerun: 'Rerun',
stop: 'Stop',
pause: 'Pause',
recovery_waiting_thread: 'Recovery waiting thread',
recover_serial_wait: 'Recover serial wait',
recovery_suspend: 'Recovery Suspend',
recovery_failed: 'Recovery Failed',
gantt: 'Gantt',
name: 'Name',
all_status: 'AllStatus',
submit_success: 'Submitted successfully',
running: 'Running',
ready_to_pause: 'Ready to pause',
ready_to_stop: 'Ready to stop',
failed: 'Failed',
need_fault_tolerance: 'Need fault tolerance',
kill: 'Kill',
waiting_for_thread: 'Waiting for thread',
waiting_for_dependence: 'Waiting for dependence',
waiting_for_dependency_to_complete: 'Waiting for dependency to complete',
delay_execution: 'Delay execution',
forced_success: 'Forced success',
serial_wait: 'Serial wait',
executing: 'Executing',
startup_type: 'Startup Type',
complement_range: 'Complement Range',
parameters_variables: 'Parameters variables',
global_parameters: 'Global parameters',
local_parameters: 'Local parameters',
type: 'Type',
retry_count: 'Retry Count',
submit_time: 'Submit Time',
refresh_status_succeeded: 'Refresh status succeeded',
view_log: 'View log',
update_log_success: 'Update log success',
no_more_log: 'No more logs',
no_log: 'No log',
loading_log: 'Loading Log...',
close: 'Close',
download_log: 'Download Log',
refresh_log: 'Refresh Log',
enter_full_screen: 'Enter full screen',
cancel_full_screen: 'Cancel full screen',
task_state: 'Task status',
mode_of_dependent: 'Mode of dependent',
open: 'Open',
project_name_required: 'Project name is required',
related_items: 'Related items',
project_name: 'Project Name',
project_tips: 'Please select project name'
},
task: {
task_name: 'Task Name',
task_type: 'Task Type',
create_task: 'Create Task',
workflow_instance: 'Workflow Instance',
workflow_name: 'Workflow Name',
workflow_name_tips: 'Please select workflow name',
workflow_state: 'Workflow State',
version: 'Version',
current_version: 'Current Version',
switch_version: 'Switch To This Version',
confirm_switch_version: 'Confirm Switch To This Version?',
description: 'Description',
move: 'Move',
upstream_tasks: 'Upstream Tasks',
executor: 'Executor',
node_type: 'Node Type',
state: 'State',
submit_time: 'Submit Time',
start_time: 'Start Time',
create_time: 'Create Time',
update_time: 'Update Time',
end_time: 'End Time',
duration: 'Duration',
retry_count: 'Retry Count',
dry_run_flag: 'Dry Run Flag',
host: 'Host',
operation: 'Operation',
edit: 'Edit',
delete: 'Delete',
delete_confirm: 'Delete?',
submitted_success: 'Submitted Success',
running_execution: 'Running Execution',
ready_pause: 'Ready Pause',
pause: 'Pause',
ready_stop: 'Ready Stop',
stop: 'Stop',
failure: 'Failure',
success: 'Success',
need_fault_tolerance: 'Need Fault Tolerance',
kill: 'Kill',
waiting_thread: 'Waiting Thread',
waiting_depend: 'Waiting Depend',
delay_execution: 'Delay Execution',
forced_success: 'Forced Success',
view_log: 'View Log',
download_log: 'Download Log',
refresh: 'Refresh',
serial_wait: 'Serial Wait'
},
dag: {
create: 'Create Workflow',
search: 'Search',
download_png: 'Download PNG',
fullscreen_open: 'Open Fullscreen',
fullscreen_close: 'Close Fullscreen',
save: 'Save',
close: 'Close',
format: 'Format',
refresh_dag_status: 'Refresh DAG status',
layout_type: 'Layout Type',
grid_layout: 'Grid',
dagre_layout: 'Dagre',
rows: 'Rows',
cols: 'Cols',
copy_success: 'Copy Success',
workflow_name: 'Workflow Name',
description: 'Description',
tenant: 'Tenant',
timeout_alert: 'Timeout Alert',
global_variables: 'Global Variables',
basic_info: 'Basic Information',
minute: 'Minute',
key: 'Key',
value: 'Value',
success: 'Success',
delete_cell: 'Delete selected edges and nodes',
online_directly: 'Whether to go online the process definition',
update_directly: 'Whether to update the process definition',
dag_name_empty: 'DAG graph name cannot be empty',
positive_integer: 'Please enter a positive integer greater than 0',
prop_empty: 'prop is empty',
prop_repeat: 'prop is repeat',
node_not_created: 'Failed to save node not created',
copy_name: 'Copy Name',
view_variables: 'View Variables',
startup_parameter: 'Startup Parameter'
},
node: {
current_node_settings: 'Current node settings',
instructions: 'Instructions',
view_history: 'View history',
view_log: 'View log',
enter_this_child_node: 'Enter this child node',
name: 'Node name',
name_tips: 'Please enter name (required)',
task_type: 'Task Type',
task_type_tips: 'Please select a task type (required)',
process_name: 'Process Name',
process_name_tips: 'Please select a process (required)',
child_node: 'Child Node',
enter_child_node: 'Enter child node',
run_flag: 'Run flag',
normal: 'Normal',
prohibition_execution: 'Prohibition execution',
description: 'Description',
description_tips: 'Please enter description',
task_priority: 'Task priority',
worker_group: 'Worker group',
worker_group_tips:
'The Worker group no longer exists, please select the correct Worker group!',
environment_name: 'Environment Name',
task_group_name: 'Task group name',
task_group_queue_priority: 'Priority',
number_of_failed_retries: 'Number of failed retries',
times: 'Times',
failed_retry_interval: 'Failed retry interval',
minute: 'Minute',
delay_execution_time: 'Delay execution time',
state: 'State',
branch_flow: 'Branch flow',
cancel: 'Cancel',
loading: 'Loading...',
confirm: 'Confirm',
success: 'Success',
failed: 'Failed',
backfill_tips:
'The newly created sub-Process has not yet been executed and cannot enter the sub-Process',
task_instance_tips:
'The task has not been executed and cannot enter the sub-Process',
branch_tips:
'Cannot select the same node for successful branch flow and failed branch flow',
timeout_alarm: 'Timeout alarm',
timeout_strategy: 'Timeout strategy',
timeout_strategy_tips: 'Timeout strategy must be selected',
timeout_failure: 'Timeout failure',
timeout_period: 'Timeout period',
timeout_period_tips: 'Timeout must be a positive integer',
script: 'Script',
script_tips: 'Please enter script(required)',
resources: 'Resources',
resources_tips: 'Please select resources',
non_resources_tips: 'Please delete all non-existent resources',
useless_resources_tips: 'Unauthorized or deleted resources',
custom_parameters: 'Custom Parameters',
copy_success: 'Copy success',
copy_failed: 'The browser does not support automatic copying',
prop_tips: 'prop(required)',
prop_repeat: 'prop is repeat',
value_tips: 'value(optional)',
value_required_tips: 'value(required)',
pre_tasks: 'Pre tasks',
program_type: 'Program Type',
spark_version: 'Spark Version',
main_class: 'Main Class',
main_class_tips: 'Please enter main class',
main_package: 'Main Package',
main_package_tips: 'Please enter main package',
deploy_mode: 'Deploy Mode',
app_name: 'App Name',
app_name_tips: 'Please enter app name(optional)',
driver_cores: 'Driver Cores',
driver_cores_tips: 'Please enter Driver cores',
driver_memory: 'Driver Memory',
driver_memory_tips: 'Please enter Driver memory',
executor_number: 'Executor Number',
executor_number_tips: 'Please enter Executor number',
executor_memory: 'Executor Memory',
executor_memory_tips: 'Please enter Executor memory',
executor_cores: 'Executor Cores',
executor_cores_tips: 'Please enter Executor cores',
main_arguments: 'Main Arguments',
main_arguments_tips: 'Please enter main arguments',
option_parameters: 'Option Parameters',
option_parameters_tips: 'Please enter option parameters',
positive_integer_tips: 'should be a positive integer',
flink_version: 'Flink Version',
job_manager_memory: 'JobManager Memory',
job_manager_memory_tips: 'Please enter JobManager memory',
task_manager_memory: 'TaskManager Memory',
task_manager_memory_tips: 'Please enter TaskManager memory',
slot_number: 'Slot Number',
slot_number_tips: 'Please enter Slot number',
parallelism: 'Parallelism',
custom_parallelism: 'Configure parallelism',
parallelism_tips: 'Please enter Parallelism',
parallelism_number_tips: 'Parallelism number should be positive integer',
parallelism_complement_tips:
'If there are a large number of tasks requiring complement, you can use the custom parallelism to ' +
'set the complement task thread to a reasonable value to avoid too large impact on the server.',
task_manager_number: 'TaskManager Number',
task_manager_number_tips: 'Please enter TaskManager number',
http_url: 'Http Url',
http_url_tips: 'Please Enter Http Url',
http_method: 'Http Method',
http_parameters: 'Http Parameters',
http_check_condition: 'Http Check Condition',
http_condition: 'Http Condition',
http_condition_tips: 'Please Enter Http Condition',
timeout_settings: 'Timeout Settings',
connect_timeout: 'Connect Timeout',
ms: 'ms',
socket_timeout: 'Socket Timeout',
status_code_default: 'Default response code 200',
status_code_custom: 'Custom response code',
body_contains: 'Content includes',
body_not_contains: 'Content does not contain',
http_parameters_position: 'Http Parameters Position',
target_task_name: 'Target Task Name',
target_task_name_tips: 'Please enter the Pigeon task name',
datasource_type: 'Datasource types',
datasource_instances: 'Datasource instances',
sql_type: 'SQL Type',
sql_type_query: 'Query',
sql_type_non_query: 'Non Query',
sql_statement: 'SQL Statement',
pre_sql_statement: 'Pre SQL Statement',
post_sql_statement: 'Post SQL Statement',
sql_input_placeholder: 'Please enter non-query sql.',
sql_empty_tips: 'The sql can not be empty.',
procedure_method: 'SQL Statement',
procedure_method_tips: 'Please enter the procedure script',
procedure_method_snippet:
'--Please enter the procedure script \n\n--call procedure:call <procedure-name>[(<arg1>,<arg2>, ...)]\n\n--call function:?= call <procedure-name>[(<arg1>,<arg2>, ...)]',
start: 'Start',
edit: 'Edit',
copy: 'Copy',
delete: 'Delete',
custom_job: 'Custom Job',
custom_script: 'Custom Script',
sqoop_job_name: 'Job Name',
sqoop_job_name_tips: 'Please enter Job Name(required)',
direct: 'Direct',
hadoop_custom_params: 'Hadoop Params',
sqoop_advanced_parameters: 'Sqoop Advanced Parameters',
data_source: 'Data Source',
type: 'Type',
datasource: 'Datasource',
datasource_tips: 'Please select the datasource',
model_type: 'ModelType',
form: 'Form',
table: 'Table',
table_tips: 'Please enter Mysql Table(required)',
column_type: 'ColumnType',
all_columns: 'All Columns',
some_columns: 'Some Columns',
column: 'Column',
column_tips: 'Please enter Columns (Comma separated)',
database: 'Database',
database_tips: 'Please enter Hive Database(required)',
hive_table_tips: 'Please enter Hive Table(required)',
hive_partition_keys: 'Hive partition Keys',
hive_partition_keys_tips: 'Please enter Hive Partition Keys',
hive_partition_values: 'Hive partition Values',
hive_partition_values_tips: 'Please enter Hive Partition Values',
export_dir: 'Export Dir',
export_dir_tips: 'Please enter Export Dir(required)',
sql_statement_tips: 'SQL Statement(required)',
map_column_hive: 'Map Column Hive',
map_column_java: 'Map Column Java',
data_target: 'Data Target',
create_hive_table: 'CreateHiveTable',
drop_delimiter: 'DropDelimiter',
over_write_src: 'OverWriteSrc',
hive_target_dir: 'Hive Target Dir',
hive_target_dir_tips: 'Please enter hive target dir',
replace_delimiter: 'ReplaceDelimiter',
replace_delimiter_tips: 'Please enter Replace Delimiter',
target_dir: 'Target Dir',
target_dir_tips: 'Please enter Target Dir(required)',
delete_target_dir: 'DeleteTargetDir',
compression_codec: 'CompressionCodec',
file_type: 'FileType',
fields_terminated: 'FieldsTerminated',
fields_terminated_tips: 'Please enter Fields Terminated',
lines_terminated: 'LinesTerminated',
lines_terminated_tips: 'Please enter Lines Terminated',
is_update: 'IsUpdate',
update_key: 'UpdateKey',
update_key_tips: 'Please enter Update Key',
update_mode: 'UpdateMode',
only_update: 'OnlyUpdate',
allow_insert: 'AllowInsert',
concurrency: 'Concurrency',
concurrency_tips: 'Please enter Concurrency',
sea_tunnel_master: 'Master',
sea_tunnel_master_url: 'Master URL',
sea_tunnel_queue: 'Queue',
sea_tunnel_master_url_tips:
'Please enter the master url, e.g., 127.0.0.1:7077',
switch_condition: 'Condition',
switch_branch_flow: 'Branch Flow',
and: 'and',
or: 'or',
datax_custom_template: 'Custom Template Switch',
datax_json_template: 'JSON',
datax_target_datasource_type: 'Target Datasource Type',
datax_target_database: 'Target Database',
datax_target_table: 'Target Table',
datax_target_table_tips: 'Please enter the name of the target table',
datax_target_database_pre_sql: 'Pre SQL Statement',
datax_target_database_post_sql: 'Post SQL Statement',
datax_non_query_sql_tips: 'Please enter the non-query sql statement',
datax_job_speed_byte: 'Speed(Byte count)',
datax_job_speed_byte_info: '(0 means unlimited)',
datax_job_speed_record: 'Speed(Record count)',
datax_job_speed_record_info: '(0 means unlimited)',
datax_job_runtime_memory: 'Runtime Memory Limits',
datax_job_runtime_memory_xms: 'Low Limit Value',
datax_job_runtime_memory_xmx: 'High Limit Value',
datax_job_runtime_memory_unit: 'G',
current_hour: 'CurrentHour',
last_1_hour: 'Last1Hour',
last_2_hour: 'Last2Hours',
last_3_hour: 'Last3Hours',
last_24_hour: 'Last24Hours',
today: 'today',
last_1_days: 'Last1Days',
last_2_days: 'Last2Days',
last_3_days: 'Last3Days',
last_7_days: 'Last7Days',
this_week: 'ThisWeek',
last_week: 'LastWeek',
last_monday: 'LastMonday',
last_tuesday: 'LastTuesday',
last_wednesday: 'LastWednesday',
last_thursday: 'LastThursday',
last_friday: 'LastFriday',
last_saturday: 'LastSaturday',
last_sunday: 'LastSunday',
this_month: 'ThisMonth',
last_month: 'LastMonth',
last_month_begin: 'LastMonthBegin',
last_month_end: 'LastMonthEnd',
month: 'month',
week: 'week',
day: 'day',
hour: 'hour',
add_dependency: 'Add dependency',
waiting_dependent_start: 'Waiting Dependent start',
check_interval: 'Check interval',
waiting_dependent_complete: 'Waiting Dependent complete',
rule_name: 'Rule Name',
null_check: 'NullCheck',
custom_sql: 'CustomSql',
multi_table_accuracy: 'MulTableAccuracy',
multi_table_value_comparison: 'MulTableCompare',
field_length_check: 'FieldLengthCheck',
uniqueness_check: 'UniquenessCheck',
regexp_check: 'RegexpCheck',
timeliness_check: 'TimelinessCheck',
enumeration_check: 'EnumerationCheck',
table_count_check: 'TableCountCheck',
src_connector_type: 'SrcConnType',
src_datasource_id: 'SrcSource',
src_table: 'SrcTable',
src_filter: 'SrcFilter',
src_field: 'SrcField',
statistics_name: 'ActualValName',
check_type: 'CheckType',
operator: 'Operator',
threshold: 'Threshold',
failure_strategy: 'FailureStrategy',
target_connector_type: 'TargetConnType',
target_datasource_id: 'TargetSourceId',
target_table: 'TargetTable',
target_filter: 'TargetFilter',
mapping_columns: 'OnClause',
statistics_execute_sql: 'ActualValExecSql',
comparison_name: 'ExceptedValName',
comparison_execute_sql: 'ExceptedValExecSql',
comparison_type: 'ExceptedValType',
writer_connector_type: 'WriterConnType',
writer_datasource_id: 'WriterSourceId',
target_field: 'TargetField',
field_length: 'FieldLength',
logic_operator: 'LogicOperator',
regexp_pattern: 'RegexpPattern',
deadline: 'Deadline',
datetime_format: 'DatetimeFormat',
enum_list: 'EnumList',
begin_time: 'BeginTime',
fix_value: 'FixValue',
required: 'required',
emr_flow_define_json: 'jobFlowDefineJson',
emr_flow_define_json_tips: 'Please enter the definition of the job flow.'
}
}
const security = {
tenant: {
tenant_manage: 'Tenant Manage',
create_tenant: 'Create Tenant',
search_tips: 'Please enter keywords',
tenant_code: 'Operating System Tenant',
description: 'Description',
queue_name: 'QueueName',
create_time: 'Create Time',
update_time: 'Update Time',
actions: 'Operation',
edit_tenant: 'Edit Tenant',
tenant_code_tips: 'Please enter the operating system tenant',
queue_name_tips: 'Please select queue',
description_tips: 'Please enter a description',
delete_confirm: 'Delete?',
edit: 'Edit',
delete: 'Delete'
},
alarm_group: {
create_alarm_group: 'Create Alarm Group',
edit_alarm_group: 'Edit Alarm Group',
search_tips: 'Please enter keywords',
alert_group_name_tips: 'Please enter your alert group name',
alarm_plugin_instance: 'Alarm Plugin Instance',
alarm_plugin_instance_tips: 'Please select alert plugin instance',
alarm_group_description_tips: 'Please enter your alarm group description',
alert_group_name: 'Alert Group Name',
alarm_group_description: 'Alarm Group Description',
create_time: 'Create Time',
update_time: 'Update Time',
operation: 'Operation',
delete_confirm: 'Delete?',
edit: 'Edit',
delete: 'Delete'
},
worker_group: {
create_worker_group: 'Create Worker Group',
edit_worker_group: 'Edit Worker Group',
search_tips: 'Please enter keywords',
operation: 'Operation',
delete_confirm: 'Delete?',
edit: 'Edit',
delete: 'Delete',
group_name: 'Group Name',
group_name_tips: 'Please enter your group name',
worker_addresses: 'Worker Addresses',
worker_addresses_tips: 'Please select worker addresses',
create_time: 'Create Time',
update_time: 'Update Time'
},
yarn_queue: {
create_queue: 'Create Queue',
edit_queue: 'Edit Queue',
search_tips: 'Please enter keywords',
queue_name: 'Queue Name',
queue_value: 'Queue Value',
create_time: 'Create Time',
update_time: 'Update Time',
operation: 'Operation',
edit: 'Edit',
queue_name_tips: 'Please enter your queue name',
queue_value_tips: 'Please enter your queue value'
},
environment: {
create_environment: 'Create Environment',
edit_environment: 'Edit Environment',
search_tips: 'Please enter keywords',
edit: 'Edit',
delete: 'Delete',
environment_name: 'Environment Name',
environment_config: 'Environment Config',
environment_desc: 'Environment Desc',
worker_groups: 'Worker Groups',
create_time: 'Create Time',
update_time: 'Update Time',
operation: 'Operation',
delete_confirm: 'Delete?',
environment_name_tips: 'Please enter your environment name',
environment_config_tips: 'Please enter your environment config',
environment_description_tips: 'Please enter your environment description',
worker_group_tips: 'Please select worker group'
},
token: {
create_token: 'Create Token',
edit_token: 'Edit Token',
search_tips: 'Please enter keywords',
user: 'User',
user_tips: 'Please select user',
token: 'Token',
token_tips: 'Please enter your token',
expiration_time: 'Expiration Time',
expiration_time_tips: 'Please select expiration time',
create_time: 'Create Time',
update_time: 'Update Time',
operation: 'Operation',
edit: 'Edit',
delete: 'Delete',
delete_confirm: 'Delete?'
},
user: {
user_manage: 'User Manage',
create_user: 'Create User',
update_user: 'Update User',
delete_user: 'Delete User',
delete_confirm: 'Are you sure to delete?',
delete_confirm_tip:
'Deleting user is a dangerous operation,please be careful',
project: 'Project',
resource: 'Resource',
file_resource: 'File Resource',
udf_resource: 'UDF Resource',
datasource: 'Datasource',
udf: 'UDF Function',
authorize_project: 'Project Authorize',
authorize_resource: 'Resource Authorize',
authorize_datasource: 'Datasource Authorize',
authorize_udf: 'UDF Function Authorize',
username: 'Username',
username_exists: 'The username already exists',
username_tips: 'Please enter username',
user_password: 'Password',
user_password_tips:
'Please enter a password containing letters and numbers with a length between 6 and 20',
user_type: 'User Type',
ordinary_user: 'Ordinary users',
administrator: 'Administrator',
tenant_code: 'Tenant',
tenant_id_tips: 'Please select tenant',
queue: 'Queue',
queue_tips: 'Please select a queue',
email: 'Email',
email_empty_tips: 'Please enter email',
emial_correct_tips: 'Please enter the correct email format',
phone: 'Phone',
phone_empty_tips: 'Please enter phone number',
phone_correct_tips: 'Please enter the correct mobile phone format',
state: 'State',
state_enabled: 'Enabled',
state_disabled: 'Disabled',
create_time: 'Create Time',
update_time: 'Update Time',
operation: 'Operation',
edit: 'Edit',
delete: 'Delete',
authorize: 'Authorize',
save_error_msg: 'Failed to save, please retry',
delete_error_msg: 'Failed to delete, please retry',
auth_error_msg: 'Failed to authorize, please retry',
auth_success_msg: 'Authorize succeeded',
enable: 'Enable',
disable: 'Disable'
},
alarm_instance: {
search_input_tips: 'Please input the keywords',
alarm_instance_manage: 'Alarm instance manage',
alarm_instance: 'Alarm Instance',
alarm_instance_name: 'Alarm instance name',
alarm_instance_name_tips: 'Please enter alarm plugin instance name',
alarm_plugin_name: 'Alarm plugin name',
create_time: 'Create Time',
update_time: 'Update Time',
operation: 'Operation',
edit: 'Edit',
delete: 'Delete',
delete_confirm: 'Delete?',
confirm: 'Confirm',
cancel: 'Cancel',
submit: 'Submit',
create: 'Create',
select_plugin: 'Select plugin',
select_plugin_tips: 'Select Alarm plugin',
instance_parameter_exception: 'Instance parameter exception',
WebHook: 'WebHook',
webHook: 'WebHook',
IsEnableProxy: 'Enable Proxy',
Proxy: 'Proxy',
Port: 'Port',
User: 'User',
corpId: 'CorpId',
secret: 'Secret',
Secret: 'Secret',
users: 'Users',
userSendMsg: 'UserSendMsg',
agentId: 'AgentId',
showType: 'Show Type',
receivers: 'Receivers',
receiverCcs: 'ReceiverCcs',
serverHost: 'SMTP Host',
serverPort: 'SMTP Port',
sender: 'Sender',
enableSmtpAuth: 'SMTP Auth',
Password: 'Password',
starttlsEnable: 'SMTP STARTTLS Enable',
sslEnable: 'SMTP SSL Enable',
smtpSslTrust: 'SMTP SSL Trust',
url: 'URL',
requestType: 'Request Type',
headerParams: 'Headers',
bodyParams: 'Body',
contentField: 'Content Field',
Keyword: 'Keyword',
userParams: 'User Params',
path: 'Script Path',
type: 'Type',
sendType: 'Send Type',
username: 'Username',
botToken: 'Bot Token',
chatId: 'Channel Chat Id',
parseMode: 'Parse Mode'
},
k8s_namespace: {
create_namespace: 'Create Namespace',
edit_namespace: 'Edit Namespace',
search_tips: 'Please enter keywords',
k8s_namespace: 'K8S Namespace',
k8s_namespace_tips: 'Please enter k8s namespace',
k8s_cluster: 'K8S Cluster',
k8s_cluster_tips: 'Please enter k8s cluster',
owner: 'Owner',
owner_tips: 'Please enter owner',
tag: 'Tag',
tag_tips: 'Please enter tag',
limit_cpu: 'Limit CPU',
limit_cpu_tips: 'Please enter limit CPU',
limit_memory: 'Limit Memory',
limit_memory_tips: 'Please enter limit memory',
create_time: 'Create Time',
update_time: 'Update Time',
operation: 'Operation',
edit: 'Edit',
delete: 'Delete',
delete_confirm: 'Delete?'
}
}
const datasource = {
datasource: 'DataSource',
create_datasource: 'Create DataSource',
search_input_tips: 'Please input the keywords',
datasource_name: 'Datasource Name',
datasource_name_tips: 'Please enter datasource name',
datasource_user_name: 'Owner',
datasource_type: 'Datasource Type',
datasource_parameter: 'Datasource Parameter',
description: 'Description',
description_tips: 'Please enter description',
create_time: 'Create Time',
update_time: 'Update Time',
operation: 'Operation',
click_to_view: 'Click to view',
delete: 'Delete',
confirm: 'Confirm',
delete_confirm: 'Delete?',
cancel: 'Cancel',
create: 'Create',
edit: 'Edit',
success: 'Success',
test_connect: 'Test Connect',
ip: 'IP',
ip_tips: 'Please enter IP',
port: 'Port',
port_tips: 'Please enter port',
database_name: 'Database Name',
database_name_tips: 'Please enter database name',
oracle_connect_type: 'ServiceName or SID',
oracle_connect_type_tips: 'Please select serviceName or SID',
oracle_service_name: 'ServiceName',
oracle_sid: 'SID',
jdbc_connect_parameters: 'jdbc connect parameters',
principal_tips: 'Please enter Principal',
krb5_conf_tips:
'Please enter the kerberos authentication parameter java.security.krb5.conf',
keytab_username_tips:
'Please enter the kerberos authentication parameter login.user.keytab.username',
keytab_path_tips:
'Please enter the kerberos authentication parameter login.user.keytab.path',
format_tips: 'Please enter format',
connection_parameter: 'connection parameter',
user_name: 'User Name',
user_name_tips: 'Please enter your username',
user_password: 'Password',
user_password_tips: 'Please enter your password'
}
const data_quality = {
task_result: {
task_name: 'Task Name',
workflow_instance: 'Workflow Instance',
rule_type: 'Rule Type',
rule_name: 'Rule Name',
state: 'State',
actual_value: 'Actual Value',
excepted_value: 'Excepted Value',
check_type: 'Check Type',
operator: 'Operator',
threshold: 'Threshold',
failure_strategy: 'Failure Strategy',
excepted_value_type: 'Excepted Value Type',
error_output_path: 'Error Output Path',
username: 'Username',
create_time: 'Create Time',
update_time: 'Update Time',
undone: 'Undone',
success: 'Success',
failure: 'Failure',
single_table: 'Single Table',
single_table_custom_sql: 'Single Table Custom Sql',
multi_table_accuracy: 'Multi Table Accuracy',
multi_table_comparison: 'Multi Table Comparison',
expected_and_actual_or_expected: '(Expected - Actual) / Expected x 100%',
expected_and_actual: 'Expected - Actual',
actual_and_expected: 'Actual - Expected',
actual_or_expected: 'Actual / Expected x 100%'
},
rule: {
actions: 'Actions',
name: 'Rule Name',
type: 'Rule Type',
username: 'User Name',
create_time: 'Create Time',
update_time: 'Update Time',
input_item: 'Rule input item',
view_input_item: 'View input items',
input_item_title: 'Input item title',
input_item_placeholder: 'Input item placeholder',
input_item_type: 'Input item type',
src_connector_type: 'SrcConnType',
src_datasource_id: 'SrcSource',
src_table: 'SrcTable',
src_filter: 'SrcFilter',
src_field: 'SrcField',
statistics_name: 'ActualValName',
check_type: 'CheckType',
operator: 'Operator',
threshold: 'Threshold',
failure_strategy: 'FailureStrategy',
target_connector_type: 'TargetConnType',
target_datasource_id: 'TargetSourceId',
target_table: 'TargetTable',
target_filter: 'TargetFilter',
mapping_columns: 'OnClause',
statistics_execute_sql: 'ActualValExecSql',
comparison_name: 'ExceptedValName',
comparison_execute_sql: 'ExceptedValExecSql',
comparison_type: 'ExceptedValType',
writer_connector_type: 'WriterConnType',
writer_datasource_id: 'WriterSourceId',
target_field: 'TargetField',
field_length: 'FieldLength',
logic_operator: 'LogicOperator',
regexp_pattern: 'RegexpPattern',
deadline: 'Deadline',
datetime_format: 'DatetimeFormat',
enum_list: 'EnumList',
begin_time: 'BeginTime',
fix_value: 'FixValue',
null_check: 'NullCheck',
custom_sql: 'Custom Sql',
single_table: 'Single Table',
single_table_custom_sql: 'Single Table Custom Sql',
multi_table_accuracy: 'Multi Table Accuracy',
multi_table_value_comparison: 'Multi Table Compare',
field_length_check: 'FieldLengthCheck',
uniqueness_check: 'UniquenessCheck',
regexp_check: 'RegexpCheck',
timeliness_check: 'TimelinessCheck',
enumeration_check: 'EnumerationCheck',
table_count_check: 'TableCountCheck',
All: 'All',
FixValue: 'FixValue',
DailyAvg: 'DailyAvg',
WeeklyAvg: 'WeeklyAvg',
MonthlyAvg: 'MonthlyAvg',
Last7DayAvg: 'Last7DayAvg',
Last30DayAvg: 'Last30DayAvg',
SrcTableTotalRows: 'SrcTableTotalRows',
TargetTableTotalRows: 'TargetTableTotalRows'
}
}
const crontab = {
second: 'second',
minute: 'minute',
hour: 'hour',
day: 'day',
month: 'month',
year: 'year',
monday: 'Monday',
tuesday: 'Tuesday',
wednesday: 'Wednesday',
thursday: 'Thursday',
friday: 'Friday',
saturday: 'Saturday',
sunday: 'Sunday',
every_second: 'Every second',
every: 'Every',
second_carried_out: 'second carried out',
second_start: 'Start',
specific_second: 'Specific second(multiple)',
specific_second_tip: 'Please enter a specific second',
cycle_from: 'Cycle from',
to: 'to',
every_minute: 'Every minute',
minute_carried_out: 'minute carried out',
minute_start: 'Start',
specific_minute: 'Specific minute(multiple)',
specific_minute_tip: 'Please enter a specific minute',
every_hour: 'Every hour',
hour_carried_out: 'hour carried out',
hour_start: 'Start',
specific_hour: 'Specific hour(multiple)',
specific_hour_tip: 'Please enter a specific hour',
every_day: 'Every day',
week_carried_out: 'week carried out',
start: 'Start',
day_carried_out: 'day carried out',
day_start: 'Start',
specific_week: 'Specific day of the week(multiple)',
specific_week_tip: 'Please enter a specific week',
specific_day: 'Specific days(multiple)',
specific_day_tip: 'Please enter a days',
last_day_of_month: 'On the last day of the month',
last_work_day_of_month: 'On the last working day of the month',
last_of_month: 'At the last of this month',
before_end_of_month: 'Before the end of this month',
recent_business_day_to_month:
'The most recent business day (Monday to Friday) to this month',
in_this_months: 'In this months',
every_month: 'Every month',
month_carried_out: 'month carried out',
month_start: 'Start',
specific_month: 'Specific months(multiple)',
specific_month_tip: 'Please enter a months',
every_year: 'Every year',
year_carried_out: 'year carried out',
year_start: 'Start',
specific_year: 'Specific year(multiple)',
specific_year_tip: 'Please enter a year',
one_hour: 'hour',
one_day: 'day'
}
export default {
login,
modal,
theme,
userDropdown,
menu,
home,
password,
profile,
monitor,
resource,
project,
security,
datasource,
data_quality,
crontab
}
|
closed
|
apache/dolphinscheduler
|
https://github.com/apache/dolphinscheduler
| 8,983 |
[Bug][UI Next][V1.0.0-Alpha] The new button in the English state of the alarm instance page lacks a space.
|
### Search before asking
- [X] I had searched in the [issues](https://github.com/apache/dolphinscheduler/issues?q=is%3Aissue) and found no similar issues.
### What happened

### What you expected to happen
The new button in the English state of the alarm instance page lacks a space.
### How to reproduce
Add space
### Anything else
_No response_
### Version
dev
### Are you willing to submit PR?
- [X] Yes I am willing to submit a PR!
### Code of Conduct
- [X] I agree to follow this project's [Code of Conduct](https://www.apache.org/foundation/policies/conduct)
|
https://github.com/apache/dolphinscheduler/issues/8983
|
https://github.com/apache/dolphinscheduler/pull/8984
|
c29a51a8c71fd015cb459daa1ae77d1cc3255e28
|
9fbc62f7849836edb408c95cd409cad0df2f7225
| 2022-03-18T06:37:49Z |
java
| 2022-03-18T07:50:34Z |
dolphinscheduler-ui-next/src/locales/modules/zh_CN.ts
|
/*
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership.
* The ASF licenses this file to You under the Apache License, Version 2.0
* (the "License"); you may not use this file except in compliance with
* the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
const login = {
test: '测试',
userName: '用户名',
userName_tips: '请输入用户名',
userPassword: '密码',
userPassword_tips: '请输入密码',
login: '登录'
}
const modal = {
cancel: '取消',
confirm: '确定'
}
const theme = {
light: '浅色',
dark: '深色'
}
const userDropdown = {
profile: '用户信息',
password: '密码管理',
logout: '退出登录'
}
const menu = {
home: '首页',
project: '项目管理',
resources: '资源中心',
datasource: '数据源中心',
monitor: '监控中心',
security: '安全中心',
project_overview: '项目概览',
workflow_relation: '工作流关系',
workflow: '工作流',
workflow_definition: '工作流定义',
workflow_instance: '工作流实例',
task: '任务',
task_instance: '任务实例',
task_definition: '任务定义',
file_manage: '文件管理',
udf_manage: 'UDF管理',
resource_manage: '资源管理',
function_manage: '函数管理',
service_manage: '服务管理',
master: 'Master',
worker: 'Worker',
db: 'DB',
statistical_manage: '统计管理',
statistics: 'Statistics',
audit_log: '审计日志',
tenant_manage: '租户管理',
user_manage: '用户管理',
alarm_group_manage: '告警组管理',
alarm_instance_manage: '告警实例管理',
worker_group_manage: 'Worker分组管理',
yarn_queue_manage: 'Yarn队列管理',
environment_manage: '环境管理',
k8s_namespace_manage: 'K8S命名空间管理',
token_manage: '令牌管理',
task_group_manage: '任务组管理',
task_group_option: '任务组配置',
task_group_queue: '任务组队列',
data_quality: '数据质量',
task_result: '任务结果',
rule: '规则管理'
}
const home = {
task_state_statistics: '任务状态统计',
process_state_statistics: '流程状态统计',
process_definition_statistics: '流程定义统计',
number: '数量',
state: '状态',
submitted_success: '提交成功',
running_execution: '正在运行',
ready_pause: '准备暂停',
pause: '暂停',
ready_stop: '准备停止',
stop: '停止',
failure: '失败',
success: '成功',
need_fault_tolerance: '需要容错',
kill: 'KILL',
waiting_thread: '等待线程',
waiting_depend: '等待依赖完成',
delay_execution: '延时执行',
forced_success: '强制成功',
serial_wait: '串行等待',
ready_block: '准备阻断',
block: '阻断'
}
const password = {
edit_password: '修改密码',
password: '密码',
confirm_password: '确认密码',
password_tips: '请输入密码',
confirm_password_tips: '请输入确认密码',
two_password_entries_are_inconsistent: '两次密码输入不一致',
submit: '提交'
}
const profile = {
profile: '用户信息',
edit: '编辑',
username: '用户名',
email: '邮箱',
phone: '手机',
state: '状态',
permission: '权限',
create_time: '创建时间',
update_time: '更新时间',
administrator: '管理员',
ordinary_user: '普通用户',
edit_profile: '编辑用户',
username_tips: '请输入用户名',
email_tips: '请输入邮箱',
email_correct_tips: '请输入正确格式的邮箱',
phone_tips: '请输入手机号',
state_tips: '请选择状态',
enable: '启用',
disable: '禁用',
timezone_success: '时区更新成功',
please_select_timezone: '请选择时区'
}
const monitor = {
master: {
cpu_usage: '处理器使用量',
memory_usage: '内存使用量',
load_average: '平均负载量',
create_time: '创建时间',
last_heartbeat_time: '最后心跳时间',
directory_detail: '目录详情',
host: '主机',
directory: '注册目录'
},
worker: {
cpu_usage: '处理器使用量',
memory_usage: '内存使用量',
load_average: '平均负载量',
create_time: '创建时间',
last_heartbeat_time: '最后心跳时间',
directory_detail: '目录详情',
host: '主机',
directory: '注册目录'
},
db: {
health_state: '健康状态',
max_connections: '最大连接数',
threads_connections: '当前连接数',
threads_running_connections: '数据库当前活跃连接数'
},
statistics: {
command_number_of_waiting_for_running: '待执行的命令数',
failure_command_number: '执行失败的命令数',
tasks_number_of_waiting_running: '待运行任务数',
task_number_of_ready_to_kill: '待杀死任务数'
},
audit_log: {
user_name: '用户名称',
resource_type: '资源类型',
project_name: '项目名称',
operation_type: '操作类型',
create_time: '创建时间',
start_time: '开始时间',
end_time: '结束时间',
user_audit: '用户管理审计',
project_audit: '项目管理审计',
create: '创建',
update: '更新',
delete: '删除',
read: '读取'
}
}
const resource = {
file: {
file_manage: '文件管理',
create_folder: '创建文件夹',
create_file: '创建文件',
upload_files: '上传文件',
enter_keyword_tips: '请输入关键词',
name: '名称',
user_name: '所属用户',
whether_directory: '是否文件夹',
file_name: '文件名称',
description: '描述',
size: '大小',
update_time: '更新时间',
operation: '操作',
edit: '编辑',
rename: '重命名',
download: '下载',
delete: '删除',
yes: '是',
no: '否',
folder_name: '文件夹名称',
enter_name_tips: '请输入名称',
enter_description_tips: '请输入描述',
enter_content_tips: '请输入资源内容',
enter_suffix_tips: '请输入文件后缀',
file_format: '文件格式',
file_content: '文件内容',
delete_confirm: '确定删除吗?',
confirm: '确定',
cancel: '取消',
success: '成功',
file_details: '文件详情',
return: '返回',
save: '保存'
},
udf: {
udf_resources: 'UDF资源',
create_folder: '创建文件夹',
upload_udf_resources: '上传UDF资源',
udf_source_name: 'UDF资源名称',
whether_directory: '是否文件夹',
file_name: '文件名称',
file_size: '文件大小',
description: '描述',
create_time: '创建时间',
update_time: '更新时间',
operation: '操作',
yes: '是',
no: '否',
edit: '编辑',
download: '下载',
delete: '删除',
success: '成功',
folder_name: '文件夹名称',
upload: '上传',
upload_files: '上传文件',
file_upload: '文件上传',
delete_confirm: '确定删除吗?',
enter_keyword_tips: '请输入关键词',
enter_name_tips: '请输入名称',
enter_description_tips: '请输入描述'
},
function: {
udf_function: 'UDF函数',
create_udf_function: '创建UDF函数',
edit_udf_function: '编辑UDF函数',
udf_function_name: 'UDF函数名称',
class_name: '类名',
type: '类型',
description: '描述',
jar_package: 'jar包',
update_time: '更新时间',
operation: '操作',
rename: '重命名',
edit: '编辑',
delete: '删除',
success: '成功',
package_name: '包名类名',
udf_resources: 'UDF资源',
instructions: '使用说明',
upload_resources: '上传资源',
udf_resources_directory: 'UDF资源目录',
delete_confirm: '确定删除吗?',
enter_keyword_tips: '请输入关键词',
enter_udf_unction_name_tips: '请输入UDF函数名称',
enter_package_name_tips: '请输入包名类名',
enter_select_udf_resources_tips: '请选择UDF资源',
enter_select_udf_resources_directory_tips: '请选择UDF资源目录',
enter_instructions_tips: '请输入使用说明',
enter_name_tips: '请输入名称',
enter_description_tips: '请输入描述'
},
task_group_option: {
manage: '任务组管理',
option: '任务组配置',
create: '创建任务组',
edit: '编辑任务组',
delete: '删除任务组',
view_queue: '查看任务组队列',
switch_status: '切换任务组状态',
code: '任务组编号',
name: '任务组名称',
project_name: '项目名称',
resource_pool_size: '资源容量',
resource_used_pool_size: '已用资源',
desc: '描述信息',
status: '任务组状态',
enable_status: '启用',
disable_status: '不可用',
please_enter_name: '请输入任务组名称',
please_enter_desc: '请输入任务组描述',
please_enter_resource_pool_size: '请输入资源容量大小',
resource_pool_size_be_a_number: '资源容量大小必须大于等于1的数值',
please_select_project: '请选择项目',
create_time: '创建时间',
update_time: '更新时间',
actions: '操作',
please_enter_keywords: '请输入搜索关键词'
},
task_group_queue: {
actions: '操作',
task_name: '任务名称',
task_group_name: '任务组名称',
project_name: '项目名称',
process_name: '工作流名称',
process_instance_name: '工作流实例',
queue: '任务组队列',
priority: '组内优先级',
priority_be_a_number: '优先级必须是大于等于0的数值',
force_starting_status: '是否强制启动',
in_queue: '是否排队中',
task_status: '任务状态',
view_task_group_queue: '查看任务组队列',
the_status_of_waiting: '等待入队',
the_status_of_queuing: '排队中',
the_status_of_releasing: '已释放',
modify_priority: '修改优先级',
start_task: '强制启动',
priority_not_empty: '优先级不能为空',
priority_must_be_number: '优先级必须是数值',
please_select_task_name: '请选择节点名称',
create_time: '创建时间',
update_time: '更新时间',
edit_priority: '修改优先级'
}
}
const project = {
list: {
create_project: '创建项目',
edit_project: '编辑项目',
project_list: '项目列表',
project_tips: '请输入项目名称',
description_tips: '请输入项目描述',
username_tips: '请输入所属用户',
project_name: '项目名称',
project_description: '项目描述',
owned_users: '所属用户',
workflow_define_count: '工作流定义数',
process_instance_running_count: '正在运行的流程数',
description: '描述',
create_time: '创建时间',
update_time: '更新时间',
operation: '操作',
edit: '编辑',
delete: '删除',
confirm: '确定',
cancel: '取消',
delete_confirm: '确定删除吗?'
},
workflow: {
workflow_relation: '工作流关系',
create_workflow: '创建工作流',
import_workflow: '导入工作流',
workflow_name: '工作流名称',
current_selection: '当前选择',
online: '已上线',
offline: '已下线',
refresh: '刷新',
show_hide_label: '显示 / 隐藏标签',
workflow_offline: '工作流下线',
schedule_offline: '调度下线',
schedule_start_time: '定时开始时间',
schedule_end_time: '定时结束时间',
crontab_expression: 'Crontab',
workflow_publish_status: '工作流上线状态',
schedule_publish_status: '定时状态',
workflow_definition: '工作流定义',
workflow_instance: '工作流实例',
status: '状态',
create_time: '创建时间',
update_time: '更新时间',
description: '描述',
create_user: '创建用户',
modify_user: '修改用户',
operation: '操作',
edit: '编辑',
confirm: '确定',
cancel: '取消',
start: '运行',
timing: '定时',
timezone: '时区',
up_line: '上线',
down_line: '下线',
copy_workflow: '复制工作流',
cron_manage: '定时管理',
delete: '删除',
tree_view: '工作流树形图',
tree_limit: '限制大小',
export: '导出',
batch_copy: '批量复制',
version_info: '版本信息',
version: '版本',
file_upload: '文件上传',
upload_file: '上传文件',
upload: '上传',
file_name: '文件名称',
success: '成功',
set_parameters_before_starting: '启动前请先设置参数',
set_parameters_before_timing: '定时前请先设置参数',
start_and_stop_time: '起止时间',
next_five_execution_times: '接下来五次执行时间',
execute_time: '执行时间',
failure_strategy: '失败策略',
notification_strategy: '通知策略',
workflow_priority: '流程优先级',
worker_group: 'Worker分组',
environment_name: '环境名称',
alarm_group: '告警组',
complement_data: '补数',
startup_parameter: '启动参数',
whether_dry_run: '是否空跑',
continue: '继续',
end: '结束',
none_send: '都不发',
success_send: '成功发',
failure_send: '失败发',
all_send: '成功或失败都发',
whether_complement_data: '是否是补数',
schedule_date: '调度日期',
mode_of_execution: '执行方式',
serial_execution: '串行执行',
parallel_execution: '并行执行',
parallelism: '并行度',
custom_parallelism: '自定义并行度',
please_enter_parallelism: '请输入并行度',
please_choose: '请选择',
start_time: '开始时间',
end_time: '结束时间',
crontab: 'Crontab',
delete_confirm: '确定删除吗?',
enter_name_tips: '请输入名称',
switch_version: '切换到该版本',
confirm_switch_version: '确定切换到该版本吗?',
current_version: '当前版本',
run_type: '运行类型',
scheduling_time: '调度时间',
duration: '运行时长',
run_times: '运行次数',
fault_tolerant_sign: '容错标识',
dry_run_flag: '空跑标识',
executor: '执行用户',
host: 'Host',
start_process: '启动工作流',
execute_from_the_current_node: '从当前节点开始执行',
recover_tolerance_fault_process: '恢复被容错的工作流',
resume_the_suspension_process: '恢复运行流程',
execute_from_the_failed_nodes: '从失败节点开始执行',
scheduling_execution: '调度执行',
rerun: '重跑',
stop: '停止',
pause: '暂停',
recovery_waiting_thread: '恢复等待线程',
recover_serial_wait: '串行恢复',
recovery_suspend: '恢复运行',
recovery_failed: '恢复失败',
gantt: '甘特图',
name: '名称',
all_status: '全部状态',
submit_success: '提交成功',
running: '正在运行',
ready_to_pause: '准备暂停',
ready_to_stop: '准备停止',
failed: '失败',
need_fault_tolerance: '需要容错',
kill: 'Kill',
waiting_for_thread: '等待线程',
waiting_for_dependence: '等待依赖',
waiting_for_dependency_to_complete: '等待依赖完成',
delay_execution: '延时执行',
forced_success: '强制成功',
serial_wait: '串行等待',
executing: '正在执行',
startup_type: '启动类型',
complement_range: '补数范围',
parameters_variables: '参数变量',
global_parameters: '全局参数',
local_parameters: '局部参数',
type: '类型',
retry_count: '重试次数',
submit_time: '提交时间',
refresh_status_succeeded: '刷新状态成功',
view_log: '查看日志',
update_log_success: '更新日志成功',
no_more_log: '暂无更多日志',
no_log: '暂无日志',
loading_log: '正在努力请求日志中...',
close: '关闭',
download_log: '下载日志',
refresh_log: '刷新日志',
enter_full_screen: '进入全屏',
cancel_full_screen: '取消全屏',
task_state: '任务状态',
mode_of_dependent: '依赖模式',
open: '打开',
project_name_required: '项目名称必填',
related_items: '关联项目',
project_name: '项目名称',
project_tips: '请选择项目'
},
task: {
task_name: '任务名称',
task_type: '任务类型',
create_task: '创建任务',
workflow_instance: '工作流实例',
workflow_name: '工作流名称',
workflow_name_tips: '请选择工作流名称',
workflow_state: '工作流状态',
version: '版本',
current_version: '当前版本',
switch_version: '切换到该版本',
confirm_switch_version: '确定切换到该版本吗?',
description: '描述',
move: '移动',
upstream_tasks: '上游任务',
executor: '执行用户',
node_type: '节点类型',
state: '状态',
submit_time: '提交时间',
start_time: '开始时间',
create_time: '创建时间',
update_time: '更新时间',
end_time: '结束时间',
duration: '运行时间',
retry_count: '重试次数',
dry_run_flag: '空跑标识',
host: '主机',
operation: '操作',
edit: '编辑',
delete: '删除',
delete_confirm: '确定删除吗?',
submitted_success: '提交成功',
running_execution: '正在运行',
ready_pause: '准备暂停',
pause: '暂停',
ready_stop: '准备停止',
stop: '停止',
failure: '失败',
success: '成功',
need_fault_tolerance: '需要容错',
kill: 'KILL',
waiting_thread: '等待线程',
waiting_depend: '等待依赖完成',
delay_execution: '延时执行',
forced_success: '强制成功',
view_log: '查看日志',
download_log: '下载日志',
refresh: '刷新',
serial_wait: '串行等待'
},
dag: {
create: '创建工作流',
search: '搜索',
download_png: '下载工作流图片',
fullscreen_open: '全屏',
fullscreen_close: '退出全屏',
save: '保存',
close: '关闭',
format: '格式化',
refresh_dag_status: '刷新DAG状态',
layout_type: '布局类型',
grid_layout: '网格布局',
dagre_layout: '层次布局',
rows: '行数',
cols: '列数',
copy_success: '复制成功',
workflow_name: '工作流名称',
description: '描述',
tenant: '租户',
timeout_alert: '超时告警',
global_variables: '全局变量',
basic_info: '基本信息',
minute: '分',
key: '键',
value: '值',
success: '成功',
delete_cell: '删除选中的线或节点',
online_directly: '是否上线流程定义',
update_directly: '是否更新流程定义',
dag_name_empty: 'DAG图名称不能为空',
positive_integer: '请输入大于 0 的正整数',
prop_empty: '自定义参数prop不能为空',
prop_repeat: 'prop中有重复',
node_not_created: '未创建节点保存失败',
copy_name: '复制名称',
view_variables: '查看变量',
startup_parameter: '启动参数'
},
node: {
current_node_settings: '当前节点设置',
instructions: '使用说明',
view_history: '查看历史',
view_log: '查看日志',
enter_this_child_node: '进入该子节点',
name: '节点名称',
name_tips: '请输入名称(必填)',
task_type: '任务类型',
task_type_tips: '请选择任务类型(必选)',
process_name: '工作流名称',
process_name_tips: '请选择工作流(必选)',
child_node: '子节点',
enter_child_node: '进入该子节点',
run_flag: '运行标志',
normal: '正常',
prohibition_execution: '禁止执行',
description: '描述',
description_tips: '请输入描述',
task_priority: '任务优先级',
worker_group: 'Worker分组',
worker_group_tips: '该Worker分组已经不存在,请选择正确的Worker分组!',
environment_name: '环境名称',
task_group_name: '任务组名称',
task_group_queue_priority: '组内优先级',
number_of_failed_retries: '失败重试次数',
times: '次',
failed_retry_interval: '失败重试间隔',
minute: '分',
delay_execution_time: '延时执行时间',
state: '状态',
branch_flow: '分支流转',
cancel: '取消',
loading: '正在努力加载中...',
confirm: '确定',
success: '成功',
failed: '失败',
backfill_tips: '新创建子工作流还未执行,不能进入子工作流',
task_instance_tips: '该任务还未执行,不能进入子工作流',
branch_tips: '成功分支流转和失败分支流转不能选择同一个节点',
timeout_alarm: '超时告警',
timeout_strategy: '超时策略',
timeout_strategy_tips: '超时策略必须选一个',
timeout_failure: '超时失败',
timeout_period: '超时时长',
timeout_period_tips: '超时时长必须为正整数',
script: '脚本',
script_tips: '请输入脚本(必填)',
resources: '资源',
resources_tips: '请选择资源',
no_resources_tips: '请删除所有未授权或已删除资源',
useless_resources_tips: '未授权或已删除资源',
custom_parameters: '自定义参数',
copy_failed: '该浏览器不支持自动复制',
prop_tips: 'prop(必填)',
prop_repeat: 'prop中有重复',
value_tips: 'value(选填)',
value_required_tips: 'value(必填)',
pre_tasks: '前置任务',
program_type: '程序类型',
spark_version: 'Spark版本',
main_class: '主函数的Class',
main_class_tips: '请填写主函数的Class',
main_package: '主程序包',
main_package_tips: '请选择主程序包',
deploy_mode: '部署方式',
app_name: '任务名称',
app_name_tips: '请输入任务名称(选填)',
driver_cores: 'Driver核心数',
driver_cores_tips: '请输入Driver核心数',
driver_memory: 'Driver内存数',
driver_memory_tips: '请输入Driver内存数',
executor_number: 'Executor数量',
executor_number_tips: '请输入Executor数量',
executor_memory: 'Executor内存数',
executor_memory_tips: '请输入Executor内存数',
executor_cores: 'Executor核心数',
executor_cores_tips: '请输入Executor核心数',
main_arguments: '主程序参数',
main_arguments_tips: '请输入主程序参数',
option_parameters: '选项参数',
option_parameters_tips: '请输入选项参数',
positive_integer_tips: '应为正整数',
flink_version: 'Flink版本',
job_manager_memory: 'JobManager内存数',
job_manager_memory_tips: '请输入JobManager内存数',
task_manager_memory: 'TaskManager内存数',
task_manager_memory_tips: '请输入TaskManager内存数',
slot_number: 'Slot数量',
slot_number_tips: '请输入Slot数量',
parallelism: '并行度',
custom_parallelism: '自定义并行度',
parallelism_tips: '请输入并行度',
parallelism_number_tips: '并行度必须为正整数',
parallelism_complement_tips:
'如果存在大量任务需要补数时,可以利用自定义并行度将补数的任务线程设置成合理的数值,避免对服务器造成过大的影响',
task_manager_number: 'TaskManager数量',
task_manager_number_tips: '请输入TaskManager数量',
http_url: '请求地址',
http_url_tips: '请填写请求地址(必填)',
http_method: '请求类型',
http_parameters: '请求参数',
http_check_condition: '校验条件',
http_condition: '校验内容',
http_condition_tips: '请填写校验内容',
timeout_settings: '超时设置',
connect_timeout: '连接超时',
ms: '毫秒',
socket_timeout: 'Socket超时',
status_code_default: '默认响应码200',
status_code_custom: '自定义响应码',
body_contains: '内容包含',
body_not_contains: '内容不包含',
http_parameters_position: '参数位置',
target_task_name: '目标任务名',
target_task_name_tips: '请输入Pigeon任务名',
datasource_type: '数据源类型',
datasource_instances: '数据源实例',
sql_type: 'SQL类型',
sql_type_query: '查询',
sql_type_non_query: '非查询',
sql_statement: 'SQL语句',
pre_sql_statement: '前置SQL语句',
post_sql_statement: '后置SQL语句',
sql_input_placeholder: '请输入非查询SQL语句',
sql_empty_tips: '语句不能为空',
procedure_method: 'SQL语句',
procedure_method_tips: '请输入存储脚本',
procedure_method_snippet:
'--请输入存储脚本 \n\n--调用存储过程: call <procedure-name>[(<arg1>,<arg2>, ...)] \n\n--调用存储函数:?= call <procedure-name>[(<arg1>,<arg2>, ...)]',
start: '运行',
edit: '编辑',
copy: '复制节点',
delete: '删除',
custom_job: '自定义任务',
custom_script: '自定义脚本',
sqoop_job_name: '任务名称',
sqoop_job_name_tips: '请输入任务名称(必填)',
direct: '流向',
hadoop_custom_params: 'Hadoop参数',
sqoop_advanced_parameters: 'Sqoop参数',
data_source: '数据来源',
type: '类型',
datasource: '数据源',
datasource_tips: '请选择数据源',
model_type: '模式',
form: '表单',
table: '表名',
table_tips: '请输入Mysql表名(必填)',
column_type: '列类型',
all_columns: '全表导入',
some_columns: '选择列',
column: '列',
column_tips: '请输入列名,用 , 隔开',
database: '数据库',
database_tips: '请输入Hive数据库(必填)',
hive_table_tips: '请输入Hive表名(必填)',
hive_partition_keys: 'Hive 分区键',
hive_partition_keys_tips: '请输入分区键',
hive_partition_values: 'Hive 分区值',
hive_partition_values_tips: '请输入分区值',
export_dir: '数据源路径',
export_dir_tips: '请输入数据源路径(必填)',
sql_statement_tips: 'SQL语句(必填)',
map_column_hive: 'Hive类型映射',
map_column_java: 'Java类型映射',
data_target: '数据目的',
create_hive_table: '是否创建新表',
drop_delimiter: '是否删除分隔符',
over_write_src: '是否覆盖数据源',
hive_target_dir: 'Hive目标路径',
hive_target_dir_tips: '请输入Hive临时目录',
replace_delimiter: '替换分隔符',
replace_delimiter_tips: '请输入替换分隔符',
target_dir: '目标路径',
target_dir_tips: '请输入目标路径(必填)',
delete_target_dir: '是否删除目录',
compression_codec: '压缩类型',
file_type: '保存格式',
fields_terminated: '列分隔符',
fields_terminated_tips: '请输入列分隔符',
lines_terminated: '行分隔符',
lines_terminated_tips: '请输入行分隔符',
is_update: '是否更新',
update_key: '更新列',
update_key_tips: '请输入更新列',
update_mode: '更新类型',
only_update: '只更新',
allow_insert: '无更新便插入',
concurrency: '并发度',
concurrency_tips: '请输入并发度',
sea_tunnel_master: 'Master',
sea_tunnel_master_url: 'Master URL',
sea_tunnel_queue: '队列',
sea_tunnel_master_url_tips: '请直接填写地址,例如:127.0.0.1:7077',
switch_condition: '条件',
switch_branch_flow: '分支流转',
and: '且',
or: '或',
datax_custom_template: '自定义模板',
datax_json_template: 'JSON',
datax_target_datasource_type: '目标源类型',
datax_target_database: '目标源实例',
datax_target_table: '目标表',
datax_target_table_tips: '请输入目标表名',
datax_target_database_pre_sql: '目标库前置SQL',
datax_target_database_post_sql: '目标库后置SQL',
datax_non_query_sql_tips: '请输入非查询SQL语句',
datax_job_speed_byte: '限流(字节数)',
datax_job_speed_byte_info: '(KB,0代表不限制)',
datax_job_speed_record: '限流(记录数)',
datax_job_speed_record_info: '(0代表不限制)',
datax_job_runtime_memory: '运行内存',
datax_job_runtime_memory_xms: '最小内存',
datax_job_runtime_memory_xmx: '最大内存',
datax_job_runtime_memory_unit: 'G',
current_hour: '当前小时',
last_1_hour: '前1小时',
last_2_hour: '前2小时',
last_3_hour: '前3小时',
last_24_hour: '前24小时',
today: '今天',
last_1_days: '昨天',
last_2_days: '前两天',
last_3_days: '前三天',
last_7_days: '前七天',
this_week: '本周',
last_week: '上周',
last_monday: '上周一',
last_tuesday: '上周二',
last_wednesday: '上周三',
last_thursday: '上周四',
last_friday: '上周五',
last_saturday: '上周六',
last_sunday: '上周日',
this_month: '本月',
last_month: '上月',
last_month_begin: '上月初',
last_month_end: '上月末',
month: '月',
week: '周',
day: '日',
hour: '时',
add_dependency: '添加依赖',
waiting_dependent_start: '等待依赖启动',
check_interval: '检查间隔',
waiting_dependent_complete: '等待依赖完成',
rule_name: '规则名称',
null_check: '空值检测',
custom_sql: '自定义SQL',
multi_table_accuracy: '多表准确性',
multi_table_value_comparison: '两表值比对',
field_length_check: '字段长度校验',
uniqueness_check: '唯一性校验',
regexp_check: '正则表达式',
timeliness_check: '及时性校验',
enumeration_check: '枚举值校验',
table_count_check: '表行数校验',
src_connector_type: '源数据类型',
src_datasource_id: '源数据源',
src_table: '源数据表',
src_filter: '源表过滤条件',
src_field: '源表检测列',
statistics_name: '实际值名',
check_type: '校验方式',
operator: '校验操作符',
threshold: '阈值',
failure_strategy: '失败策略',
target_connector_type: '目标数据类型',
target_datasource_id: '目标数据源',
target_table: '目标数据表',
target_filter: '目标表过滤条件',
mapping_columns: 'ON语句',
statistics_execute_sql: '实际值计算SQL',
comparison_name: '期望值名',
comparison_execute_sql: '期望值计算SQL',
comparison_type: '期望值类型',
writer_connector_type: '输出数据类型',
writer_datasource_id: '输出数据源',
target_field: '目标表检测列',
field_length: '字段长度限制',
logic_operator: '逻辑操作符',
regexp_pattern: '正则表达式',
deadline: '截止时间',
datetime_format: '时间格式',
enum_list: '枚举值列表',
begin_time: '起始时间',
fix_value: '固定值',
required: '必填',
emr_flow_define_json: 'jobFlowDefineJson',
emr_flow_define_json_tips: '请输入工作流定义'
}
}
const security = {
tenant: {
tenant_manage: '租户管理',
create_tenant: '创建租户',
search_tips: '请输入关键词',
tenant_code: '操作系统租户',
description: '描述',
queue_name: '队列',
create_time: '创建时间',
update_time: '更新时间',
actions: '操作',
edit_tenant: '编辑租户',
tenant_code_tips: '请输入操作系统租户',
queue_name_tips: '请选择队列',
description_tips: '请输入描述',
delete_confirm: '确定删除吗?',
edit: '编辑',
delete: '删除'
},
alarm_group: {
create_alarm_group: '创建告警组',
edit_alarm_group: '编辑告警组',
search_tips: '请输入关键词',
alert_group_name_tips: '请输入告警组名称',
alarm_plugin_instance: '告警组实例',
alarm_plugin_instance_tips: '请选择告警组实例',
alarm_group_description_tips: '请输入告警组描述',
alert_group_name: '告警组名称',
alarm_group_description: '告警组描述',
create_time: '创建时间',
update_time: '更新时间',
operation: '操作',
delete_confirm: '确定删除吗?',
edit: '编辑',
delete: '删除'
},
worker_group: {
create_worker_group: '创建Worker分组',
edit_worker_group: '编辑Worker分组',
search_tips: '请输入关键词',
operation: '操作',
delete_confirm: '确定删除吗?',
edit: '编辑',
delete: '删除',
group_name: '分组名称',
group_name_tips: '请输入分组名称',
worker_addresses: 'Worker地址',
worker_addresses_tips: '请选择Worker地址',
create_time: '创建时间',
update_time: '更新时间'
},
yarn_queue: {
create_queue: '创建队列',
edit_queue: '编辑队列',
search_tips: '请输入关键词',
queue_name: '队列名',
queue_value: '队列值',
create_time: '创建时间',
update_time: '更新时间',
operation: '操作',
edit: '编辑',
queue_name_tips: '请输入队列名',
queue_value_tips: '请输入队列值'
},
environment: {
create_environment: '创建环境',
edit_environment: '编辑环境',
search_tips: '请输入关键词',
edit: '编辑',
delete: '删除',
environment_name: '环境名称',
environment_config: '环境配置',
environment_desc: '环境描述',
worker_groups: 'Worker分组',
create_time: '创建时间',
update_time: '更新时间',
operation: '操作',
delete_confirm: '确定删除吗?',
environment_name_tips: '请输入环境名',
environment_config_tips: '请输入环境配置',
environment_description_tips: '请输入环境描述',
worker_group_tips: '请选择Worker分组'
},
token: {
create_token: '创建令牌',
edit_token: '编辑令牌',
search_tips: '请输入关键词',
user: '用户',
user_tips: '请选择用户',
token: '令牌',
token_tips: '请输入令牌',
expiration_time: '失效时间',
expiration_time_tips: '请选择失效时间',
create_time: '创建时间',
update_time: '更新时间',
operation: '操作',
edit: '编辑',
delete: '删除',
delete_confirm: '确定删除吗?'
},
user: {
user_manage: '用户管理',
create_user: '创建用户',
update_user: '更新用户',
delete_user: '删除用户',
delete_confirm: '确定删除吗?',
project: '项目',
resource: '资源',
file_resource: '文件资源',
udf_resource: 'UDF资源',
datasource: '数据源',
udf: 'UDF函数',
authorize_project: '项目授权',
authorize_resource: '资源授权',
authorize_datasource: '数据源授权',
authorize_udf: 'UDF函数授权',
username: '用户名',
username_exists: '用户名已存在',
username_tips: '请输入用户名',
user_password: '密码',
user_password_tips: '请输入包含字母和数字,长度在6~20之间的密码',
user_type: '用户类型',
ordinary_user: '普通用户',
administrator: '管理员',
tenant_code: '租户',
tenant_id_tips: '请选择租户',
queue: '队列',
queue_tips: '默认为租户关联队列',
email: '邮件',
email_empty_tips: '请输入邮箱',
emial_correct_tips: '请输入正确的邮箱格式',
phone: '手机',
phone_empty_tips: '请输入手机号码',
phone_correct_tips: '请输入正确的手机格式',
state: '状态',
state_enabled: '启用',
state_disabled: '停用',
create_time: '创建时间',
update_time: '更新时间',
operation: '操作',
edit: '编辑',
delete: '删除',
authorize: '授权',
save_error_msg: '保存失败,请重试',
delete_error_msg: '删除失败,请重试',
auth_error_msg: '授权失败,请重试',
auth_success_msg: '授权成功',
enable: '启用',
disable: '停用'
},
alarm_instance: {
search_input_tips: '请输入关键字',
alarm_instance_manage: '告警实例管理',
alarm_instance: '告警实例',
alarm_instance_name: '告警实例名称',
alarm_instance_name_tips: '请输入告警实例名称',
alarm_plugin_name: '告警插件名称',
create_time: '创建时间',
update_time: '更新时间',
operation: '操作',
edit: '编辑',
delete: '删除',
delete_confirm: '删除?',
confirm: '确定',
cancel: '取消',
submit: '提交',
create: '创建',
select_plugin: '选择插件',
select_plugin_tips: '请选择告警插件',
instance_parameter_exception: '实例参数异常',
WebHook: 'Web钩子',
webHook: 'Web钩子',
IsEnableProxy: '启用代理',
Proxy: '代理',
Port: '端口',
User: '用户',
corpId: '企业ID',
secret: '密钥',
Secret: '密钥',
users: '群员',
userSendMsg: '群员信息',
agentId: '应用ID',
showType: '内容展示类型',
receivers: '收件人',
receiverCcs: '抄送人',
serverHost: 'SMTP服务器',
serverPort: 'SMTP端口',
sender: '发件人',
enableSmtpAuth: '请求认证',
Password: '密码',
starttlsEnable: 'STARTTLS连接',
sslEnable: 'SSL连接',
smtpSslTrust: 'SSL证书信任',
url: 'URL',
requestType: '请求方式',
headerParams: '请求头',
bodyParams: '请求体',
contentField: '内容字段',
Keyword: '关键词',
userParams: '自定义参数',
path: '脚本路径',
type: '类型',
sendType: '发送类型',
username: '用户名',
botToken: '机器人Token',
chatId: '频道ID',
parseMode: '解析类型'
},
k8s_namespace: {
create_namespace: '创建命名空间',
edit_namespace: '编辑命名空间',
search_tips: '请输入关键词',
k8s_namespace: 'K8S命名空间',
k8s_namespace_tips: '请输入k8s命名空间',
k8s_cluster: 'K8S集群',
k8s_cluster_tips: '请输入k8s集群',
owner: '负责人',
owner_tips: '请输入负责人',
tag: '标签',
tag_tips: '请输入标签',
limit_cpu: '最大CPU',
limit_cpu_tips: '请输入最大CPU',
limit_memory: '最大内存',
limit_memory_tips: '请输入最大内存',
create_time: '创建时间',
update_time: '更新时间',
operation: '操作',
edit: '编辑',
delete: '删除',
delete_confirm: '确定删除吗?'
}
}
const datasource = {
datasource: '数据源',
create_datasource: '创建数据源',
search_input_tips: '请输入关键字',
datasource_name: '数据源名称',
datasource_name_tips: '请输入数据源名称',
datasource_user_name: '所属用户',
datasource_type: '数据源类型',
datasource_parameter: '数据源参数',
description: '描述',
description_tips: '请输入描述',
create_time: '创建时间',
update_time: '更新时间',
operation: '操作',
click_to_view: '点击查看',
delete: '删除',
confirm: '确定',
delete_confirm: '删除?',
cancel: '取消',
create: '创建',
edit: '编辑',
success: '成功',
test_connect: '测试连接',
ip: 'IP主机名',
ip_tips: '请输入IP主机名',
port: '端口',
port_tips: '请输入端口',
database_name: '数据库名',
database_name_tips: '请输入数据库名',
oracle_connect_type: '服务名或SID',
oracle_connect_type_tips: '请选择服务名或SID',
oracle_service_name: '服务名',
oracle_sid: 'SID',
jdbc_connect_parameters: 'jdbc连接参数',
principal_tips: '请输入Principal',
krb5_conf_tips: '请输入kerberos认证参数 java.security.krb5.conf',
keytab_username_tips: '请输入kerberos认证参数 login.user.keytab.username',
keytab_path_tips: '请输入kerberos认证参数 login.user.keytab.path',
format_tips: '请输入格式为',
connection_parameter: '连接参数',
user_name: '用户名',
user_name_tips: '请输入用户名',
user_password: '密码',
user_password_tips: '请输入密码'
}
const data_quality = {
task_result: {
task_name: '任务名称',
workflow_instance: '工作流实例',
rule_type: '规则类型',
rule_name: '规则名称',
state: '状态',
actual_value: '实际值',
excepted_value: '期望值',
check_type: '检测类型',
operator: '操作符',
threshold: '阈值',
failure_strategy: '失败策略',
excepted_value_type: '期望值类型',
error_output_path: '错误数据路径',
username: '用户名',
create_time: '创建时间',
update_time: '更新时间',
undone: '未完成',
success: '成功',
failure: '失败',
single_table: '单表检测',
single_table_custom_sql: '自定义SQL',
multi_table_accuracy: '多表准确性',
multi_table_comparison: '两表值对比',
expected_and_actual_or_expected: '(期望值-实际值)/实际值 x 100%',
expected_and_actual: '期望值-实际值',
actual_and_expected: '实际值-期望值',
actual_or_expected: '实际值/期望值 x 100%'
},
rule: {
actions: '操作',
name: '规则名称',
type: '规则类型',
username: '用户名',
create_time: '创建时间',
update_time: '更新时间',
input_item: '规则输入项',
view_input_item: '查看规则输入项信息',
input_item_title: '输入项标题',
input_item_placeholder: '输入项占位符',
input_item_type: '输入项类型',
src_connector_type: '源数据类型',
src_datasource_id: '源数据源',
src_table: '源数据表',
src_filter: '源表过滤条件',
src_field: '源表检测列',
statistics_name: '实际值名',
check_type: '校验方式',
operator: '校验操作符',
threshold: '阈值',
failure_strategy: '失败策略',
target_connector_type: '目标数据类型',
target_datasource_id: '目标数据源',
target_table: '目标数据表',
target_filter: '目标表过滤条件',
mapping_columns: 'ON语句',
statistics_execute_sql: '实际值计算SQL',
comparison_name: '期望值名',
comparison_execute_sql: '期望值计算SQL',
comparison_type: '期望值类型',
writer_connector_type: '输出数据类型',
writer_datasource_id: '输出数据源',
target_field: '目标表检测列',
field_length: '字段长度限制',
logic_operator: '逻辑操作符',
regexp_pattern: '正则表达式',
deadline: '截止时间',
datetime_format: '时间格式',
enum_list: '枚举值列表',
begin_time: '起始时间',
fix_value: '固定值',
null_check: '空值检测',
custom_sql: '自定义SQL',
single_table: '单表检测',
multi_table_accuracy: '多表准确性',
multi_table_value_comparison: '两表值比对',
field_length_check: '字段长度校验',
uniqueness_check: '唯一性校验',
regexp_check: '正则表达式',
timeliness_check: '及时性校验',
enumeration_check: '枚举值校验',
table_count_check: '表行数校验',
all: '全部',
FixValue: '固定值',
DailyAvg: '日均值',
WeeklyAvg: '周均值',
MonthlyAvg: '月均值',
Last7DayAvg: '最近7天均值',
Last30DayAvg: '最近30天均值',
SrcTableTotalRows: '源表总行数',
TargetTableTotalRows: '目标表总行数'
}
}
const crontab = {
second: '秒',
minute: '分',
hour: '时',
day: '天',
month: '月',
year: '年',
monday: '星期一',
tuesday: '星期二',
wednesday: '星期三',
thursday: '星期四',
friday: '星期五',
saturday: '星期六',
sunday: '星期天',
every_second: '每一秒钟',
every: '每隔',
second_carried_out: '秒执行 从',
second_start: '秒开始',
specific_second: '具体秒数(可多选)',
specific_second_tip: '请选择具体秒数',
cycle_from: '周期从',
to: '到',
every_minute: '每一分钟',
minute_carried_out: '分执行 从',
minute_start: '分开始',
specific_minute: '具体分钟数(可多选)',
specific_minute_tip: '请选择具体分钟数',
every_hour: '每一小时',
hour_carried_out: '小时执行 从',
hour_start: '小时开始',
specific_hour: '具体小时数(可多选)',
specific_hour_tip: '请选择具体小时数',
every_day: '每一天',
week_carried_out: '周执行 从',
start: '开始',
day_carried_out: '天执行 从',
day_start: '天开始',
specific_week: '具体星期几(可多选)',
specific_week_tip: '请选择具体周几',
specific_day: '具体天数(可多选)',
specific_day_tip: '请选择具体天数',
last_day_of_month: '在这个月的最后一天',
last_work_day_of_month: '在这个月的最后一个工作日',
last_of_month: '在这个月的最后一个',
before_end_of_month: '在本月底前',
recent_business_day_to_month: '最近的工作日(周一至周五)至本月',
in_this_months: '在这个月的第',
every_month: '每一月',
month_carried_out: '月执行 从',
month_start: '月开始',
specific_month: '具体月数(可多选)',
specific_month_tip: '请选择具体月数',
every_year: '每一年',
year_carried_out: '年执行 从',
year_start: '年开始',
specific_year: '具体年数(可多选)',
specific_year_tip: '请选择具体年数',
one_hour: '小时',
one_day: '日'
}
export default {
login,
modal,
theme,
userDropdown,
menu,
home,
password,
profile,
monitor,
resource,
project,
security,
datasource,
data_quality,
crontab
}
|
closed
|
apache/dolphinscheduler
|
https://github.com/apache/dolphinscheduler
| 8,983 |
[Bug][UI Next][V1.0.0-Alpha] The new button in the English state of the alarm instance page lacks a space.
|
### Search before asking
- [X] I had searched in the [issues](https://github.com/apache/dolphinscheduler/issues?q=is%3Aissue) and found no similar issues.
### What happened

### What you expected to happen
The new button in the English state of the alarm instance page lacks a space.
### How to reproduce
Add space
### Anything else
_No response_
### Version
dev
### Are you willing to submit PR?
- [X] Yes I am willing to submit a PR!
### Code of Conduct
- [X] I agree to follow this project's [Code of Conduct](https://www.apache.org/foundation/policies/conduct)
|
https://github.com/apache/dolphinscheduler/issues/8983
|
https://github.com/apache/dolphinscheduler/pull/8984
|
c29a51a8c71fd015cb459daa1ae77d1cc3255e28
|
9fbc62f7849836edb408c95cd409cad0df2f7225
| 2022-03-18T06:37:49Z |
java
| 2022-03-18T07:50:34Z |
dolphinscheduler-ui-next/src/views/security/alarm-instance-manage/detail.tsx
|
/*
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership.
* The ASF licenses this file to You under the Apache License, Version 2.0
* (the "License"); you may not use this file except in compliance with
* the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
import {
defineComponent,
PropType,
toRefs,
watch,
onMounted,
ref,
Ref
} from 'vue'
import { NSelect, NInput } from 'naive-ui'
import { isFunction } from 'lodash'
import Modal from '@/components/modal'
import Form from '@/components/form'
import { useI18n } from 'vue-i18n'
import { useForm } from './use-form'
import { useDetail } from './use-detail'
import getElementByJson from '@/components/form/get-elements-by-json'
import type { IRecord, FormRules, IFormItem } from './types'
interface IElements extends Omit<Ref, 'value'> {
value: IFormItem[]
}
const props = {
show: {
type: Boolean as PropType<boolean>,
default: false
},
currentRecord: {
type: Object as PropType<IRecord>,
default: {}
}
}
const DetailModal = defineComponent({
name: 'DetailModal',
props,
emits: ['cancel', 'update'],
setup(props, ctx) {
const { t } = useI18n()
const rules = ref<FormRules>({})
const elements = ref<IFormItem[]>([]) as IElements
const {
meta,
state,
setDetail,
initForm,
resetForm,
getFormValues,
changePlugin
} = useForm()
const { status, createOrUpdate } = useDetail(getFormValues)
const onCancel = () => {
resetForm()
rules.value = {}
elements.value = []
ctx.emit('cancel')
}
const onSubmit = async () => {
await state.detailFormRef.validate()
const res = await createOrUpdate(props.currentRecord, state.json)
if (res) {
onCancel()
ctx.emit('update')
}
}
const onChangePlugin = changePlugin
watch(
() => props.show,
async () => {
props.show && props.currentRecord && setDetail(props.currentRecord)
}
)
watch(
() => state.json,
() => {
if (!state.json?.length) return
state.json.forEach((item) => {
const mergedItem = isFunction(item) ? item() : item
mergedItem.name = t(
'security.alarm_instance' + '.' + mergedItem.field
)
})
const { rules: fieldsRules, elements: fieldsElements } =
getElementByJson(state.json, state.detailForm)
rules.value = fieldsRules
elements.value = fieldsElements
}
)
onMounted(() => {
initForm()
})
return {
t,
...toRefs(state),
...toRefs(status),
meta,
rules,
elements,
onChangePlugin,
onSubmit,
onCancel
}
},
render(props: { currentRecord: IRecord }) {
const {
show,
t,
meta,
rules,
elements,
detailForm,
uiPlugins,
pluginsLoading,
loading,
saving,
onChangePlugin,
onCancel,
onSubmit
} = this
const { currentRecord } = props
return (
<Modal
show={show}
title={`${t(
currentRecord?.id
? 'security.alarm_instance.edit'
: 'security.alarm_instance.create'
)} ${t('security.alarm_instance.alarm_instance')}`}
onConfirm={onSubmit}
confirmLoading={saving || loading}
onCancel={() => void onCancel()}
>
{{
default: () => (
<Form
ref='detailFormRef'
loading={loading || pluginsLoading}
meta={{
...meta,
rules: {
...meta.rules,
...rules
},
elements: [
{
path: 'instanceName',
label: t('security.alarm_instance.alarm_instance_name'),
widget: (
<NInput
v-model={[detailForm.instanceName, 'value']}
placeholder={t(
'security.alarm_instance.alarm_instance_name_tips'
)}
/>
)
},
{
path: 'pluginDefineId',
label: t('security.alarm_instance.select_plugin'),
widget: (
<NSelect
v-model={[detailForm.pluginDefineId, 'value']}
options={uiPlugins}
disabled={!!currentRecord?.id}
placeholder={t(
'security.alarm_instance.select_plugin_tips'
)}
on-update:value={onChangePlugin}
/>
)
},
...elements
]
}}
layout={{
cols: 24
}}
/>
)
}}
</Modal>
)
}
})
export default DetailModal
|
closed
|
apache/dolphinscheduler
|
https://github.com/apache/dolphinscheduler
| 8,983 |
[Bug][UI Next][V1.0.0-Alpha] The new button in the English state of the alarm instance page lacks a space.
|
### Search before asking
- [X] I had searched in the [issues](https://github.com/apache/dolphinscheduler/issues?q=is%3Aissue) and found no similar issues.
### What happened

### What you expected to happen
The new button in the English state of the alarm instance page lacks a space.
### How to reproduce
Add space
### Anything else
_No response_
### Version
dev
### Are you willing to submit PR?
- [X] Yes I am willing to submit a PR!
### Code of Conduct
- [X] I agree to follow this project's [Code of Conduct](https://www.apache.org/foundation/policies/conduct)
|
https://github.com/apache/dolphinscheduler/issues/8983
|
https://github.com/apache/dolphinscheduler/pull/8984
|
c29a51a8c71fd015cb459daa1ae77d1cc3255e28
|
9fbc62f7849836edb408c95cd409cad0df2f7225
| 2022-03-18T06:37:49Z |
java
| 2022-03-18T07:50:34Z |
dolphinscheduler-ui-next/src/views/security/alarm-instance-manage/index.tsx
|
/*
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership.
* The ASF licenses this file to You under the Apache License, Version 2.0
* (the "License"); you may not use this file except in compliance with
* the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
import {defineComponent, onMounted, ref, toRefs, watch} from 'vue'
import {
NButton,
NInput,
NIcon,
NDataTable,
NPagination,
NSpace
} from 'naive-ui'
import Card from '@/components/card'
import DetailModal from './detail'
import { SearchOutlined } from '@vicons/antd'
import { useI18n } from 'vue-i18n'
import { useUserInfo } from './use-userinfo'
import { useColumns } from './use-columns'
import { useTable } from './use-table'
import styles from './index.module.scss'
import type { IRecord } from './types'
const AlarmInstanceManage = defineComponent({
name: 'alarm-instance-manage',
setup() {
const { t } = useI18n()
const showDetailModal = ref(false)
const currentRecord = ref()
const columns = ref()
const { IS_ADMIN } = useUserInfo()
const { data, changePage, changePageSize, deleteRecord, updateList } =
useTable()
const { getColumns } = useColumns(
(record: IRecord, type: 'edit' | 'delete') => {
if (type === 'edit') {
showDetailModal.value = true
currentRecord.value = record
} else {
deleteRecord(record.id)
}
}
)
const onCreate = () => {
currentRecord.value = null
showDetailModal.value = true
}
const onCloseModal = () => {
showDetailModal.value = false
currentRecord.value = {}
}
onMounted(() => {
changePage(1)
columns.value = getColumns()
})
watch(useI18n().locale, () => {
columns.value = getColumns()
})
return {
t,
IS_ADMIN,
showDetailModal,
currentRecord: currentRecord,
columns,
...toRefs(data),
changePage,
changePageSize,
onCreate,
onCloseModal,
onUpdatedList: updateList
}
},
render() {
const {
t,
IS_ADMIN,
currentRecord,
showDetailModal,
columns,
list,
page,
pageSize,
itemCount,
loading,
changePage,
changePageSize,
onCreate,
onUpdatedList,
onCloseModal
} = this
return (
<>
<Card title=''>
{{
default: () => (
<div class={styles['conditions']}>
{IS_ADMIN && (
<NButton onClick={onCreate} type='primary'>
{t('security.alarm_instance.create') +
t('security.alarm_instance.alarm_instance')}
</NButton>
)}
<NSpace
class={styles['conditions-search']}
justify='end'
wrap={false}
>
<div class={styles['conditions-search-input']}>
<NInput
v-model={[this.searchVal, 'value']}
placeholder={`${t(
'security.alarm_instance.search_input_tips'
)}`}
/>
</div>
<NButton type='primary' onClick={onUpdatedList}>
<NIcon>
<SearchOutlined />
</NIcon>
</NButton>
</NSpace>
</div>
)
}}
</Card>
<Card title='' class={styles['mt-8']}>
<NDataTable
columns={columns}
data={list}
loading={loading}
striped
/>
<NPagination
page={page}
page-size={pageSize}
item-count={itemCount}
show-quick-jumper
class={styles['pagination']}
on-update:page={changePage}
on-update:page-size={changePageSize}
/>
</Card>
{IS_ADMIN && (
<DetailModal
show={showDetailModal}
currentRecord={currentRecord}
onCancel={onCloseModal}
onUpdate={onUpdatedList}
/>
)}
</>
)
}
})
export default AlarmInstanceManage
|
closed
|
apache/dolphinscheduler
|
https://github.com/apache/dolphinscheduler
| 8,790 |
[Bug] [Process Definition] Duplicate key TaskDefinition
|
### Search before asking
- [X] I had searched in the [issues](https://github.com/apache/dolphinscheduler/issues?q=is%3Aissue) and found no similar issues.
### What happened
I'm trying to save an process instance which was upgrade from before version(v2.0.1) and it reporting this error:
![Uploading Screen Shot 2022-03-10 at 10.41.08 AM.png…]()
### What you expected to happen
saved successfully
### How to reproduce
upgrade from v2.0.1 to v2.0.3,and try to modify process instance and save
### Anything else
_No response_
### Version
2.0.3
### Are you willing to submit PR?
- [X] Yes I am willing to submit a PR!
### Code of Conduct
- [X] I agree to follow this project's [Code of Conduct](https://www.apache.org/foundation/policies/conduct)
|
https://github.com/apache/dolphinscheduler/issues/8790
|
https://github.com/apache/dolphinscheduler/pull/8986
|
30746d9762b350df530187a628c58c547c7f7ba1
|
a93033b62051c5cd0c509c6d856c3a75697da6ae
| 2022-03-10T02:42:43Z |
java
| 2022-03-18T11:02:16Z |
dolphinscheduler-service/src/main/java/org/apache/dolphinscheduler/service/process/ProcessService.java
|
/*
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership.
* The ASF licenses this file to You under the Apache License, Version 2.0
* (the "License"); you may not use this file except in compliance with
* the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package org.apache.dolphinscheduler.service.process;
import static org.apache.dolphinscheduler.common.Constants.CMDPARAM_COMPLEMENT_DATA_END_DATE;
import static org.apache.dolphinscheduler.common.Constants.CMDPARAM_COMPLEMENT_DATA_START_DATE;
import static org.apache.dolphinscheduler.common.Constants.CMD_PARAM_EMPTY_SUB_PROCESS;
import static org.apache.dolphinscheduler.common.Constants.CMD_PARAM_FATHER_PARAMS;
import static org.apache.dolphinscheduler.common.Constants.CMD_PARAM_RECOVER_PROCESS_ID_STRING;
import static org.apache.dolphinscheduler.common.Constants.CMD_PARAM_SUB_PROCESS;
import static org.apache.dolphinscheduler.common.Constants.CMD_PARAM_SUB_PROCESS_DEFINE_CODE;
import static org.apache.dolphinscheduler.common.Constants.CMD_PARAM_SUB_PROCESS_PARENT_INSTANCE_ID;
import static org.apache.dolphinscheduler.common.Constants.LOCAL_PARAMS;
import static org.apache.dolphinscheduler.plugin.task.api.utils.DataQualityConstants.TASK_INSTANCE_ID;
import static java.util.stream.Collectors.toSet;
import org.apache.dolphinscheduler.common.Constants;
import org.apache.dolphinscheduler.common.enums.AuthorizationType;
import org.apache.dolphinscheduler.common.enums.CommandType;
import org.apache.dolphinscheduler.common.enums.FailureStrategy;
import org.apache.dolphinscheduler.common.enums.Flag;
import org.apache.dolphinscheduler.common.enums.ReleaseState;
import org.apache.dolphinscheduler.common.enums.TaskDependType;
import org.apache.dolphinscheduler.common.enums.TaskGroupQueueStatus;
import org.apache.dolphinscheduler.common.enums.TimeoutFlag;
import org.apache.dolphinscheduler.common.enums.WarningType;
import org.apache.dolphinscheduler.common.graph.DAG;
import org.apache.dolphinscheduler.common.model.TaskNode;
import org.apache.dolphinscheduler.common.model.TaskNodeRelation;
import org.apache.dolphinscheduler.common.process.ProcessDag;
import org.apache.dolphinscheduler.plugin.task.api.parameters.TaskTimeoutParameter;
import org.apache.dolphinscheduler.common.utils.CodeGenerateUtils;
import org.apache.dolphinscheduler.common.utils.CodeGenerateUtils.CodeGenerateException;
import org.apache.dolphinscheduler.common.utils.DateUtils;
import org.apache.dolphinscheduler.common.utils.JSONUtils;
import org.apache.dolphinscheduler.common.utils.ParameterUtils;
import org.apache.dolphinscheduler.dao.entity.Command;
import org.apache.dolphinscheduler.dao.entity.DagData;
import org.apache.dolphinscheduler.dao.entity.DataSource;
import org.apache.dolphinscheduler.dao.entity.DependentProcessDefinition;
import org.apache.dolphinscheduler.dao.entity.DqComparisonType;
import org.apache.dolphinscheduler.dao.entity.DqExecuteResult;
import org.apache.dolphinscheduler.dao.entity.DqRule;
import org.apache.dolphinscheduler.dao.entity.DqRuleExecuteSql;
import org.apache.dolphinscheduler.dao.entity.DqRuleInputEntry;
import org.apache.dolphinscheduler.dao.entity.DqTaskStatisticsValue;
import org.apache.dolphinscheduler.dao.entity.Environment;
import org.apache.dolphinscheduler.dao.entity.ErrorCommand;
import org.apache.dolphinscheduler.dao.entity.ProcessDefinition;
import org.apache.dolphinscheduler.dao.entity.ProcessDefinitionLog;
import org.apache.dolphinscheduler.dao.entity.ProcessInstance;
import org.apache.dolphinscheduler.dao.entity.ProcessInstanceMap;
import org.apache.dolphinscheduler.dao.entity.ProcessTaskRelation;
import org.apache.dolphinscheduler.dao.entity.ProcessTaskRelationLog;
import org.apache.dolphinscheduler.dao.entity.Project;
import org.apache.dolphinscheduler.dao.entity.ProjectUser;
import org.apache.dolphinscheduler.dao.entity.Resource;
import org.apache.dolphinscheduler.dao.entity.Schedule;
import org.apache.dolphinscheduler.dao.entity.TaskDefinition;
import org.apache.dolphinscheduler.dao.entity.TaskDefinitionLog;
import org.apache.dolphinscheduler.dao.entity.TaskGroup;
import org.apache.dolphinscheduler.dao.entity.TaskGroupQueue;
import org.apache.dolphinscheduler.dao.entity.TaskInstance;
import org.apache.dolphinscheduler.dao.entity.Tenant;
import org.apache.dolphinscheduler.dao.entity.UdfFunc;
import org.apache.dolphinscheduler.dao.entity.User;
import org.apache.dolphinscheduler.dao.mapper.CommandMapper;
import org.apache.dolphinscheduler.dao.mapper.DataSourceMapper;
import org.apache.dolphinscheduler.dao.mapper.DqComparisonTypeMapper;
import org.apache.dolphinscheduler.dao.mapper.DqExecuteResultMapper;
import org.apache.dolphinscheduler.dao.mapper.DqRuleExecuteSqlMapper;
import org.apache.dolphinscheduler.dao.mapper.DqRuleInputEntryMapper;
import org.apache.dolphinscheduler.dao.mapper.DqRuleMapper;
import org.apache.dolphinscheduler.dao.mapper.DqTaskStatisticsValueMapper;
import org.apache.dolphinscheduler.dao.mapper.EnvironmentMapper;
import org.apache.dolphinscheduler.dao.mapper.ErrorCommandMapper;
import org.apache.dolphinscheduler.dao.mapper.ProcessDefinitionLogMapper;
import org.apache.dolphinscheduler.dao.mapper.ProcessDefinitionMapper;
import org.apache.dolphinscheduler.dao.mapper.ProcessInstanceMapMapper;
import org.apache.dolphinscheduler.dao.mapper.ProcessInstanceMapper;
import org.apache.dolphinscheduler.dao.mapper.ProcessTaskRelationLogMapper;
import org.apache.dolphinscheduler.dao.mapper.ProcessTaskRelationMapper;
import org.apache.dolphinscheduler.dao.mapper.ProjectMapper;
import org.apache.dolphinscheduler.dao.mapper.ResourceMapper;
import org.apache.dolphinscheduler.dao.mapper.ResourceUserMapper;
import org.apache.dolphinscheduler.dao.mapper.ScheduleMapper;
import org.apache.dolphinscheduler.dao.mapper.TaskDefinitionLogMapper;
import org.apache.dolphinscheduler.dao.mapper.TaskDefinitionMapper;
import org.apache.dolphinscheduler.dao.mapper.TaskGroupMapper;
import org.apache.dolphinscheduler.dao.mapper.TaskGroupQueueMapper;
import org.apache.dolphinscheduler.dao.mapper.TaskInstanceMapper;
import org.apache.dolphinscheduler.dao.mapper.TenantMapper;
import org.apache.dolphinscheduler.dao.mapper.UdfFuncMapper;
import org.apache.dolphinscheduler.dao.mapper.UserMapper;
import org.apache.dolphinscheduler.dao.mapper.WorkFlowLineageMapper;
import org.apache.dolphinscheduler.dao.utils.DagHelper;
import org.apache.dolphinscheduler.dao.utils.DqRuleUtils;
import org.apache.dolphinscheduler.plugin.task.api.enums.Direct;
import org.apache.dolphinscheduler.plugin.task.api.enums.ExecutionStatus;
import org.apache.dolphinscheduler.plugin.task.api.enums.dp.DqTaskState;
import org.apache.dolphinscheduler.plugin.task.api.model.DateInterval;
import org.apache.dolphinscheduler.plugin.task.api.model.Property;
import org.apache.dolphinscheduler.plugin.task.api.model.ResourceInfo;
import org.apache.dolphinscheduler.plugin.task.api.parameters.AbstractParameters;
import org.apache.dolphinscheduler.plugin.task.api.parameters.ParametersNode;
import org.apache.dolphinscheduler.plugin.task.api.parameters.SubProcessParameters;
import org.apache.dolphinscheduler.remote.command.StateEventChangeCommand;
import org.apache.dolphinscheduler.remote.command.TaskEventChangeCommand;
import org.apache.dolphinscheduler.remote.processor.StateEventCallbackService;
import org.apache.dolphinscheduler.remote.utils.Host;
import org.apache.dolphinscheduler.service.bean.SpringApplicationContext;
import org.apache.dolphinscheduler.service.exceptions.ServiceException;
import org.apache.dolphinscheduler.service.log.LogClientService;
import org.apache.dolphinscheduler.service.quartz.cron.CronUtils;
import org.apache.dolphinscheduler.service.task.TaskPluginManager;
import org.apache.dolphinscheduler.spi.enums.ResourceType;
import org.apache.commons.collections.CollectionUtils;
import org.apache.commons.lang.StringUtils;
import java.util.ArrayList;
import java.util.Arrays;
import java.util.Date;
import java.util.EnumMap;
import java.util.HashMap;
import java.util.HashSet;
import java.util.List;
import java.util.Map;
import java.util.Map.Entry;
import java.util.Objects;
import java.util.Set;
import java.util.stream.Collectors;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component;
import org.springframework.transaction.annotation.Transactional;
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.fasterxml.jackson.core.type.TypeReference;
import com.fasterxml.jackson.databind.node.ObjectNode;
import com.google.common.collect.Lists;
/**
* process relative dao that some mappers in this.
*/
@Component
public class ProcessService {
private final Logger logger = LoggerFactory.getLogger(getClass());
private final int[] stateArray = new int[]{ExecutionStatus.SUBMITTED_SUCCESS.ordinal(),
ExecutionStatus.RUNNING_EXECUTION.ordinal(),
ExecutionStatus.DELAY_EXECUTION.ordinal(),
ExecutionStatus.READY_PAUSE.ordinal(),
ExecutionStatus.READY_STOP.ordinal()};
@Autowired
private UserMapper userMapper;
@Autowired
private ProcessDefinitionMapper processDefineMapper;
@Autowired
private ProcessDefinitionLogMapper processDefineLogMapper;
@Autowired
private ProcessInstanceMapper processInstanceMapper;
@Autowired
private DataSourceMapper dataSourceMapper;
@Autowired
private ProcessInstanceMapMapper processInstanceMapMapper;
@Autowired
private TaskInstanceMapper taskInstanceMapper;
@Autowired
private CommandMapper commandMapper;
@Autowired
private ScheduleMapper scheduleMapper;
@Autowired
private UdfFuncMapper udfFuncMapper;
@Autowired
private ResourceMapper resourceMapper;
@Autowired
private ResourceUserMapper resourceUserMapper;
@Autowired
private ErrorCommandMapper errorCommandMapper;
@Autowired
private TenantMapper tenantMapper;
@Autowired
private ProjectMapper projectMapper;
@Autowired
private DqExecuteResultMapper dqExecuteResultMapper;
@Autowired
private DqRuleMapper dqRuleMapper;
@Autowired
private DqRuleInputEntryMapper dqRuleInputEntryMapper;
@Autowired
private DqRuleExecuteSqlMapper dqRuleExecuteSqlMapper;
@Autowired
private DqComparisonTypeMapper dqComparisonTypeMapper;
@Autowired
private DqTaskStatisticsValueMapper dqTaskStatisticsValueMapper;
@Autowired
private TaskDefinitionMapper taskDefinitionMapper;
@Autowired
private TaskDefinitionLogMapper taskDefinitionLogMapper;
@Autowired
private ProcessTaskRelationMapper processTaskRelationMapper;
@Autowired
private ProcessTaskRelationLogMapper processTaskRelationLogMapper;
@Autowired
StateEventCallbackService stateEventCallbackService;
@Autowired
private EnvironmentMapper environmentMapper;
@Autowired
private TaskGroupQueueMapper taskGroupQueueMapper;
@Autowired
private TaskGroupMapper taskGroupMapper;
@Autowired
private WorkFlowLineageMapper workFlowLineageMapper;
@Autowired
private TaskPluginManager taskPluginManager;
/**
* handle Command (construct ProcessInstance from Command) , wrapped in transaction
*
* @param logger logger
* @param host host
* @param command found command
* @return process instance
*/
@Transactional
public ProcessInstance handleCommand(Logger logger, String host, Command command) {
ProcessInstance processInstance = constructProcessInstance(command, host);
// cannot construct process instance, return null
if (processInstance == null) {
logger.error("scan command, command parameter is error: {}", command);
moveToErrorCommand(command, "process instance is null");
return null;
}
processInstance.setCommandType(command.getCommandType());
processInstance.addHistoryCmd(command.getCommandType());
//if the processDefinition is serial
ProcessDefinition processDefinition = this.findProcessDefinition(processInstance.getProcessDefinitionCode(), processInstance.getProcessDefinitionVersion());
if (processDefinition.getExecutionType().typeIsSerial()) {
saveSerialProcess(processInstance, processDefinition);
if (processInstance.getState() != ExecutionStatus.SUBMITTED_SUCCESS) {
setSubProcessParam(processInstance);
deleteCommandWithCheck(command.getId());
return null;
}
} else {
saveProcessInstance(processInstance);
}
setSubProcessParam(processInstance);
deleteCommandWithCheck(command.getId());
return processInstance;
}
private void saveSerialProcess(ProcessInstance processInstance, ProcessDefinition processDefinition) {
processInstance.setState(ExecutionStatus.SERIAL_WAIT);
saveProcessInstance(processInstance);
//serial wait
//when we get the running instance(or waiting instance) only get the priority instance(by id)
if (processDefinition.getExecutionType().typeIsSerialWait()) {
while (true) {
List<ProcessInstance> runningProcessInstances = this.processInstanceMapper.queryByProcessDefineCodeAndStatusAndNextId(processInstance.getProcessDefinitionCode(),
Constants.RUNNING_PROCESS_STATE, processInstance.getId());
if (CollectionUtils.isEmpty(runningProcessInstances)) {
processInstance.setState(ExecutionStatus.SUBMITTED_SUCCESS);
saveProcessInstance(processInstance);
return;
}
ProcessInstance runningProcess = runningProcessInstances.get(0);
if (this.processInstanceMapper.updateNextProcessIdById(processInstance.getId(), runningProcess.getId())) {
return;
}
}
} else if (processDefinition.getExecutionType().typeIsSerialDiscard()) {
List<ProcessInstance> runningProcessInstances = this.processInstanceMapper.queryByProcessDefineCodeAndStatusAndNextId(processInstance.getProcessDefinitionCode(),
Constants.RUNNING_PROCESS_STATE, processInstance.getId());
if (CollectionUtils.isEmpty(runningProcessInstances)) {
processInstance.setState(ExecutionStatus.STOP);
saveProcessInstance(processInstance);
}
} else if (processDefinition.getExecutionType().typeIsSerialPriority()) {
List<ProcessInstance> runningProcessInstances = this.processInstanceMapper.queryByProcessDefineCodeAndStatusAndNextId(processInstance.getProcessDefinitionCode(),
Constants.RUNNING_PROCESS_STATE, processInstance.getId());
if (CollectionUtils.isNotEmpty(runningProcessInstances)) {
for (ProcessInstance info : runningProcessInstances) {
info.setCommandType(CommandType.STOP);
info.addHistoryCmd(CommandType.STOP);
info.setState(ExecutionStatus.READY_STOP);
int update = updateProcessInstance(info);
// determine whether the process is normal
if (update > 0) {
String host = info.getHost();
String address = host.split(":")[0];
int port = Integer.parseInt(host.split(":")[1]);
StateEventChangeCommand stateEventChangeCommand = new StateEventChangeCommand(
info.getId(), 0, info.getState(), info.getId(), 0
);
try {
stateEventCallbackService.sendResult(address, port, stateEventChangeCommand.convert2Command());
} catch (Exception e) {
logger.error("sendResultError");
}
}
}
}
}
}
/**
* save error command, and delete original command
*
* @param command command
* @param message message
*/
public void moveToErrorCommand(Command command, String message) {
ErrorCommand errorCommand = new ErrorCommand(command, message);
this.errorCommandMapper.insert(errorCommand);
this.commandMapper.deleteById(command.getId());
}
/**
* set process waiting thread
*
* @param command command
* @param processInstance processInstance
* @return process instance
*/
private ProcessInstance setWaitingThreadProcess(Command command, ProcessInstance processInstance) {
processInstance.setState(ExecutionStatus.WAITING_THREAD);
if (command.getCommandType() != CommandType.RECOVER_WAITING_THREAD) {
processInstance.addHistoryCmd(command.getCommandType());
}
saveProcessInstance(processInstance);
this.setSubProcessParam(processInstance);
createRecoveryWaitingThreadCommand(command, processInstance);
return null;
}
/**
* insert one command
*
* @param command command
* @return create result
*/
public int createCommand(Command command) {
int result = 0;
if (command != null) {
result = commandMapper.insert(command);
}
return result;
}
/**
* get command page
*/
public List<Command> findCommandPage(int pageSize, int pageNumber) {
return commandMapper.queryCommandPage(pageSize, pageNumber * pageSize);
}
/**
* check the input command exists in queue list
*
* @param command command
* @return create command result
*/
public boolean verifyIsNeedCreateCommand(Command command) {
boolean isNeedCreate = true;
EnumMap<CommandType, Integer> cmdTypeMap = new EnumMap<>(CommandType.class);
cmdTypeMap.put(CommandType.REPEAT_RUNNING, 1);
cmdTypeMap.put(CommandType.RECOVER_SUSPENDED_PROCESS, 1);
cmdTypeMap.put(CommandType.START_FAILURE_TASK_PROCESS, 1);
CommandType commandType = command.getCommandType();
if (cmdTypeMap.containsKey(commandType)) {
ObjectNode cmdParamObj = JSONUtils.parseObject(command.getCommandParam());
int processInstanceId = cmdParamObj.path(CMD_PARAM_RECOVER_PROCESS_ID_STRING).asInt();
List<Command> commands = commandMapper.selectList(null);
// for all commands
for (Command tmpCommand : commands) {
if (cmdTypeMap.containsKey(tmpCommand.getCommandType())) {
ObjectNode tempObj = JSONUtils.parseObject(tmpCommand.getCommandParam());
if (tempObj != null && processInstanceId == tempObj.path(CMD_PARAM_RECOVER_PROCESS_ID_STRING).asInt()) {
isNeedCreate = false;
break;
}
}
}
}
return isNeedCreate;
}
/**
* find process instance detail by id
*
* @param processId processId
* @return process instance
*/
public ProcessInstance findProcessInstanceDetailById(int processId) {
return processInstanceMapper.queryDetailById(processId);
}
/**
* get task node list by definitionId
*/
public List<TaskDefinition> getTaskNodeListByDefinition(long defineCode) {
ProcessDefinition processDefinition = processDefineMapper.queryByCode(defineCode);
if (processDefinition == null) {
logger.error("process define not exists");
return Lists.newArrayList();
}
List<ProcessTaskRelationLog> processTaskRelations = processTaskRelationLogMapper.queryByProcessCodeAndVersion(processDefinition.getCode(), processDefinition.getVersion());
Set<TaskDefinition> taskDefinitionSet = new HashSet<>();
for (ProcessTaskRelationLog processTaskRelation : processTaskRelations) {
if (processTaskRelation.getPostTaskCode() > 0) {
taskDefinitionSet.add(new TaskDefinition(processTaskRelation.getPostTaskCode(), processTaskRelation.getPostTaskVersion()));
}
}
if (taskDefinitionSet.isEmpty()) {
return Lists.newArrayList();
}
List<TaskDefinitionLog> taskDefinitionLogs = taskDefinitionLogMapper.queryByTaskDefinitions(taskDefinitionSet);
return Lists.newArrayList(taskDefinitionLogs);
}
/**
* find process instance by id
*
* @param processId processId
* @return process instance
*/
public ProcessInstance findProcessInstanceById(int processId) {
return processInstanceMapper.selectById(processId);
}
/**
* find process define by id.
*
* @param processDefinitionId processDefinitionId
* @return process definition
*/
public ProcessDefinition findProcessDefineById(int processDefinitionId) {
return processDefineMapper.selectById(processDefinitionId);
}
/**
* find process define by code and version.
*
* @param processDefinitionCode processDefinitionCode
* @return process definition
*/
public ProcessDefinition findProcessDefinition(Long processDefinitionCode, int version) {
ProcessDefinition processDefinition = processDefineMapper.queryByCode(processDefinitionCode);
if (processDefinition == null || processDefinition.getVersion() != version) {
processDefinition = processDefineLogMapper.queryByDefinitionCodeAndVersion(processDefinitionCode, version);
if (processDefinition != null) {
processDefinition.setId(0);
}
}
return processDefinition;
}
/**
* find process define by code.
*
* @param processDefinitionCode processDefinitionCode
* @return process definition
*/
public ProcessDefinition findProcessDefinitionByCode(Long processDefinitionCode) {
return processDefineMapper.queryByCode(processDefinitionCode);
}
/**
* delete work process instance by id
*
* @param processInstanceId processInstanceId
* @return delete process instance result
*/
public int deleteWorkProcessInstanceById(int processInstanceId) {
return processInstanceMapper.deleteById(processInstanceId);
}
/**
* delete all sub process by parent instance id
*
* @param processInstanceId processInstanceId
* @return delete all sub process instance result
*/
public int deleteAllSubWorkProcessByParentId(int processInstanceId) {
List<Integer> subProcessIdList = processInstanceMapMapper.querySubIdListByParentId(processInstanceId);
for (Integer subId : subProcessIdList) {
deleteAllSubWorkProcessByParentId(subId);
deleteWorkProcessMapByParentId(subId);
removeTaskLogFile(subId);
deleteWorkProcessInstanceById(subId);
}
return 1;
}
/**
* remove task log file
*
* @param processInstanceId processInstanceId
*/
public void removeTaskLogFile(Integer processInstanceId) {
List<TaskInstance> taskInstanceList = findValidTaskListByProcessId(processInstanceId);
if (CollectionUtils.isEmpty(taskInstanceList)) {
return;
}
try (LogClientService logClient = new LogClientService()) {
for (TaskInstance taskInstance : taskInstanceList) {
String taskLogPath = taskInstance.getLogPath();
if (StringUtils.isEmpty(taskInstance.getHost())) {
continue;
}
Host host = Host.of(taskInstance.getHost());
// remove task log from loggerserver
logClient.removeTaskLog(host.getIp(), host.getPort(), taskLogPath);
}
}
}
/**
* recursive delete all task instance by process instance id
* @param processInstanceId
*/
public void deleteWorkTaskInstanceByProcessInstanceId(int processInstanceId) {
List<TaskInstance> taskInstanceList = findValidTaskListByProcessId(processInstanceId);
if (CollectionUtils.isEmpty(taskInstanceList)) {
return;
}
List<Integer> taskInstanceIdList = new ArrayList<>();
for (TaskInstance taskInstance : taskInstanceList) {
taskInstanceIdList.add(taskInstance.getId());
}
taskInstanceMapper.deleteBatchIds(taskInstanceIdList);
}
/**
* recursive query sub process definition id by parent id.
*
* @param parentCode parentCode
* @param ids ids
*/
public void recurseFindSubProcess(long parentCode, List<Long> ids) {
List<TaskDefinition> taskNodeList = this.getTaskNodeListByDefinition(parentCode);
if (taskNodeList != null && !taskNodeList.isEmpty()) {
for (TaskDefinition taskNode : taskNodeList) {
String parameter = taskNode.getTaskParams();
ObjectNode parameterJson = JSONUtils.parseObject(parameter);
if (parameterJson.get(CMD_PARAM_SUB_PROCESS_DEFINE_CODE) != null) {
SubProcessParameters subProcessParam = JSONUtils.parseObject(parameter, SubProcessParameters.class);
ids.add(subProcessParam.getProcessDefinitionCode());
recurseFindSubProcess(subProcessParam.getProcessDefinitionCode(), ids);
}
}
}
}
/**
* create recovery waiting thread command when thread pool is not enough for the process instance.
* sub work process instance need not to create recovery command.
* create recovery waiting thread command and delete origin command at the same time.
* if the recovery command is exists, only update the field update_time
*
* @param originCommand originCommand
* @param processInstance processInstance
*/
public void createRecoveryWaitingThreadCommand(Command originCommand, ProcessInstance processInstance) {
// sub process doesnot need to create wait command
if (processInstance.getIsSubProcess() == Flag.YES) {
if (originCommand != null) {
commandMapper.deleteById(originCommand.getId());
}
return;
}
Map<String, String> cmdParam = new HashMap<>();
cmdParam.put(Constants.CMD_PARAM_RECOVERY_WAITING_THREAD, String.valueOf(processInstance.getId()));
// process instance quit by "waiting thread" state
if (originCommand == null) {
Command command = new Command(
CommandType.RECOVER_WAITING_THREAD,
processInstance.getTaskDependType(),
processInstance.getFailureStrategy(),
processInstance.getExecutorId(),
processInstance.getProcessDefinition().getCode(),
JSONUtils.toJsonString(cmdParam),
processInstance.getWarningType(),
processInstance.getWarningGroupId(),
processInstance.getScheduleTime(),
processInstance.getWorkerGroup(),
processInstance.getEnvironmentCode(),
processInstance.getProcessInstancePriority(),
processInstance.getDryRun(),
processInstance.getId(),
processInstance.getProcessDefinitionVersion()
);
saveCommand(command);
return;
}
// update the command time if current command if recover from waiting
if (originCommand.getCommandType() == CommandType.RECOVER_WAITING_THREAD) {
originCommand.setUpdateTime(new Date());
saveCommand(originCommand);
} else {
// delete old command and create new waiting thread command
commandMapper.deleteById(originCommand.getId());
originCommand.setId(0);
originCommand.setCommandType(CommandType.RECOVER_WAITING_THREAD);
originCommand.setUpdateTime(new Date());
originCommand.setCommandParam(JSONUtils.toJsonString(cmdParam));
originCommand.setProcessInstancePriority(processInstance.getProcessInstancePriority());
saveCommand(originCommand);
}
}
/**
* get schedule time from command
*
* @param command command
* @param cmdParam cmdParam map
* @return date
*/
private Date getScheduleTime(Command command, Map<String, String> cmdParam) {
Date scheduleTime = command.getScheduleTime();
if (scheduleTime == null
&& cmdParam != null
&& cmdParam.containsKey(CMDPARAM_COMPLEMENT_DATA_START_DATE)) {
Date start = DateUtils.stringToDate(cmdParam.get(CMDPARAM_COMPLEMENT_DATA_START_DATE));
Date end = DateUtils.stringToDate(cmdParam.get(CMDPARAM_COMPLEMENT_DATA_END_DATE));
List<Schedule> schedules = queryReleaseSchedulerListByProcessDefinitionCode(command.getProcessDefinitionCode());
List<Date> complementDateList = CronUtils.getSelfFireDateList(start, end, schedules);
if (complementDateList.size() > 0) {
scheduleTime = complementDateList.get(0);
} else {
logger.error("set scheduler time error: complement date list is empty, command: {}",
command.toString());
}
}
return scheduleTime;
}
/**
* generate a new work process instance from command.
*
* @param processDefinition processDefinition
* @param command command
* @param cmdParam cmdParam map
* @return process instance
*/
private ProcessInstance generateNewProcessInstance(ProcessDefinition processDefinition,
Command command,
Map<String, String> cmdParam) {
ProcessInstance processInstance = new ProcessInstance(processDefinition);
processInstance.setProcessDefinitionCode(processDefinition.getCode());
processInstance.setProcessDefinitionVersion(processDefinition.getVersion());
processInstance.setState(ExecutionStatus.RUNNING_EXECUTION);
processInstance.setRecovery(Flag.NO);
processInstance.setStartTime(new Date());
processInstance.setRestartTime(processInstance.getStartTime());
processInstance.setRunTimes(1);
processInstance.setMaxTryTimes(0);
processInstance.setCommandParam(command.getCommandParam());
processInstance.setCommandType(command.getCommandType());
processInstance.setIsSubProcess(Flag.NO);
processInstance.setTaskDependType(command.getTaskDependType());
processInstance.setFailureStrategy(command.getFailureStrategy());
processInstance.setExecutorId(command.getExecutorId());
WarningType warningType = command.getWarningType() == null ? WarningType.NONE : command.getWarningType();
processInstance.setWarningType(warningType);
Integer warningGroupId = command.getWarningGroupId() == null ? 0 : command.getWarningGroupId();
processInstance.setWarningGroupId(warningGroupId);
processInstance.setDryRun(command.getDryRun());
if (command.getScheduleTime() != null) {
processInstance.setScheduleTime(command.getScheduleTime());
}
processInstance.setCommandStartTime(command.getStartTime());
processInstance.setLocations(processDefinition.getLocations());
// reset global params while there are start parameters
setGlobalParamIfCommanded(processDefinition, cmdParam);
// curing global params
processInstance.setGlobalParams(ParameterUtils.curingGlobalParams(
processDefinition.getGlobalParamMap(),
processDefinition.getGlobalParamList(),
getCommandTypeIfComplement(processInstance, command),
processInstance.getScheduleTime()));
// set process instance priority
processInstance.setProcessInstancePriority(command.getProcessInstancePriority());
String workerGroup = StringUtils.isBlank(command.getWorkerGroup()) ? Constants.DEFAULT_WORKER_GROUP : command.getWorkerGroup();
processInstance.setWorkerGroup(workerGroup);
processInstance.setEnvironmentCode(Objects.isNull(command.getEnvironmentCode()) ? -1 : command.getEnvironmentCode());
processInstance.setTimeout(processDefinition.getTimeout());
processInstance.setTenantId(processDefinition.getTenantId());
return processInstance;
}
private void setGlobalParamIfCommanded(ProcessDefinition processDefinition, Map<String, String> cmdParam) {
// get start params from command param
Map<String, String> startParamMap = new HashMap<>();
if (cmdParam != null && cmdParam.containsKey(Constants.CMD_PARAM_START_PARAMS)) {
String startParamJson = cmdParam.get(Constants.CMD_PARAM_START_PARAMS);
startParamMap = JSONUtils.toMap(startParamJson);
}
Map<String, String> fatherParamMap = new HashMap<>();
if (cmdParam != null && cmdParam.containsKey(Constants.CMD_PARAM_FATHER_PARAMS)) {
String fatherParamJson = cmdParam.get(Constants.CMD_PARAM_FATHER_PARAMS);
fatherParamMap = JSONUtils.toMap(fatherParamJson);
}
startParamMap.putAll(fatherParamMap);
// set start param into global params
if (startParamMap.size() > 0
&& processDefinition.getGlobalParamMap() != null) {
for (Map.Entry<String, String> param : processDefinition.getGlobalParamMap().entrySet()) {
String val = startParamMap.get(param.getKey());
if (val != null) {
param.setValue(val);
}
}
}
}
/**
* get process tenant
* there is tenant id in definition, use the tenant of the definition.
* if there is not tenant id in the definiton or the tenant not exist
* use definition creator's tenant.
*
* @param tenantId tenantId
* @param userId userId
* @return tenant
*/
public Tenant getTenantForProcess(int tenantId, int userId) {
Tenant tenant = null;
if (tenantId >= 0) {
tenant = tenantMapper.queryById(tenantId);
}
if (userId == 0) {
return null;
}
if (tenant == null) {
User user = userMapper.selectById(userId);
tenant = tenantMapper.queryById(user.getTenantId());
}
return tenant;
}
/**
* get an environment
* use the code of the environment to find a environment.
*
* @param environmentCode environmentCode
* @return Environment
*/
public Environment findEnvironmentByCode(Long environmentCode) {
Environment environment = null;
if (environmentCode >= 0) {
environment = environmentMapper.queryByEnvironmentCode(environmentCode);
}
return environment;
}
/**
* check command parameters is valid
*
* @param command command
* @param cmdParam cmdParam map
* @return whether command param is valid
*/
private Boolean checkCmdParam(Command command, Map<String, String> cmdParam) {
if (command.getTaskDependType() == TaskDependType.TASK_ONLY || command.getTaskDependType() == TaskDependType.TASK_PRE) {
if (cmdParam == null
|| !cmdParam.containsKey(Constants.CMD_PARAM_START_NODES)
|| cmdParam.get(Constants.CMD_PARAM_START_NODES).isEmpty()) {
logger.error("command node depend type is {}, but start nodes is null ", command.getTaskDependType());
return false;
}
}
return true;
}
/**
* construct process instance according to one command.
*
* @param command command
* @param host host
* @return process instance
*/
private ProcessInstance constructProcessInstance(Command command, String host) {
ProcessInstance processInstance;
ProcessDefinition processDefinition;
CommandType commandType = command.getCommandType();
processDefinition = this.findProcessDefinition(command.getProcessDefinitionCode(), command.getProcessDefinitionVersion());
if (processDefinition == null) {
logger.error("cannot find the work process define! define code : {}", command.getProcessDefinitionCode());
return null;
}
Map<String, String> cmdParam = JSONUtils.toMap(command.getCommandParam());
int processInstanceId = command.getProcessInstanceId();
if (processInstanceId == 0) {
processInstance = generateNewProcessInstance(processDefinition, command, cmdParam);
} else {
processInstance = this.findProcessInstanceDetailById(processInstanceId);
if (processInstance == null) {
return processInstance;
}
}
if (cmdParam != null) {
CommandType commandTypeIfComplement = getCommandTypeIfComplement(processInstance, command);
// reset global params while repeat running is needed by cmdParam
if (commandTypeIfComplement == CommandType.REPEAT_RUNNING) {
setGlobalParamIfCommanded(processDefinition, cmdParam);
}
// Recalculate global parameters after rerun.
processInstance.setGlobalParams(ParameterUtils.curingGlobalParams(
processDefinition.getGlobalParamMap(),
processDefinition.getGlobalParamList(),
commandTypeIfComplement,
processInstance.getScheduleTime()));
processInstance.setProcessDefinition(processDefinition);
}
//reset command parameter
if (processInstance.getCommandParam() != null) {
Map<String, String> processCmdParam = JSONUtils.toMap(processInstance.getCommandParam());
processCmdParam.forEach((key, value) -> {
if (!cmdParam.containsKey(key)) {
cmdParam.put(key, value);
}
});
}
// reset command parameter if sub process
if (cmdParam != null && cmdParam.containsKey(Constants.CMD_PARAM_SUB_PROCESS)) {
processInstance.setCommandParam(command.getCommandParam());
}
if (Boolean.FALSE.equals(checkCmdParam(command, cmdParam))) {
logger.error("command parameter check failed!");
return null;
}
if (command.getScheduleTime() != null) {
processInstance.setScheduleTime(command.getScheduleTime());
}
processInstance.setHost(host);
processInstance.setRestartTime(new Date());
ExecutionStatus runStatus = ExecutionStatus.RUNNING_EXECUTION;
int runTime = processInstance.getRunTimes();
switch (commandType) {
case START_PROCESS:
break;
case START_FAILURE_TASK_PROCESS:
// find failed tasks and init these tasks
List<Integer> failedList = this.findTaskIdByInstanceState(processInstance.getId(), ExecutionStatus.FAILURE);
List<Integer> toleranceList = this.findTaskIdByInstanceState(processInstance.getId(), ExecutionStatus.NEED_FAULT_TOLERANCE);
List<Integer> killedList = this.findTaskIdByInstanceState(processInstance.getId(), ExecutionStatus.KILL);
cmdParam.remove(Constants.CMD_PARAM_RECOVERY_START_NODE_STRING);
failedList.addAll(killedList);
failedList.addAll(toleranceList);
for (Integer taskId : failedList) {
initTaskInstance(this.findTaskInstanceById(taskId));
}
cmdParam.put(Constants.CMD_PARAM_RECOVERY_START_NODE_STRING,
String.join(Constants.COMMA, convertIntListToString(failedList)));
processInstance.setCommandParam(JSONUtils.toJsonString(cmdParam));
processInstance.setRunTimes(runTime + 1);
break;
case START_CURRENT_TASK_PROCESS:
break;
case RECOVER_WAITING_THREAD:
break;
case RECOVER_SUSPENDED_PROCESS:
// find pause tasks and init task's state
cmdParam.remove(Constants.CMD_PARAM_RECOVERY_START_NODE_STRING);
List<Integer> suspendedNodeList = this.findTaskIdByInstanceState(processInstance.getId(), ExecutionStatus.PAUSE);
List<Integer> stopNodeList = findTaskIdByInstanceState(processInstance.getId(),
ExecutionStatus.KILL);
suspendedNodeList.addAll(stopNodeList);
for (Integer taskId : suspendedNodeList) {
// initialize the pause state
initTaskInstance(this.findTaskInstanceById(taskId));
}
cmdParam.put(Constants.CMD_PARAM_RECOVERY_START_NODE_STRING, String.join(",", convertIntListToString(suspendedNodeList)));
processInstance.setCommandParam(JSONUtils.toJsonString(cmdParam));
processInstance.setRunTimes(runTime + 1);
break;
case RECOVER_TOLERANCE_FAULT_PROCESS:
// recover tolerance fault process
processInstance.setRecovery(Flag.YES);
runStatus = processInstance.getState();
break;
case COMPLEMENT_DATA:
// delete all the valid tasks when complement data if id is not null
if (processInstance.getId() != 0) {
List<TaskInstance> taskInstanceList = this.findValidTaskListByProcessId(processInstance.getId());
for (TaskInstance taskInstance : taskInstanceList) {
taskInstance.setFlag(Flag.NO);
this.updateTaskInstance(taskInstance);
}
}
break;
case REPEAT_RUNNING:
// delete the recover task names from command parameter
if (cmdParam.containsKey(Constants.CMD_PARAM_RECOVERY_START_NODE_STRING)) {
cmdParam.remove(Constants.CMD_PARAM_RECOVERY_START_NODE_STRING);
processInstance.setCommandParam(JSONUtils.toJsonString(cmdParam));
}
// delete all the valid tasks when repeat running
List<TaskInstance> validTaskList = findValidTaskListByProcessId(processInstance.getId());
for (TaskInstance taskInstance : validTaskList) {
taskInstance.setFlag(Flag.NO);
updateTaskInstance(taskInstance);
}
processInstance.setStartTime(new Date());
processInstance.setRestartTime(processInstance.getStartTime());
processInstance.setEndTime(null);
processInstance.setRunTimes(runTime + 1);
initComplementDataParam(processDefinition, processInstance, cmdParam);
break;
case SCHEDULER:
break;
default:
break;
}
processInstance.setState(runStatus);
return processInstance;
}
/**
* get process definition by command
* If it is a fault-tolerant command, get the specified version of ProcessDefinition through ProcessInstance
* Otherwise, get the latest version of ProcessDefinition
*
* @return ProcessDefinition
*/
private ProcessDefinition getProcessDefinitionByCommand(long processDefinitionCode, Map<String, String> cmdParam) {
if (cmdParam != null) {
int processInstanceId = 0;
if (cmdParam.containsKey(Constants.CMD_PARAM_RECOVER_PROCESS_ID_STRING)) {
processInstanceId = Integer.parseInt(cmdParam.get(Constants.CMD_PARAM_RECOVER_PROCESS_ID_STRING));
} else if (cmdParam.containsKey(Constants.CMD_PARAM_SUB_PROCESS)) {
processInstanceId = Integer.parseInt(cmdParam.get(Constants.CMD_PARAM_SUB_PROCESS));
} else if (cmdParam.containsKey(Constants.CMD_PARAM_RECOVERY_WAITING_THREAD)) {
processInstanceId = Integer.parseInt(cmdParam.get(Constants.CMD_PARAM_RECOVERY_WAITING_THREAD));
}
if (processInstanceId != 0) {
ProcessInstance processInstance = this.findProcessInstanceDetailById(processInstanceId);
if (processInstance == null) {
return null;
}
return processDefineLogMapper.queryByDefinitionCodeAndVersion(
processInstance.getProcessDefinitionCode(), processInstance.getProcessDefinitionVersion());
}
}
return processDefineMapper.queryByCode(processDefinitionCode);
}
/**
* return complement data if the process start with complement data
*
* @param processInstance processInstance
* @param command command
* @return command type
*/
private CommandType getCommandTypeIfComplement(ProcessInstance processInstance, Command command) {
if (CommandType.COMPLEMENT_DATA == processInstance.getCmdTypeIfComplement()) {
return CommandType.COMPLEMENT_DATA;
} else {
return command.getCommandType();
}
}
/**
* initialize complement data parameters
*
* @param processDefinition processDefinition
* @param processInstance processInstance
* @param cmdParam cmdParam
*/
private void initComplementDataParam(ProcessDefinition processDefinition,
ProcessInstance processInstance,
Map<String, String> cmdParam) {
if (!processInstance.isComplementData()) {
return;
}
Date start = DateUtils.stringToDate(cmdParam.get(CMDPARAM_COMPLEMENT_DATA_START_DATE));
Date end = DateUtils.stringToDate(cmdParam.get(CMDPARAM_COMPLEMENT_DATA_END_DATE));
List<Schedule> listSchedules = queryReleaseSchedulerListByProcessDefinitionCode(processInstance.getProcessDefinitionCode());
List<Date> complementDate = CronUtils.getSelfFireDateList(start, end, listSchedules);
if (complementDate.size() > 0
&& Flag.NO == processInstance.getIsSubProcess()) {
processInstance.setScheduleTime(complementDate.get(0));
}
processInstance.setGlobalParams(ParameterUtils.curingGlobalParams(
processDefinition.getGlobalParamMap(),
processDefinition.getGlobalParamList(),
CommandType.COMPLEMENT_DATA, processInstance.getScheduleTime()));
}
/**
* set sub work process parameters.
* handle sub work process instance, update relation table and command parameters
* set sub work process flag, extends parent work process command parameters
*
* @param subProcessInstance subProcessInstance
*/
public void setSubProcessParam(ProcessInstance subProcessInstance) {
String cmdParam = subProcessInstance.getCommandParam();
if (StringUtils.isEmpty(cmdParam)) {
return;
}
Map<String, String> paramMap = JSONUtils.toMap(cmdParam);
// write sub process id into cmd param.
if (paramMap.containsKey(CMD_PARAM_SUB_PROCESS)
&& CMD_PARAM_EMPTY_SUB_PROCESS.equals(paramMap.get(CMD_PARAM_SUB_PROCESS))) {
paramMap.remove(CMD_PARAM_SUB_PROCESS);
paramMap.put(CMD_PARAM_SUB_PROCESS, String.valueOf(subProcessInstance.getId()));
subProcessInstance.setCommandParam(JSONUtils.toJsonString(paramMap));
subProcessInstance.setIsSubProcess(Flag.YES);
this.saveProcessInstance(subProcessInstance);
}
// copy parent instance user def params to sub process..
String parentInstanceId = paramMap.get(CMD_PARAM_SUB_PROCESS_PARENT_INSTANCE_ID);
if (StringUtils.isNotEmpty(parentInstanceId)) {
ProcessInstance parentInstance = findProcessInstanceDetailById(Integer.parseInt(parentInstanceId));
if (parentInstance != null) {
subProcessInstance.setGlobalParams(
joinGlobalParams(parentInstance.getGlobalParams(), subProcessInstance.getGlobalParams()));
this.saveProcessInstance(subProcessInstance);
} else {
logger.error("sub process command params error, cannot find parent instance: {} ", cmdParam);
}
}
ProcessInstanceMap processInstanceMap = JSONUtils.parseObject(cmdParam, ProcessInstanceMap.class);
if (processInstanceMap == null || processInstanceMap.getParentProcessInstanceId() == 0) {
return;
}
// update sub process id to process map table
processInstanceMap.setProcessInstanceId(subProcessInstance.getId());
this.updateWorkProcessInstanceMap(processInstanceMap);
}
/**
* join parent global params into sub process.
* only the keys doesn't in sub process global would be joined.
*
* @param parentGlobalParams parentGlobalParams
* @param subGlobalParams subGlobalParams
* @return global params join
*/
private String joinGlobalParams(String parentGlobalParams, String subGlobalParams) {
// Since JSONUtils.toList return unmodified list, we need to creat a new List here.
List<Property> parentParams = Lists.newArrayList(JSONUtils.toList(parentGlobalParams, Property.class));
List<Property> subParams = JSONUtils.toList(subGlobalParams, Property.class);
Set<String> parentParamKeys = parentParams.stream().map(Property::getProp).collect(toSet());
// We will combine the params of parent workflow and sub workflow
// If the params are defined in both, we will use parent's params to override the sub workflow(ISSUE-7962)
// todo: Do we need to consider the other attribute of Property?
// e.g. the subProp's type is not equals with parent, or subProp's direct is not equals with parent
// It's suggested to add node name in property, this kind of problem can be solved.
List<Property> extraSubParams = subParams.stream()
.filter(subProp -> !parentParamKeys.contains(subProp.getProp())).collect(Collectors.toList());
parentParams.addAll(extraSubParams);
return JSONUtils.toJsonString(parentParams);
}
/**
* initialize task instance
*
* @param taskInstance taskInstance
*/
private void initTaskInstance(TaskInstance taskInstance) {
if (!taskInstance.isSubProcess()
&& (taskInstance.getState().typeIsCancel() || taskInstance.getState().typeIsFailure())) {
taskInstance.setFlag(Flag.NO);
updateTaskInstance(taskInstance);
return;
}
taskInstance.setState(ExecutionStatus.SUBMITTED_SUCCESS);
updateTaskInstance(taskInstance);
}
/**
* retry submit task to db
*/
public TaskInstance submitTaskWithRetry(ProcessInstance processInstance, TaskInstance taskInstance, int commitRetryTimes, int commitInterval) {
int retryTimes = 1;
TaskInstance task = null;
while (retryTimes <= commitRetryTimes) {
try {
// submit task to db
task = SpringApplicationContext.getBean(ProcessService.class).submitTask(processInstance, taskInstance);
if (task != null && task.getId() != 0) {
break;
}
logger.error("task commit to db failed , taskId {} has already retry {} times, please check the database", taskInstance.getId(), retryTimes);
Thread.sleep(commitInterval);
} catch (Exception e) {
logger.error("task commit to db failed", e);
}
retryTimes += 1;
}
return task;
}
/**
* submit task to db
* submit sub process to command
*
* @param processInstance processInstance
* @param taskInstance taskInstance
* @return task instance
*/
@Transactional(rollbackFor = Exception.class)
public TaskInstance submitTask(ProcessInstance processInstance, TaskInstance taskInstance) {
logger.info("start submit task : {}, instance id:{}, state: {}",
taskInstance.getName(), taskInstance.getProcessInstanceId(), processInstance.getState());
//submit to db
TaskInstance task = submitTaskInstanceToDB(taskInstance, processInstance);
if (task == null) {
logger.error("end submit task to db error, task name:{}, process id:{} state: {} ",
taskInstance.getName(), taskInstance.getProcessInstance(), processInstance.getState());
return null;
}
if (!task.getState().typeIsFinished()) {
createSubWorkProcess(processInstance, task);
}
logger.info("end submit task to db successfully:{} {} state:{} complete, instance id:{} state: {} ",
taskInstance.getId(), taskInstance.getName(), task.getState(), processInstance.getId(), processInstance.getState());
return task;
}
/**
* set work process instance map
* consider o
* repeat running does not generate new sub process instance
* set map {parent instance id, task instance id, 0(child instance id)}
*
* @param parentInstance parentInstance
* @param parentTask parentTask
* @return process instance map
*/
private ProcessInstanceMap setProcessInstanceMap(ProcessInstance parentInstance, TaskInstance parentTask) {
ProcessInstanceMap processMap = findWorkProcessMapByParent(parentInstance.getId(), parentTask.getId());
if (processMap != null) {
return processMap;
}
if (parentInstance.getCommandType() == CommandType.REPEAT_RUNNING) {
// update current task id to map
processMap = findPreviousTaskProcessMap(parentInstance, parentTask);
if (processMap != null) {
processMap.setParentTaskInstanceId(parentTask.getId());
updateWorkProcessInstanceMap(processMap);
return processMap;
}
}
// new task
processMap = new ProcessInstanceMap();
processMap.setParentProcessInstanceId(parentInstance.getId());
processMap.setParentTaskInstanceId(parentTask.getId());
createWorkProcessInstanceMap(processMap);
return processMap;
}
/**
* find previous task work process map.
*
* @param parentProcessInstance parentProcessInstance
* @param parentTask parentTask
* @return process instance map
*/
private ProcessInstanceMap findPreviousTaskProcessMap(ProcessInstance parentProcessInstance,
TaskInstance parentTask) {
Integer preTaskId = 0;
List<TaskInstance> preTaskList = this.findPreviousTaskListByWorkProcessId(parentProcessInstance.getId());
for (TaskInstance task : preTaskList) {
if (task.getName().equals(parentTask.getName())) {
preTaskId = task.getId();
ProcessInstanceMap map = findWorkProcessMapByParent(parentProcessInstance.getId(), preTaskId);
if (map != null) {
return map;
}
}
}
logger.info("sub process instance is not found,parent task:{},parent instance:{}",
parentTask.getId(), parentProcessInstance.getId());
return null;
}
/**
* create sub work process command
*
* @param parentProcessInstance parentProcessInstance
* @param task task
*/
public void createSubWorkProcess(ProcessInstance parentProcessInstance, TaskInstance task) {
if (!task.isSubProcess()) {
return;
}
//check create sub work flow firstly
ProcessInstanceMap instanceMap = findWorkProcessMapByParent(parentProcessInstance.getId(), task.getId());
if (null != instanceMap && CommandType.RECOVER_TOLERANCE_FAULT_PROCESS == parentProcessInstance.getCommandType()) {
// recover failover tolerance would not create a new command when the sub command already have been created
return;
}
instanceMap = setProcessInstanceMap(parentProcessInstance, task);
ProcessInstance childInstance = null;
if (instanceMap.getProcessInstanceId() != 0) {
childInstance = findProcessInstanceById(instanceMap.getProcessInstanceId());
}
Command subProcessCommand = createSubProcessCommand(parentProcessInstance, childInstance, instanceMap, task);
updateSubProcessDefinitionByParent(parentProcessInstance, subProcessCommand.getProcessDefinitionCode());
initSubInstanceState(childInstance);
createCommand(subProcessCommand);
logger.info("sub process command created: {} ", subProcessCommand);
}
/**
* complement data needs transform parent parameter to child.
*/
private String getSubWorkFlowParam(ProcessInstanceMap instanceMap, ProcessInstance parentProcessInstance, Map<String, String> fatherParams) {
// set sub work process command
String processMapStr = JSONUtils.toJsonString(instanceMap);
Map<String, String> cmdParam = JSONUtils.toMap(processMapStr);
if (parentProcessInstance.isComplementData()) {
Map<String, String> parentParam = JSONUtils.toMap(parentProcessInstance.getCommandParam());
String endTime = parentParam.get(CMDPARAM_COMPLEMENT_DATA_END_DATE);
String startTime = parentParam.get(CMDPARAM_COMPLEMENT_DATA_START_DATE);
cmdParam.put(CMDPARAM_COMPLEMENT_DATA_END_DATE, endTime);
cmdParam.put(CMDPARAM_COMPLEMENT_DATA_START_DATE, startTime);
processMapStr = JSONUtils.toJsonString(cmdParam);
}
if (fatherParams.size() != 0) {
cmdParam.put(CMD_PARAM_FATHER_PARAMS, JSONUtils.toJsonString(fatherParams));
processMapStr = JSONUtils.toJsonString(cmdParam);
}
return processMapStr;
}
public Map<String, String> getGlobalParamMap(String globalParams) {
List<Property> propList;
Map<String, String> globalParamMap = new HashMap<>();
if (StringUtils.isNotEmpty(globalParams)) {
propList = JSONUtils.toList(globalParams, Property.class);
globalParamMap = propList.stream().collect(Collectors.toMap(Property::getProp, Property::getValue));
}
return globalParamMap;
}
/**
* create sub work process command
*/
public Command createSubProcessCommand(ProcessInstance parentProcessInstance,
ProcessInstance childInstance,
ProcessInstanceMap instanceMap,
TaskInstance task) {
CommandType commandType = getSubCommandType(parentProcessInstance, childInstance);
Map<String, String> subProcessParam = JSONUtils.toMap(task.getTaskParams());
long childDefineCode = 0L;
if (subProcessParam.containsKey(Constants.CMD_PARAM_SUB_PROCESS_DEFINE_CODE)) {
childDefineCode = Long.parseLong(subProcessParam.get(Constants.CMD_PARAM_SUB_PROCESS_DEFINE_CODE));
}
ProcessDefinition subProcessDefinition = processDefineMapper.queryByCode(childDefineCode);
Object localParams = subProcessParam.get(Constants.LOCAL_PARAMS);
List<Property> allParam = JSONUtils.toList(JSONUtils.toJsonString(localParams), Property.class);
Map<String, String> globalMap = this.getGlobalParamMap(parentProcessInstance.getGlobalParams());
Map<String, String> fatherParams = new HashMap<>();
if (CollectionUtils.isNotEmpty(allParam)) {
for (Property info : allParam) {
fatherParams.put(info.getProp(), globalMap.get(info.getProp()));
}
}
String processParam = getSubWorkFlowParam(instanceMap, parentProcessInstance, fatherParams);
int subProcessInstanceId = childInstance == null ? 0 : childInstance.getId();
return new Command(
commandType,
TaskDependType.TASK_POST,
parentProcessInstance.getFailureStrategy(),
parentProcessInstance.getExecutorId(),
subProcessDefinition.getCode(),
processParam,
parentProcessInstance.getWarningType(),
parentProcessInstance.getWarningGroupId(),
parentProcessInstance.getScheduleTime(),
task.getWorkerGroup(),
task.getEnvironmentCode(),
parentProcessInstance.getProcessInstancePriority(),
parentProcessInstance.getDryRun(),
subProcessInstanceId,
subProcessDefinition.getVersion()
);
}
/**
* initialize sub work flow state
* child instance state would be initialized when 'recovery from pause/stop/failure'
*/
private void initSubInstanceState(ProcessInstance childInstance) {
if (childInstance != null) {
childInstance.setState(ExecutionStatus.RUNNING_EXECUTION);
updateProcessInstance(childInstance);
}
}
/**
* get sub work flow command type
* child instance exist: child command = fatherCommand
* child instance not exists: child command = fatherCommand[0]
*/
private CommandType getSubCommandType(ProcessInstance parentProcessInstance, ProcessInstance childInstance) {
CommandType commandType = parentProcessInstance.getCommandType();
if (childInstance == null) {
String fatherHistoryCommand = parentProcessInstance.getHistoryCmd();
commandType = CommandType.valueOf(fatherHistoryCommand.split(Constants.COMMA)[0]);
}
return commandType;
}
/**
* update sub process definition
*
* @param parentProcessInstance parentProcessInstance
* @param childDefinitionCode childDefinitionId
*/
private void updateSubProcessDefinitionByParent(ProcessInstance parentProcessInstance, long childDefinitionCode) {
ProcessDefinition fatherDefinition = this.findProcessDefinition(parentProcessInstance.getProcessDefinitionCode(),
parentProcessInstance.getProcessDefinitionVersion());
ProcessDefinition childDefinition = this.findProcessDefinitionByCode(childDefinitionCode);
if (childDefinition != null && fatherDefinition != null) {
childDefinition.setWarningGroupId(fatherDefinition.getWarningGroupId());
processDefineMapper.updateById(childDefinition);
}
}
/**
* submit task to mysql
*
* @param taskInstance taskInstance
* @param processInstance processInstance
* @return task instance
*/
public TaskInstance submitTaskInstanceToDB(TaskInstance taskInstance, ProcessInstance processInstance) {
ExecutionStatus processInstanceState = processInstance.getState();
if (processInstanceState.typeIsFinished()
|| processInstanceState == ExecutionStatus.READY_PAUSE
|| processInstanceState == ExecutionStatus.READY_STOP) {
logger.warn("processInstance {} was {}, skip submit task", processInstance.getProcessDefinitionCode(), processInstanceState);
return null;
}
taskInstance.setExecutorId(processInstance.getExecutorId());
taskInstance.setProcessInstancePriority(processInstance.getProcessInstancePriority());
taskInstance.setState(getSubmitTaskState(taskInstance, processInstance));
if (taskInstance.getSubmitTime() == null) {
taskInstance.setSubmitTime(new Date());
}
if (taskInstance.getFirstSubmitTime() == null) {
taskInstance.setFirstSubmitTime(taskInstance.getSubmitTime());
}
boolean saveResult = saveTaskInstance(taskInstance);
if (!saveResult) {
return null;
}
return taskInstance;
}
/**
* get submit task instance state by the work process state
* cannot modify the task state when running/kill/submit success, or this
* task instance is already exists in task queue .
* return pause if work process state is ready pause
* return stop if work process state is ready stop
* if all of above are not satisfied, return submit success
*
* @param taskInstance taskInstance
* @param processInstance processInstance
* @return process instance state
*/
public ExecutionStatus getSubmitTaskState(TaskInstance taskInstance, ProcessInstance processInstance) {
ExecutionStatus state = taskInstance.getState();
// running, delayed or killed
// the task already exists in task queue
// return state
if (
state == ExecutionStatus.RUNNING_EXECUTION
|| state == ExecutionStatus.DELAY_EXECUTION
|| state == ExecutionStatus.KILL
) {
return state;
}
//return pasue /stop if process instance state is ready pause / stop
// or return submit success
if (processInstance.getState() == ExecutionStatus.READY_PAUSE) {
state = ExecutionStatus.PAUSE;
} else if (processInstance.getState() == ExecutionStatus.READY_STOP
|| !checkProcessStrategy(taskInstance, processInstance)) {
state = ExecutionStatus.KILL;
} else {
state = ExecutionStatus.SUBMITTED_SUCCESS;
}
return state;
}
/**
* check process instance strategy
*
* @param taskInstance taskInstance
* @return check strategy result
*/
private boolean checkProcessStrategy(TaskInstance taskInstance, ProcessInstance processInstance) {
FailureStrategy failureStrategy = processInstance.getFailureStrategy();
if (failureStrategy == FailureStrategy.CONTINUE) {
return true;
}
List<TaskInstance> taskInstances = this.findValidTaskListByProcessId(taskInstance.getProcessInstanceId());
for (TaskInstance task : taskInstances) {
if (task.getState() == ExecutionStatus.FAILURE
&& task.getRetryTimes() >= task.getMaxRetryTimes()) {
return false;
}
}
return true;
}
/**
* insert or update work process instance to data base
*
* @param processInstance processInstance
*/
public void saveProcessInstance(ProcessInstance processInstance) {
if (processInstance == null) {
logger.error("save error, process instance is null!");
return;
}
if (processInstance.getId() != 0) {
processInstanceMapper.updateById(processInstance);
} else {
processInstanceMapper.insert(processInstance);
}
}
/**
* insert or update command
*
* @param command command
* @return save command result
*/
public int saveCommand(Command command) {
if (command.getId() != 0) {
return commandMapper.updateById(command);
} else {
return commandMapper.insert(command);
}
}
/**
* insert or update task instance
*
* @param taskInstance taskInstance
* @return save task instance result
*/
public boolean saveTaskInstance(TaskInstance taskInstance) {
if (taskInstance.getId() != 0) {
return updateTaskInstance(taskInstance);
} else {
return createTaskInstance(taskInstance);
}
}
/**
* insert task instance
*
* @param taskInstance taskInstance
* @return create task instance result
*/
public boolean createTaskInstance(TaskInstance taskInstance) {
int count = taskInstanceMapper.insert(taskInstance);
return count > 0;
}
/**
* update task instance
*
* @param taskInstance taskInstance
* @return update task instance result
*/
public boolean updateTaskInstance(TaskInstance taskInstance) {
int count = taskInstanceMapper.updateById(taskInstance);
return count > 0;
}
/**
* find task instance by id
*
* @param taskId task id
* @return task instance
*/
public TaskInstance findTaskInstanceById(Integer taskId) {
return taskInstanceMapper.selectById(taskId);
}
/**
* find task instance list by id list
*
* @param idList task id list
* @return task instance list
*/
public List<TaskInstance> findTaskInstanceByIdList(List<Integer> idList) {
if (CollectionUtils.isEmpty(idList)) {
return new ArrayList<>();
}
return taskInstanceMapper.selectBatchIds(idList);
}
/**
* package task instance
*/
public void packageTaskInstance(TaskInstance taskInstance, ProcessInstance processInstance) {
taskInstance.setProcessInstance(processInstance);
taskInstance.setProcessDefine(processInstance.getProcessDefinition());
TaskDefinition taskDefinition = this.findTaskDefinition(
taskInstance.getTaskCode(),
taskInstance.getTaskDefinitionVersion());
this.updateTaskDefinitionResources(taskDefinition);
taskInstance.setTaskDefine(taskDefinition);
}
/**
* Update {@link ResourceInfo} information in {@link TaskDefinition}
*
* @param taskDefinition the given {@link TaskDefinition}
*/
public void updateTaskDefinitionResources(TaskDefinition taskDefinition) {
Map<String, Object> taskParameters = JSONUtils.parseObject(
taskDefinition.getTaskParams(),
new TypeReference<Map<String, Object>>() {
});
if (taskParameters != null) {
// if contains mainJar field, query resource from database
// Flink, Spark, MR
if (taskParameters.containsKey("mainJar")) {
Object mainJarObj = taskParameters.get("mainJar");
ResourceInfo mainJar = JSONUtils.parseObject(
JSONUtils.toJsonString(mainJarObj),
ResourceInfo.class);
ResourceInfo resourceInfo = updateResourceInfo(mainJar);
if (resourceInfo != null) {
taskParameters.put("mainJar", resourceInfo);
}
}
// update resourceList information
if (taskParameters.containsKey("resourceList")) {
String resourceListStr = JSONUtils.toJsonString(taskParameters.get("resourceList"));
List<ResourceInfo> resourceInfos = JSONUtils.toList(resourceListStr, ResourceInfo.class);
List<ResourceInfo> updatedResourceInfos = resourceInfos
.stream()
.map(this::updateResourceInfo)
.filter(Objects::nonNull)
.collect(Collectors.toList());
taskParameters.put("resourceList", updatedResourceInfos);
}
// set task parameters
taskDefinition.setTaskParams(JSONUtils.toJsonString(taskParameters));
}
}
/**
* update {@link ResourceInfo} by given original ResourceInfo
*
* @param res origin resource info
* @return {@link ResourceInfo}
*/
private ResourceInfo updateResourceInfo(ResourceInfo res) {
ResourceInfo resourceInfo = null;
// only if mainJar is not null and does not contains "resourceName" field
if (res != null) {
int resourceId = res.getId();
if (resourceId <= 0) {
logger.error("invalid resourceId, {}", resourceId);
return null;
}
resourceInfo = new ResourceInfo();
// get resource from database, only one resource should be returned
Resource resource = getResourceById(resourceId);
resourceInfo.setId(resourceId);
resourceInfo.setRes(resource.getFileName());
resourceInfo.setResourceName(resource.getFullName());
if (logger.isInfoEnabled()) {
logger.info("updated resource info {}",
JSONUtils.toJsonString(resourceInfo));
}
}
return resourceInfo;
}
/**
* get id list by task state
*
* @param instanceId instanceId
* @param state state
* @return task instance states
*/
public List<Integer> findTaskIdByInstanceState(int instanceId, ExecutionStatus state) {
return taskInstanceMapper.queryTaskByProcessIdAndState(instanceId, state.ordinal());
}
/**
* find valid task list by process definition id
*
* @param processInstanceId processInstanceId
* @return task instance list
*/
public List<TaskInstance> findValidTaskListByProcessId(Integer processInstanceId) {
return taskInstanceMapper.findValidTaskListByProcessId(processInstanceId, Flag.YES);
}
/**
* find previous task list by work process id
*
* @param processInstanceId processInstanceId
* @return task instance list
*/
public List<TaskInstance> findPreviousTaskListByWorkProcessId(Integer processInstanceId) {
return taskInstanceMapper.findValidTaskListByProcessId(processInstanceId, Flag.NO);
}
/**
* update work process instance map
*
* @param processInstanceMap processInstanceMap
* @return update process instance result
*/
public int updateWorkProcessInstanceMap(ProcessInstanceMap processInstanceMap) {
return processInstanceMapMapper.updateById(processInstanceMap);
}
/**
* create work process instance map
*
* @param processInstanceMap processInstanceMap
* @return create process instance result
*/
public int createWorkProcessInstanceMap(ProcessInstanceMap processInstanceMap) {
int count = 0;
if (processInstanceMap != null) {
return processInstanceMapMapper.insert(processInstanceMap);
}
return count;
}
/**
* find work process map by parent process id and parent task id.
*
* @param parentWorkProcessId parentWorkProcessId
* @param parentTaskId parentTaskId
* @return process instance map
*/
public ProcessInstanceMap findWorkProcessMapByParent(Integer parentWorkProcessId, Integer parentTaskId) {
return processInstanceMapMapper.queryByParentId(parentWorkProcessId, parentTaskId);
}
/**
* delete work process map by parent process id
*
* @param parentWorkProcessId parentWorkProcessId
* @return delete process map result
*/
public int deleteWorkProcessMapByParentId(int parentWorkProcessId) {
return processInstanceMapMapper.deleteByParentProcessId(parentWorkProcessId);
}
/**
* find sub process instance
*
* @param parentProcessId parentProcessId
* @param parentTaskId parentTaskId
* @return process instance
*/
public ProcessInstance findSubProcessInstance(Integer parentProcessId, Integer parentTaskId) {
ProcessInstance processInstance = null;
ProcessInstanceMap processInstanceMap = processInstanceMapMapper.queryByParentId(parentProcessId, parentTaskId);
if (processInstanceMap == null || processInstanceMap.getProcessInstanceId() == 0) {
return processInstance;
}
processInstance = findProcessInstanceById(processInstanceMap.getProcessInstanceId());
return processInstance;
}
/**
* find parent process instance
*
* @param subProcessId subProcessId
* @return process instance
*/
public ProcessInstance findParentProcessInstance(Integer subProcessId) {
ProcessInstance processInstance = null;
ProcessInstanceMap processInstanceMap = processInstanceMapMapper.queryBySubProcessId(subProcessId);
if (processInstanceMap == null || processInstanceMap.getProcessInstanceId() == 0) {
return processInstance;
}
processInstance = findProcessInstanceById(processInstanceMap.getParentProcessInstanceId());
return processInstance;
}
/**
* change task state
*
* @param state state
* @param startTime startTime
* @param host host
* @param executePath executePath
* @param logPath logPath
*/
public void changeTaskState(TaskInstance taskInstance,
ExecutionStatus state,
Date startTime,
String host,
String executePath,
String logPath) {
taskInstance.setState(state);
taskInstance.setStartTime(startTime);
taskInstance.setHost(host);
taskInstance.setExecutePath(executePath);
taskInstance.setLogPath(logPath);
saveTaskInstance(taskInstance);
}
/**
* update process instance
*
* @param processInstance processInstance
* @return update process instance result
*/
public int updateProcessInstance(ProcessInstance processInstance) {
return processInstanceMapper.updateById(processInstance);
}
/**
* change task state
*
* @param state state
* @param endTime endTime
* @param varPool varPool
*/
public void changeTaskState(TaskInstance taskInstance, ExecutionStatus state,
Date endTime,
int processId,
String appIds,
String varPool) {
taskInstance.setPid(processId);
taskInstance.setAppLink(appIds);
taskInstance.setState(state);
taskInstance.setEndTime(endTime);
taskInstance.setVarPool(varPool);
changeOutParam(taskInstance);
saveTaskInstance(taskInstance);
}
/**
* for show in page of taskInstance
*/
public void changeOutParam(TaskInstance taskInstance) {
if (StringUtils.isEmpty(taskInstance.getVarPool())) {
return;
}
List<Property> properties = JSONUtils.toList(taskInstance.getVarPool(), Property.class);
if (CollectionUtils.isEmpty(properties)) {
return;
}
//if the result more than one line,just get the first .
Map<String, Object> taskParams = JSONUtils.parseObject(taskInstance.getTaskParams(), new TypeReference<Map<String, Object>>() {
});
Object localParams = taskParams.get(LOCAL_PARAMS);
if (localParams == null) {
return;
}
List<Property> allParam = JSONUtils.toList(JSONUtils.toJsonString(localParams), Property.class);
Map<String, String> outProperty = new HashMap<>();
for (Property info : properties) {
if (info.getDirect() == Direct.OUT) {
outProperty.put(info.getProp(), info.getValue());
}
}
for (Property info : allParam) {
if (info.getDirect() == Direct.OUT) {
String paramName = info.getProp();
info.setValue(outProperty.get(paramName));
}
}
taskParams.put(LOCAL_PARAMS, allParam);
taskInstance.setTaskParams(JSONUtils.toJsonString(taskParams));
}
/**
* convert integer list to string list
*
* @param intList intList
* @return string list
*/
public List<String> convertIntListToString(List<Integer> intList) {
if (intList == null) {
return new ArrayList<>();
}
List<String> result = new ArrayList<>(intList.size());
for (Integer intVar : intList) {
result.add(String.valueOf(intVar));
}
return result;
}
/**
* query schedule by id
*
* @param id id
* @return schedule
*/
public Schedule querySchedule(int id) {
return scheduleMapper.selectById(id);
}
/**
* query Schedule by processDefinitionCode
*
* @param processDefinitionCode processDefinitionCode
* @see Schedule
*/
public List<Schedule> queryReleaseSchedulerListByProcessDefinitionCode(long processDefinitionCode) {
return scheduleMapper.queryReleaseSchedulerListByProcessDefinitionCode(processDefinitionCode);
}
/**
* query Schedule by processDefinitionCode
*
* @param processDefinitionCodeList processDefinitionCodeList
* @see Schedule
*/
public Map<Long, String> queryWorkerGroupByProcessDefinitionCodes(List<Long> processDefinitionCodeList) {
List<Schedule> processDefinitionScheduleList = scheduleMapper.querySchedulesByProcessDefinitionCodes(processDefinitionCodeList);
return processDefinitionScheduleList.stream().collect(Collectors.toMap(Schedule::getProcessDefinitionCode,
Schedule::getWorkerGroup));
}
/**
* query dependent process definition by process definition code
*
* @param processDefinitionCode processDefinitionCode
* @see DependentProcessDefinition
*/
public List<DependentProcessDefinition> queryDependentProcessDefinitionByProcessDefinitionCode(long processDefinitionCode) {
return workFlowLineageMapper.queryDependentProcessDefinitionByProcessDefinitionCode(processDefinitionCode);
}
/**
* query need failover process instance
*
* @param host host
* @return process instance list
*/
public List<ProcessInstance> queryNeedFailoverProcessInstances(String host) {
return processInstanceMapper.queryByHostAndStatus(host, stateArray);
}
public List<String> queryNeedFailoverProcessInstanceHost() {
return processInstanceMapper.queryNeedFailoverProcessInstanceHost(stateArray);
}
/**
* process need failover process instance
*
* @param processInstance processInstance
*/
@Transactional(rollbackFor = RuntimeException.class)
public void processNeedFailoverProcessInstances(ProcessInstance processInstance) {
//1 update processInstance host is null
processInstance.setHost(Constants.NULL);
processInstanceMapper.updateById(processInstance);
ProcessDefinition processDefinition = findProcessDefinition(processInstance.getProcessDefinitionCode(), processInstance.getProcessDefinitionVersion());
//2 insert into recover command
Command cmd = new Command();
cmd.setProcessDefinitionCode(processDefinition.getCode());
cmd.setProcessDefinitionVersion(processDefinition.getVersion());
cmd.setProcessInstanceId(processInstance.getId());
cmd.setCommandParam(String.format("{\"%s\":%d}", Constants.CMD_PARAM_RECOVER_PROCESS_ID_STRING, processInstance.getId()));
cmd.setExecutorId(processInstance.getExecutorId());
cmd.setCommandType(CommandType.RECOVER_TOLERANCE_FAULT_PROCESS);
createCommand(cmd);
}
/**
* query all need failover task instances by host
*
* @param host host
* @return task instance list
*/
public List<TaskInstance> queryNeedFailoverTaskInstances(String host) {
return taskInstanceMapper.queryByHostAndStatus(host,
stateArray);
}
/**
* find data source by id
*
* @param id id
* @return datasource
*/
public DataSource findDataSourceById(int id) {
return dataSourceMapper.selectById(id);
}
/**
* update process instance state by id
*
* @param processInstanceId processInstanceId
* @param executionStatus executionStatus
* @return update process result
*/
public int updateProcessInstanceState(Integer processInstanceId, ExecutionStatus executionStatus) {
ProcessInstance instance = processInstanceMapper.selectById(processInstanceId);
instance.setState(executionStatus);
return processInstanceMapper.updateById(instance);
}
/**
* find process instance by the task id
*
* @param taskId taskId
* @return process instance
*/
public ProcessInstance findProcessInstanceByTaskId(int taskId) {
TaskInstance taskInstance = taskInstanceMapper.selectById(taskId);
if (taskInstance != null) {
return processInstanceMapper.selectById(taskInstance.getProcessInstanceId());
}
return null;
}
/**
* find udf function list by id list string
*
* @param ids ids
* @return udf function list
*/
public List<UdfFunc> queryUdfFunListByIds(Integer[] ids) {
return udfFuncMapper.queryUdfByIdStr(ids, null);
}
/**
* find tenant code by resource name
*
* @param resName resource name
* @param resourceType resource type
* @return tenant code
*/
public String queryTenantCodeByResName(String resName, ResourceType resourceType) {
// in order to query tenant code successful although the version is older
String fullName = resName.startsWith("/") ? resName : String.format("/%s", resName);
List<Resource> resourceList = resourceMapper.queryResource(fullName, resourceType.ordinal());
if (CollectionUtils.isEmpty(resourceList)) {
return StringUtils.EMPTY;
}
int userId = resourceList.get(0).getUserId();
User user = userMapper.selectById(userId);
if (Objects.isNull(user)) {
return StringUtils.EMPTY;
}
Tenant tenant = tenantMapper.queryById(user.getTenantId());
if (Objects.isNull(tenant)) {
return StringUtils.EMPTY;
}
return tenant.getTenantCode();
}
/**
* find schedule list by process define codes.
*
* @param codes codes
* @return schedule list
*/
public List<Schedule> selectAllByProcessDefineCode(long[] codes) {
return scheduleMapper.selectAllByProcessDefineArray(codes);
}
/**
* find last scheduler process instance in the date interval
*
* @param definitionCode definitionCode
* @param dateInterval dateInterval
* @return process instance
*/
public ProcessInstance findLastSchedulerProcessInterval(Long definitionCode, DateInterval dateInterval) {
return processInstanceMapper.queryLastSchedulerProcess(definitionCode,
dateInterval.getStartTime(),
dateInterval.getEndTime());
}
/**
* find last manual process instance interval
*
* @param definitionCode process definition code
* @param dateInterval dateInterval
* @return process instance
*/
public ProcessInstance findLastManualProcessInterval(Long definitionCode, DateInterval dateInterval) {
return processInstanceMapper.queryLastManualProcess(definitionCode,
dateInterval.getStartTime(),
dateInterval.getEndTime());
}
/**
* find last running process instance
*
* @param definitionCode process definition code
* @param startTime start time
* @param endTime end time
* @return process instance
*/
public ProcessInstance findLastRunningProcess(Long definitionCode, Date startTime, Date endTime) {
return processInstanceMapper.queryLastRunningProcess(definitionCode,
startTime,
endTime,
stateArray);
}
/**
* query user queue by process instance
*
* @param processInstance processInstance
* @return queue
*/
public String queryUserQueueByProcessInstance(ProcessInstance processInstance) {
String queue = "";
if (processInstance == null) {
return queue;
}
User executor = userMapper.selectById(processInstance.getExecutorId());
if (executor != null) {
queue = executor.getQueue();
}
return queue;
}
/**
* query project name and user name by processInstanceId.
*
* @param processInstanceId processInstanceId
* @return projectName and userName
*/
public ProjectUser queryProjectWithUserByProcessInstanceId(int processInstanceId) {
return projectMapper.queryProjectWithUserByProcessInstanceId(processInstanceId);
}
/**
* get task worker group
*
* @param taskInstance taskInstance
* @return workerGroupId
*/
public String getTaskWorkerGroup(TaskInstance taskInstance) {
String workerGroup = taskInstance.getWorkerGroup();
if (StringUtils.isNotBlank(workerGroup)) {
return workerGroup;
}
int processInstanceId = taskInstance.getProcessInstanceId();
ProcessInstance processInstance = findProcessInstanceById(processInstanceId);
if (processInstance != null) {
return processInstance.getWorkerGroup();
}
logger.info("task : {} will use default worker group", taskInstance.getId());
return Constants.DEFAULT_WORKER_GROUP;
}
/**
* get have perm project list
*
* @param userId userId
* @return project list
*/
public List<Project> getProjectListHavePerm(int userId) {
List<Project> createProjects = projectMapper.queryProjectCreatedByUser(userId);
List<Project> authedProjects = projectMapper.queryAuthedProjectListByUserId(userId);
if (createProjects == null) {
createProjects = new ArrayList<>();
}
if (authedProjects != null) {
createProjects.addAll(authedProjects);
}
return createProjects;
}
/**
* list unauthorized udf function
*
* @param userId user id
* @param needChecks data source id array
* @return unauthorized udf function list
*/
public <T> List<T> listUnauthorized(int userId, T[] needChecks, AuthorizationType authorizationType) {
List<T> resultList = new ArrayList<>();
if (Objects.nonNull(needChecks) && needChecks.length > 0) {
Set<T> originResSet = new HashSet<>(Arrays.asList(needChecks));
switch (authorizationType) {
case RESOURCE_FILE_ID:
case UDF_FILE:
List<Resource> ownUdfResources = resourceMapper.listAuthorizedResourceById(userId, needChecks);
addAuthorizedResources(ownUdfResources, userId);
Set<Integer> authorizedResourceFiles = ownUdfResources.stream().map(Resource::getId).collect(toSet());
originResSet.removeAll(authorizedResourceFiles);
break;
case RESOURCE_FILE_NAME:
List<Resource> ownResources = resourceMapper.listAuthorizedResource(userId, needChecks);
addAuthorizedResources(ownResources, userId);
Set<String> authorizedResources = ownResources.stream().map(Resource::getFullName).collect(toSet());
originResSet.removeAll(authorizedResources);
break;
case DATASOURCE:
Set<Integer> authorizedDatasources = dataSourceMapper.listAuthorizedDataSource(userId, needChecks).stream().map(DataSource::getId).collect(toSet());
originResSet.removeAll(authorizedDatasources);
break;
case UDF:
Set<Integer> authorizedUdfs = udfFuncMapper.listAuthorizedUdfFunc(userId, needChecks).stream().map(UdfFunc::getId).collect(toSet());
originResSet.removeAll(authorizedUdfs);
break;
default:
break;
}
resultList.addAll(originResSet);
}
return resultList;
}
/**
* get user by user id
*
* @param userId user id
* @return User
*/
public User getUserById(int userId) {
return userMapper.selectById(userId);
}
/**
* get resource by resource id
*
* @param resourceId resource id
* @return Resource
*/
public Resource getResourceById(int resourceId) {
return resourceMapper.selectById(resourceId);
}
/**
* list resources by ids
*
* @param resIds resIds
* @return resource list
*/
public List<Resource> listResourceByIds(Integer[] resIds) {
return resourceMapper.listResourceByIds(resIds);
}
/**
* format task app id in task instance
*/
public String formatTaskAppId(TaskInstance taskInstance) {
ProcessInstance processInstance = findProcessInstanceById(taskInstance.getProcessInstanceId());
if (processInstance == null) {
return "";
}
ProcessDefinition definition = findProcessDefinition(processInstance.getProcessDefinitionCode(), processInstance.getProcessDefinitionVersion());
if (definition == null) {
return "";
}
return String.format("%s_%s_%s", definition.getId(), processInstance.getId(), taskInstance.getId());
}
/**
* switch process definition version to process definition log version
*/
public int switchVersion(ProcessDefinition processDefinition, ProcessDefinitionLog processDefinitionLog) {
if (null == processDefinition || null == processDefinitionLog) {
return Constants.DEFINITION_FAILURE;
}
processDefinitionLog.setId(processDefinition.getId());
processDefinitionLog.setReleaseState(ReleaseState.OFFLINE);
processDefinitionLog.setFlag(Flag.YES);
int result = processDefineMapper.updateById(processDefinitionLog);
if (result > 0) {
result = switchProcessTaskRelationVersion(processDefinitionLog);
if (result <= 0) {
return Constants.EXIT_CODE_FAILURE;
}
}
return result;
}
public int switchProcessTaskRelationVersion(ProcessDefinition processDefinition) {
List<ProcessTaskRelation> processTaskRelationList = processTaskRelationMapper.queryByProcessCode(processDefinition.getProjectCode(), processDefinition.getCode());
if (!processTaskRelationList.isEmpty()) {
processTaskRelationMapper.deleteByCode(processDefinition.getProjectCode(), processDefinition.getCode());
}
List<ProcessTaskRelationLog> processTaskRelationLogList = processTaskRelationLogMapper.queryByProcessCodeAndVersion(processDefinition.getCode(), processDefinition.getVersion());
int batchInsert = processTaskRelationMapper.batchInsert(processTaskRelationLogList);
if (batchInsert == 0) {
return Constants.EXIT_CODE_FAILURE;
} else {
int result = 0;
for (ProcessTaskRelationLog taskRelationLog : processTaskRelationLogList) {
int switchResult = switchTaskDefinitionVersion(taskRelationLog.getPostTaskCode(), taskRelationLog.getPostTaskVersion());
if (switchResult != Constants.EXIT_CODE_FAILURE) {
result++;
}
}
return result;
}
}
public int switchTaskDefinitionVersion(long taskCode, int taskVersion) {
TaskDefinition taskDefinition = taskDefinitionMapper.queryByCode(taskCode);
if (taskDefinition == null) {
return Constants.EXIT_CODE_FAILURE;
}
if (taskDefinition.getVersion() == taskVersion) {
return Constants.EXIT_CODE_SUCCESS;
}
TaskDefinitionLog taskDefinitionUpdate = taskDefinitionLogMapper.queryByDefinitionCodeAndVersion(taskCode, taskVersion);
if (taskDefinitionUpdate == null) {
return Constants.EXIT_CODE_FAILURE;
}
taskDefinitionUpdate.setUpdateTime(new Date());
taskDefinitionUpdate.setId(taskDefinition.getId());
return taskDefinitionMapper.updateById(taskDefinitionUpdate);
}
/**
* get resource ids
*
* @param taskDefinition taskDefinition
* @return resource ids
*/
public String getResourceIds(TaskDefinition taskDefinition) {
Set<Integer> resourceIds = null;
AbstractParameters params = taskPluginManager.getParameters(ParametersNode.builder().taskType(taskDefinition.getTaskType()).taskParams(taskDefinition.getTaskParams()).build());
if (params != null && CollectionUtils.isNotEmpty(params.getResourceFilesList())) {
resourceIds = params.getResourceFilesList().
stream()
.filter(t -> t.getId() != 0)
.map(ResourceInfo::getId)
.collect(Collectors.toSet());
}
if (CollectionUtils.isEmpty(resourceIds)) {
return StringUtils.EMPTY;
}
return StringUtils.join(resourceIds, ",");
}
public int saveTaskDefine(User operator, long projectCode, List<TaskDefinitionLog> taskDefinitionLogs, Boolean syncDefine) {
Date now = new Date();
List<TaskDefinitionLog> newTaskDefinitionLogs = new ArrayList<>();
List<TaskDefinitionLog> updateTaskDefinitionLogs = new ArrayList<>();
for (TaskDefinitionLog taskDefinitionLog : taskDefinitionLogs) {
taskDefinitionLog.setProjectCode(projectCode);
taskDefinitionLog.setUpdateTime(now);
taskDefinitionLog.setOperateTime(now);
taskDefinitionLog.setOperator(operator.getId());
taskDefinitionLog.setResourceIds(getResourceIds(taskDefinitionLog));
if (taskDefinitionLog.getCode() > 0 && taskDefinitionLog.getVersion() > 0) {
TaskDefinitionLog definitionCodeAndVersion = taskDefinitionLogMapper
.queryByDefinitionCodeAndVersion(taskDefinitionLog.getCode(), taskDefinitionLog.getVersion());
if (definitionCodeAndVersion != null) {
if (!taskDefinitionLog.equals(definitionCodeAndVersion)) {
taskDefinitionLog.setUserId(definitionCodeAndVersion.getUserId());
Integer version = taskDefinitionLogMapper.queryMaxVersionForDefinition(taskDefinitionLog.getCode());
taskDefinitionLog.setVersion(version + 1);
taskDefinitionLog.setCreateTime(definitionCodeAndVersion.getCreateTime());
updateTaskDefinitionLogs.add(taskDefinitionLog);
}
continue;
}
}
taskDefinitionLog.setUserId(operator.getId());
taskDefinitionLog.setVersion(Constants.VERSION_FIRST);
taskDefinitionLog.setCreateTime(now);
if (taskDefinitionLog.getCode() == 0) {
try {
taskDefinitionLog.setCode(CodeGenerateUtils.getInstance().genCode());
} catch (CodeGenerateException e) {
logger.error("Task code get error, ", e);
return Constants.DEFINITION_FAILURE;
}
}
newTaskDefinitionLogs.add(taskDefinitionLog);
}
int insertResult = 0;
int updateResult = 0;
for (TaskDefinitionLog taskDefinitionToUpdate : updateTaskDefinitionLogs) {
TaskDefinition task = taskDefinitionMapper.queryByCode(taskDefinitionToUpdate.getCode());
if (task == null) {
newTaskDefinitionLogs.add(taskDefinitionToUpdate);
} else {
insertResult += taskDefinitionLogMapper.insert(taskDefinitionToUpdate);
if (Boolean.TRUE.equals(syncDefine)) {
taskDefinitionToUpdate.setId(task.getId());
updateResult += taskDefinitionMapper.updateById(taskDefinitionToUpdate);
} else {
updateResult++;
}
}
}
if (!newTaskDefinitionLogs.isEmpty()) {
insertResult += taskDefinitionLogMapper.batchInsert(newTaskDefinitionLogs);
if (Boolean.TRUE.equals(syncDefine)) {
updateResult += taskDefinitionMapper.batchInsert(newTaskDefinitionLogs);
} else {
updateResult += newTaskDefinitionLogs.size();
}
}
return (insertResult & updateResult) > 0 ? 1 : Constants.EXIT_CODE_SUCCESS;
}
/**
* save processDefinition (including create or update processDefinition)
*/
public int saveProcessDefine(User operator, ProcessDefinition processDefinition, Boolean syncDefine, Boolean isFromProcessDefine) {
ProcessDefinitionLog processDefinitionLog = new ProcessDefinitionLog(processDefinition);
Integer version = processDefineLogMapper.queryMaxVersionForDefinition(processDefinition.getCode());
int insertVersion = version == null || version == 0 ? Constants.VERSION_FIRST : version + 1;
processDefinitionLog.setVersion(insertVersion);
processDefinitionLog.setReleaseState(!isFromProcessDefine || processDefinitionLog.getReleaseState() == ReleaseState.ONLINE ? ReleaseState.ONLINE : ReleaseState.OFFLINE);
processDefinitionLog.setOperator(operator.getId());
processDefinitionLog.setOperateTime(processDefinition.getUpdateTime());
int insertLog = processDefineLogMapper.insert(processDefinitionLog);
int result = 1;
if (Boolean.TRUE.equals(syncDefine)) {
if (0 == processDefinition.getId()) {
result = processDefineMapper.insert(processDefinitionLog);
} else {
processDefinitionLog.setId(processDefinition.getId());
result = processDefineMapper.updateById(processDefinitionLog);
}
}
return (insertLog & result) > 0 ? insertVersion : 0;
}
/**
* save task relations
*/
public int saveTaskRelation(User operator, long projectCode, long processDefinitionCode, int processDefinitionVersion,
List<ProcessTaskRelationLog> taskRelationList, List<TaskDefinitionLog> taskDefinitionLogs,
Boolean syncDefine) {
if (taskRelationList.isEmpty()) {
return Constants.EXIT_CODE_SUCCESS;
}
Map<Long, TaskDefinitionLog> taskDefinitionLogMap = null;
if (CollectionUtils.isNotEmpty(taskDefinitionLogs)) {
taskDefinitionLogMap = taskDefinitionLogs.stream()
.collect(Collectors.toMap(TaskDefinition::getCode, taskDefinitionLog -> taskDefinitionLog));
}
Date now = new Date();
for (ProcessTaskRelationLog processTaskRelationLog : taskRelationList) {
processTaskRelationLog.setProjectCode(projectCode);
processTaskRelationLog.setProcessDefinitionCode(processDefinitionCode);
processTaskRelationLog.setProcessDefinitionVersion(processDefinitionVersion);
if (taskDefinitionLogMap != null) {
TaskDefinitionLog preTaskDefinitionLog = taskDefinitionLogMap.get(processTaskRelationLog.getPreTaskCode());
if (preTaskDefinitionLog != null) {
processTaskRelationLog.setPreTaskVersion(preTaskDefinitionLog.getVersion());
}
TaskDefinitionLog postTaskDefinitionLog = taskDefinitionLogMap.get(processTaskRelationLog.getPostTaskCode());
if (postTaskDefinitionLog != null) {
processTaskRelationLog.setPostTaskVersion(postTaskDefinitionLog.getVersion());
}
}
processTaskRelationLog.setCreateTime(now);
processTaskRelationLog.setUpdateTime(now);
processTaskRelationLog.setOperator(operator.getId());
processTaskRelationLog.setOperateTime(now);
}
int insert = taskRelationList.size();
if (Boolean.TRUE.equals(syncDefine)) {
List<ProcessTaskRelation> processTaskRelationList = processTaskRelationMapper.queryByProcessCode(projectCode, processDefinitionCode);
if (!processTaskRelationList.isEmpty()) {
Set<Integer> processTaskRelationSet = processTaskRelationList.stream().map(ProcessTaskRelation::hashCode).collect(toSet());
Set<Integer> taskRelationSet = taskRelationList.stream().map(ProcessTaskRelationLog::hashCode).collect(toSet());
boolean result = CollectionUtils.isEqualCollection(processTaskRelationSet, taskRelationSet);
if (result) {
return Constants.EXIT_CODE_SUCCESS;
}
processTaskRelationMapper.deleteByCode(projectCode, processDefinitionCode);
}
insert = processTaskRelationMapper.batchInsert(taskRelationList);
}
int resultLog = processTaskRelationLogMapper.batchInsert(taskRelationList);
return (insert & resultLog) > 0 ? Constants.EXIT_CODE_SUCCESS : Constants.EXIT_CODE_FAILURE;
}
public boolean isTaskOnline(long taskCode) {
List<ProcessTaskRelation> processTaskRelationList = processTaskRelationMapper.queryByTaskCode(taskCode);
if (!processTaskRelationList.isEmpty()) {
Set<Long> processDefinitionCodes = processTaskRelationList
.stream()
.map(ProcessTaskRelation::getProcessDefinitionCode)
.collect(Collectors.toSet());
List<ProcessDefinition> processDefinitionList = processDefineMapper.queryByCodes(processDefinitionCodes);
// check process definition is already online
for (ProcessDefinition processDefinition : processDefinitionList) {
if (processDefinition.getReleaseState() == ReleaseState.ONLINE) {
return true;
}
}
}
return false;
}
/**
* Generate the DAG Graph based on the process definition id
* Use temporarily before refactoring taskNode
*
* @param processDefinition process definition
* @return dag graph
*/
public DAG<String, TaskNode, TaskNodeRelation> genDagGraph(ProcessDefinition processDefinition) {
List<ProcessTaskRelation> taskRelations = this.findRelationByCode(processDefinition.getCode(), processDefinition.getVersion());
List<TaskNode> taskNodeList = transformTask(taskRelations, Lists.newArrayList());
ProcessDag processDag = DagHelper.getProcessDag(taskNodeList, new ArrayList<>(taskRelations));
// Generate concrete Dag to be executed
return DagHelper.buildDagGraph(processDag);
}
/**
* generate DagData
*/
public DagData genDagData(ProcessDefinition processDefinition) {
List<ProcessTaskRelation> taskRelations = this.findRelationByCode(processDefinition.getCode(), processDefinition.getVersion());
List<TaskDefinitionLog> taskDefinitionLogList = genTaskDefineList(taskRelations);
List<TaskDefinition> taskDefinitions = taskDefinitionLogList.stream().map(t -> (TaskDefinition) t).collect(Collectors.toList());
return new DagData(processDefinition, taskRelations, taskDefinitions);
}
public List<TaskDefinitionLog> genTaskDefineList(List<ProcessTaskRelation> processTaskRelations) {
Set<TaskDefinition> taskDefinitionSet = new HashSet<>();
for (ProcessTaskRelation processTaskRelation : processTaskRelations) {
if (processTaskRelation.getPreTaskCode() > 0) {
taskDefinitionSet.add(new TaskDefinition(processTaskRelation.getPreTaskCode(), processTaskRelation.getPreTaskVersion()));
}
if (processTaskRelation.getPostTaskCode() > 0) {
taskDefinitionSet.add(new TaskDefinition(processTaskRelation.getPostTaskCode(), processTaskRelation.getPostTaskVersion()));
}
}
if (taskDefinitionSet.isEmpty()) {
return Lists.newArrayList();
}
return taskDefinitionLogMapper.queryByTaskDefinitions(taskDefinitionSet);
}
public List<TaskDefinitionLog> getTaskDefineLogListByRelation(List<ProcessTaskRelation> processTaskRelations) {
List<TaskDefinitionLog> taskDefinitionLogs = new ArrayList<>();
Map<Long, Integer> taskCodeVersionMap = new HashMap<>();
for (ProcessTaskRelation processTaskRelation : processTaskRelations) {
if (processTaskRelation.getPreTaskCode() > 0) {
taskCodeVersionMap.put(processTaskRelation.getPreTaskCode(), processTaskRelation.getPreTaskVersion());
}
if (processTaskRelation.getPostTaskCode() > 0) {
taskCodeVersionMap.put(processTaskRelation.getPostTaskCode(), processTaskRelation.getPostTaskVersion());
}
}
taskCodeVersionMap.forEach((code,version) -> {
taskDefinitionLogs.add((TaskDefinitionLog) this.findTaskDefinition(code, version));
});
return taskDefinitionLogs;
}
/**
* find task definition by code and version
*/
public TaskDefinition findTaskDefinition(long taskCode, int taskDefinitionVersion) {
return taskDefinitionLogMapper.queryByDefinitionCodeAndVersion(taskCode, taskDefinitionVersion);
}
/**
* find process task relation list by process
*/
public List<ProcessTaskRelation> findRelationByCode(long processDefinitionCode, int processDefinitionVersion) {
List<ProcessTaskRelationLog> processTaskRelationLogList = processTaskRelationLogMapper.queryByProcessCodeAndVersion(processDefinitionCode, processDefinitionVersion);
return processTaskRelationLogList.stream().map(r -> (ProcessTaskRelation) r).collect(Collectors.toList());
}
/**
* add authorized resources
*
* @param ownResources own resources
* @param userId userId
*/
private void addAuthorizedResources(List<Resource> ownResources, int userId) {
List<Integer> relationResourceIds = resourceUserMapper.queryResourcesIdListByUserIdAndPerm(userId, 7);
List<Resource> relationResources = CollectionUtils.isNotEmpty(relationResourceIds) ? resourceMapper.queryResourceListById(relationResourceIds) : new ArrayList<>();
ownResources.addAll(relationResources);
}
/**
* Use temporarily before refactoring taskNode
*/
public List<TaskNode> transformTask(List<ProcessTaskRelation> taskRelationList, List<TaskDefinitionLog> taskDefinitionLogs) {
Map<Long, List<Long>> taskCodeMap = new HashMap<>();
for (ProcessTaskRelation processTaskRelation : taskRelationList) {
taskCodeMap.compute(processTaskRelation.getPostTaskCode(), (k, v) -> {
if (v == null) {
v = new ArrayList<>();
}
if (processTaskRelation.getPreTaskCode() != 0L) {
v.add(processTaskRelation.getPreTaskCode());
}
return v;
});
}
if (CollectionUtils.isEmpty(taskDefinitionLogs)) {
taskDefinitionLogs = genTaskDefineList(taskRelationList);
}
Map<Long, TaskDefinitionLog> taskDefinitionLogMap = taskDefinitionLogs.stream()
.collect(Collectors.toMap(TaskDefinitionLog::getCode, taskDefinitionLog -> taskDefinitionLog));
List<TaskNode> taskNodeList = new ArrayList<>();
for (Entry<Long, List<Long>> code : taskCodeMap.entrySet()) {
TaskDefinitionLog taskDefinitionLog = taskDefinitionLogMap.get(code.getKey());
if (taskDefinitionLog != null) {
TaskNode taskNode = new TaskNode();
taskNode.setCode(taskDefinitionLog.getCode());
taskNode.setVersion(taskDefinitionLog.getVersion());
taskNode.setName(taskDefinitionLog.getName());
taskNode.setDesc(taskDefinitionLog.getDescription());
taskNode.setType(taskDefinitionLog.getTaskType().toUpperCase());
taskNode.setRunFlag(taskDefinitionLog.getFlag() == Flag.YES ? Constants.FLOWNODE_RUN_FLAG_NORMAL : Constants.FLOWNODE_RUN_FLAG_FORBIDDEN);
taskNode.setMaxRetryTimes(taskDefinitionLog.getFailRetryTimes());
taskNode.setRetryInterval(taskDefinitionLog.getFailRetryInterval());
Map<String, Object> taskParamsMap = taskNode.taskParamsToJsonObj(taskDefinitionLog.getTaskParams());
taskNode.setConditionResult(JSONUtils.toJsonString(taskParamsMap.get(Constants.CONDITION_RESULT)));
taskNode.setSwitchResult(JSONUtils.toJsonString(taskParamsMap.get(Constants.SWITCH_RESULT)));
taskNode.setDependence(JSONUtils.toJsonString(taskParamsMap.get(Constants.DEPENDENCE)));
taskParamsMap.remove(Constants.CONDITION_RESULT);
taskParamsMap.remove(Constants.DEPENDENCE);
taskNode.setParams(JSONUtils.toJsonString(taskParamsMap));
taskNode.setTaskInstancePriority(taskDefinitionLog.getTaskPriority());
taskNode.setWorkerGroup(taskDefinitionLog.getWorkerGroup());
taskNode.setEnvironmentCode(taskDefinitionLog.getEnvironmentCode());
taskNode.setTimeout(JSONUtils.toJsonString(new TaskTimeoutParameter(taskDefinitionLog.getTimeoutFlag() == TimeoutFlag.OPEN,
taskDefinitionLog.getTimeoutNotifyStrategy(),
taskDefinitionLog.getTimeout())));
taskNode.setDelayTime(taskDefinitionLog.getDelayTime());
taskNode.setPreTasks(JSONUtils.toJsonString(code.getValue().stream().map(taskDefinitionLogMap::get).map(TaskDefinition::getCode).collect(Collectors.toList())));
taskNode.setTaskGroupId(taskDefinitionLog.getTaskGroupId());
taskNode.setTaskGroupPriority(taskDefinitionLog.getTaskGroupPriority());
taskNodeList.add(taskNode);
}
}
return taskNodeList;
}
public Map<ProcessInstance, TaskInstance> notifyProcessList(int processId) {
HashMap<ProcessInstance, TaskInstance> processTaskMap = new HashMap<>();
//find sub tasks
ProcessInstanceMap processInstanceMap = processInstanceMapMapper.queryBySubProcessId(processId);
if (processInstanceMap == null) {
return processTaskMap;
}
ProcessInstance fatherProcess = this.findProcessInstanceById(processInstanceMap.getParentProcessInstanceId());
TaskInstance fatherTask = this.findTaskInstanceById(processInstanceMap.getParentTaskInstanceId());
if (fatherProcess != null) {
processTaskMap.put(fatherProcess, fatherTask);
}
return processTaskMap;
}
public DqExecuteResult getDqExecuteResultByTaskInstanceId(int taskInstanceId) {
return dqExecuteResultMapper.getExecuteResultById(taskInstanceId);
}
public int updateDqExecuteResultUserId(int taskInstanceId) {
DqExecuteResult dqExecuteResult =
dqExecuteResultMapper.selectOne(new QueryWrapper<DqExecuteResult>().eq(TASK_INSTANCE_ID,taskInstanceId));
if (dqExecuteResult == null) {
return -1;
}
ProcessInstance processInstance = processInstanceMapper.selectById(dqExecuteResult.getProcessInstanceId());
if (processInstance == null) {
return -1;
}
ProcessDefinition processDefinition = processDefineMapper.queryByCode(processInstance.getProcessDefinitionCode());
if (processDefinition == null) {
return -1;
}
dqExecuteResult.setProcessDefinitionId(processDefinition.getId());
dqExecuteResult.setUserId(processDefinition.getUserId());
dqExecuteResult.setState(DqTaskState.DEFAULT.getCode());
return dqExecuteResultMapper.updateById(dqExecuteResult);
}
public int updateDqExecuteResultState(DqExecuteResult dqExecuteResult) {
return dqExecuteResultMapper.updateById(dqExecuteResult);
}
public int deleteDqExecuteResultByTaskInstanceId(int taskInstanceId) {
return dqExecuteResultMapper.delete(
new QueryWrapper<DqExecuteResult>()
.eq(TASK_INSTANCE_ID,taskInstanceId));
}
public int deleteTaskStatisticsValueByTaskInstanceId(int taskInstanceId) {
return dqTaskStatisticsValueMapper.delete(
new QueryWrapper<DqTaskStatisticsValue>()
.eq(TASK_INSTANCE_ID,taskInstanceId));
}
public DqRule getDqRule(int ruleId) {
return dqRuleMapper.selectById(ruleId);
}
public List<DqRuleInputEntry> getRuleInputEntry(int ruleId) {
return DqRuleUtils.transformInputEntry(dqRuleInputEntryMapper.getRuleInputEntryList(ruleId));
}
public List<DqRuleExecuteSql> getDqExecuteSql(int ruleId) {
return dqRuleExecuteSqlMapper.getExecuteSqlList(ruleId);
}
public DqComparisonType getComparisonTypeById(int id) {
return dqComparisonTypeMapper.selectById(id);
}
/**
* the first time (when submit the task ) get the resource of the task group
* @param taskId task id
* @param taskName
* @param groupId
* @param processId
* @param priority
* @return
*/
public boolean acquireTaskGroup(int taskId,
String taskName, int groupId,
int processId, int priority) {
TaskGroup taskGroup = taskGroupMapper.selectById(groupId);
if (taskGroup == null) {
return true;
}
// if task group is not applicable
if (taskGroup.getStatus() == Flag.NO.getCode()) {
return true;
}
TaskGroupQueue taskGroupQueue = this.taskGroupQueueMapper.queryByTaskId(taskId);
if (taskGroupQueue == null) {
taskGroupQueue = insertIntoTaskGroupQueue(taskId, taskName, groupId, processId, priority, TaskGroupQueueStatus.WAIT_QUEUE);
} else {
if (taskGroupQueue.getStatus() == TaskGroupQueueStatus.ACQUIRE_SUCCESS) {
return true;
}
taskGroupQueue.setInQueue(Flag.NO.getCode());
taskGroupQueue.setStatus(TaskGroupQueueStatus.WAIT_QUEUE);
this.taskGroupQueueMapper.updateById(taskGroupQueue);
}
//check priority
List<TaskGroupQueue> highPriorityTasks = taskGroupQueueMapper.queryHighPriorityTasks(groupId, priority, TaskGroupQueueStatus.WAIT_QUEUE.getCode());
if (CollectionUtils.isNotEmpty(highPriorityTasks)) {
this.taskGroupQueueMapper.updateInQueue(Flag.NO.getCode(), taskGroupQueue.getId());
return false;
}
//try to get taskGroup
int count = taskGroupMapper.selectAvailableCountById(groupId);
if (count == 1 && robTaskGroupResouce(taskGroupQueue)) {
return true;
}
this.taskGroupQueueMapper.updateInQueue(Flag.NO.getCode(), taskGroupQueue.getId());
return false;
}
/**
* try to get the task group resource(when other task release the resource)
* @param taskGroupQueue
* @return
*/
public boolean robTaskGroupResouce(TaskGroupQueue taskGroupQueue) {
TaskGroup taskGroup = taskGroupMapper.selectById(taskGroupQueue.getGroupId());
int affectedCount = taskGroupMapper.updateTaskGroupResource(taskGroup.getId(),taskGroupQueue.getId(),
TaskGroupQueueStatus.WAIT_QUEUE.getCode());
if (affectedCount > 0) {
taskGroupQueue.setStatus(TaskGroupQueueStatus.ACQUIRE_SUCCESS);
this.taskGroupQueueMapper.updateById(taskGroupQueue);
this.taskGroupQueueMapper.updateInQueue(Flag.NO.getCode(), taskGroupQueue.getId());
return true;
}
return false;
}
public boolean acquireTaskGroupAgain(TaskGroupQueue taskGroupQueue) {
return robTaskGroupResouce(taskGroupQueue);
}
public void releaseAllTaskGroup(int processInstanceId) {
List<TaskInstance> taskInstances = this.taskInstanceMapper.loadAllInfosNoRelease(processInstanceId, TaskGroupQueueStatus.ACQUIRE_SUCCESS.getCode());
for (TaskInstance info : taskInstances) {
releaseTaskGroup(info);
}
}
/**
* release the TGQ resource when the corresponding task is finished.
*
* @return the result code and msg
*/
public TaskInstance releaseTaskGroup(TaskInstance taskInstance) {
TaskGroup taskGroup = taskGroupMapper.selectById(taskInstance.getTaskGroupId());
if (taskGroup == null) {
return null;
}
TaskGroupQueue thisTaskGroupQueue = this.taskGroupQueueMapper.queryByTaskId(taskInstance.getId());
if (thisTaskGroupQueue.getStatus() == TaskGroupQueueStatus.RELEASE) {
return null;
}
try {
while (taskGroupMapper.releaseTaskGroupResource(taskGroup.getId(), taskGroup.getUseSize()
, thisTaskGroupQueue.getId(), TaskGroupQueueStatus.ACQUIRE_SUCCESS.getCode()) != 1) {
thisTaskGroupQueue = this.taskGroupQueueMapper.queryByTaskId(taskInstance.getId());
if (thisTaskGroupQueue.getStatus() == TaskGroupQueueStatus.RELEASE) {
return null;
}
taskGroup = taskGroupMapper.selectById(taskInstance.getTaskGroupId());
}
} catch (Exception e) {
logger.error("release the task group error",e);
}
logger.info("updateTask:{}",taskInstance.getName());
changeTaskGroupQueueStatus(taskInstance.getId(), TaskGroupQueueStatus.RELEASE);
TaskGroupQueue taskGroupQueue = this.taskGroupQueueMapper.queryTheHighestPriorityTasks(taskGroup.getId(),
TaskGroupQueueStatus.WAIT_QUEUE.getCode(), Flag.NO.getCode(), Flag.NO.getCode());
if (taskGroupQueue == null) {
return null;
}
while (this.taskGroupQueueMapper.updateInQueueCAS(Flag.NO.getCode(), Flag.YES.getCode(), taskGroupQueue.getId()) != 1) {
taskGroupQueue = this.taskGroupQueueMapper.queryTheHighestPriorityTasks(taskGroup.getId(),
TaskGroupQueueStatus.WAIT_QUEUE.getCode(), Flag.NO.getCode(), Flag.NO.getCode());
if (taskGroupQueue == null) {
return null;
}
}
return this.taskInstanceMapper.selectById(taskGroupQueue.getTaskId());
}
/**
* release the TGQ resource when the corresponding task is finished.
*
* @param taskId task id
* @return the result code and msg
*/
public void changeTaskGroupQueueStatus(int taskId, TaskGroupQueueStatus status) {
TaskGroupQueue taskGroupQueue = taskGroupQueueMapper.queryByTaskId(taskId);
taskGroupQueue.setStatus(status);
taskGroupQueue.setUpdateTime(new Date(System.currentTimeMillis()));
taskGroupQueueMapper.updateById(taskGroupQueue);
}
/**
* insert into task group queue
*
* @param taskId task id
* @param taskName task name
* @param groupId group id
* @param processId process id
* @param priority priority
* @return result and msg code
*/
public TaskGroupQueue insertIntoTaskGroupQueue(Integer taskId,
String taskName, Integer groupId,
Integer processId, Integer priority, TaskGroupQueueStatus status) {
TaskGroupQueue taskGroupQueue = new TaskGroupQueue(taskId, taskName, groupId, processId, priority, status);
taskGroupQueue.setCreateTime(new Date());
taskGroupQueue.setUpdateTime(new Date());
taskGroupQueueMapper.insert(taskGroupQueue);
return taskGroupQueue;
}
public int updateTaskGroupQueueStatus(Integer taskId, int status) {
return taskGroupQueueMapper.updateStatusByTaskId(taskId, status);
}
public int updateTaskGroupQueue(TaskGroupQueue taskGroupQueue) {
return taskGroupQueueMapper.updateById(taskGroupQueue);
}
public TaskGroupQueue loadTaskGroupQueue(int taskId) {
return this.taskGroupQueueMapper.queryByTaskId(taskId);
}
public void sendStartTask2Master(ProcessInstance processInstance,int taskId,
org.apache.dolphinscheduler.remote.command.CommandType taskType) {
String host = processInstance.getHost();
String address = host.split(":")[0];
int port = Integer.parseInt(host.split(":")[1]);
TaskEventChangeCommand taskEventChangeCommand = new TaskEventChangeCommand(
processInstance.getId(), taskId
);
stateEventCallbackService.sendResult(address, port, taskEventChangeCommand.convert2Command(taskType));
}
public ProcessInstance loadNextProcess4Serial(long code, int state) {
return this.processInstanceMapper.loadNextProcess4Serial(code, state);
}
private void deleteCommandWithCheck(int commandId) {
int delete = this.commandMapper.deleteById(commandId);
if (delete != 1) {
throw new ServiceException("delete command fail, id:" + commandId);
}
}
}
|
closed
|
apache/dolphinscheduler
|
https://github.com/apache/dolphinscheduler
| 8,982 |
[Bug][UI Next][V1.0.0-Alpha] The state column of task instance table displays error.
|
### Search before asking
- [X] I had searched in the [issues](https://github.com/apache/dolphinscheduler/issues?q=is%3Aissue) and found no similar issues.
### What happened
The state column of task instance table displays error.
### What you expected to happen
Same as the old ui.
### How to reproduce
1. Open the task instance page.
### Anything else
_No response_
### Version
dev
### Are you willing to submit PR?
- [X] Yes I am willing to submit a PR!
### Code of Conduct
- [X] I agree to follow this project's [Code of Conduct](https://www.apache.org/foundation/policies/conduct)
|
https://github.com/apache/dolphinscheduler/issues/8982
|
https://github.com/apache/dolphinscheduler/pull/8987
|
a93033b62051c5cd0c509c6d856c3a75697da6ae
|
85b2352abf868f55bdc3f38e33374c0ae927d535
| 2022-03-18T06:30:53Z |
java
| 2022-03-18T13:10:18Z |
dolphinscheduler-ui-next/src/service/modules/process-instances/types.ts
|
/*
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership.
* The ASF licenses this file to You under the Apache License, Version 2.0
* (the "License"); you may not use this file except in compliance with
* the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
interface CodeReq {
projectCode: number
}
interface ProcessInstanceListReq {
pageNo: number
pageSize: number
endDate?: string
executorName?: string
host?: string
processDefineCode?: number
processDefiniteCode?: string
searchVal?: string
startDate?: string
stateType?: string
}
interface BatchDeleteReq {
processInstanceIds: string
projectName?: string
alertGroup?: string
createTime?: string
email?: string
id?: number
phone?: string
queue?: string
queueName?: string
state?: number
tenantCode?: string
tenantId?: number
updateTime?: string
userName?: string
userPassword?: string
userType?: string
}
interface SubIdReq {
subId: number
}
interface TaskReq {
taskCode: string
taskId: number
}
interface LongestReq {
endTime: string
size: number
startTime: string
}
interface IdReq {
id: number
}
interface ProcessInstanceReq {
syncDefine: boolean
flag?: string
globalParams?: string
locations?: string
scheduleTime?: string
taskDefinitionJson?: string
taskRelationJson?: string
tenantCode?: string
timeout?: number
}
interface IWorkflowInstance {
id: number
name: string
state: string
commandType: string
scheduleTime?: string
processDefinitionCode?: number
startTime: string
endTime: string
duration?: string
runTimes: number
recovery: string
dryRun: number
executorName: string
host: string
count?: number
disabled?: boolean
buttonType?: string
}
export {
CodeReq,
ProcessInstanceListReq,
BatchDeleteReq,
SubIdReq,
TaskReq,
LongestReq,
IdReq,
ProcessInstanceReq,
IWorkflowInstance
}
|
closed
|
apache/dolphinscheduler
|
https://github.com/apache/dolphinscheduler
| 8,982 |
[Bug][UI Next][V1.0.0-Alpha] The state column of task instance table displays error.
|
### Search before asking
- [X] I had searched in the [issues](https://github.com/apache/dolphinscheduler/issues?q=is%3Aissue) and found no similar issues.
### What happened
The state column of task instance table displays error.
### What you expected to happen
Same as the old ui.
### How to reproduce
1. Open the task instance page.
### Anything else
_No response_
### Version
dev
### Are you willing to submit PR?
- [X] Yes I am willing to submit a PR!
### Code of Conduct
- [X] I agree to follow this project's [Code of Conduct](https://www.apache.org/foundation/policies/conduct)
|
https://github.com/apache/dolphinscheduler/issues/8982
|
https://github.com/apache/dolphinscheduler/pull/8987
|
a93033b62051c5cd0c509c6d856c3a75697da6ae
|
85b2352abf868f55bdc3f38e33374c0ae927d535
| 2022-03-18T06:30:53Z |
java
| 2022-03-18T13:10:18Z |
dolphinscheduler-ui-next/src/utils/common.ts
|
/*
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership.
* The ASF licenses this file to You under the Apache License, Version 2.0
* (the "License"); you may not use this file except in compliance with
* the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
import {
SettingFilled,
SettingOutlined,
CloseCircleOutlined,
PauseCircleOutlined,
CheckCircleOutlined,
EditOutlined,
MinusCircleOutlined,
CheckCircleFilled,
LoadingOutlined,
PauseCircleFilled,
ClockCircleOutlined,
StopFilled,
StopOutlined,
GlobalOutlined,
IssuesCloseOutlined
} from '@vicons/antd'
import { parseISO } from 'date-fns'
import _ from 'lodash'
import { ITaskState } from './types'
/**
* Intelligent display kb m
*/
export const bytesToSize = (bytes: number) => {
if (bytes === 0) return '0 B'
const k = 1024 // or 1024
const sizes = ['B', 'KB', 'MB', 'GB', 'TB', 'PB', 'EB', 'ZB', 'YB']
const i = Math.floor(Math.log(bytes) / Math.log(k))
return parseInt((bytes / Math.pow(k, i)).toPrecision(3)) + ' ' + sizes[i]
}
export const fileTypeArr = [
'txt',
'log',
'sh',
'bat',
'conf',
'cfg',
'py',
'java',
'sql',
'xml',
'hql',
'properties',
'json',
'yml',
'yaml',
'ini',
'js'
]
/**
* Operation type
* @desc tooltip
* @code identifier
*/
export const runningType = (t: any) => [
{
desc: `${t('project.workflow.start_process')}`,
code: 'START_PROCESS'
},
{
desc: `${t('project.workflow.execute_from_the_current_node')}`,
code: 'START_CURRENT_TASK_PROCESS'
},
{
desc: `${t('project.workflow.recover_tolerance_fault_process')}`,
code: 'RECOVER_TOLERANCE_FAULT_PROCESS'
},
{
desc: `${t('project.workflow.resume_the_suspension_process')}`,
code: 'RECOVER_SUSPENDED_PROCESS'
},
{
desc: `${t('project.workflow.execute_from_the_failed_nodes')}`,
code: 'START_FAILURE_TASK_PROCESS'
},
{
desc: `${t('project.workflow.complement_data')}`,
code: 'COMPLEMENT_DATA'
},
{
desc: `${t('project.workflow.scheduling_execution')}`,
code: 'SCHEDULER'
},
{
desc: `${t('project.workflow.rerun')}`,
code: 'REPEAT_RUNNING'
},
{
desc: `${t('project.workflow.pause')}`,
code: 'PAUSE'
},
{
desc: `${t('project.workflow.stop')}`,
code: 'STOP'
},
{
desc: `${t('project.workflow.recovery_waiting_thread')}`,
code: 'RECOVER_WAITING_THREAD'
},
{
desc: `${t('project.workflow.recover_serial_wait')}`,
code: 'RECOVER_SERIAL_WAIT'
}
]
/**
* State code table
*/
export const stateType = (t: any) => [
{
value: '',
label: `${t('project.workflow.all_status')}`
},
{
value: 'SUBMITTED_SUCCESS',
label: `${t('project.workflow.submit_success')}`
},
{
value: 'RUNNING_EXECUTION',
label: `${t('project.workflow.running')}`
},
{
value: 'READY_PAUSE',
label: `${t('project.workflow.ready_to_pause')}`
},
{
value: 'PAUSE',
label: `${t('project.workflow.pause')}`
},
{
value: 'READY_STOP',
label: `${t('project.workflow.ready_to_stop')}`
},
{
value: 'STOP',
label: `${t('project.workflow.stop')}`
},
{
value: 'FAILURE',
label: `${t('project.workflow.failed')}`
},
{
value: 'SUCCESS',
label: `${t('project.workflow.success')}`
},
{
value: 'NEED_FAULT_TOLERANCE',
label: `${t('project.workflow.need_fault_tolerance')}`
},
{
value: 'KILL',
label: `${t('project.workflow.kill')}`
},
{
value: 'WAITING_THREAD',
label: `${t('project.workflow.waiting_for_thread')}`
},
{
value: 'WAITING_DEPEND',
label: `${t('project.workflow.waiting_for_dependency_to_complete')}`
},
{
value: 'DELAY_EXECUTION',
label: `${t('project.workflow.delay_execution')}`
},
{
value: 'FORCED_SUCCESS',
label: `${t('project.workflow.forced_success')}`
},
{
value: 'SERIAL_WAIT',
label: `${t('project.workflow.serial_wait')}`
}
]
/**
* Task status
* @id id
* @desc tooltip
* @color color
* @icon icon
* @isSpin is loading (Need to execute the code block to write if judgment)
*/
// TODO: Looking for a more suitable icon
export const tasksState = (t: any): ITaskState => ({
SUBMITTED_SUCCESS: {
id: 0,
desc: `${t('project.workflow.submit_success')}`,
color: '#A9A9A9',
icon: IssuesCloseOutlined,
isSpin: false,
classNames: 'submitted'
},
RUNNING_EXECUTION: {
id: 1,
desc: `${t('project.workflow.executing')}`,
color: '#0097e0',
icon: SettingFilled,
isSpin: true,
classNames: 'executing'
},
READY_PAUSE: {
id: 2,
desc: `${t('project.workflow.ready_to_pause')}`,
color: '#07b1a3',
icon: SettingOutlined,
isSpin: false,
classNames: 'submitted'
},
PAUSE: {
id: 3,
desc: `${t('project.workflow.pause')}`,
color: '#057c72',
icon: PauseCircleOutlined,
isSpin: false,
classNames: 'pause'
},
READY_STOP: {
id: 4,
desc: `${t('project.workflow.ready_to_stop')}`,
color: '#FE0402',
icon: StopFilled,
isSpin: false
},
STOP: {
id: 5,
desc: `${t('project.workflow.stop')}`,
color: '#e90101',
icon: StopOutlined,
isSpin: false
},
FAILURE: {
id: 6,
desc: `${t('project.workflow.failed')}`,
color: '#000000',
icon: CloseCircleOutlined,
isSpin: false,
classNames: 'failed'
},
SUCCESS: {
id: 7,
desc: `${t('project.workflow.success')}`,
color: '#95DF96',
icon: CheckCircleOutlined,
isSpin: false,
classNames: 'success'
},
NEED_FAULT_TOLERANCE: {
id: 8,
desc: `${t('project.workflow.need_fault_tolerance')}`,
color: '#FF8C00',
icon: EditOutlined,
isSpin: false
},
KILL: {
id: 9,
desc: `${t('project.workflow.kill')}`,
color: '#a70202',
icon: MinusCircleOutlined,
isSpin: false
},
WAITING_THREAD: {
id: 10,
desc: `${t('project.workflow.waiting_for_thread')}`,
color: '#912eed',
icon: ClockCircleOutlined,
isSpin: false
},
WAITING_DEPEND: {
id: 11,
desc: `${t('project.workflow.waiting_for_dependence')}`,
color: '#5101be',
icon: GlobalOutlined,
isSpin: false
},
DELAY_EXECUTION: {
id: 12,
desc: `${t('project.workflow.delay_execution')}`,
color: '#5102ce',
icon: PauseCircleFilled,
isSpin: false
},
FORCED_SUCCESS: {
id: 13,
desc: `${t('project.workflow.forced_success')}`,
color: '#5102ce',
icon: CheckCircleFilled,
isSpin: false
},
SERIAL_WAIT: {
id: 14,
desc: `${t('project.workflow.serial_wait')}`,
color: '#5102ce',
icon: LoadingOutlined,
isSpin: false
}
})
/**
* A simple uuid generator, support prefix and template pattern.
*
* @example
*
* uuid('v-') // -> v-xxx
* uuid('v-ani-%{s}-translate') // -> v-ani-xxx
*/
export function uuid(prefix: string) {
const id = Math.floor(Math.random() * 10000).toString(36)
return prefix
? ~prefix.indexOf('%{s}')
? prefix.replace(/%\{s\}/g, id)
: prefix + id
: id
}
export const warningTypeList = [
{
id: 'NONE',
code: 'project.workflow.none_send'
},
{
id: 'SUCCESS',
code: 'project.workflow.success_send'
},
{
id: 'FAILURE',
code: 'project.workflow.failure_send'
},
{
id: 'ALL',
code: 'project.workflow.all_send'
}
]
export const parseTime = (dateTime: string | number) => {
if (_.isString(dateTime) === true) {
return parseISO(dateTime as string)
} else {
return new Date(dateTime)
}
}
|
closed
|
apache/dolphinscheduler
|
https://github.com/apache/dolphinscheduler
| 8,982 |
[Bug][UI Next][V1.0.0-Alpha] The state column of task instance table displays error.
|
### Search before asking
- [X] I had searched in the [issues](https://github.com/apache/dolphinscheduler/issues?q=is%3Aissue) and found no similar issues.
### What happened
The state column of task instance table displays error.
### What you expected to happen
Same as the old ui.
### How to reproduce
1. Open the task instance page.
### Anything else
_No response_
### Version
dev
### Are you willing to submit PR?
- [X] Yes I am willing to submit a PR!
### Code of Conduct
- [X] I agree to follow this project's [Code of Conduct](https://www.apache.org/foundation/policies/conduct)
|
https://github.com/apache/dolphinscheduler/issues/8982
|
https://github.com/apache/dolphinscheduler/pull/8987
|
a93033b62051c5cd0c509c6d856c3a75697da6ae
|
85b2352abf868f55bdc3f38e33374c0ae927d535
| 2022-03-18T06:30:53Z |
java
| 2022-03-18T13:10:18Z |
dolphinscheduler-ui-next/src/utils/types.ts
|
/*
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership.
* The ASF licenses this file to You under the Apache License, Version 2.0
* (the "License"); you may not use this file except in compliance with
* the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
interface ITaskState {
[key: string]: any
}
export { ITaskState }
|
closed
|
apache/dolphinscheduler
|
https://github.com/apache/dolphinscheduler
| 8,982 |
[Bug][UI Next][V1.0.0-Alpha] The state column of task instance table displays error.
|
### Search before asking
- [X] I had searched in the [issues](https://github.com/apache/dolphinscheduler/issues?q=is%3Aissue) and found no similar issues.
### What happened
The state column of task instance table displays error.
### What you expected to happen
Same as the old ui.
### How to reproduce
1. Open the task instance page.
### Anything else
_No response_
### Version
dev
### Are you willing to submit PR?
- [X] Yes I am willing to submit a PR!
### Code of Conduct
- [X] I agree to follow this project's [Code of Conduct](https://www.apache.org/foundation/policies/conduct)
|
https://github.com/apache/dolphinscheduler/issues/8982
|
https://github.com/apache/dolphinscheduler/pull/8987
|
a93033b62051c5cd0c509c6d856c3a75697da6ae
|
85b2352abf868f55bdc3f38e33374c0ae927d535
| 2022-03-18T06:30:53Z |
java
| 2022-03-18T13:10:18Z |
dolphinscheduler-ui-next/src/views/projects/task/instance/types.ts
| |
closed
|
apache/dolphinscheduler
|
https://github.com/apache/dolphinscheduler
| 8,982 |
[Bug][UI Next][V1.0.0-Alpha] The state column of task instance table displays error.
|
### Search before asking
- [X] I had searched in the [issues](https://github.com/apache/dolphinscheduler/issues?q=is%3Aissue) and found no similar issues.
### What happened
The state column of task instance table displays error.
### What you expected to happen
Same as the old ui.
### How to reproduce
1. Open the task instance page.
### Anything else
_No response_
### Version
dev
### Are you willing to submit PR?
- [X] Yes I am willing to submit a PR!
### Code of Conduct
- [X] I agree to follow this project's [Code of Conduct](https://www.apache.org/foundation/policies/conduct)
|
https://github.com/apache/dolphinscheduler/issues/8982
|
https://github.com/apache/dolphinscheduler/pull/8987
|
a93033b62051c5cd0c509c6d856c3a75697da6ae
|
85b2352abf868f55bdc3f38e33374c0ae927d535
| 2022-03-18T06:30:53Z |
java
| 2022-03-18T13:10:18Z |
dolphinscheduler-ui-next/src/views/projects/task/instance/use-table.ts
|
/*
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership.
* The ASF licenses this file to You under the Apache License, Version 2.0
* (the "License"); you may not use this file except in compliance with
* the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
import { useI18n } from 'vue-i18n'
import { h, reactive, ref } from 'vue'
import { useAsyncState } from '@vueuse/core'
import {
queryTaskListPaging,
forceSuccess,
downloadLog
} from '@/service/modules/task-instances'
import { NButton, NIcon, NSpace, NTooltip } from 'naive-ui'
import ButtonLink from '@/components/button-link'
import {
AlignLeftOutlined,
CheckCircleOutlined,
DownloadOutlined
} from '@vicons/antd'
import { format } from 'date-fns'
import { useRoute, useRouter } from 'vue-router'
import { parseTime } from '@/utils/common'
import type { Router } from 'vue-router'
import type { TaskInstancesRes } from '@/service/modules/task-instances/types'
export function useTable() {
const { t } = useI18n()
const route = useRoute()
const router: Router = useRouter()
const projectCode = Number(route.params.projectCode)
const processInstanceId = Number(route.params.processInstanceId)
const variables = reactive({
columns: [],
tableData: [],
page: ref(1),
pageSize: ref(10),
searchVal: ref(null),
processInstanceId: ref(processInstanceId ? processInstanceId : null),
host: ref(null),
stateType: ref(null),
datePickerRange: ref(null),
executorName: ref(null),
processInstanceName: ref(null),
totalPage: ref(1),
showModalRef: ref(false),
row: {}
})
const createColumns = (variables: any) => {
variables.columns = [
{
title: '#',
key: 'index',
render: (row: any, index: number) => index + 1
},
{
title: t('project.task.task_name'),
key: 'name'
},
{
title: t('project.task.workflow_instance'),
key: 'processInstanceName',
width: 250,
render: (row: {
processInstanceId: number
processInstanceName: string
}) =>
h(
ButtonLink,
{
onClick: () =>
void router.push({
name: 'workflow-instance-detail',
params: { id: row.processInstanceId },
query: { code: projectCode }
})
},
{ default: () => row.processInstanceName }
)
},
{
title: t('project.task.executor'),
key: 'executorName'
},
{
title: t('project.task.node_type'),
key: 'taskType'
},
{
title: t('project.task.state'),
key: 'state'
},
{
title: t('project.task.submit_time'),
key: 'submitTime',
width: 170
},
{
title: t('project.task.start_time'),
key: 'startTime',
width: 170
},
{
title: t('project.task.end_time'),
key: 'endTime',
width: 170
},
{
title: t('project.task.duration'),
key: 'duration',
render: (row: any) => h('span', null, row.duration ? row.duration : '-')
},
{
title: t('project.task.retry_count'),
key: 'retryTimes'
},
{
title: t('project.task.dry_run_flag'),
key: 'dryRun'
},
{
title: t('project.task.host'),
key: 'host',
width: 160
},
{
title: t('project.task.operation'),
key: 'operation',
width: 150,
render(row: any) {
return h(NSpace, null, {
default: () => [
h(
NTooltip,
{},
{
trigger: () =>
h(
NButton,
{
circle: true,
type: 'info',
size: 'small',
disabled: !(
row.state === 'FAILURE' ||
row.state === 'NEED_FAULT_TOLERANCE' ||
row.state === 'KILL'
),
onClick: () => {
handleForcedSuccess(row)
}
},
{
icon: () =>
h(NIcon, null, {
default: () => h(CheckCircleOutlined)
})
}
),
default: () => t('project.task.forced_success')
}
),
h(
NTooltip,
{},
{
trigger: () =>
h(
NButton,
{
circle: true,
type: 'info',
size: 'small',
onClick: () => handleLog(row)
},
{
icon: () =>
h(NIcon, null, {
default: () => h(AlignLeftOutlined)
})
}
),
default: () => t('project.task.view_log')
}
),
h(
NTooltip,
{},
{
trigger: () =>
h(
NButton,
{
circle: true,
type: 'info',
size: 'small',
onClick: () => downloadLog(row.id)
},
{
icon: () =>
h(NIcon, null, { default: () => h(DownloadOutlined) })
}
),
default: () => t('project.task.download_log')
}
)
]
})
}
}
]
}
const handleLog = (row: any) => {
variables.showModalRef = true
variables.row = row
}
const handleForcedSuccess = (row: any) => {
forceSuccess({ id: row.id }, { projectCode }).then(() => {
getTableData({
pageSize: variables.pageSize,
pageNo:
variables.tableData.length === 1 && variables.page > 1
? variables.page - 1
: variables.page,
searchVal: variables.searchVal,
processInstanceId: variables.processInstanceId,
host: variables.host,
stateType: variables.stateType,
datePickerRange: variables.datePickerRange,
executorName: variables.executorName,
processInstanceName: variables.processInstanceName
})
})
}
const getTableData = (params: any) => {
const data = {
pageSize: params.pageSize,
pageNo: params.pageNo,
searchVal: params.searchVal,
processInstanceId: params.processInstanceId,
host: params.host,
stateType: params.stateType,
startDate: params.datePickerRange
? format(parseTime(params.datePickerRange[0]), 'yyyy-MM-dd HH:mm:ss')
: '',
endDate: params.datePickerRange
? format(parseTime(params.datePickerRange[1]), 'yyyy-MM-dd HH:mm:ss')
: '',
executorName: params.executorName,
processInstanceName: params.processInstanceName
}
const { state } = useAsyncState(
queryTaskListPaging(data, { projectCode }).then(
(res: TaskInstancesRes) => {
variables.tableData = res.totalList.map((item, unused) => {
item.submitTime = format(
parseTime(item.submitTime),
'yyyy-MM-dd HH:mm:ss'
)
item.startTime = format(
parseTime(item.startTime),
'yyyy-MM-dd HH:mm:ss'
)
item.endTime = format(
parseTime(item.endTime),
'yyyy-MM-dd HH:mm:ss'
)
return {
...item
}
}) as any
variables.totalPage = res.totalPage
}
),
{}
)
return state
}
return {
t,
variables,
getTableData,
createColumns
}
}
|
closed
|
apache/dolphinscheduler
|
https://github.com/apache/dolphinscheduler
| 8,982 |
[Bug][UI Next][V1.0.0-Alpha] The state column of task instance table displays error.
|
### Search before asking
- [X] I had searched in the [issues](https://github.com/apache/dolphinscheduler/issues?q=is%3Aissue) and found no similar issues.
### What happened
The state column of task instance table displays error.
### What you expected to happen
Same as the old ui.
### How to reproduce
1. Open the task instance page.
### Anything else
_No response_
### Version
dev
### Are you willing to submit PR?
- [X] Yes I am willing to submit a PR!
### Code of Conduct
- [X] I agree to follow this project's [Code of Conduct](https://www.apache.org/foundation/policies/conduct)
|
https://github.com/apache/dolphinscheduler/issues/8982
|
https://github.com/apache/dolphinscheduler/pull/8987
|
a93033b62051c5cd0c509c6d856c3a75697da6ae
|
85b2352abf868f55bdc3f38e33374c0ae927d535
| 2022-03-18T06:30:53Z |
java
| 2022-03-18T13:10:18Z |
dolphinscheduler-ui-next/src/views/projects/workflow/components/dag/types.ts
|
/*
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership.
* The ASF licenses this file to You under the Apache License, Version 2.0
* (the "License"); you may not use this file except in compliance with
* the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
import { TaskType } from '@/views/projects/task/constants/task-type'
export interface ProcessDefinition {
id: number
code: number
name: string
version: number
releaseState: string
projectCode: number
description: string
globalParams: string
globalParamList: any[]
globalParamMap: any
createTime: string
updateTime: string
flag: string
userId: number
userName?: any
projectName?: any
locations: string
scheduleReleaseState?: any
timeout: number
tenantId: number
tenantCode: string
modifyBy?: any
warningGroupId: number
}
export interface Connect {
id?: number
name: string
processDefinitionVersion?: number
projectCode?: number
processDefinitionCode?: number
preTaskCode: number
preTaskVersion: number
postTaskCode: number
postTaskVersion: number
conditionType: string
conditionParams: any
createTime?: string
updateTime?: string
}
export interface TaskDefinition {
id: number
code: number
name: string
version: number
description: string
projectCode: any
userId: number
taskType: TaskType
taskParams: any
taskParamList: any[]
taskParamMap: any
flag: string
taskPriority: string
userName: any
projectName?: any
workerGroup: string
environmentCode: number
failRetryTimes: number
failRetryInterval: number
timeoutFlag: 'OPEN' | 'CLOSE'
timeoutNotifyStrategy: string
timeout: number
delayTime: number
resourceIds: string
createTime: string
updateTime: string
modifyBy: any
dependence: string
}
export type NodeData = {
code: number
taskType: TaskType
name: string
} & Partial<TaskDefinition>
export interface WorkflowDefinition {
processDefinition: ProcessDefinition
processTaskRelationList: Connect[]
taskDefinitionList: TaskDefinition[]
}
export interface WorkflowInstance {
name: string
state: string
dagData: WorkflowDefinition
commandType: string
commandParam: string
failureStrategy: string
processInstancePriority: string
workerGroup: string
warningType: string
warningGroupId: number
}
export interface EditWorkflowDefinition {
processDefinition: ProcessDefinition
processTaskRelationList: Connect[]
taskDefinitionList: NodeData[]
}
export interface Dragged {
x: number
y: number
type: TaskType
}
export interface Coordinate {
x: number
y: number
}
export interface GlobalParam {
key: string
value: string
}
export interface SaveForm {
name: string
description: string
tenantCode: string
timeoutFlag: boolean
timeout: number
globalParams: GlobalParam[]
release: boolean
sync: boolean
}
export interface Location {
taskCode: number
x: number
y: number
}
export interface IStartupParam {
commandType: string
commandParam: string
failureStrategy: string
processInstancePriority: string
workerGroup: string
warningType: string
warningGroupId: number
}
export interface IWorkflowTaskInstance {
id: number
taskCode: number
taskType: string
}
|
closed
|
apache/dolphinscheduler
|
https://github.com/apache/dolphinscheduler
| 8,982 |
[Bug][UI Next][V1.0.0-Alpha] The state column of task instance table displays error.
|
### Search before asking
- [X] I had searched in the [issues](https://github.com/apache/dolphinscheduler/issues?q=is%3Aissue) and found no similar issues.
### What happened
The state column of task instance table displays error.
### What you expected to happen
Same as the old ui.
### How to reproduce
1. Open the task instance page.
### Anything else
_No response_
### Version
dev
### Are you willing to submit PR?
- [X] Yes I am willing to submit a PR!
### Code of Conduct
- [X] I agree to follow this project's [Code of Conduct](https://www.apache.org/foundation/policies/conduct)
|
https://github.com/apache/dolphinscheduler/issues/8982
|
https://github.com/apache/dolphinscheduler/pull/8987
|
a93033b62051c5cd0c509c6d856c3a75697da6ae
|
85b2352abf868f55bdc3f38e33374c0ae927d535
| 2022-03-18T06:30:53Z |
java
| 2022-03-18T13:10:18Z |
dolphinscheduler-ui-next/src/views/projects/workflow/components/dag/use-node-status.ts
|
/*
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership.
* The ASF licenses this file to You under the Apache License, Version 2.0
* (the "License"); you may not use this file except in compliance with
* the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
import type { Ref } from 'vue'
import { render, h, ref } from 'vue'
import { useRoute } from 'vue-router'
import { useI18n } from 'vue-i18n'
import type { Graph } from '@antv/x6'
import { tasksState } from '@/utils/common'
import { NODE, NODE_STATUS_MARKUP } from './dag-config'
import { queryTaskListByProcessId } from '@/service/modules/process-instances'
import NodeStatus from '@/views/projects/workflow/components/dag/dag-node-status'
import { IWorkflowTaskInstance } from './types'
interface Options {
graph: Ref<Graph | undefined>
}
/**
* Node status and tooltip
*/
export function useNodeStatus(options: Options) {
const { graph } = options
const route = useRoute()
const taskList = ref<Array<IWorkflowTaskInstance>>([])
const { t } = useI18n()
const setNodeStatus = (code: string, state: string, taskInstance: any) => {
const stateProps = tasksState(t)[state]
const node = graph.value?.getCellById(code)
if (node) {
// Destroy the previous dom
node.removeMarkup()
node.setMarkup(NODE.markup.concat(NODE_STATUS_MARKUP))
const nodeView = graph.value?.findViewByCell(node)
const el = nodeView?.find('div')[0]
const a = h(NodeStatus, {
t,
taskInstance,
stateProps
})
render(a, el as HTMLElement)
}
}
/**
* Task status
*/
const refreshTaskStatus = () => {
const projectCode = Number(route.params.projectCode)
const instanceId = Number(route.params.id)
queryTaskListByProcessId(instanceId, projectCode).then((res: any) => {
window.$message.success(t('project.workflow.refresh_status_succeeded'))
taskList.value = res.taskList
if (taskList.value) {
taskList.value.forEach((taskInstance: any) => {
setNodeStatus(taskInstance.taskCode, taskInstance.state, taskInstance)
})
}
})
}
return {
taskList,
refreshTaskStatus
}
}
|
closed
|
apache/dolphinscheduler
|
https://github.com/apache/dolphinscheduler
| 8,982 |
[Bug][UI Next][V1.0.0-Alpha] The state column of task instance table displays error.
|
### Search before asking
- [X] I had searched in the [issues](https://github.com/apache/dolphinscheduler/issues?q=is%3Aissue) and found no similar issues.
### What happened
The state column of task instance table displays error.
### What you expected to happen
Same as the old ui.
### How to reproduce
1. Open the task instance page.
### Anything else
_No response_
### Version
dev
### Are you willing to submit PR?
- [X] Yes I am willing to submit a PR!
### Code of Conduct
- [X] I agree to follow this project's [Code of Conduct](https://www.apache.org/foundation/policies/conduct)
|
https://github.com/apache/dolphinscheduler/issues/8982
|
https://github.com/apache/dolphinscheduler/pull/8987
|
a93033b62051c5cd0c509c6d856c3a75697da6ae
|
85b2352abf868f55bdc3f38e33374c0ae927d535
| 2022-03-18T06:30:53Z |
java
| 2022-03-18T13:10:18Z |
dolphinscheduler-ui-next/src/views/projects/workflow/instance/gantt/components/gantt-chart.tsx
|
/*
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership.
* The ASF licenses this file to You under the Apache License, Version 2.0
* (the "License"); you may not use this file except in compliance with
* the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
import { defineComponent, ref, PropType } from 'vue'
import * as echarts from 'echarts'
import type { Ref } from 'vue'
import { useI18n } from 'vue-i18n'
import initChart from '@/components/chart'
import { tasksState } from '@/utils/common'
import { format } from 'date-fns'
import { parseTime } from '@/utils/common'
import { ISeriesData } from '../type'
const props = {
height: {
type: [String, Number] as PropType<string | number>,
default: window.innerHeight - 174
},
width: {
type: [String, Number] as PropType<string | number>,
default: '100%'
},
seriesData: {
type: Array as PropType<Array<any>>,
default: () => []
},
taskList: {
type: Array as PropType<Array<string>>,
default: []
}
}
const GanttChart = defineComponent({
name: 'GanttChart',
props,
setup(props) {
const graphChartRef: Ref<HTMLDivElement | null> = ref(null)
const { t } = useI18n()
const state = tasksState(t)
const data: ISeriesData = {}
Object.keys(state).forEach((key) => (data[key] = []))
const series = Object.keys(state).map((key) => ({
id: key,
type: 'custom',
name: state[key].desc,
renderItem: renderItem,
itemStyle: {
opacity: 0.8,
color: state[key].color,
color0: state[key].color
},
encode: {
x: [1, 2],
y: 0
},
data: data[key]
}))
// format series data
let minTime = Number(new Date())
props.seriesData.forEach(function (task, index) {
minTime = minTime < task.startDate[0] ? minTime : task.startDate[0]
data[task.status].push({
name: task.name,
value: [
index,
task.startDate[0],
task.endDate[0],
task.endDate[0] - task.startDate[0]
],
itemStyle: {
color: state[task.status].color
}
})
})
// customer render
function renderItem(params: any, api: any) {
const taskIndex = api.value(0)
const start = api.coord([api.value(1), taskIndex])
const end = api.coord([api.value(2), taskIndex])
const height = api.size([0, 1])[1] * 0.6
const rectShape = echarts.graphic.clipRectByRect(
{
x: start[0],
y: start[1] - height / 2,
width: end[0] - start[0],
height: height
},
{
x: params.coordSys.x,
y: params.coordSys.y,
width: params.coordSys.width,
height: params.coordSys.height
}
)
return (
rectShape && {
type: 'rect',
transition: ['shape'],
shape: rectShape,
style: api.style()
}
)
}
const option = {
title: {
text: t('project.workflow.task_state'),
textStyle: {
fontWeight: 'normal',
fontSize: 14
},
left: 50
},
tooltip: {
formatter: function (params: any) {
const taskName = params.data.name
const data = props.seriesData.filter(
(item) => item.taskName === taskName
)
let str = `taskName : ${taskName}</br>`
str += `status : ${state[data[0].status].desc} (${
data[0].status
})</br>`
str += `startTime : ${data[0].isoStart}</br>`
str += `endTime : ${data[0].isoEnd}</br>`
str += `duration : ${data[0].duration}</br>`
return str
}
},
legend: {
left: 150,
padding: [5, 5, 5, 5]
},
dataZoom: [
{
type: 'slider',
filterMode: 'weakFilter',
showDataShadow: false,
top:
props.taskList.length * 100 > 200
? props.taskList.length * 100
: 200,
labelFormatter: ''
},
{
type: 'inside',
filterMode: 'weakFilter'
}
],
grid: {
height: props.taskList.length * 50,
top: 80
},
xAxis: {
min: minTime,
scale: true,
position: 'top',
axisTick: { show: true },
splitLine: { show: false },
axisLabel: {
formatter: function (val: number) {
return format(parseTime(val), 'HH:mm:ss')
}
}
},
yAxis: {
axisTick: { show: false },
splitLine: { show: false },
axisLine: { show: false },
max: props.taskList.length,
data: props.taskList
},
series: series
}
initChart(graphChartRef, option)
return { graphChartRef }
},
render() {
const { height, width } = this
return (
<div
ref='graphChartRef'
style={{
height: typeof height === 'number' ? height + 'px' : height,
width: typeof width === 'number' ? width + 'px' : width
}}
/>
)
}
})
export default GanttChart
|
closed
|
apache/dolphinscheduler
|
https://github.com/apache/dolphinscheduler
| 8,982 |
[Bug][UI Next][V1.0.0-Alpha] The state column of task instance table displays error.
|
### Search before asking
- [X] I had searched in the [issues](https://github.com/apache/dolphinscheduler/issues?q=is%3Aissue) and found no similar issues.
### What happened
The state column of task instance table displays error.
### What you expected to happen
Same as the old ui.
### How to reproduce
1. Open the task instance page.
### Anything else
_No response_
### Version
dev
### Are you willing to submit PR?
- [X] Yes I am willing to submit a PR!
### Code of Conduct
- [X] I agree to follow this project's [Code of Conduct](https://www.apache.org/foundation/policies/conduct)
|
https://github.com/apache/dolphinscheduler/issues/8982
|
https://github.com/apache/dolphinscheduler/pull/8987
|
a93033b62051c5cd0c509c6d856c3a75697da6ae
|
85b2352abf868f55bdc3f38e33374c0ae927d535
| 2022-03-18T06:30:53Z |
java
| 2022-03-18T13:10:18Z |
dolphinscheduler-ui-next/src/views/projects/workflow/instance/gantt/type.ts
|
/*
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership.
* The ASF licenses this file to You under the Apache License, Version 2.0
* (the "License"); you may not use this file except in compliance with
* the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
interface ITask {
taskName: string
startDate: Array<number>
endDate: Array<number>
isoStart: string
isoEnd: string
status: string
duration: string
}
interface IGanttRes {
height: number
taskNames: Array<number>
taskStatus: Object
tasks: Array<ITask>
}
interface ISeriesData {
[taskState: string]: Array<any>
}
export { ITask, IGanttRes, ISeriesData }
|
closed
|
apache/dolphinscheduler
|
https://github.com/apache/dolphinscheduler
| 8,982 |
[Bug][UI Next][V1.0.0-Alpha] The state column of task instance table displays error.
|
### Search before asking
- [X] I had searched in the [issues](https://github.com/apache/dolphinscheduler/issues?q=is%3Aissue) and found no similar issues.
### What happened
The state column of task instance table displays error.
### What you expected to happen
Same as the old ui.
### How to reproduce
1. Open the task instance page.
### Anything else
_No response_
### Version
dev
### Are you willing to submit PR?
- [X] Yes I am willing to submit a PR!
### Code of Conduct
- [X] I agree to follow this project's [Code of Conduct](https://www.apache.org/foundation/policies/conduct)
|
https://github.com/apache/dolphinscheduler/issues/8982
|
https://github.com/apache/dolphinscheduler/pull/8987
|
a93033b62051c5cd0c509c6d856c3a75697da6ae
|
85b2352abf868f55bdc3f38e33374c0ae927d535
| 2022-03-18T06:30:53Z |
java
| 2022-03-18T13:10:18Z |
dolphinscheduler-ui-next/src/views/projects/workflow/instance/use-table.ts
|
/*
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership.
* The ASF licenses this file to You under the Apache License, Version 2.0
* (the "License"); you may not use this file except in compliance with
* the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
import _ from 'lodash'
import { format } from 'date-fns'
import { reactive, h, ref } from 'vue'
import { useI18n } from 'vue-i18n'
import { useRouter } from 'vue-router'
import type { Router } from 'vue-router'
import { NTooltip, NIcon, NSpin } from 'naive-ui'
import ButtonLink from '@/components/button-link'
import { RowKey } from 'naive-ui/lib/data-table/src/interface'
import {
queryProcessInstanceListPaging,
deleteProcessInstanceById,
batchDeleteProcessInstanceByIds
} from '@/service/modules/process-instances'
import { execute } from '@/service/modules/executors'
import TableAction from './components/table-action'
import { runningType, tasksState } from '@/utils/common'
import { IWorkflowInstance } from '@/service/modules/process-instances/types'
import { ICountDownParam } from './types'
import { ExecuteReq } from '@/service/modules/executors/types'
import { parseTime } from '@/utils/common'
import styles from './index.module.scss'
export function useTable() {
const { t } = useI18n()
const router: Router = useRouter()
const taskStateIcon = tasksState(t)
const variables = reactive({
columns: [],
checkedRowKeys: [] as Array<RowKey>,
tableData: [] as Array<IWorkflowInstance>,
page: ref(1),
pageSize: ref(10),
totalPage: ref(1),
searchVal: ref(),
executorName: ref(),
host: ref(),
stateType: ref(),
startDate: ref(),
endDate: ref(),
projectCode: ref(Number(router.currentRoute.value.params.projectCode))
})
const createColumns = (variables: any) => {
variables.columns = [
{
type: 'selection',
className: 'btn-selected'
},
{
title: '#',
key: 'id',
width: 50,
render: (rowData: any, rowIndex: number) => rowIndex + 1
},
{
title: t('project.workflow.workflow_name'),
key: 'name',
width: 200,
className: 'workflow-name',
render: (row: IWorkflowInstance) =>
h(
ButtonLink,
{
onClick: () =>
void router.push({
name: 'workflow-instance-detail',
params: { id: row.id },
query: { code: row.processDefinitionCode }
})
},
{ default: () => row.name }
)
},
{
title: t('project.workflow.status'),
key: 'state',
className: 'workflow-status',
render: (_row: IWorkflowInstance) => {
const stateIcon = taskStateIcon[_row.state]
const iconElement = h(
NIcon,
{
size: '18px',
style: 'position: relative; top: 7.5px; left: 7.5px',
class: stateIcon.classNames
},
{
default: () =>
h(stateIcon.icon, {
color: stateIcon.color
})
}
)
return h(
NTooltip,
{},
{
trigger: () => {
if (stateIcon.isSpin) {
return h(
NSpin,
{
small: 'small'
},
{
icon: () => iconElement
}
)
} else {
return iconElement
}
},
default: () => stateIcon!.desc
}
)
}
},
{
title: t('project.workflow.run_type'),
key: 'commandType',
className: 'workflow-run-type',
render: (_row: IWorkflowInstance) =>
(
_.filter(runningType(t), (v) => v.code === _row.commandType)[0] ||
{}
).desc
},
{
title: t('project.workflow.scheduling_time'),
key: 'scheduleTime',
render: (_row: IWorkflowInstance) =>
_row.scheduleTime
? format(parseTime(_row.scheduleTime), 'yyyy-MM-dd HH:mm:ss')
: '-'
},
{
title: t('project.workflow.start_time'),
key: 'startTime',
render: (_row: IWorkflowInstance) =>
_row.startTime
? format(parseTime(_row.startTime), 'yyyy-MM-dd HH:mm:ss')
: '-'
},
{
title: t('project.workflow.end_time'),
key: 'endTime',
render: (_row: IWorkflowInstance) =>
_row.endTime
? format(parseTime(_row.endTime), 'yyyy-MM-dd HH:mm:ss')
: '-'
},
{
title: t('project.workflow.duration'),
key: 'duration',
render: (_row: IWorkflowInstance) => _row.duration || '-'
},
{
title: t('project.workflow.run_times'),
key: 'runTimes',
className: 'workflow-run-times'
},
{
title: t('project.workflow.fault_tolerant_sign'),
key: 'recovery'
},
{
title: t('project.workflow.dry_run_flag'),
key: 'dryRun',
render: (_row: IWorkflowInstance) => (_row.dryRun === 1 ? 'YES' : 'NO')
},
{
title: t('project.workflow.executor'),
key: 'executorName'
},
{
title: t('project.workflow.host'),
key: 'host'
},
{
title: t('project.workflow.operation'),
key: 'operation',
width: 250,
fixed: 'right',
className: styles.operation,
render: (_row: IWorkflowInstance, index: number) =>
h(TableAction, {
row: _row,
onReRun: () =>
_countDownFn({
index,
processInstanceId: _row.id,
executeType: 'REPEAT_RUNNING',
buttonType: 'run'
}),
onReStore: () =>
_countDownFn({
index,
processInstanceId: _row.id,
executeType: 'START_FAILURE_TASK_PROCESS',
buttonType: 'store'
}),
onStop: () => {
if (_row.state === 'STOP') {
_countDownFn({
index,
processInstanceId: _row.id,
executeType: 'RECOVER_SUSPENDED_PROCESS',
buttonType: 'suspend'
})
} else {
_upExecutorsState({
processInstanceId: _row.id,
executeType: 'STOP'
})
}
},
onSuspend: () => {
if (_row.state === 'PAUSE') {
_countDownFn({
index,
processInstanceId: _row.id,
executeType: 'RECOVER_SUSPENDED_PROCESS',
buttonType: 'suspend'
})
} else {
_upExecutorsState({
processInstanceId: _row.id,
executeType: 'PAUSE'
})
}
},
onDeleteInstance: () => deleteInstance(_row.id)
})
}
]
}
const getTableData = () => {
const params = {
pageNo: variables.page,
pageSize: variables.pageSize,
searchVal: variables.searchVal,
executorName: variables.executorName,
host: variables.host,
stateType: variables.stateType,
startDate: variables.startDate,
endDate: variables.endDate
}
queryProcessInstanceListPaging({ ...params }, variables.projectCode).then(
(res: any) => {
variables.totalPage = res.totalPage
variables.tableData = res.totalList.map((item: any) => {
return { ...item }
})
}
)
}
const deleteInstance = (id: number) => {
deleteProcessInstanceById(id, variables.projectCode).then(() => {
window.$message.success(t('project.workflow.success'))
if (variables.tableData.length === 1 && variables.page > 1) {
variables.page -= 1
}
getTableData()
})
}
const batchDeleteInstance = () => {
const data = {
processInstanceIds: _.join(variables.checkedRowKeys, ',')
}
batchDeleteProcessInstanceByIds(data, variables.projectCode).then(() => {
window.$message.success(t('project.workflow.success'))
if (
variables.tableData.length === variables.checkedRowKeys.length &&
variables.page > 1
) {
variables.page -= 1
}
variables.checkedRowKeys = []
getTableData()
})
}
/**
* operating
*/
const _upExecutorsState = (param: ExecuteReq) => {
execute(param, variables.projectCode).then(() => {
window.$message.success(t('project.workflow.success'))
getTableData()
})
}
/**
* Countdown
*/
const _countDown = (fn: any, index: number) => {
const TIME_COUNT = 10
let timer: number | undefined
let $count: number
if (!timer) {
$count = TIME_COUNT
timer = setInterval(() => {
if ($count > 0 && $count <= TIME_COUNT) {
$count--
variables.tableData[index].count = $count
} else {
fn()
clearInterval(timer)
timer = undefined
}
}, 1000)
}
}
/**
* Countdown method refresh
*/
const _countDownFn = (param: ICountDownParam) => {
const { index } = param
variables.tableData[index].buttonType = param.buttonType
execute(param, variables.projectCode).then(() => {
variables.tableData[index].disabled = true
window.$message.success(t('project.workflow.success'))
_countDown(() => {
getTableData()
}, index)
})
}
return {
variables,
createColumns,
getTableData,
batchDeleteInstance
}
}
|
closed
|
apache/dolphinscheduler
|
https://github.com/apache/dolphinscheduler
| 8,965 |
[Bug-FE][UI Next][V1.0.0-Alpha] Task definition page table scale imbalance problem.
|
### Search before asking
- [X] I had searched in the [issues](https://github.com/apache/dolphinscheduler/issues?q=is%3Aissue) and found no similar issues.
### What happened
Page display ratio error
<img width="1920" alt="image" src="https://user-images.githubusercontent.com/76080484/158771315-21023658-4d0a-4bda-b3a5-1303a24f04c9.png">
### What you expected to happen
Wrong display ratio
### How to reproduce
Task Definition click
### Anything else
_No response_
### Version
dev
### Are you willing to submit PR?
- [ ] Yes I am willing to submit a PR!
### Code of Conduct
- [X] I agree to follow this project's [Code of Conduct](https://www.apache.org/foundation/policies/conduct)
|
https://github.com/apache/dolphinscheduler/issues/8965
|
https://github.com/apache/dolphinscheduler/pull/8992
|
85b2352abf868f55bdc3f38e33374c0ae927d535
|
1a7d88e84b76d0910f984490032d94b2e651cf83
| 2022-03-17T09:05:45Z |
java
| 2022-03-18T14:02:22Z |
dolphinscheduler-ui-next/src/components/card/index.tsx
|
/*
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership.
* The ASF licenses this file to You under the Apache License, Version 2.0
* (the "License"); you may not use this file except in compliance with
* the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
import {CSSProperties, defineComponent, PropType} from 'vue'
import { NCard } from 'naive-ui'
const headerStyle = {
borderBottom: '1px solid var(--n-border-color)'
}
const contentStyle = {
padding: '8px 10px'
}
const headerExtraStyle = {
}
const props = {
title: {
type: String as PropType<string>
},
headerStyle: {
type: String as PropType<string | CSSProperties>
},
headerExtraStyle: {
type: String as PropType<string | CSSProperties>
},
contentStyle: {
type: String as PropType<string | CSSProperties>
}
}
const Card = defineComponent({
name: 'Card',
props,
render() {
const { title, $slots } = this
return (
<NCard
title={title}
size='small'
headerStyle={this.headerStyle? this.headerStyle:headerStyle}
headerExtraStyle={this.headerExtraStyle? this.headerExtraStyle:headerExtraStyle}
contentStyle={this.contentStyle? this.contentStyle:contentStyle}
>
{$slots}
</NCard>
)
}
})
export default Card
|
closed
|
apache/dolphinscheduler
|
https://github.com/apache/dolphinscheduler
| 8,965 |
[Bug-FE][UI Next][V1.0.0-Alpha] Task definition page table scale imbalance problem.
|
### Search before asking
- [X] I had searched in the [issues](https://github.com/apache/dolphinscheduler/issues?q=is%3Aissue) and found no similar issues.
### What happened
Page display ratio error
<img width="1920" alt="image" src="https://user-images.githubusercontent.com/76080484/158771315-21023658-4d0a-4bda-b3a5-1303a24f04c9.png">
### What you expected to happen
Wrong display ratio
### How to reproduce
Task Definition click
### Anything else
_No response_
### Version
dev
### Are you willing to submit PR?
- [ ] Yes I am willing to submit a PR!
### Code of Conduct
- [X] I agree to follow this project's [Code of Conduct](https://www.apache.org/foundation/policies/conduct)
|
https://github.com/apache/dolphinscheduler/issues/8965
|
https://github.com/apache/dolphinscheduler/pull/8992
|
85b2352abf868f55bdc3f38e33374c0ae927d535
|
1a7d88e84b76d0910f984490032d94b2e651cf83
| 2022-03-17T09:05:45Z |
java
| 2022-03-18T14:02:22Z |
dolphinscheduler-ui-next/src/views/projects/task/definition/use-table.ts
|
/*
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership.
* The ASF licenses this file to You under the Apache License, Version 2.0
* (the "License"); you may not use this file except in compliance with
* the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
import { useAsyncState } from '@vueuse/core'
import { reactive, h, ref } from 'vue'
import { NButton, NIcon, NPopconfirm, NSpace, NTag, NTooltip } from 'naive-ui'
import ButtonLink from '@/components/button-link'
import { useI18n } from 'vue-i18n'
import {
DeleteOutlined,
EditOutlined,
DragOutlined,
ExclamationCircleOutlined
} from '@vicons/antd'
import {
queryTaskDefinitionListPaging,
deleteTaskDefinition
} from '@/service/modules/task-definition'
import { useRoute } from 'vue-router'
import type {
TaskDefinitionItem,
TaskDefinitionRes
} from '@/service/modules/task-definition/types'
import type { IRecord } from './types'
export function useTable(onEdit: Function) {
const { t } = useI18n()
const route = useRoute()
const projectCode = Number(route.params.projectCode)
const createColumns = (variables: any) => {
variables.columns = [
{
title: '#',
key: 'index',
render: (row: any, index: number) => index + 1
},
{
title: t('project.task.task_name'),
key: 'taskName',
width: 400,
render: (row: IRecord) =>
h(
ButtonLink,
{
onClick: () => void onEdit(row, true)
},
{ default: () => row.taskName }
)
},
{
title: t('project.task.workflow_name'),
key: 'processDefinitionName',
width: 400
},
{
title: t('project.task.workflow_state'),
key: 'processReleaseState'
},
{
title: t('project.task.task_type'),
key: 'taskType'
},
{
title: t('project.task.version'),
key: 'taskVersion',
render: (row: TaskDefinitionItem) =>
h('span', null, 'v' + row.taskVersion)
},
{
title: t('project.task.upstream_tasks'),
key: 'upstreamTaskMap',
render: (row: TaskDefinitionItem) =>
h(
'span',
null,
row.upstreamTaskMap.length < 1
? '-'
: h(NSpace, null, {
default: () =>
row.upstreamTaskMap.map((item: string) => {
return h(
NTag,
{ type: 'info', size: 'small' },
{ default: () => item }
)
})
})
)
},
{
title: t('project.task.create_time'),
key: 'taskCreateTime'
},
{
title: t('project.task.update_time'),
key: 'taskUpdateTime'
},
{
title: t('project.task.operation'),
key: 'operation',
render(row: any) {
return h(NSpace, null, {
default: () => [
h(
NTooltip,
{},
{
trigger: () =>
h(
NButton,
{
circle: true,
type: 'info',
size: 'small',
disabled:
['CONDITIONS', 'SWITCH'].includes(row.taskType) ||
(!!row.processDefinitionCode &&
row.processReleaseState === 'ONLINE'),
onClick: () => {
onEdit(row, false)
}
},
{
icon: () =>
h(NIcon, null, { default: () => h(EditOutlined) })
}
),
default: () => t('project.task.edit')
}
),
h(
NTooltip,
{},
{
trigger: () =>
h(
NButton,
{
circle: true,
type: 'info',
size: 'small',
disabled:
!!row.processDefinitionCode &&
row.processReleaseState === 'ONLINE',
onClick: () => {
variables.showMoveModalRef = true
variables.row = row
}
},
{
icon: () =>
h(NIcon, null, { default: () => h(DragOutlined) })
}
),
default: () => t('project.task.move')
}
),
h(
NTooltip,
{},
{
trigger: () =>
h(
NButton,
{
circle: true,
type: 'info',
size: 'small',
onClick: () => {
variables.showVersionModalRef = true
variables.row = row
}
},
{
icon: () =>
h(NIcon, null, {
default: () => h(ExclamationCircleOutlined)
})
}
),
default: () => t('project.task.version')
}
),
h(
NPopconfirm,
{
onPositiveClick: () => {
handleDelete(row)
}
},
{
trigger: () =>
h(
NTooltip,
{},
{
trigger: () =>
h(
NButton,
{
circle: true,
type: 'error',
size: 'small',
disabled:
!!row.processDefinitionCode &&
row.processReleaseState === 'ONLINE'
},
{
icon: () =>
h(NIcon, null, {
default: () => h(DeleteOutlined)
})
}
),
default: () => t('project.task.delete')
}
),
default: () => t('project.task.delete_confirm')
}
)
]
})
}
}
]
}
const variables = reactive({
columns: [],
tableData: [],
page: ref(1),
pageSize: ref(10),
searchTaskName: ref(null),
searchWorkflowName: ref(null),
totalPage: ref(1),
taskType: ref(null),
showVersionModalRef: ref(false),
showMoveModalRef: ref(false),
row: {}
})
const handleDelete = (row: any) => {
deleteTaskDefinition({ code: row.taskCode }, { projectCode }).then(() => {
getTableData({
pageSize: variables.pageSize,
pageNo:
variables.tableData.length === 1 && variables.page > 1
? variables.page - 1
: variables.page,
searchTaskName: variables.searchTaskName,
searchWorkflowName: variables.searchWorkflowName,
taskType: variables.taskType
})
})
}
const getTableData = (params: any) => {
const { state } = useAsyncState(
queryTaskDefinitionListPaging({ ...params }, { projectCode }).then(
(res: TaskDefinitionRes) => {
variables.tableData = res.totalList.map((item, unused) => {
if (Object.keys(item.upstreamTaskMap).length > 0) {
item.upstreamTaskMap = Object.keys(item.upstreamTaskMap).map(
(code) => item.upstreamTaskMap[code]
)
} else {
item.upstreamTaskMap = []
}
return {
...item
}
}) as any
variables.totalPage = res.totalPage
}
),
{}
)
return state
}
return {
variables,
getTableData,
createColumns
}
}
|
closed
|
apache/dolphinscheduler
|
https://github.com/apache/dolphinscheduler
| 8,965 |
[Bug-FE][UI Next][V1.0.0-Alpha] Task definition page table scale imbalance problem.
|
### Search before asking
- [X] I had searched in the [issues](https://github.com/apache/dolphinscheduler/issues?q=is%3Aissue) and found no similar issues.
### What happened
Page display ratio error
<img width="1920" alt="image" src="https://user-images.githubusercontent.com/76080484/158771315-21023658-4d0a-4bda-b3a5-1303a24f04c9.png">
### What you expected to happen
Wrong display ratio
### How to reproduce
Task Definition click
### Anything else
_No response_
### Version
dev
### Are you willing to submit PR?
- [ ] Yes I am willing to submit a PR!
### Code of Conduct
- [X] I agree to follow this project's [Code of Conduct](https://www.apache.org/foundation/policies/conduct)
|
https://github.com/apache/dolphinscheduler/issues/8965
|
https://github.com/apache/dolphinscheduler/pull/8992
|
85b2352abf868f55bdc3f38e33374c0ae927d535
|
1a7d88e84b76d0910f984490032d94b2e651cf83
| 2022-03-17T09:05:45Z |
java
| 2022-03-18T14:02:22Z |
dolphinscheduler-ui-next/src/views/resource/file/index.tsx
|
/*
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership.
* The ASF licenses this file to You under the Apache License, Version 2.0
* (the "License"); you may not use this file except in compliance with
* the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
import { useRouter } from 'vue-router'
import {
defineComponent,
onMounted,
ref,
reactive,
Ref,
watch,
inject
} from 'vue'
import {
NIcon,
NSpace,
NDataTable,
NButtonGroup,
NButton,
NPagination,
NInput,
NBreadcrumb,
NBreadcrumbItem
} from 'naive-ui'
import { useI18n } from 'vue-i18n'
import { SearchOutlined } from '@vicons/antd'
import Card from '@/components/card'
import { useTable } from './table/use-table'
import { useFileState } from './use-file'
import ResourceFolderModal from './folder'
import ResourceUploadModal from './upload'
import ResourceRenameModal from './rename'
import {BreadcrumbItem, IRenameFile} from './types'
import type { Router } from 'vue-router'
import styles from './index.module.scss'
import { useFileStore } from '@/store/file/file'
import {
queryCurrentResourceById,
queryResourceById
} from '@/service/modules/resources'
import { ResourceFile } from '@/service/modules/resources/types'
export default defineComponent({
name: 'File',
inject: ['reload'],
setup() {
const router: Router = useRouter()
const fileId = ref(Number(router.currentRoute.value.params.id) || -1)
const reload: any = inject('reload')
const resourceListRef = ref()
const folderShowRef = ref(false)
const uploadShowRef = ref(false)
const renameShowRef = ref(false)
const serachRef = ref()
const renameInfo = reactive({
id: -1,
name: '',
description: ''
})
const paginationReactive = reactive({
page: 1,
pageSize: 10,
itemCount: 0,
pageSizes: [10, 30, 50]
})
const handleUpdatePage = (page: number) => {
paginationReactive.page = page
resourceListRef.value = getResourceListState(
fileId.value,
serachRef.value,
paginationReactive.page,
paginationReactive.pageSize
)
}
const handleUpdatePageSize = (pageSize: number) => {
paginationReactive.page = 1
paginationReactive.pageSize = pageSize
resourceListRef.value = getResourceListState(
fileId.value,
serachRef.value,
paginationReactive.page,
paginationReactive.pageSize
)
}
const handleShowModal = (showRef: Ref<Boolean>) => {
showRef.value = true
}
const setPagination = (count: number) => {
paginationReactive.itemCount = count
}
const { getResourceListState } = useFileState(setPagination)
const handleConditions = () => {
resourceListRef.value = getResourceListState(
fileId.value,
serachRef.value
)
}
const handleCreateFolder = () => {
handleShowModal(folderShowRef)
}
const handleCreateFile = () => {
const name = fileId.value
? 'resource-subfile-create'
: 'resource-file-create'
router.push({
name,
params: { id: fileId.value }
})
}
const handleUploadFile = () => {
handleShowModal(uploadShowRef)
}
const handleRenameFile: IRenameFile = (id, name, description) => {
renameInfo.id = id
renameInfo.name = name
renameInfo.description = description
handleShowModal(renameShowRef)
}
const updateList = () => {
resourceListRef.value = getResourceListState(
fileId.value,
serachRef.value
)
}
const fileStore = useFileStore()
onMounted(() => {
resourceListRef.value = getResourceListState(fileId.value)
})
const breadcrumbItemsRef: Ref<Array<BreadcrumbItem> | undefined> = ref(
[
{
id: 1,
fullName: 'l1'
},
{
id: 2,
fullName: 'l2'
},
{
id: 4,
fullName: 'l3'
}
]
)
watch(
() => router.currentRoute.value.params.id,
// @ts-ignore
() => {
reload()
const currFileId = Number(router.currentRoute.value.params.id) || -1
if (currFileId === -1) {
fileStore.setCurrentDir('/')
} else {
queryCurrentResourceById(currFileId).then((res: ResourceFile) => {
if (res.fullName) {
fileStore.setCurrentDir(res.fullName)
}
})
}
}
)
const initBreadcrumb = async (dirs: string[]) => {
let index = 0
for (let dir of dirs) {
const newDir = dirs.slice(0, index + 1).join('/')
if (newDir) {
const id = 0
let resource = await queryResourceById(
{
id,
type: 'FILE',
fullName: newDir
},
id
)
breadcrumbItemsRef.value?.push({id: resource.id, fullName: dir})
} else {
breadcrumbItemsRef.value?.push({id: 0, fullName: 'Root'})
}
index = index + 1
}
}
onMounted(
() => {
breadcrumbItemsRef.value = []
if (fileId.value != -1) {
queryCurrentResourceById(fileId.value).then((res: ResourceFile) => {
if (res.fullName) {
const dirs = res.fullName.split('/')
if (dirs && dirs.length > 1) {
initBreadcrumb(dirs)
}
}
})
}
}
)
return {
fileId,
serachRef,
folderShowRef,
uploadShowRef,
renameShowRef,
handleShowModal,
resourceListRef,
updateList,
handleConditions,
handleCreateFolder,
handleCreateFile,
handleUploadFile,
handleRenameFile,
handleUpdatePage,
handleUpdatePageSize,
pagination: paginationReactive,
renameInfo,
breadcrumbItemsRef,
}
},
render() {
const { t } = useI18n()
const { columnsRef } = useTable(this.handleRenameFile, this.updateList)
const {
handleConditions,
handleCreateFolder,
handleCreateFile,
handleUploadFile
} = this
return (
<div>
<Card style={{ marginBottom: '8px' }}>
<div class={styles['conditions-model']}>
<NSpace>
<NButtonGroup>
<NButton
onClick={handleCreateFolder}
class='btn-create-directory'
>
{t('resource.file.create_folder')}
</NButton>
<NButton onClick={handleCreateFile} class='btn-create-file'>
{t('resource.file.create_file')}
</NButton>
<NButton onClick={handleUploadFile} class='btn-upload-file'>
{t('resource.file.upload_files')}
</NButton>
</NButtonGroup>
</NSpace>
<div class={styles.right}>
<div class={styles['form-box']}>
<div class={styles.list}>
<NButton onClick={handleConditions}>
<NIcon>
<SearchOutlined />
</NIcon>
</NButton>
</div>
<div class={styles.list}>
<NInput
placeholder={t('resource.file.enter_keyword_tips')}
v-model={[this.serachRef, 'value']}
/>
</div>
</div>
</div>
</div>
</Card>
<Card title={t('resource.file.file_manage')} class={styles['table-card']}>
{{
'header-extra': () => (
<NBreadcrumb separator='>' class={styles['breadcrumb']}>
{
this.breadcrumbItemsRef?.map((item: BreadcrumbItem) => {
return (
<NBreadcrumbItem href={item.id.toString()}>{item.fullName}</NBreadcrumbItem>
)
})
}
</NBreadcrumb>
),
default: () => (
<div>
<NDataTable
remote
columns={columnsRef}
data={this.resourceListRef?.value.table}
striped
size={'small'}
class={styles['table-box']}
row-class-name='items'
/>
<div class={styles.pagination}>
<NPagination
v-model:page={this.pagination.page}
v-model:pageSize={this.pagination.pageSize}
pageSizes={this.pagination.pageSizes}
item-count={this.pagination.itemCount}
onUpdatePage={this.handleUpdatePage}
onUpdatePageSize={this.handleUpdatePageSize}
show-quick-jumper
show-size-picker
/>
</div>
</div>
)
}}
</Card>
<ResourceFolderModal
v-model:show={this.folderShowRef}
onUpdateList={this.updateList}
/>
<ResourceUploadModal
v-model:show={this.uploadShowRef}
onUpdateList={this.updateList}
/>
<ResourceRenameModal
v-model:show={this.renameShowRef}
id={this.renameInfo.id}
name={this.renameInfo.name}
description={this.renameInfo.description}
onUpdateList={this.updateList}
/>
</div>
)
}
})
|
closed
|
apache/dolphinscheduler
|
https://github.com/apache/dolphinscheduler
| 8,965 |
[Bug-FE][UI Next][V1.0.0-Alpha] Task definition page table scale imbalance problem.
|
### Search before asking
- [X] I had searched in the [issues](https://github.com/apache/dolphinscheduler/issues?q=is%3Aissue) and found no similar issues.
### What happened
Page display ratio error
<img width="1920" alt="image" src="https://user-images.githubusercontent.com/76080484/158771315-21023658-4d0a-4bda-b3a5-1303a24f04c9.png">
### What you expected to happen
Wrong display ratio
### How to reproduce
Task Definition click
### Anything else
_No response_
### Version
dev
### Are you willing to submit PR?
- [ ] Yes I am willing to submit a PR!
### Code of Conduct
- [X] I agree to follow this project's [Code of Conduct](https://www.apache.org/foundation/policies/conduct)
|
https://github.com/apache/dolphinscheduler/issues/8965
|
https://github.com/apache/dolphinscheduler/pull/8992
|
85b2352abf868f55bdc3f38e33374c0ae927d535
|
1a7d88e84b76d0910f984490032d94b2e651cf83
| 2022-03-17T09:05:45Z |
java
| 2022-03-18T14:02:22Z |
dolphinscheduler-ui-next/src/views/resource/file/types.ts
|
/*
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership.
* The ASF licenses this file to You under the Apache License, Version 2.0
* (the "License"); you may not use this file except in compliance with
* the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
export interface ResourceFileTableData {
id: number
name: string
user_name: string
directory: string
file_name: string
description: string
size: number
update_time: string
}
export interface IEmit {
(event: any, ...args: any[]): void
}
export interface IRenameFile {
(id: number, name: string, description: string): void
}
export interface IRtDisb {
(name: string, size: number): boolean
}
export interface IResourceListState {
(id?: number, searchVal?: string, pageNo?: number, pageSize?: number): any
}
export interface BasicTableProps {
title?: string
dataSource: Function
columns: any[]
pagination: object
showPagination: boolean
actionColumn: any[]
canResize: boolean
resizeHeightOffset: number
}
export interface PaginationProps {
page?: number
pageCount?: number
pageSize?: number
pageSizes?: number[]
showSizePicker?: boolean
showQuickJumper?: boolean
}
export interface ISetPagination {
(itemCount: number): void
}
export interface BreadcrumbItem {
id: number,
fullName: string
}
|
closed
|
apache/dolphinscheduler
|
https://github.com/apache/dolphinscheduler
| 8,965 |
[Bug-FE][UI Next][V1.0.0-Alpha] Task definition page table scale imbalance problem.
|
### Search before asking
- [X] I had searched in the [issues](https://github.com/apache/dolphinscheduler/issues?q=is%3Aissue) and found no similar issues.
### What happened
Page display ratio error
<img width="1920" alt="image" src="https://user-images.githubusercontent.com/76080484/158771315-21023658-4d0a-4bda-b3a5-1303a24f04c9.png">
### What you expected to happen
Wrong display ratio
### How to reproduce
Task Definition click
### Anything else
_No response_
### Version
dev
### Are you willing to submit PR?
- [ ] Yes I am willing to submit a PR!
### Code of Conduct
- [X] I agree to follow this project's [Code of Conduct](https://www.apache.org/foundation/policies/conduct)
|
https://github.com/apache/dolphinscheduler/issues/8965
|
https://github.com/apache/dolphinscheduler/pull/8992
|
85b2352abf868f55bdc3f38e33374c0ae927d535
|
1a7d88e84b76d0910f984490032d94b2e651cf83
| 2022-03-17T09:05:45Z |
java
| 2022-03-18T14:02:22Z |
dolphinscheduler-ui-next/src/views/security/alarm-instance-manage/index.tsx
|
/*
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership.
* The ASF licenses this file to You under the Apache License, Version 2.0
* (the "License"); you may not use this file except in compliance with
* the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
import {defineComponent, onMounted, ref, toRefs, watch} from 'vue'
import {
NButton,
NInput,
NIcon,
NDataTable,
NPagination,
NSpace
} from 'naive-ui'
import Card from '@/components/card'
import DetailModal from './detail'
import { SearchOutlined } from '@vicons/antd'
import { useI18n } from 'vue-i18n'
import { useUserInfo } from './use-userinfo'
import { useColumns } from './use-columns'
import { useTable } from './use-table'
import styles from './index.module.scss'
import type { IRecord } from './types'
const AlarmInstanceManage = defineComponent({
name: 'alarm-instance-manage',
setup() {
const { t } = useI18n()
const showDetailModal = ref(false)
const currentRecord = ref()
const columns = ref()
const { IS_ADMIN } = useUserInfo()
const { data, changePage, changePageSize, deleteRecord, updateList } =
useTable()
const { getColumns } = useColumns(
(record: IRecord, type: 'edit' | 'delete') => {
if (type === 'edit') {
showDetailModal.value = true
currentRecord.value = record
} else {
deleteRecord(record.id)
}
}
)
const onCreate = () => {
currentRecord.value = null
showDetailModal.value = true
}
const onCloseModal = () => {
showDetailModal.value = false
currentRecord.value = {}
}
onMounted(() => {
changePage(1)
columns.value = getColumns()
})
watch(useI18n().locale, () => {
columns.value = getColumns()
})
return {
t,
IS_ADMIN,
showDetailModal,
currentRecord: currentRecord,
columns,
...toRefs(data),
changePage,
changePageSize,
onCreate,
onCloseModal,
onUpdatedList: updateList
}
},
render() {
const {
t,
IS_ADMIN,
currentRecord,
showDetailModal,
columns,
list,
page,
pageSize,
itemCount,
loading,
changePage,
changePageSize,
onCreate,
onUpdatedList,
onCloseModal
} = this
return (
<>
<Card title=''>
{{
default: () => (
<div class={styles['conditions']}>
{IS_ADMIN && (
<NButton onClick={onCreate} type='primary'>
{t('security.alarm_instance.create_alarm_instance')}
</NButton>
)}
<NSpace
class={styles['conditions-search']}
justify='end'
wrap={false}
>
<div class={styles['conditions-search-input']}>
<NInput
v-model={[this.searchVal, 'value']}
placeholder={`${t(
'security.alarm_instance.search_input_tips'
)}`}
/>
</div>
<NButton type='primary' onClick={onUpdatedList}>
<NIcon>
<SearchOutlined />
</NIcon>
</NButton>
</NSpace>
</div>
)
}}
</Card>
<Card title='' class={styles['mt-8']}>
<NDataTable
columns={columns}
data={list}
loading={loading}
striped
/>
<NPagination
page={page}
page-size={pageSize}
item-count={itemCount}
show-quick-jumper
class={styles['pagination']}
on-update:page={changePage}
on-update:page-size={changePageSize}
/>
</Card>
{IS_ADMIN && (
<DetailModal
show={showDetailModal}
currentRecord={currentRecord}
onCancel={onCloseModal}
onUpdate={onUpdatedList}
/>
)}
</>
)
}
})
export default AlarmInstanceManage
|
closed
|
apache/dolphinscheduler
|
https://github.com/apache/dolphinscheduler
| 8,985 |
[Feature][UI] Add an option "thisMonthBegin" in dependency settings in dependent node
|
### Search before asking
- [X] I had searched in the [issues](https://github.com/apache/dolphinscheduler/issues?q=is%3Aissue) and found no similar feature requirement.
### Description

add thisMonthBegin in the drop down menu here, it will be useful in some cases, for example, we have lots of workflows which depended by other workflows, and the workflow being depended are running on 1st day of the month, if we had this option, things will be easyer.
有的工作流依赖本月初运行的工作流,如果在依赖节点中有 本月初 的选项,会很有用。
### Use case
_No response_
### Related issues
_No response_
### Are you willing to submit a PR?
- [ ] Yes I am willing to submit a PR!
### Code of Conduct
- [X] I agree to follow this project's [Code of Conduct](https://www.apache.org/foundation/policies/conduct)
|
https://github.com/apache/dolphinscheduler/issues/8985
|
https://github.com/apache/dolphinscheduler/pull/9004
|
7d94adabc8073e00263f982ed7882b8cb7b03a63
|
d89c7ac8bb0f4c35cccb89b7cf05afa53fd5fb85
| 2022-03-18T07:44:53Z |
java
| 2022-03-19T01:51:36Z |
dolphinscheduler-ui-next/src/locales/modules/en_US.ts
|
/*
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership.
* The ASF licenses this file to You under the Apache License, Version 2.0
* (the "License"); you may not use this file except in compliance with
* the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
const login = {
test: 'Test',
userName: 'Username',
userName_tips: 'Please enter your username',
userPassword: 'Password',
userPassword_tips: 'Please enter your password',
login: 'Login'
}
const modal = {
cancel: 'Cancel',
confirm: 'Confirm'
}
const theme = {
light: 'Light',
dark: 'Dark'
}
const userDropdown = {
profile: 'Profile',
password: 'Password',
logout: 'Logout'
}
const menu = {
home: 'Home',
project: 'Project',
resources: 'Resources',
datasource: 'Datasource',
monitor: 'Monitor',
security: 'Security',
project_overview: 'Project Overview',
workflow_relation: 'Workflow Relation',
workflow: 'Workflow',
workflow_definition: 'Workflow Definition',
workflow_instance: 'Workflow Instance',
task: 'Task',
task_instance: 'Task Instance',
task_definition: 'Task Definition',
file_manage: 'File Manage',
udf_manage: 'UDF Manage',
resource_manage: 'Resource Manage',
function_manage: 'Function Manage',
service_manage: 'Service Manage',
master: 'Master',
worker: 'Worker',
db: 'DB',
statistical_manage: 'Statistical Manage',
statistics: 'Statistics',
audit_log: 'Audit Log',
tenant_manage: 'Tenant Manage',
user_manage: 'User Manage',
alarm_group_manage: 'Alarm Group Manage',
alarm_instance_manage: 'Alarm Instance Manage',
worker_group_manage: 'Worker Group Manage',
yarn_queue_manage: 'Yarn Queue Manage',
environment_manage: 'Environment Manage',
k8s_namespace_manage: 'K8S Namespace Manage',
token_manage: 'Token Manage',
task_group_manage: 'Task Group Manage',
task_group_option: 'Task Group Option',
task_group_queue: 'Task Group Queue',
data_quality: 'Data Quality',
task_result: 'Task Result',
rule: 'Rule management'
}
const home = {
task_state_statistics: 'Task State Statistics',
process_state_statistics: 'Process State Statistics',
process_definition_statistics: 'Process Definition Statistics',
number: 'Number',
state: 'State',
submitted_success: 'SUBMITTED_SUCCESS',
running_execution: 'RUNNING_EXECUTION',
ready_pause: 'READY_PAUSE',
pause: 'PAUSE',
ready_stop: 'READY_STOP',
stop: 'STOP',
failure: 'FAILURE',
success: 'SUCCESS',
need_fault_tolerance: 'NEED_FAULT_TOLERANCE',
kill: 'KILL',
waiting_thread: 'WAITING_THREAD',
waiting_depend: 'WAITING_DEPEND',
delay_execution: 'DELAY_EXECUTION',
forced_success: 'FORCED_SUCCESS',
serial_wait: 'SERIAL_WAIT',
ready_block: 'READY_BLOCK',
block: 'BLOCK'
}
const password = {
edit_password: 'Edit Password',
password: 'Password',
confirm_password: 'Confirm Password',
password_tips: 'Please enter your password',
confirm_password_tips: 'Please enter your confirm password',
two_password_entries_are_inconsistent:
'Two password entries are inconsistent',
submit: 'Submit'
}
const profile = {
profile: 'Profile',
edit: 'Edit',
username: 'Username',
email: 'Email',
phone: 'Phone',
state: 'State',
permission: 'Permission',
create_time: 'Create Time',
update_time: 'Update Time',
administrator: 'Administrator',
ordinary_user: 'Ordinary User',
edit_profile: 'Edit Profile',
username_tips: 'Please enter your username',
email_tips: 'Please enter your email',
email_correct_tips: 'Please enter your email in the correct format',
phone_tips: 'Please enter your phone',
state_tips: 'Please choose your state',
enable: 'Enable',
disable: 'Disable',
timezone_success: 'Time zone updated successful',
please_select_timezone: 'Choose timeZone'
}
const monitor = {
master: {
cpu_usage: 'CPU Usage',
memory_usage: 'Memory Usage',
load_average: 'Load Average',
create_time: 'Create Time',
last_heartbeat_time: 'Last Heartbeat Time',
directory_detail: 'Directory Detail',
host: 'Host',
directory: 'Directory'
},
worker: {
cpu_usage: 'CPU Usage',
memory_usage: 'Memory Usage',
load_average: 'Load Average',
create_time: 'Create Time',
last_heartbeat_time: 'Last Heartbeat Time',
directory_detail: 'Directory Detail',
host: 'Host',
directory: 'Directory'
},
db: {
health_state: 'Health State',
max_connections: 'Max Connections',
threads_connections: 'Threads Connections',
threads_running_connections: 'Threads Running Connections'
},
statistics: {
command_number_of_waiting_for_running:
'Command Number Of Waiting For Running',
failure_command_number: 'Failure Command Number',
tasks_number_of_waiting_running: 'Tasks Number Of Waiting Running',
task_number_of_ready_to_kill: 'Task Number Of Ready To Kill'
},
audit_log: {
user_name: 'User Name',
resource_type: 'Resource Type',
project_name: 'Project Name',
operation_type: 'Operation Type',
create_time: 'Create Time',
start_time: 'Start Time',
end_time: 'End Time',
user_audit: 'User Audit',
project_audit: 'Project Audit',
create: 'Create',
update: 'Update',
delete: 'Delete',
read: 'Read'
}
}
const resource = {
file: {
file_manage: 'File Manage',
create_folder: 'Create Folder',
create_file: 'Create File',
upload_files: 'Upload Files',
enter_keyword_tips: 'Please enter keyword',
name: 'Name',
user_name: 'Resource userName',
whether_directory: 'Whether directory',
file_name: 'File Name',
description: 'Description',
size: 'Size',
update_time: 'Update Time',
operation: 'Operation',
edit: 'Edit',
rename: 'Rename',
download: 'Download',
delete: 'Delete',
yes: 'Yes',
no: 'No',
folder_name: 'Folder Name',
enter_name_tips: 'Please enter name',
enter_description_tips: 'Please enter description',
enter_content_tips: 'Please enter the resource content',
file_format: 'File Format',
file_content: 'File Content',
delete_confirm: 'Delete?',
confirm: 'Confirm',
cancel: 'Cancel',
success: 'Success',
file_details: 'File Details',
return: 'Return',
save: 'Save'
},
udf: {
udf_resources: 'UDF resources',
create_folder: 'Create Folder',
upload_udf_resources: 'Upload UDF Resources',
udf_source_name: 'UDF Resource Name',
whether_directory: 'Whether directory',
file_name: 'File Name',
file_size: 'File Size',
description: 'Description',
create_time: 'Create Time',
update_time: 'Update Time',
operation: 'Operation',
yes: 'Yes',
no: 'No',
edit: 'Edit',
download: 'Download',
delete: 'Delete',
delete_confirm: 'Delete?',
success: 'Success',
folder_name: 'Folder Name',
upload: 'Upload',
upload_files: 'Upload Files',
file_upload: 'File Upload',
enter_keyword_tips: 'Please enter keyword',
enter_name_tips: 'Please enter name',
enter_description_tips: 'Please enter description'
},
function: {
udf_function: 'UDF Function',
create_udf_function: 'Create UDF Function',
edit_udf_function: 'Create UDF Function',
udf_function_name: 'UDF Function Name',
class_name: 'Class Name',
type: 'Type',
description: 'Description',
jar_package: 'Jar Package',
update_time: 'Update Time',
operation: 'Operation',
rename: 'Rename',
edit: 'Edit',
delete: 'Delete',
success: 'Success',
package_name: 'Package Name',
udf_resources: 'UDF Resources',
instructions: 'Instructions',
upload_resources: 'Upload Resources',
udf_resources_directory: 'UDF resources directory',
delete_confirm: 'Delete?',
enter_keyword_tips: 'Please enter keyword',
enter_udf_unction_name_tips: 'Please enter a UDF function name',
enter_package_name_tips: 'Please enter a Package name',
enter_select_udf_resources_tips: 'Please select UDF resources',
enter_select_udf_resources_directory_tips:
'Please select UDF resources directory',
enter_instructions_tips: 'Please enter a instructions',
enter_name_tips: 'Please enter name',
enter_description_tips: 'Please enter description'
},
task_group_option: {
manage: 'Task group manage',
option: 'Task group option',
create: 'Create task group',
edit: 'Edit task group',
delete: 'Delete task group',
view_queue: 'View the queue of the task group',
switch_status: 'Switch status',
code: 'Task group code',
name: 'Task group name',
project_name: 'Project name',
resource_pool_size: 'Resource pool size',
resource_pool_size_be_a_number:
'The size of the task group resource pool should be more than 1',
resource_used_pool_size: 'Used resource',
desc: 'Task group desc',
status: 'Task group status',
enable_status: 'Enable',
disable_status: 'Disable',
please_enter_name: 'Please enter task group name',
please_enter_desc: 'Please enter task group description',
please_enter_resource_pool_size:
'Please enter task group resource pool size',
please_select_project: 'Please select a project',
create_time: 'Create time',
update_time: 'Update time',
actions: 'Actions',
please_enter_keywords: 'Please enter keywords'
},
task_group_queue: {
actions: 'Actions',
task_name: 'Task name',
task_group_name: 'Task group name',
project_name: 'Project name',
process_name: 'Process name',
process_instance_name: 'Process instance',
queue: 'Task group queue',
priority: 'Priority',
priority_be_a_number:
'The priority of the task group queue should be a positive number',
force_starting_status: 'Starting status',
in_queue: 'In queue',
task_status: 'Task status',
view: 'View task group queue',
the_status_of_waiting: 'Waiting into the queue',
the_status_of_queuing: 'Queuing',
the_status_of_releasing: 'Released',
modify_priority: 'Edit the priority',
start_task: 'Start the task',
priority_not_empty: 'The value of priority can not be empty',
priority_must_be_number: 'The value of priority should be number',
please_select_task_name: 'Please select a task name',
create_time: 'Create time',
update_time: 'Update time',
edit_priority: 'Edit the task priority'
}
}
const project = {
list: {
create_project: 'Create Project',
edit_project: 'Edit Project',
project_list: 'Project List',
project_tips: 'Please enter your project',
description_tips: 'Please enter your description',
username_tips: 'Please enter your username',
project_name: 'Project Name',
project_description: 'Project Description',
owned_users: 'Owned Users',
workflow_define_count: 'Workflow Define Count',
process_instance_running_count: 'Process Instance Running Count',
description: 'Description',
create_time: 'Create Time',
update_time: 'Update Time',
operation: 'Operation',
edit: 'Edit',
delete: 'Delete',
confirm: 'Confirm',
cancel: 'Cancel',
delete_confirm: 'Delete?'
},
workflow: {
workflow_relation: 'Workflow Relation',
create_workflow: 'Create Workflow',
import_workflow: 'Import Workflow',
workflow_name: 'Workflow Name',
current_selection: 'Current Selection',
online: 'Online',
offline: 'Offline',
refresh: 'Refresh',
show_hide_label: 'Show / Hide Label',
workflow_offline: 'Workflow Offline',
schedule_offline: 'Schedule Offline',
schedule_start_time: 'Schedule Start Time',
schedule_end_time: 'Schedule End Time',
crontab_expression: 'Crontab',
workflow_publish_status: 'Workflow Publish Status',
schedule_publish_status: 'Schedule Publish Status',
workflow_definition: 'Workflow Definition',
workflow_instance: 'Workflow Instance',
status: 'Status',
create_time: 'Create Time',
update_time: 'Update Time',
description: 'Description',
create_user: 'Create User',
modify_user: 'Modify User',
operation: 'Operation',
edit: 'Edit',
start: 'Start',
timing: 'Timing',
timezone: 'Timezone',
up_line: 'Online',
down_line: 'Offline',
copy_workflow: 'Copy Workflow',
cron_manage: 'Cron manage',
delete: 'Delete',
tree_view: 'Tree View',
tree_limit: 'Limit Size',
export: 'Export',
batch_copy: 'Batch Copy',
version_info: 'Version Info',
version: 'Version',
file_upload: 'File Upload',
upload_file: 'Upload File',
upload: 'Upload',
file_name: 'File Name',
success: 'Success',
set_parameters_before_starting: 'Please set the parameters before starting',
set_parameters_before_timing: 'Set parameters before timing',
start_and_stop_time: 'Start and stop time',
next_five_execution_times: 'Next five execution times',
execute_time: 'Execute time',
failure_strategy: 'Failure Strategy',
notification_strategy: 'Notification Strategy',
workflow_priority: 'Workflow Priority',
worker_group: 'Worker Group',
environment_name: 'Environment Name',
alarm_group: 'Alarm Group',
complement_data: 'Complement Data',
startup_parameter: 'Startup Parameter',
whether_dry_run: 'Whether Dry-Run',
continue: 'Continue',
end: 'End',
none_send: 'None',
success_send: 'Success',
failure_send: 'Failure',
all_send: 'All',
whether_complement_data: 'Whether it is a complement process?',
schedule_date: 'Schedule date',
mode_of_execution: 'Mode of execution',
serial_execution: 'Serial execution',
parallel_execution: 'Parallel execution',
parallelism: 'Parallelism',
custom_parallelism: 'Custom Parallelism',
please_enter_parallelism: 'Please enter Parallelism',
please_choose: 'Please Choose',
start_time: 'Start Time',
end_time: 'End Time',
crontab: 'Crontab',
delete_confirm: 'Delete?',
enter_name_tips: 'Please enter name',
switch_version: 'Switch To This Version',
confirm_switch_version: 'Confirm Switch To This Version?',
current_version: 'Current Version',
run_type: 'Run Type',
scheduling_time: 'Scheduling Time',
duration: 'Duration',
run_times: 'Run Times',
fault_tolerant_sign: 'Fault-tolerant Sign',
dry_run_flag: 'Dry-run Flag',
executor: 'Executor',
host: 'Host',
start_process: 'Start Process',
execute_from_the_current_node: 'Execute from the current node',
recover_tolerance_fault_process: 'Recover tolerance fault process',
resume_the_suspension_process: 'Resume the suspension process',
execute_from_the_failed_nodes: 'Execute from the failed nodes',
scheduling_execution: 'Scheduling execution',
rerun: 'Rerun',
stop: 'Stop',
pause: 'Pause',
recovery_waiting_thread: 'Recovery waiting thread',
recover_serial_wait: 'Recover serial wait',
recovery_suspend: 'Recovery Suspend',
recovery_failed: 'Recovery Failed',
gantt: 'Gantt',
name: 'Name',
all_status: 'AllStatus',
submit_success: 'Submitted successfully',
running: 'Running',
ready_to_pause: 'Ready to pause',
ready_to_stop: 'Ready to stop',
failed: 'Failed',
need_fault_tolerance: 'Need fault tolerance',
kill: 'Kill',
waiting_for_thread: 'Waiting for thread',
waiting_for_dependence: 'Waiting for dependence',
waiting_for_dependency_to_complete: 'Waiting for dependency to complete',
delay_execution: 'Delay execution',
forced_success: 'Forced success',
serial_wait: 'Serial wait',
executing: 'Executing',
startup_type: 'Startup Type',
complement_range: 'Complement Range',
parameters_variables: 'Parameters variables',
global_parameters: 'Global parameters',
local_parameters: 'Local parameters',
type: 'Type',
retry_count: 'Retry Count',
submit_time: 'Submit Time',
refresh_status_succeeded: 'Refresh status succeeded',
view_log: 'View log',
update_log_success: 'Update log success',
no_more_log: 'No more logs',
no_log: 'No log',
loading_log: 'Loading Log...',
close: 'Close',
download_log: 'Download Log',
refresh_log: 'Refresh Log',
enter_full_screen: 'Enter full screen',
cancel_full_screen: 'Cancel full screen',
task_state: 'Task status',
mode_of_dependent: 'Mode of dependent',
open: 'Open',
project_name_required: 'Project name is required',
related_items: 'Related items',
project_name: 'Project Name',
project_tips: 'Please select project name'
},
task: {
task_name: 'Task Name',
task_type: 'Task Type',
create_task: 'Create Task',
workflow_instance: 'Workflow Instance',
workflow_name: 'Workflow Name',
workflow_name_tips: 'Please select workflow name',
workflow_state: 'Workflow State',
version: 'Version',
current_version: 'Current Version',
switch_version: 'Switch To This Version',
confirm_switch_version: 'Confirm Switch To This Version?',
description: 'Description',
move: 'Move',
upstream_tasks: 'Upstream Tasks',
executor: 'Executor',
node_type: 'Node Type',
state: 'State',
submit_time: 'Submit Time',
start_time: 'Start Time',
create_time: 'Create Time',
update_time: 'Update Time',
end_time: 'End Time',
duration: 'Duration',
retry_count: 'Retry Count',
dry_run_flag: 'Dry Run Flag',
host: 'Host',
operation: 'Operation',
edit: 'Edit',
delete: 'Delete',
delete_confirm: 'Delete?',
submitted_success: 'Submitted Success',
running_execution: 'Running Execution',
ready_pause: 'Ready Pause',
pause: 'Pause',
ready_stop: 'Ready Stop',
stop: 'Stop',
failure: 'Failure',
success: 'Success',
need_fault_tolerance: 'Need Fault Tolerance',
kill: 'Kill',
waiting_thread: 'Waiting Thread',
waiting_depend: 'Waiting Depend',
delay_execution: 'Delay Execution',
forced_success: 'Forced Success',
view_log: 'View Log',
download_log: 'Download Log',
refresh: 'Refresh',
serial_wait: 'Serial Wait'
},
dag: {
create: 'Create Workflow',
search: 'Search',
download_png: 'Download PNG',
fullscreen_open: 'Open Fullscreen',
fullscreen_close: 'Close Fullscreen',
save: 'Save',
close: 'Close',
format: 'Format',
refresh_dag_status: 'Refresh DAG status',
layout_type: 'Layout Type',
grid_layout: 'Grid',
dagre_layout: 'Dagre',
rows: 'Rows',
cols: 'Cols',
copy_success: 'Copy Success',
workflow_name: 'Workflow Name',
description: 'Description',
tenant: 'Tenant',
timeout_alert: 'Timeout Alert',
global_variables: 'Global Variables',
basic_info: 'Basic Information',
minute: 'Minute',
key: 'Key',
value: 'Value',
success: 'Success',
delete_cell: 'Delete selected edges and nodes',
online_directly: 'Whether to go online the process definition',
update_directly: 'Whether to update the process definition',
dag_name_empty: 'DAG graph name cannot be empty',
positive_integer: 'Please enter a positive integer greater than 0',
prop_empty: 'prop is empty',
prop_repeat: 'prop is repeat',
node_not_created: 'Failed to save node not created',
copy_name: 'Copy Name',
view_variables: 'View Variables',
startup_parameter: 'Startup Parameter'
},
node: {
current_node_settings: 'Current node settings',
instructions: 'Instructions',
view_history: 'View history',
view_log: 'View log',
enter_this_child_node: 'Enter this child node',
name: 'Node name',
name_tips: 'Please enter name (required)',
task_type: 'Task Type',
task_type_tips: 'Please select a task type (required)',
process_name: 'Process Name',
process_name_tips: 'Please select a process (required)',
child_node: 'Child Node',
enter_child_node: 'Enter child node',
run_flag: 'Run flag',
normal: 'Normal',
prohibition_execution: 'Prohibition execution',
description: 'Description',
description_tips: 'Please enter description',
task_priority: 'Task priority',
worker_group: 'Worker group',
worker_group_tips:
'The Worker group no longer exists, please select the correct Worker group!',
environment_name: 'Environment Name',
task_group_name: 'Task group name',
task_group_queue_priority: 'Priority',
number_of_failed_retries: 'Number of failed retries',
times: 'Times',
failed_retry_interval: 'Failed retry interval',
minute: 'Minute',
delay_execution_time: 'Delay execution time',
state: 'State',
branch_flow: 'Branch flow',
cancel: 'Cancel',
loading: 'Loading...',
confirm: 'Confirm',
success: 'Success',
failed: 'Failed',
backfill_tips:
'The newly created sub-Process has not yet been executed and cannot enter the sub-Process',
task_instance_tips:
'The task has not been executed and cannot enter the sub-Process',
branch_tips:
'Cannot select the same node for successful branch flow and failed branch flow',
timeout_alarm: 'Timeout alarm',
timeout_strategy: 'Timeout strategy',
timeout_strategy_tips: 'Timeout strategy must be selected',
timeout_failure: 'Timeout failure',
timeout_period: 'Timeout period',
timeout_period_tips: 'Timeout must be a positive integer',
script: 'Script',
script_tips: 'Please enter script(required)',
resources: 'Resources',
resources_tips: 'Please select resources',
non_resources_tips: 'Please delete all non-existent resources',
useless_resources_tips: 'Unauthorized or deleted resources',
custom_parameters: 'Custom Parameters',
copy_success: 'Copy success',
copy_failed: 'The browser does not support automatic copying',
prop_tips: 'prop(required)',
prop_repeat: 'prop is repeat',
value_tips: 'value(optional)',
value_required_tips: 'value(required)',
pre_tasks: 'Pre tasks',
program_type: 'Program Type',
spark_version: 'Spark Version',
main_class: 'Main Class',
main_class_tips: 'Please enter main class',
main_package: 'Main Package',
main_package_tips: 'Please enter main package',
deploy_mode: 'Deploy Mode',
app_name: 'App Name',
app_name_tips: 'Please enter app name(optional)',
driver_cores: 'Driver Cores',
driver_cores_tips: 'Please enter Driver cores',
driver_memory: 'Driver Memory',
driver_memory_tips: 'Please enter Driver memory',
executor_number: 'Executor Number',
executor_number_tips: 'Please enter Executor number',
executor_memory: 'Executor Memory',
executor_memory_tips: 'Please enter Executor memory',
executor_cores: 'Executor Cores',
executor_cores_tips: 'Please enter Executor cores',
main_arguments: 'Main Arguments',
main_arguments_tips: 'Please enter main arguments',
option_parameters: 'Option Parameters',
option_parameters_tips: 'Please enter option parameters',
positive_integer_tips: 'should be a positive integer',
flink_version: 'Flink Version',
job_manager_memory: 'JobManager Memory',
job_manager_memory_tips: 'Please enter JobManager memory',
task_manager_memory: 'TaskManager Memory',
task_manager_memory_tips: 'Please enter TaskManager memory',
slot_number: 'Slot Number',
slot_number_tips: 'Please enter Slot number',
parallelism: 'Parallelism',
custom_parallelism: 'Configure parallelism',
parallelism_tips: 'Please enter Parallelism',
parallelism_number_tips: 'Parallelism number should be positive integer',
parallelism_complement_tips:
'If there are a large number of tasks requiring complement, you can use the custom parallelism to ' +
'set the complement task thread to a reasonable value to avoid too large impact on the server.',
task_manager_number: 'TaskManager Number',
task_manager_number_tips: 'Please enter TaskManager number',
http_url: 'Http Url',
http_url_tips: 'Please Enter Http Url',
http_method: 'Http Method',
http_parameters: 'Http Parameters',
http_check_condition: 'Http Check Condition',
http_condition: 'Http Condition',
http_condition_tips: 'Please Enter Http Condition',
timeout_settings: 'Timeout Settings',
connect_timeout: 'Connect Timeout',
ms: 'ms',
socket_timeout: 'Socket Timeout',
status_code_default: 'Default response code 200',
status_code_custom: 'Custom response code',
body_contains: 'Content includes',
body_not_contains: 'Content does not contain',
http_parameters_position: 'Http Parameters Position',
target_task_name: 'Target Task Name',
target_task_name_tips: 'Please enter the Pigeon task name',
datasource_type: 'Datasource types',
datasource_instances: 'Datasource instances',
sql_type: 'SQL Type',
sql_type_query: 'Query',
sql_type_non_query: 'Non Query',
sql_statement: 'SQL Statement',
pre_sql_statement: 'Pre SQL Statement',
post_sql_statement: 'Post SQL Statement',
sql_input_placeholder: 'Please enter non-query sql.',
sql_empty_tips: 'The sql can not be empty.',
procedure_method: 'SQL Statement',
procedure_method_tips: 'Please enter the procedure script',
procedure_method_snippet:
'--Please enter the procedure script \n\n--call procedure:call <procedure-name>[(<arg1>,<arg2>, ...)]\n\n--call function:?= call <procedure-name>[(<arg1>,<arg2>, ...)]',
start: 'Start',
edit: 'Edit',
copy: 'Copy',
delete: 'Delete',
custom_job: 'Custom Job',
custom_script: 'Custom Script',
sqoop_job_name: 'Job Name',
sqoop_job_name_tips: 'Please enter Job Name(required)',
direct: 'Direct',
hadoop_custom_params: 'Hadoop Params',
sqoop_advanced_parameters: 'Sqoop Advanced Parameters',
data_source: 'Data Source',
type: 'Type',
datasource: 'Datasource',
datasource_tips: 'Please select the datasource',
model_type: 'ModelType',
form: 'Form',
table: 'Table',
table_tips: 'Please enter Mysql Table(required)',
column_type: 'ColumnType',
all_columns: 'All Columns',
some_columns: 'Some Columns',
column: 'Column',
column_tips: 'Please enter Columns (Comma separated)',
database: 'Database',
database_tips: 'Please enter Hive Database(required)',
hive_table_tips: 'Please enter Hive Table(required)',
hive_partition_keys: 'Hive partition Keys',
hive_partition_keys_tips: 'Please enter Hive Partition Keys',
hive_partition_values: 'Hive partition Values',
hive_partition_values_tips: 'Please enter Hive Partition Values',
export_dir: 'Export Dir',
export_dir_tips: 'Please enter Export Dir(required)',
sql_statement_tips: 'SQL Statement(required)',
map_column_hive: 'Map Column Hive',
map_column_java: 'Map Column Java',
data_target: 'Data Target',
create_hive_table: 'CreateHiveTable',
drop_delimiter: 'DropDelimiter',
over_write_src: 'OverWriteSrc',
hive_target_dir: 'Hive Target Dir',
hive_target_dir_tips: 'Please enter hive target dir',
replace_delimiter: 'ReplaceDelimiter',
replace_delimiter_tips: 'Please enter Replace Delimiter',
target_dir: 'Target Dir',
target_dir_tips: 'Please enter Target Dir(required)',
delete_target_dir: 'DeleteTargetDir',
compression_codec: 'CompressionCodec',
file_type: 'FileType',
fields_terminated: 'FieldsTerminated',
fields_terminated_tips: 'Please enter Fields Terminated',
lines_terminated: 'LinesTerminated',
lines_terminated_tips: 'Please enter Lines Terminated',
is_update: 'IsUpdate',
update_key: 'UpdateKey',
update_key_tips: 'Please enter Update Key',
update_mode: 'UpdateMode',
only_update: 'OnlyUpdate',
allow_insert: 'AllowInsert',
concurrency: 'Concurrency',
concurrency_tips: 'Please enter Concurrency',
sea_tunnel_master: 'Master',
sea_tunnel_master_url: 'Master URL',
sea_tunnel_queue: 'Queue',
sea_tunnel_master_url_tips:
'Please enter the master url, e.g., 127.0.0.1:7077',
switch_condition: 'Condition',
switch_branch_flow: 'Branch Flow',
and: 'and',
or: 'or',
datax_custom_template: 'Custom Template Switch',
datax_json_template: 'JSON',
datax_target_datasource_type: 'Target Datasource Type',
datax_target_database: 'Target Database',
datax_target_table: 'Target Table',
datax_target_table_tips: 'Please enter the name of the target table',
datax_target_database_pre_sql: 'Pre SQL Statement',
datax_target_database_post_sql: 'Post SQL Statement',
datax_non_query_sql_tips: 'Please enter the non-query sql statement',
datax_job_speed_byte: 'Speed(Byte count)',
datax_job_speed_byte_info: '(0 means unlimited)',
datax_job_speed_record: 'Speed(Record count)',
datax_job_speed_record_info: '(0 means unlimited)',
datax_job_runtime_memory: 'Runtime Memory Limits',
datax_job_runtime_memory_xms: 'Low Limit Value',
datax_job_runtime_memory_xmx: 'High Limit Value',
datax_job_runtime_memory_unit: 'G',
current_hour: 'CurrentHour',
last_1_hour: 'Last1Hour',
last_2_hour: 'Last2Hours',
last_3_hour: 'Last3Hours',
last_24_hour: 'Last24Hours',
today: 'today',
last_1_days: 'Last1Days',
last_2_days: 'Last2Days',
last_3_days: 'Last3Days',
last_7_days: 'Last7Days',
this_week: 'ThisWeek',
last_week: 'LastWeek',
last_monday: 'LastMonday',
last_tuesday: 'LastTuesday',
last_wednesday: 'LastWednesday',
last_thursday: 'LastThursday',
last_friday: 'LastFriday',
last_saturday: 'LastSaturday',
last_sunday: 'LastSunday',
this_month: 'ThisMonth',
last_month: 'LastMonth',
last_month_begin: 'LastMonthBegin',
last_month_end: 'LastMonthEnd',
month: 'month',
week: 'week',
day: 'day',
hour: 'hour',
add_dependency: 'Add dependency',
waiting_dependent_start: 'Waiting Dependent start',
check_interval: 'Check interval',
waiting_dependent_complete: 'Waiting Dependent complete',
rule_name: 'Rule Name',
null_check: 'NullCheck',
custom_sql: 'CustomSql',
multi_table_accuracy: 'MulTableAccuracy',
multi_table_value_comparison: 'MulTableCompare',
field_length_check: 'FieldLengthCheck',
uniqueness_check: 'UniquenessCheck',
regexp_check: 'RegexpCheck',
timeliness_check: 'TimelinessCheck',
enumeration_check: 'EnumerationCheck',
table_count_check: 'TableCountCheck',
src_connector_type: 'SrcConnType',
src_datasource_id: 'SrcSource',
src_table: 'SrcTable',
src_filter: 'SrcFilter',
src_field: 'SrcField',
statistics_name: 'ActualValName',
check_type: 'CheckType',
operator: 'Operator',
threshold: 'Threshold',
failure_strategy: 'FailureStrategy',
target_connector_type: 'TargetConnType',
target_datasource_id: 'TargetSourceId',
target_table: 'TargetTable',
target_filter: 'TargetFilter',
mapping_columns: 'OnClause',
statistics_execute_sql: 'ActualValExecSql',
comparison_name: 'ExceptedValName',
comparison_execute_sql: 'ExceptedValExecSql',
comparison_type: 'ExceptedValType',
writer_connector_type: 'WriterConnType',
writer_datasource_id: 'WriterSourceId',
target_field: 'TargetField',
field_length: 'FieldLength',
logic_operator: 'LogicOperator',
regexp_pattern: 'RegexpPattern',
deadline: 'Deadline',
datetime_format: 'DatetimeFormat',
enum_list: 'EnumList',
begin_time: 'BeginTime',
fix_value: 'FixValue',
required: 'required',
emr_flow_define_json: 'jobFlowDefineJson',
emr_flow_define_json_tips: 'Please enter the definition of the job flow.'
}
}
const security = {
tenant: {
tenant_manage: 'Tenant Manage',
create_tenant: 'Create Tenant',
search_tips: 'Please enter keywords',
tenant_code: 'Operating System Tenant',
description: 'Description',
queue_name: 'QueueName',
create_time: 'Create Time',
update_time: 'Update Time',
actions: 'Operation',
edit_tenant: 'Edit Tenant',
tenant_code_tips: 'Please enter the operating system tenant',
queue_name_tips: 'Please select queue',
description_tips: 'Please enter a description',
delete_confirm: 'Delete?',
edit: 'Edit',
delete: 'Delete'
},
alarm_group: {
create_alarm_group: 'Create Alarm Group',
edit_alarm_group: 'Edit Alarm Group',
search_tips: 'Please enter keywords',
alert_group_name_tips: 'Please enter your alert group name',
alarm_plugin_instance: 'Alarm Plugin Instance',
alarm_plugin_instance_tips: 'Please select alert plugin instance',
alarm_group_description_tips: 'Please enter your alarm group description',
alert_group_name: 'Alert Group Name',
alarm_group_description: 'Alarm Group Description',
create_time: 'Create Time',
update_time: 'Update Time',
operation: 'Operation',
delete_confirm: 'Delete?',
edit: 'Edit',
delete: 'Delete'
},
worker_group: {
create_worker_group: 'Create Worker Group',
edit_worker_group: 'Edit Worker Group',
search_tips: 'Please enter keywords',
operation: 'Operation',
delete_confirm: 'Delete?',
edit: 'Edit',
delete: 'Delete',
group_name: 'Group Name',
group_name_tips: 'Please enter your group name',
worker_addresses: 'Worker Addresses',
worker_addresses_tips: 'Please select worker addresses',
create_time: 'Create Time',
update_time: 'Update Time'
},
yarn_queue: {
create_queue: 'Create Queue',
edit_queue: 'Edit Queue',
search_tips: 'Please enter keywords',
queue_name: 'Queue Name',
queue_value: 'Queue Value',
create_time: 'Create Time',
update_time: 'Update Time',
operation: 'Operation',
edit: 'Edit',
queue_name_tips: 'Please enter your queue name',
queue_value_tips: 'Please enter your queue value'
},
environment: {
create_environment: 'Create Environment',
edit_environment: 'Edit Environment',
search_tips: 'Please enter keywords',
edit: 'Edit',
delete: 'Delete',
environment_name: 'Environment Name',
environment_config: 'Environment Config',
environment_desc: 'Environment Desc',
worker_groups: 'Worker Groups',
create_time: 'Create Time',
update_time: 'Update Time',
operation: 'Operation',
delete_confirm: 'Delete?',
environment_name_tips: 'Please enter your environment name',
environment_config_tips: 'Please enter your environment config',
environment_description_tips: 'Please enter your environment description',
worker_group_tips: 'Please select worker group'
},
token: {
create_token: 'Create Token',
edit_token: 'Edit Token',
search_tips: 'Please enter keywords',
user: 'User',
user_tips: 'Please select user',
token: 'Token',
token_tips: 'Please enter your token',
expiration_time: 'Expiration Time',
expiration_time_tips: 'Please select expiration time',
create_time: 'Create Time',
update_time: 'Update Time',
operation: 'Operation',
edit: 'Edit',
delete: 'Delete',
delete_confirm: 'Delete?'
},
user: {
user_manage: 'User Manage',
create_user: 'Create User',
update_user: 'Update User',
delete_user: 'Delete User',
delete_confirm: 'Are you sure to delete?',
delete_confirm_tip:
'Deleting user is a dangerous operation,please be careful',
project: 'Project',
resource: 'Resource',
file_resource: 'File Resource',
udf_resource: 'UDF Resource',
datasource: 'Datasource',
udf: 'UDF Function',
authorize_project: 'Project Authorize',
authorize_resource: 'Resource Authorize',
authorize_datasource: 'Datasource Authorize',
authorize_udf: 'UDF Function Authorize',
username: 'Username',
username_exists: 'The username already exists',
username_tips: 'Please enter username',
user_password: 'Password',
user_password_tips:
'Please enter a password containing letters and numbers with a length between 6 and 20',
user_type: 'User Type',
ordinary_user: 'Ordinary users',
administrator: 'Administrator',
tenant_code: 'Tenant',
tenant_id_tips: 'Please select tenant',
queue: 'Queue',
queue_tips: 'Please select a queue',
email: 'Email',
email_empty_tips: 'Please enter email',
emial_correct_tips: 'Please enter the correct email format',
phone: 'Phone',
phone_empty_tips: 'Please enter phone number',
phone_correct_tips: 'Please enter the correct mobile phone format',
state: 'State',
state_enabled: 'Enabled',
state_disabled: 'Disabled',
create_time: 'Create Time',
update_time: 'Update Time',
operation: 'Operation',
edit: 'Edit',
delete: 'Delete',
authorize: 'Authorize',
save_error_msg: 'Failed to save, please retry',
delete_error_msg: 'Failed to delete, please retry',
auth_error_msg: 'Failed to authorize, please retry',
auth_success_msg: 'Authorize succeeded',
enable: 'Enable',
disable: 'Disable'
},
alarm_instance: {
search_input_tips: 'Please input the keywords',
alarm_instance_manage: 'Alarm instance manage',
alarm_instance_name: 'Alarm instance name',
alarm_instance_name_tips: 'Please enter alarm plugin instance name',
alarm_plugin_name: 'Alarm plugin name',
create_time: 'Create Time',
update_time: 'Update Time',
operation: 'Operation',
edit_alarm_instance: 'Edit Alarm Instance',
delete: 'Delete',
delete_confirm: 'Delete?',
confirm: 'Confirm',
cancel: 'Cancel',
submit: 'Submit',
create_alarm_instance: 'Create Alarm Instance',
select_plugin: 'Select plugin',
select_plugin_tips: 'Select Alarm plugin',
instance_parameter_exception: 'Instance parameter exception',
WebHook: 'WebHook',
webHook: 'WebHook',
WarningType: 'Warning Type',
IsEnableProxy: 'Enable Proxy',
Proxy: 'Proxy',
Port: 'Port',
User: 'User',
corpId: 'CorpId',
secret: 'Secret',
Secret: 'Secret',
users: 'Users',
userSendMsg: 'UserSendMsg',
agentId: 'AgentId',
showType: 'Show Type',
receivers: 'Receivers',
receiverCcs: 'ReceiverCcs',
serverHost: 'SMTP Host',
serverPort: 'SMTP Port',
sender: 'Sender',
enableSmtpAuth: 'SMTP Auth',
Password: 'Password',
starttlsEnable: 'SMTP STARTTLS Enable',
sslEnable: 'SMTP SSL Enable',
smtpSslTrust: 'SMTP SSL Trust',
url: 'URL',
requestType: 'Request Type',
headerParams: 'Headers',
bodyParams: 'Body',
contentField: 'Content Field',
Keyword: 'Keyword',
userParams: 'User Params',
path: 'Script Path',
type: 'Type',
sendType: 'Send Type',
username: 'Username',
botToken: 'Bot Token',
chatId: 'Channel Chat Id',
parseMode: 'Parse Mode'
},
k8s_namespace: {
create_namespace: 'Create Namespace',
edit_namespace: 'Edit Namespace',
search_tips: 'Please enter keywords',
k8s_namespace: 'K8S Namespace',
k8s_namespace_tips: 'Please enter k8s namespace',
k8s_cluster: 'K8S Cluster',
k8s_cluster_tips: 'Please enter k8s cluster',
owner: 'Owner',
owner_tips: 'Please enter owner',
tag: 'Tag',
tag_tips: 'Please enter tag',
limit_cpu: 'Limit CPU',
limit_cpu_tips: 'Please enter limit CPU',
limit_memory: 'Limit Memory',
limit_memory_tips: 'Please enter limit memory',
create_time: 'Create Time',
update_time: 'Update Time',
operation: 'Operation',
edit: 'Edit',
delete: 'Delete',
delete_confirm: 'Delete?'
}
}
const datasource = {
datasource: 'DataSource',
create_datasource: 'Create DataSource',
search_input_tips: 'Please input the keywords',
datasource_name: 'Datasource Name',
datasource_name_tips: 'Please enter datasource name',
datasource_user_name: 'Owner',
datasource_type: 'Datasource Type',
datasource_parameter: 'Datasource Parameter',
description: 'Description',
description_tips: 'Please enter description',
create_time: 'Create Time',
update_time: 'Update Time',
operation: 'Operation',
click_to_view: 'Click to view',
delete: 'Delete',
confirm: 'Confirm',
delete_confirm: 'Delete?',
cancel: 'Cancel',
create: 'Create',
edit: 'Edit',
success: 'Success',
test_connect: 'Test Connect',
ip: 'IP',
ip_tips: 'Please enter IP',
port: 'Port',
port_tips: 'Please enter port',
database_name: 'Database Name',
database_name_tips: 'Please enter database name',
oracle_connect_type: 'ServiceName or SID',
oracle_connect_type_tips: 'Please select serviceName or SID',
oracle_service_name: 'ServiceName',
oracle_sid: 'SID',
jdbc_connect_parameters: 'jdbc connect parameters',
principal_tips: 'Please enter Principal',
krb5_conf_tips:
'Please enter the kerberos authentication parameter java.security.krb5.conf',
keytab_username_tips:
'Please enter the kerberos authentication parameter login.user.keytab.username',
keytab_path_tips:
'Please enter the kerberos authentication parameter login.user.keytab.path',
format_tips: 'Please enter format',
connection_parameter: 'connection parameter',
user_name: 'User Name',
user_name_tips: 'Please enter your username',
user_password: 'Password',
user_password_tips: 'Please enter your password'
}
const data_quality = {
task_result: {
task_name: 'Task Name',
workflow_instance: 'Workflow Instance',
rule_type: 'Rule Type',
rule_name: 'Rule Name',
state: 'State',
actual_value: 'Actual Value',
excepted_value: 'Excepted Value',
check_type: 'Check Type',
operator: 'Operator',
threshold: 'Threshold',
failure_strategy: 'Failure Strategy',
excepted_value_type: 'Excepted Value Type',
error_output_path: 'Error Output Path',
username: 'Username',
create_time: 'Create Time',
update_time: 'Update Time',
undone: 'Undone',
success: 'Success',
failure: 'Failure',
single_table: 'Single Table',
single_table_custom_sql: 'Single Table Custom Sql',
multi_table_accuracy: 'Multi Table Accuracy',
multi_table_comparison: 'Multi Table Comparison',
expected_and_actual_or_expected: '(Expected - Actual) / Expected x 100%',
expected_and_actual: 'Expected - Actual',
actual_and_expected: 'Actual - Expected',
actual_or_expected: 'Actual / Expected x 100%'
},
rule: {
actions: 'Actions',
name: 'Rule Name',
type: 'Rule Type',
username: 'User Name',
create_time: 'Create Time',
update_time: 'Update Time',
input_item: 'Rule input item',
view_input_item: 'View input items',
input_item_title: 'Input item title',
input_item_placeholder: 'Input item placeholder',
input_item_type: 'Input item type',
src_connector_type: 'SrcConnType',
src_datasource_id: 'SrcSource',
src_table: 'SrcTable',
src_filter: 'SrcFilter',
src_field: 'SrcField',
statistics_name: 'ActualValName',
check_type: 'CheckType',
operator: 'Operator',
threshold: 'Threshold',
failure_strategy: 'FailureStrategy',
target_connector_type: 'TargetConnType',
target_datasource_id: 'TargetSourceId',
target_table: 'TargetTable',
target_filter: 'TargetFilter',
mapping_columns: 'OnClause',
statistics_execute_sql: 'ActualValExecSql',
comparison_name: 'ExceptedValName',
comparison_execute_sql: 'ExceptedValExecSql',
comparison_type: 'ExceptedValType',
writer_connector_type: 'WriterConnType',
writer_datasource_id: 'WriterSourceId',
target_field: 'TargetField',
field_length: 'FieldLength',
logic_operator: 'LogicOperator',
regexp_pattern: 'RegexpPattern',
deadline: 'Deadline',
datetime_format: 'DatetimeFormat',
enum_list: 'EnumList',
begin_time: 'BeginTime',
fix_value: 'FixValue',
null_check: 'NullCheck',
custom_sql: 'Custom Sql',
single_table: 'Single Table',
single_table_custom_sql: 'Single Table Custom Sql',
multi_table_accuracy: 'Multi Table Accuracy',
multi_table_value_comparison: 'Multi Table Compare',
field_length_check: 'FieldLengthCheck',
uniqueness_check: 'UniquenessCheck',
regexp_check: 'RegexpCheck',
timeliness_check: 'TimelinessCheck',
enumeration_check: 'EnumerationCheck',
table_count_check: 'TableCountCheck',
All: 'All',
FixValue: 'FixValue',
DailyAvg: 'DailyAvg',
WeeklyAvg: 'WeeklyAvg',
MonthlyAvg: 'MonthlyAvg',
Last7DayAvg: 'Last7DayAvg',
Last30DayAvg: 'Last30DayAvg',
SrcTableTotalRows: 'SrcTableTotalRows',
TargetTableTotalRows: 'TargetTableTotalRows'
}
}
const crontab = {
second: 'second',
minute: 'minute',
hour: 'hour',
day: 'day',
month: 'month',
year: 'year',
monday: 'Monday',
tuesday: 'Tuesday',
wednesday: 'Wednesday',
thursday: 'Thursday',
friday: 'Friday',
saturday: 'Saturday',
sunday: 'Sunday',
every_second: 'Every second',
every: 'Every',
second_carried_out: 'second carried out',
second_start: 'Start',
specific_second: 'Specific second(multiple)',
specific_second_tip: 'Please enter a specific second',
cycle_from: 'Cycle from',
to: 'to',
every_minute: 'Every minute',
minute_carried_out: 'minute carried out',
minute_start: 'Start',
specific_minute: 'Specific minute(multiple)',
specific_minute_tip: 'Please enter a specific minute',
every_hour: 'Every hour',
hour_carried_out: 'hour carried out',
hour_start: 'Start',
specific_hour: 'Specific hour(multiple)',
specific_hour_tip: 'Please enter a specific hour',
every_day: 'Every day',
week_carried_out: 'week carried out',
start: 'Start',
day_carried_out: 'day carried out',
day_start: 'Start',
specific_week: 'Specific day of the week(multiple)',
specific_week_tip: 'Please enter a specific week',
specific_day: 'Specific days(multiple)',
specific_day_tip: 'Please enter a days',
last_day_of_month: 'On the last day of the month',
last_work_day_of_month: 'On the last working day of the month',
last_of_month: 'At the last of this month',
before_end_of_month: 'Before the end of this month',
recent_business_day_to_month:
'The most recent business day (Monday to Friday) to this month',
in_this_months: 'In this months',
every_month: 'Every month',
month_carried_out: 'month carried out',
month_start: 'Start',
specific_month: 'Specific months(multiple)',
specific_month_tip: 'Please enter a months',
every_year: 'Every year',
year_carried_out: 'year carried out',
year_start: 'Start',
specific_year: 'Specific year(multiple)',
specific_year_tip: 'Please enter a year',
one_hour: 'hour',
one_day: 'day'
}
export default {
login,
modal,
theme,
userDropdown,
menu,
home,
password,
profile,
monitor,
resource,
project,
security,
datasource,
data_quality,
crontab
}
|
closed
|
apache/dolphinscheduler
|
https://github.com/apache/dolphinscheduler
| 8,985 |
[Feature][UI] Add an option "thisMonthBegin" in dependency settings in dependent node
|
### Search before asking
- [X] I had searched in the [issues](https://github.com/apache/dolphinscheduler/issues?q=is%3Aissue) and found no similar feature requirement.
### Description

add thisMonthBegin in the drop down menu here, it will be useful in some cases, for example, we have lots of workflows which depended by other workflows, and the workflow being depended are running on 1st day of the month, if we had this option, things will be easyer.
有的工作流依赖本月初运行的工作流,如果在依赖节点中有 本月初 的选项,会很有用。
### Use case
_No response_
### Related issues
_No response_
### Are you willing to submit a PR?
- [ ] Yes I am willing to submit a PR!
### Code of Conduct
- [X] I agree to follow this project's [Code of Conduct](https://www.apache.org/foundation/policies/conduct)
|
https://github.com/apache/dolphinscheduler/issues/8985
|
https://github.com/apache/dolphinscheduler/pull/9004
|
7d94adabc8073e00263f982ed7882b8cb7b03a63
|
d89c7ac8bb0f4c35cccb89b7cf05afa53fd5fb85
| 2022-03-18T07:44:53Z |
java
| 2022-03-19T01:51:36Z |
dolphinscheduler-ui-next/src/locales/modules/zh_CN.ts
|
/*
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership.
* The ASF licenses this file to You under the Apache License, Version 2.0
* (the "License"); you may not use this file except in compliance with
* the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
const login = {
test: '测试',
userName: '用户名',
userName_tips: '请输入用户名',
userPassword: '密码',
userPassword_tips: '请输入密码',
login: '登录'
}
const modal = {
cancel: '取消',
confirm: '确定'
}
const theme = {
light: '浅色',
dark: '深色'
}
const userDropdown = {
profile: '用户信息',
password: '密码管理',
logout: '退出登录'
}
const menu = {
home: '首页',
project: '项目管理',
resources: '资源中心',
datasource: '数据源中心',
monitor: '监控中心',
security: '安全中心',
project_overview: '项目概览',
workflow_relation: '工作流关系',
workflow: '工作流',
workflow_definition: '工作流定义',
workflow_instance: '工作流实例',
task: '任务',
task_instance: '任务实例',
task_definition: '任务定义',
file_manage: '文件管理',
udf_manage: 'UDF管理',
resource_manage: '资源管理',
function_manage: '函数管理',
service_manage: '服务管理',
master: 'Master',
worker: 'Worker',
db: 'DB',
statistical_manage: '统计管理',
statistics: 'Statistics',
audit_log: '审计日志',
tenant_manage: '租户管理',
user_manage: '用户管理',
alarm_group_manage: '告警组管理',
alarm_instance_manage: '告警实例管理',
worker_group_manage: 'Worker分组管理',
yarn_queue_manage: 'Yarn队列管理',
environment_manage: '环境管理',
k8s_namespace_manage: 'K8S命名空间管理',
token_manage: '令牌管理',
task_group_manage: '任务组管理',
task_group_option: '任务组配置',
task_group_queue: '任务组队列',
data_quality: '数据质量',
task_result: '任务结果',
rule: '规则管理'
}
const home = {
task_state_statistics: '任务状态统计',
process_state_statistics: '流程状态统计',
process_definition_statistics: '流程定义统计',
number: '数量',
state: '状态',
submitted_success: '提交成功',
running_execution: '正在运行',
ready_pause: '准备暂停',
pause: '暂停',
ready_stop: '准备停止',
stop: '停止',
failure: '失败',
success: '成功',
need_fault_tolerance: '需要容错',
kill: 'KILL',
waiting_thread: '等待线程',
waiting_depend: '等待依赖完成',
delay_execution: '延时执行',
forced_success: '强制成功',
serial_wait: '串行等待',
ready_block: '准备阻断',
block: '阻断'
}
const password = {
edit_password: '修改密码',
password: '密码',
confirm_password: '确认密码',
password_tips: '请输入密码',
confirm_password_tips: '请输入确认密码',
two_password_entries_are_inconsistent: '两次密码输入不一致',
submit: '提交'
}
const profile = {
profile: '用户信息',
edit: '编辑',
username: '用户名',
email: '邮箱',
phone: '手机',
state: '状态',
permission: '权限',
create_time: '创建时间',
update_time: '更新时间',
administrator: '管理员',
ordinary_user: '普通用户',
edit_profile: '编辑用户',
username_tips: '请输入用户名',
email_tips: '请输入邮箱',
email_correct_tips: '请输入正确格式的邮箱',
phone_tips: '请输入手机号',
state_tips: '请选择状态',
enable: '启用',
disable: '禁用',
timezone_success: '时区更新成功',
please_select_timezone: '请选择时区'
}
const monitor = {
master: {
cpu_usage: '处理器使用量',
memory_usage: '内存使用量',
load_average: '平均负载量',
create_time: '创建时间',
last_heartbeat_time: '最后心跳时间',
directory_detail: '目录详情',
host: '主机',
directory: '注册目录'
},
worker: {
cpu_usage: '处理器使用量',
memory_usage: '内存使用量',
load_average: '平均负载量',
create_time: '创建时间',
last_heartbeat_time: '最后心跳时间',
directory_detail: '目录详情',
host: '主机',
directory: '注册目录'
},
db: {
health_state: '健康状态',
max_connections: '最大连接数',
threads_connections: '当前连接数',
threads_running_connections: '数据库当前活跃连接数'
},
statistics: {
command_number_of_waiting_for_running: '待执行的命令数',
failure_command_number: '执行失败的命令数',
tasks_number_of_waiting_running: '待运行任务数',
task_number_of_ready_to_kill: '待杀死任务数'
},
audit_log: {
user_name: '用户名称',
resource_type: '资源类型',
project_name: '项目名称',
operation_type: '操作类型',
create_time: '创建时间',
start_time: '开始时间',
end_time: '结束时间',
user_audit: '用户管理审计',
project_audit: '项目管理审计',
create: '创建',
update: '更新',
delete: '删除',
read: '读取'
}
}
const resource = {
file: {
file_manage: '文件管理',
create_folder: '创建文件夹',
create_file: '创建文件',
upload_files: '上传文件',
enter_keyword_tips: '请输入关键词',
name: '名称',
user_name: '所属用户',
whether_directory: '是否文件夹',
file_name: '文件名称',
description: '描述',
size: '大小',
update_time: '更新时间',
operation: '操作',
edit: '编辑',
rename: '重命名',
download: '下载',
delete: '删除',
yes: '是',
no: '否',
folder_name: '文件夹名称',
enter_name_tips: '请输入名称',
enter_description_tips: '请输入描述',
enter_content_tips: '请输入资源内容',
enter_suffix_tips: '请输入文件后缀',
file_format: '文件格式',
file_content: '文件内容',
delete_confirm: '确定删除吗?',
confirm: '确定',
cancel: '取消',
success: '成功',
file_details: '文件详情',
return: '返回',
save: '保存'
},
udf: {
udf_resources: 'UDF资源',
create_folder: '创建文件夹',
upload_udf_resources: '上传UDF资源',
udf_source_name: 'UDF资源名称',
whether_directory: '是否文件夹',
file_name: '文件名称',
file_size: '文件大小',
description: '描述',
create_time: '创建时间',
update_time: '更新时间',
operation: '操作',
yes: '是',
no: '否',
edit: '编辑',
download: '下载',
delete: '删除',
success: '成功',
folder_name: '文件夹名称',
upload: '上传',
upload_files: '上传文件',
file_upload: '文件上传',
delete_confirm: '确定删除吗?',
enter_keyword_tips: '请输入关键词',
enter_name_tips: '请输入名称',
enter_description_tips: '请输入描述'
},
function: {
udf_function: 'UDF函数',
create_udf_function: '创建UDF函数',
edit_udf_function: '编辑UDF函数',
udf_function_name: 'UDF函数名称',
class_name: '类名',
type: '类型',
description: '描述',
jar_package: 'jar包',
update_time: '更新时间',
operation: '操作',
rename: '重命名',
edit: '编辑',
delete: '删除',
success: '成功',
package_name: '包名类名',
udf_resources: 'UDF资源',
instructions: '使用说明',
upload_resources: '上传资源',
udf_resources_directory: 'UDF资源目录',
delete_confirm: '确定删除吗?',
enter_keyword_tips: '请输入关键词',
enter_udf_unction_name_tips: '请输入UDF函数名称',
enter_package_name_tips: '请输入包名类名',
enter_select_udf_resources_tips: '请选择UDF资源',
enter_select_udf_resources_directory_tips: '请选择UDF资源目录',
enter_instructions_tips: '请输入使用说明',
enter_name_tips: '请输入名称',
enter_description_tips: '请输入描述'
},
task_group_option: {
manage: '任务组管理',
option: '任务组配置',
create: '创建任务组',
edit: '编辑任务组',
delete: '删除任务组',
view_queue: '查看任务组队列',
switch_status: '切换任务组状态',
code: '任务组编号',
name: '任务组名称',
project_name: '项目名称',
resource_pool_size: '资源容量',
resource_used_pool_size: '已用资源',
desc: '描述信息',
status: '任务组状态',
enable_status: '启用',
disable_status: '不可用',
please_enter_name: '请输入任务组名称',
please_enter_desc: '请输入任务组描述',
please_enter_resource_pool_size: '请输入资源容量大小',
resource_pool_size_be_a_number: '资源容量大小必须大于等于1的数值',
please_select_project: '请选择项目',
create_time: '创建时间',
update_time: '更新时间',
actions: '操作',
please_enter_keywords: '请输入搜索关键词'
},
task_group_queue: {
actions: '操作',
task_name: '任务名称',
task_group_name: '任务组名称',
project_name: '项目名称',
process_name: '工作流名称',
process_instance_name: '工作流实例',
queue: '任务组队列',
priority: '组内优先级',
priority_be_a_number: '优先级必须是大于等于0的数值',
force_starting_status: '是否强制启动',
in_queue: '是否排队中',
task_status: '任务状态',
view_task_group_queue: '查看任务组队列',
the_status_of_waiting: '等待入队',
the_status_of_queuing: '排队中',
the_status_of_releasing: '已释放',
modify_priority: '修改优先级',
start_task: '强制启动',
priority_not_empty: '优先级不能为空',
priority_must_be_number: '优先级必须是数值',
please_select_task_name: '请选择节点名称',
create_time: '创建时间',
update_time: '更新时间',
edit_priority: '修改优先级'
}
}
const project = {
list: {
create_project: '创建项目',
edit_project: '编辑项目',
project_list: '项目列表',
project_tips: '请输入项目名称',
description_tips: '请输入项目描述',
username_tips: '请输入所属用户',
project_name: '项目名称',
project_description: '项目描述',
owned_users: '所属用户',
workflow_define_count: '工作流定义数',
process_instance_running_count: '正在运行的流程数',
description: '描述',
create_time: '创建时间',
update_time: '更新时间',
operation: '操作',
edit: '编辑',
delete: '删除',
confirm: '确定',
cancel: '取消',
delete_confirm: '确定删除吗?'
},
workflow: {
workflow_relation: '工作流关系',
create_workflow: '创建工作流',
import_workflow: '导入工作流',
workflow_name: '工作流名称',
current_selection: '当前选择',
online: '已上线',
offline: '已下线',
refresh: '刷新',
show_hide_label: '显示 / 隐藏标签',
workflow_offline: '工作流下线',
schedule_offline: '调度下线',
schedule_start_time: '定时开始时间',
schedule_end_time: '定时结束时间',
crontab_expression: 'Crontab',
workflow_publish_status: '工作流上线状态',
schedule_publish_status: '定时状态',
workflow_definition: '工作流定义',
workflow_instance: '工作流实例',
status: '状态',
create_time: '创建时间',
update_time: '更新时间',
description: '描述',
create_user: '创建用户',
modify_user: '修改用户',
operation: '操作',
edit: '编辑',
confirm: '确定',
cancel: '取消',
start: '运行',
timing: '定时',
timezone: '时区',
up_line: '上线',
down_line: '下线',
copy_workflow: '复制工作流',
cron_manage: '定时管理',
delete: '删除',
tree_view: '工作流树形图',
tree_limit: '限制大小',
export: '导出',
batch_copy: '批量复制',
version_info: '版本信息',
version: '版本',
file_upload: '文件上传',
upload_file: '上传文件',
upload: '上传',
file_name: '文件名称',
success: '成功',
set_parameters_before_starting: '启动前请先设置参数',
set_parameters_before_timing: '定时前请先设置参数',
start_and_stop_time: '起止时间',
next_five_execution_times: '接下来五次执行时间',
execute_time: '执行时间',
failure_strategy: '失败策略',
notification_strategy: '通知策略',
workflow_priority: '流程优先级',
worker_group: 'Worker分组',
environment_name: '环境名称',
alarm_group: '告警组',
complement_data: '补数',
startup_parameter: '启动参数',
whether_dry_run: '是否空跑',
continue: '继续',
end: '结束',
none_send: '都不发',
success_send: '成功发',
failure_send: '失败发',
all_send: '成功或失败都发',
whether_complement_data: '是否是补数',
schedule_date: '调度日期',
mode_of_execution: '执行方式',
serial_execution: '串行执行',
parallel_execution: '并行执行',
parallelism: '并行度',
custom_parallelism: '自定义并行度',
please_enter_parallelism: '请输入并行度',
please_choose: '请选择',
start_time: '开始时间',
end_time: '结束时间',
crontab: 'Crontab',
delete_confirm: '确定删除吗?',
enter_name_tips: '请输入名称',
switch_version: '切换到该版本',
confirm_switch_version: '确定切换到该版本吗?',
current_version: '当前版本',
run_type: '运行类型',
scheduling_time: '调度时间',
duration: '运行时长',
run_times: '运行次数',
fault_tolerant_sign: '容错标识',
dry_run_flag: '空跑标识',
executor: '执行用户',
host: 'Host',
start_process: '启动工作流',
execute_from_the_current_node: '从当前节点开始执行',
recover_tolerance_fault_process: '恢复被容错的工作流',
resume_the_suspension_process: '恢复运行流程',
execute_from_the_failed_nodes: '从失败节点开始执行',
scheduling_execution: '调度执行',
rerun: '重跑',
stop: '停止',
pause: '暂停',
recovery_waiting_thread: '恢复等待线程',
recover_serial_wait: '串行恢复',
recovery_suspend: '恢复运行',
recovery_failed: '恢复失败',
gantt: '甘特图',
name: '名称',
all_status: '全部状态',
submit_success: '提交成功',
running: '正在运行',
ready_to_pause: '准备暂停',
ready_to_stop: '准备停止',
failed: '失败',
need_fault_tolerance: '需要容错',
kill: 'Kill',
waiting_for_thread: '等待线程',
waiting_for_dependence: '等待依赖',
waiting_for_dependency_to_complete: '等待依赖完成',
delay_execution: '延时执行',
forced_success: '强制成功',
serial_wait: '串行等待',
executing: '正在执行',
startup_type: '启动类型',
complement_range: '补数范围',
parameters_variables: '参数变量',
global_parameters: '全局参数',
local_parameters: '局部参数',
type: '类型',
retry_count: '重试次数',
submit_time: '提交时间',
refresh_status_succeeded: '刷新状态成功',
view_log: '查看日志',
update_log_success: '更新日志成功',
no_more_log: '暂无更多日志',
no_log: '暂无日志',
loading_log: '正在努力请求日志中...',
close: '关闭',
download_log: '下载日志',
refresh_log: '刷新日志',
enter_full_screen: '进入全屏',
cancel_full_screen: '取消全屏',
task_state: '任务状态',
mode_of_dependent: '依赖模式',
open: '打开',
project_name_required: '项目名称必填',
related_items: '关联项目',
project_name: '项目名称',
project_tips: '请选择项目'
},
task: {
task_name: '任务名称',
task_type: '任务类型',
create_task: '创建任务',
workflow_instance: '工作流实例',
workflow_name: '工作流名称',
workflow_name_tips: '请选择工作流名称',
workflow_state: '工作流状态',
version: '版本',
current_version: '当前版本',
switch_version: '切换到该版本',
confirm_switch_version: '确定切换到该版本吗?',
description: '描述',
move: '移动',
upstream_tasks: '上游任务',
executor: '执行用户',
node_type: '节点类型',
state: '状态',
submit_time: '提交时间',
start_time: '开始时间',
create_time: '创建时间',
update_time: '更新时间',
end_time: '结束时间',
duration: '运行时间',
retry_count: '重试次数',
dry_run_flag: '空跑标识',
host: '主机',
operation: '操作',
edit: '编辑',
delete: '删除',
delete_confirm: '确定删除吗?',
submitted_success: '提交成功',
running_execution: '正在运行',
ready_pause: '准备暂停',
pause: '暂停',
ready_stop: '准备停止',
stop: '停止',
failure: '失败',
success: '成功',
need_fault_tolerance: '需要容错',
kill: 'KILL',
waiting_thread: '等待线程',
waiting_depend: '等待依赖完成',
delay_execution: '延时执行',
forced_success: '强制成功',
view_log: '查看日志',
download_log: '下载日志',
refresh: '刷新',
serial_wait: '串行等待'
},
dag: {
create: '创建工作流',
search: '搜索',
download_png: '下载工作流图片',
fullscreen_open: '全屏',
fullscreen_close: '退出全屏',
save: '保存',
close: '关闭',
format: '格式化',
refresh_dag_status: '刷新DAG状态',
layout_type: '布局类型',
grid_layout: '网格布局',
dagre_layout: '层次布局',
rows: '行数',
cols: '列数',
copy_success: '复制成功',
workflow_name: '工作流名称',
description: '描述',
tenant: '租户',
timeout_alert: '超时告警',
global_variables: '全局变量',
basic_info: '基本信息',
minute: '分',
key: '键',
value: '值',
success: '成功',
delete_cell: '删除选中的线或节点',
online_directly: '是否上线流程定义',
update_directly: '是否更新流程定义',
dag_name_empty: 'DAG图名称不能为空',
positive_integer: '请输入大于 0 的正整数',
prop_empty: '自定义参数prop不能为空',
prop_repeat: 'prop中有重复',
node_not_created: '未创建节点保存失败',
copy_name: '复制名称',
view_variables: '查看变量',
startup_parameter: '启动参数'
},
node: {
current_node_settings: '当前节点设置',
instructions: '使用说明',
view_history: '查看历史',
view_log: '查看日志',
enter_this_child_node: '进入该子节点',
name: '节点名称',
name_tips: '请输入名称(必填)',
task_type: '任务类型',
task_type_tips: '请选择任务类型(必选)',
process_name: '工作流名称',
process_name_tips: '请选择工作流(必选)',
child_node: '子节点',
enter_child_node: '进入该子节点',
run_flag: '运行标志',
normal: '正常',
prohibition_execution: '禁止执行',
description: '描述',
description_tips: '请输入描述',
task_priority: '任务优先级',
worker_group: 'Worker分组',
worker_group_tips: '该Worker分组已经不存在,请选择正确的Worker分组!',
environment_name: '环境名称',
task_group_name: '任务组名称',
task_group_queue_priority: '组内优先级',
number_of_failed_retries: '失败重试次数',
times: '次',
failed_retry_interval: '失败重试间隔',
minute: '分',
delay_execution_time: '延时执行时间',
state: '状态',
branch_flow: '分支流转',
cancel: '取消',
loading: '正在努力加载中...',
confirm: '确定',
success: '成功',
failed: '失败',
backfill_tips: '新创建子工作流还未执行,不能进入子工作流',
task_instance_tips: '该任务还未执行,不能进入子工作流',
branch_tips: '成功分支流转和失败分支流转不能选择同一个节点',
timeout_alarm: '超时告警',
timeout_strategy: '超时策略',
timeout_strategy_tips: '超时策略必须选一个',
timeout_failure: '超时失败',
timeout_period: '超时时长',
timeout_period_tips: '超时时长必须为正整数',
script: '脚本',
script_tips: '请输入脚本(必填)',
resources: '资源',
resources_tips: '请选择资源',
no_resources_tips: '请删除所有未授权或已删除资源',
useless_resources_tips: '未授权或已删除资源',
custom_parameters: '自定义参数',
copy_failed: '该浏览器不支持自动复制',
prop_tips: 'prop(必填)',
prop_repeat: 'prop中有重复',
value_tips: 'value(选填)',
value_required_tips: 'value(必填)',
pre_tasks: '前置任务',
program_type: '程序类型',
spark_version: 'Spark版本',
main_class: '主函数的Class',
main_class_tips: '请填写主函数的Class',
main_package: '主程序包',
main_package_tips: '请选择主程序包',
deploy_mode: '部署方式',
app_name: '任务名称',
app_name_tips: '请输入任务名称(选填)',
driver_cores: 'Driver核心数',
driver_cores_tips: '请输入Driver核心数',
driver_memory: 'Driver内存数',
driver_memory_tips: '请输入Driver内存数',
executor_number: 'Executor数量',
executor_number_tips: '请输入Executor数量',
executor_memory: 'Executor内存数',
executor_memory_tips: '请输入Executor内存数',
executor_cores: 'Executor核心数',
executor_cores_tips: '请输入Executor核心数',
main_arguments: '主程序参数',
main_arguments_tips: '请输入主程序参数',
option_parameters: '选项参数',
option_parameters_tips: '请输入选项参数',
positive_integer_tips: '应为正整数',
flink_version: 'Flink版本',
job_manager_memory: 'JobManager内存数',
job_manager_memory_tips: '请输入JobManager内存数',
task_manager_memory: 'TaskManager内存数',
task_manager_memory_tips: '请输入TaskManager内存数',
slot_number: 'Slot数量',
slot_number_tips: '请输入Slot数量',
parallelism: '并行度',
custom_parallelism: '自定义并行度',
parallelism_tips: '请输入并行度',
parallelism_number_tips: '并行度必须为正整数',
parallelism_complement_tips:
'如果存在大量任务需要补数时,可以利用自定义并行度将补数的任务线程设置成合理的数值,避免对服务器造成过大的影响',
task_manager_number: 'TaskManager数量',
task_manager_number_tips: '请输入TaskManager数量',
http_url: '请求地址',
http_url_tips: '请填写请求地址(必填)',
http_method: '请求类型',
http_parameters: '请求参数',
http_check_condition: '校验条件',
http_condition: '校验内容',
http_condition_tips: '请填写校验内容',
timeout_settings: '超时设置',
connect_timeout: '连接超时',
ms: '毫秒',
socket_timeout: 'Socket超时',
status_code_default: '默认响应码200',
status_code_custom: '自定义响应码',
body_contains: '内容包含',
body_not_contains: '内容不包含',
http_parameters_position: '参数位置',
target_task_name: '目标任务名',
target_task_name_tips: '请输入Pigeon任务名',
datasource_type: '数据源类型',
datasource_instances: '数据源实例',
sql_type: 'SQL类型',
sql_type_query: '查询',
sql_type_non_query: '非查询',
sql_statement: 'SQL语句',
pre_sql_statement: '前置SQL语句',
post_sql_statement: '后置SQL语句',
sql_input_placeholder: '请输入非查询SQL语句',
sql_empty_tips: '语句不能为空',
procedure_method: 'SQL语句',
procedure_method_tips: '请输入存储脚本',
procedure_method_snippet:
'--请输入存储脚本 \n\n--调用存储过程: call <procedure-name>[(<arg1>,<arg2>, ...)] \n\n--调用存储函数:?= call <procedure-name>[(<arg1>,<arg2>, ...)]',
start: '运行',
edit: '编辑',
copy: '复制节点',
delete: '删除',
custom_job: '自定义任务',
custom_script: '自定义脚本',
sqoop_job_name: '任务名称',
sqoop_job_name_tips: '请输入任务名称(必填)',
direct: '流向',
hadoop_custom_params: 'Hadoop参数',
sqoop_advanced_parameters: 'Sqoop参数',
data_source: '数据来源',
type: '类型',
datasource: '数据源',
datasource_tips: '请选择数据源',
model_type: '模式',
form: '表单',
table: '表名',
table_tips: '请输入Mysql表名(必填)',
column_type: '列类型',
all_columns: '全表导入',
some_columns: '选择列',
column: '列',
column_tips: '请输入列名,用 , 隔开',
database: '数据库',
database_tips: '请输入Hive数据库(必填)',
hive_table_tips: '请输入Hive表名(必填)',
hive_partition_keys: 'Hive 分区键',
hive_partition_keys_tips: '请输入分区键',
hive_partition_values: 'Hive 分区值',
hive_partition_values_tips: '请输入分区值',
export_dir: '数据源路径',
export_dir_tips: '请输入数据源路径(必填)',
sql_statement_tips: 'SQL语句(必填)',
map_column_hive: 'Hive类型映射',
map_column_java: 'Java类型映射',
data_target: '数据目的',
create_hive_table: '是否创建新表',
drop_delimiter: '是否删除分隔符',
over_write_src: '是否覆盖数据源',
hive_target_dir: 'Hive目标路径',
hive_target_dir_tips: '请输入Hive临时目录',
replace_delimiter: '替换分隔符',
replace_delimiter_tips: '请输入替换分隔符',
target_dir: '目标路径',
target_dir_tips: '请输入目标路径(必填)',
delete_target_dir: '是否删除目录',
compression_codec: '压缩类型',
file_type: '保存格式',
fields_terminated: '列分隔符',
fields_terminated_tips: '请输入列分隔符',
lines_terminated: '行分隔符',
lines_terminated_tips: '请输入行分隔符',
is_update: '是否更新',
update_key: '更新列',
update_key_tips: '请输入更新列',
update_mode: '更新类型',
only_update: '只更新',
allow_insert: '无更新便插入',
concurrency: '并发度',
concurrency_tips: '请输入并发度',
sea_tunnel_master: 'Master',
sea_tunnel_master_url: 'Master URL',
sea_tunnel_queue: '队列',
sea_tunnel_master_url_tips: '请直接填写地址,例如:127.0.0.1:7077',
switch_condition: '条件',
switch_branch_flow: '分支流转',
and: '且',
or: '或',
datax_custom_template: '自定义模板',
datax_json_template: 'JSON',
datax_target_datasource_type: '目标源类型',
datax_target_database: '目标源实例',
datax_target_table: '目标表',
datax_target_table_tips: '请输入目标表名',
datax_target_database_pre_sql: '目标库前置SQL',
datax_target_database_post_sql: '目标库后置SQL',
datax_non_query_sql_tips: '请输入非查询SQL语句',
datax_job_speed_byte: '限流(字节数)',
datax_job_speed_byte_info: '(KB,0代表不限制)',
datax_job_speed_record: '限流(记录数)',
datax_job_speed_record_info: '(0代表不限制)',
datax_job_runtime_memory: '运行内存',
datax_job_runtime_memory_xms: '最小内存',
datax_job_runtime_memory_xmx: '最大内存',
datax_job_runtime_memory_unit: 'G',
current_hour: '当前小时',
last_1_hour: '前1小时',
last_2_hour: '前2小时',
last_3_hour: '前3小时',
last_24_hour: '前24小时',
today: '今天',
last_1_days: '昨天',
last_2_days: '前两天',
last_3_days: '前三天',
last_7_days: '前七天',
this_week: '本周',
last_week: '上周',
last_monday: '上周一',
last_tuesday: '上周二',
last_wednesday: '上周三',
last_thursday: '上周四',
last_friday: '上周五',
last_saturday: '上周六',
last_sunday: '上周日',
this_month: '本月',
last_month: '上月',
last_month_begin: '上月初',
last_month_end: '上月末',
month: '月',
week: '周',
day: '日',
hour: '时',
add_dependency: '添加依赖',
waiting_dependent_start: '等待依赖启动',
check_interval: '检查间隔',
waiting_dependent_complete: '等待依赖完成',
rule_name: '规则名称',
null_check: '空值检测',
custom_sql: '自定义SQL',
multi_table_accuracy: '多表准确性',
multi_table_value_comparison: '两表值比对',
field_length_check: '字段长度校验',
uniqueness_check: '唯一性校验',
regexp_check: '正则表达式',
timeliness_check: '及时性校验',
enumeration_check: '枚举值校验',
table_count_check: '表行数校验',
src_connector_type: '源数据类型',
src_datasource_id: '源数据源',
src_table: '源数据表',
src_filter: '源表过滤条件',
src_field: '源表检测列',
statistics_name: '实际值名',
check_type: '校验方式',
operator: '校验操作符',
threshold: '阈值',
failure_strategy: '失败策略',
target_connector_type: '目标数据类型',
target_datasource_id: '目标数据源',
target_table: '目标数据表',
target_filter: '目标表过滤条件',
mapping_columns: 'ON语句',
statistics_execute_sql: '实际值计算SQL',
comparison_name: '期望值名',
comparison_execute_sql: '期望值计算SQL',
comparison_type: '期望值类型',
writer_connector_type: '输出数据类型',
writer_datasource_id: '输出数据源',
target_field: '目标表检测列',
field_length: '字段长度限制',
logic_operator: '逻辑操作符',
regexp_pattern: '正则表达式',
deadline: '截止时间',
datetime_format: '时间格式',
enum_list: '枚举值列表',
begin_time: '起始时间',
fix_value: '固定值',
required: '必填',
emr_flow_define_json: 'jobFlowDefineJson',
emr_flow_define_json_tips: '请输入工作流定义'
}
}
const security = {
tenant: {
tenant_manage: '租户管理',
create_tenant: '创建租户',
search_tips: '请输入关键词',
tenant_code: '操作系统租户',
description: '描述',
queue_name: '队列',
create_time: '创建时间',
update_time: '更新时间',
actions: '操作',
edit_tenant: '编辑租户',
tenant_code_tips: '请输入操作系统租户',
queue_name_tips: '请选择队列',
description_tips: '请输入描述',
delete_confirm: '确定删除吗?',
edit: '编辑',
delete: '删除'
},
alarm_group: {
create_alarm_group: '创建告警组',
edit_alarm_group: '编辑告警组',
search_tips: '请输入关键词',
alert_group_name_tips: '请输入告警组名称',
alarm_plugin_instance: '告警组实例',
alarm_plugin_instance_tips: '请选择告警组实例',
alarm_group_description_tips: '请输入告警组描述',
alert_group_name: '告警组名称',
alarm_group_description: '告警组描述',
create_time: '创建时间',
update_time: '更新时间',
operation: '操作',
delete_confirm: '确定删除吗?',
edit: '编辑',
delete: '删除'
},
worker_group: {
create_worker_group: '创建Worker分组',
edit_worker_group: '编辑Worker分组',
search_tips: '请输入关键词',
operation: '操作',
delete_confirm: '确定删除吗?',
edit: '编辑',
delete: '删除',
group_name: '分组名称',
group_name_tips: '请输入分组名称',
worker_addresses: 'Worker地址',
worker_addresses_tips: '请选择Worker地址',
create_time: '创建时间',
update_time: '更新时间'
},
yarn_queue: {
create_queue: '创建队列',
edit_queue: '编辑队列',
search_tips: '请输入关键词',
queue_name: '队列名',
queue_value: '队列值',
create_time: '创建时间',
update_time: '更新时间',
operation: '操作',
edit: '编辑',
queue_name_tips: '请输入队列名',
queue_value_tips: '请输入队列值'
},
environment: {
create_environment: '创建环境',
edit_environment: '编辑环境',
search_tips: '请输入关键词',
edit: '编辑',
delete: '删除',
environment_name: '环境名称',
environment_config: '环境配置',
environment_desc: '环境描述',
worker_groups: 'Worker分组',
create_time: '创建时间',
update_time: '更新时间',
operation: '操作',
delete_confirm: '确定删除吗?',
environment_name_tips: '请输入环境名',
environment_config_tips: '请输入环境配置',
environment_description_tips: '请输入环境描述',
worker_group_tips: '请选择Worker分组'
},
token: {
create_token: '创建令牌',
edit_token: '编辑令牌',
search_tips: '请输入关键词',
user: '用户',
user_tips: '请选择用户',
token: '令牌',
token_tips: '请输入令牌',
expiration_time: '失效时间',
expiration_time_tips: '请选择失效时间',
create_time: '创建时间',
update_time: '更新时间',
operation: '操作',
edit: '编辑',
delete: '删除',
delete_confirm: '确定删除吗?'
},
user: {
user_manage: '用户管理',
create_user: '创建用户',
update_user: '更新用户',
delete_user: '删除用户',
delete_confirm: '确定删除吗?',
project: '项目',
resource: '资源',
file_resource: '文件资源',
udf_resource: 'UDF资源',
datasource: '数据源',
udf: 'UDF函数',
authorize_project: '项目授权',
authorize_resource: '资源授权',
authorize_datasource: '数据源授权',
authorize_udf: 'UDF函数授权',
username: '用户名',
username_exists: '用户名已存在',
username_tips: '请输入用户名',
user_password: '密码',
user_password_tips: '请输入包含字母和数字,长度在6~20之间的密码',
user_type: '用户类型',
ordinary_user: '普通用户',
administrator: '管理员',
tenant_code: '租户',
tenant_id_tips: '请选择租户',
queue: '队列',
queue_tips: '默认为租户关联队列',
email: '邮件',
email_empty_tips: '请输入邮箱',
emial_correct_tips: '请输入正确的邮箱格式',
phone: '手机',
phone_empty_tips: '请输入手机号码',
phone_correct_tips: '请输入正确的手机格式',
state: '状态',
state_enabled: '启用',
state_disabled: '停用',
create_time: '创建时间',
update_time: '更新时间',
operation: '操作',
edit: '编辑',
delete: '删除',
authorize: '授权',
save_error_msg: '保存失败,请重试',
delete_error_msg: '删除失败,请重试',
auth_error_msg: '授权失败,请重试',
auth_success_msg: '授权成功',
enable: '启用',
disable: '停用'
},
alarm_instance: {
search_input_tips: '请输入关键字',
alarm_instance_manage: '告警实例管理',
alarm_instance_name: '告警实例名称',
alarm_instance_name_tips: '请输入告警实例名称',
alarm_plugin_name: '告警插件名称',
create_time: '创建时间',
update_time: '更新时间',
operation: '操作',
edit_alarm_instance: '编辑告警实例',
delete: '删除',
delete_confirm: '删除?',
confirm: '确定',
cancel: '取消',
submit: '提交',
create_alarm_instance: '创建告警实例',
select_plugin: '选择插件',
select_plugin_tips: '请选择告警插件',
instance_parameter_exception: '实例参数异常',
WebHook: 'Web钩子',
webHook: 'Web钩子',
WarningType: '告警类型',
IsEnableProxy: '启用代理',
Proxy: '代理',
Port: '端口',
User: '用户',
corpId: '企业ID',
secret: '密钥',
Secret: '密钥',
users: '群员',
userSendMsg: '群员信息',
agentId: '应用ID',
showType: '内容展示类型',
receivers: '收件人',
receiverCcs: '抄送人',
serverHost: 'SMTP服务器',
serverPort: 'SMTP端口',
sender: '发件人',
enableSmtpAuth: '请求认证',
Password: '密码',
starttlsEnable: 'STARTTLS连接',
sslEnable: 'SSL连接',
smtpSslTrust: 'SSL证书信任',
url: 'URL',
requestType: '请求方式',
headerParams: '请求头',
bodyParams: '请求体',
contentField: '内容字段',
Keyword: '关键词',
userParams: '自定义参数',
path: '脚本路径',
type: '类型',
sendType: '发送类型',
username: '用户名',
botToken: '机器人Token',
chatId: '频道ID',
parseMode: '解析类型'
},
k8s_namespace: {
create_namespace: '创建命名空间',
edit_namespace: '编辑命名空间',
search_tips: '请输入关键词',
k8s_namespace: 'K8S命名空间',
k8s_namespace_tips: '请输入k8s命名空间',
k8s_cluster: 'K8S集群',
k8s_cluster_tips: '请输入k8s集群',
owner: '负责人',
owner_tips: '请输入负责人',
tag: '标签',
tag_tips: '请输入标签',
limit_cpu: '最大CPU',
limit_cpu_tips: '请输入最大CPU',
limit_memory: '最大内存',
limit_memory_tips: '请输入最大内存',
create_time: '创建时间',
update_time: '更新时间',
operation: '操作',
edit: '编辑',
delete: '删除',
delete_confirm: '确定删除吗?'
}
}
const datasource = {
datasource: '数据源',
create_datasource: '创建数据源',
search_input_tips: '请输入关键字',
datasource_name: '数据源名称',
datasource_name_tips: '请输入数据源名称',
datasource_user_name: '所属用户',
datasource_type: '数据源类型',
datasource_parameter: '数据源参数',
description: '描述',
description_tips: '请输入描述',
create_time: '创建时间',
update_time: '更新时间',
operation: '操作',
click_to_view: '点击查看',
delete: '删除',
confirm: '确定',
delete_confirm: '删除?',
cancel: '取消',
create: '创建',
edit: '编辑',
success: '成功',
test_connect: '测试连接',
ip: 'IP主机名',
ip_tips: '请输入IP主机名',
port: '端口',
port_tips: '请输入端口',
database_name: '数据库名',
database_name_tips: '请输入数据库名',
oracle_connect_type: '服务名或SID',
oracle_connect_type_tips: '请选择服务名或SID',
oracle_service_name: '服务名',
oracle_sid: 'SID',
jdbc_connect_parameters: 'jdbc连接参数',
principal_tips: '请输入Principal',
krb5_conf_tips: '请输入kerberos认证参数 java.security.krb5.conf',
keytab_username_tips: '请输入kerberos认证参数 login.user.keytab.username',
keytab_path_tips: '请输入kerberos认证参数 login.user.keytab.path',
format_tips: '请输入格式为',
connection_parameter: '连接参数',
user_name: '用户名',
user_name_tips: '请输入用户名',
user_password: '密码',
user_password_tips: '请输入密码'
}
const data_quality = {
task_result: {
task_name: '任务名称',
workflow_instance: '工作流实例',
rule_type: '规则类型',
rule_name: '规则名称',
state: '状态',
actual_value: '实际值',
excepted_value: '期望值',
check_type: '检测类型',
operator: '操作符',
threshold: '阈值',
failure_strategy: '失败策略',
excepted_value_type: '期望值类型',
error_output_path: '错误数据路径',
username: '用户名',
create_time: '创建时间',
update_time: '更新时间',
undone: '未完成',
success: '成功',
failure: '失败',
single_table: '单表检测',
single_table_custom_sql: '自定义SQL',
multi_table_accuracy: '多表准确性',
multi_table_comparison: '两表值对比',
expected_and_actual_or_expected: '(期望值-实际值)/实际值 x 100%',
expected_and_actual: '期望值-实际值',
actual_and_expected: '实际值-期望值',
actual_or_expected: '实际值/期望值 x 100%'
},
rule: {
actions: '操作',
name: '规则名称',
type: '规则类型',
username: '用户名',
create_time: '创建时间',
update_time: '更新时间',
input_item: '规则输入项',
view_input_item: '查看规则输入项信息',
input_item_title: '输入项标题',
input_item_placeholder: '输入项占位符',
input_item_type: '输入项类型',
src_connector_type: '源数据类型',
src_datasource_id: '源数据源',
src_table: '源数据表',
src_filter: '源表过滤条件',
src_field: '源表检测列',
statistics_name: '实际值名',
check_type: '校验方式',
operator: '校验操作符',
threshold: '阈值',
failure_strategy: '失败策略',
target_connector_type: '目标数据类型',
target_datasource_id: '目标数据源',
target_table: '目标数据表',
target_filter: '目标表过滤条件',
mapping_columns: 'ON语句',
statistics_execute_sql: '实际值计算SQL',
comparison_name: '期望值名',
comparison_execute_sql: '期望值计算SQL',
comparison_type: '期望值类型',
writer_connector_type: '输出数据类型',
writer_datasource_id: '输出数据源',
target_field: '目标表检测列',
field_length: '字段长度限制',
logic_operator: '逻辑操作符',
regexp_pattern: '正则表达式',
deadline: '截止时间',
datetime_format: '时间格式',
enum_list: '枚举值列表',
begin_time: '起始时间',
fix_value: '固定值',
null_check: '空值检测',
custom_sql: '自定义SQL',
single_table: '单表检测',
multi_table_accuracy: '多表准确性',
multi_table_value_comparison: '两表值比对',
field_length_check: '字段长度校验',
uniqueness_check: '唯一性校验',
regexp_check: '正则表达式',
timeliness_check: '及时性校验',
enumeration_check: '枚举值校验',
table_count_check: '表行数校验',
all: '全部',
FixValue: '固定值',
DailyAvg: '日均值',
WeeklyAvg: '周均值',
MonthlyAvg: '月均值',
Last7DayAvg: '最近7天均值',
Last30DayAvg: '最近30天均值',
SrcTableTotalRows: '源表总行数',
TargetTableTotalRows: '目标表总行数'
}
}
const crontab = {
second: '秒',
minute: '分',
hour: '时',
day: '天',
month: '月',
year: '年',
monday: '星期一',
tuesday: '星期二',
wednesday: '星期三',
thursday: '星期四',
friday: '星期五',
saturday: '星期六',
sunday: '星期天',
every_second: '每一秒钟',
every: '每隔',
second_carried_out: '秒执行 从',
second_start: '秒开始',
specific_second: '具体秒数(可多选)',
specific_second_tip: '请选择具体秒数',
cycle_from: '周期从',
to: '到',
every_minute: '每一分钟',
minute_carried_out: '分执行 从',
minute_start: '分开始',
specific_minute: '具体分钟数(可多选)',
specific_minute_tip: '请选择具体分钟数',
every_hour: '每一小时',
hour_carried_out: '小时执行 从',
hour_start: '小时开始',
specific_hour: '具体小时数(可多选)',
specific_hour_tip: '请选择具体小时数',
every_day: '每一天',
week_carried_out: '周执行 从',
start: '开始',
day_carried_out: '天执行 从',
day_start: '天开始',
specific_week: '具体星期几(可多选)',
specific_week_tip: '请选择具体周几',
specific_day: '具体天数(可多选)',
specific_day_tip: '请选择具体天数',
last_day_of_month: '在这个月的最后一天',
last_work_day_of_month: '在这个月的最后一个工作日',
last_of_month: '在这个月的最后一个',
before_end_of_month: '在本月底前',
recent_business_day_to_month: '最近的工作日(周一至周五)至本月',
in_this_months: '在这个月的第',
every_month: '每一月',
month_carried_out: '月执行 从',
month_start: '月开始',
specific_month: '具体月数(可多选)',
specific_month_tip: '请选择具体月数',
every_year: '每一年',
year_carried_out: '年执行 从',
year_start: '年开始',
specific_year: '具体年数(可多选)',
specific_year_tip: '请选择具体年数',
one_hour: '小时',
one_day: '日'
}
export default {
login,
modal,
theme,
userDropdown,
menu,
home,
password,
profile,
monitor,
resource,
project,
security,
datasource,
data_quality,
crontab
}
|
closed
|
apache/dolphinscheduler
|
https://github.com/apache/dolphinscheduler
| 8,985 |
[Feature][UI] Add an option "thisMonthBegin" in dependency settings in dependent node
|
### Search before asking
- [X] I had searched in the [issues](https://github.com/apache/dolphinscheduler/issues?q=is%3Aissue) and found no similar feature requirement.
### Description

add thisMonthBegin in the drop down menu here, it will be useful in some cases, for example, we have lots of workflows which depended by other workflows, and the workflow being depended are running on 1st day of the month, if we had this option, things will be easyer.
有的工作流依赖本月初运行的工作流,如果在依赖节点中有 本月初 的选项,会很有用。
### Use case
_No response_
### Related issues
_No response_
### Are you willing to submit a PR?
- [ ] Yes I am willing to submit a PR!
### Code of Conduct
- [X] I agree to follow this project's [Code of Conduct](https://www.apache.org/foundation/policies/conduct)
|
https://github.com/apache/dolphinscheduler/issues/8985
|
https://github.com/apache/dolphinscheduler/pull/9004
|
7d94adabc8073e00263f982ed7882b8cb7b03a63
|
d89c7ac8bb0f4c35cccb89b7cf05afa53fd5fb85
| 2022-03-18T07:44:53Z |
java
| 2022-03-19T01:51:36Z |
dolphinscheduler-ui-next/src/views/projects/task/components/node/fields/use-dependent.ts
|
/*
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership.
* The ASF licenses this file to You under the Apache License, Version 2.0
* (the "License"); you may not use this file except in compliance with
* the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
import { ref, onMounted, watch } from 'vue'
import { useI18n } from 'vue-i18n'
import { useRelationCustomParams, useDependentTimeout } from '.'
import { queryProjectCreatedAndAuthorizedByUser } from '@/service/modules/projects'
import {
queryAllByProjectCode,
getTasksByDefinitionCode
} from '@/service/modules/process-definition'
import type { IJsonItem, IDependpendItem, IDependTask } from '../types'
export function useDependent(model: { [field: string]: any }): IJsonItem[] {
const { t } = useI18n()
const projectList = ref([] as { label: string; value: number }[])
const processCache = {} as {
[key: number]: { label: string; value: number }[]
}
const taskCache = {} as {
[key: number]: { label: string; value: number }[]
}
const CYCLE_LIST = [
{
value: 'month',
label: t('project.node.month')
},
{
value: 'week',
label: t('project.node.week')
},
{
value: 'day',
label: t('project.node.day')
},
{
value: 'hour',
label: t('project.node.hour')
}
]
const DATE_LSIT = {
hour: [
{
value: 'currentHour',
label: t('project.node.current_hour')
},
{
value: 'last1Hour',
label: t('project.node.last_1_hour')
},
{
value: 'last2Hours',
label: t('project.node.last_2_hour')
},
{
value: 'last3Hours',
label: t('project.node.last_3_hour')
},
{
value: 'last24Hours',
label: t('project.node.last_24_hour')
}
],
day: [
{
value: 'today',
label: t('project.node.today')
},
{
value: 'last1Days',
label: t('project.node.last_1_days')
},
{
value: 'last2Days',
label: t('project.node.last_2_days')
},
{
value: 'last3Days',
label: t('project.node.last_3_days')
},
{
value: 'last7Days',
label: t('project.node.last_7_days')
}
],
week: [
{
value: 'thisWeek',
label: t('project.node.this_week')
},
{
value: 'lastWeek',
label: t('project.node.last_week')
},
{
value: 'lastMonday',
label: t('project.node.last_monday')
},
{
value: 'lastTuesday',
label: t('project.node.last_tuesday')
},
{
value: 'lastWednesday',
label: t('project.node.last_wednesday')
},
{
value: 'lastThursday',
label: t('project.node.last_thursday')
},
{
value: 'lastFriday',
label: t('project.node.last_friday')
},
{
value: 'lastSaturday',
label: t('project.node.last_saturday')
},
{
value: 'lastSunday',
label: t('project.node.last_sunday')
}
],
month: [
{
value: 'thisMonth',
label: t('project.node.this_month')
},
{
value: 'lastMonth',
label: t('project.node.last_month')
},
{
value: 'lastMonthBegin',
label: t('project.node.last_month_begin')
},
{
value: 'lastMonthEnd',
label: t('project.node.last_month_end')
}
]
}
const getProjectList = async () => {
const result = await queryProjectCreatedAndAuthorizedByUser()
projectList.value = result.map((item: { code: number; name: string }) => ({
value: item.code,
label: item.name
}))
return projectList
}
const getProcessList = async (code: number) => {
if (processCache[code]) {
return processCache[code]
}
const result = await queryAllByProjectCode(code)
const processList = result.map(
(item: { processDefinition: { code: number; name: string } }) => ({
value: item.processDefinition.code,
label: item.processDefinition.name
})
)
processCache[code] = processList
return processList
}
const getTaskList = async (code: number, processCode: number) => {
if (taskCache[processCode]) {
return taskCache[processCode]
}
const result = await getTasksByDefinitionCode(code, processCode)
const taskList = result.map((item: { code: number; name: string }) => ({
value: item.code,
label: item.name
}))
taskList.unshift({
value: 0,
label: 'ALL'
})
taskCache[processCode] = taskList
return taskList
}
onMounted(() => {
getProjectList()
})
watch(
() => model.dependTaskList,
(value) => {
value.forEach((item: IDependTask) => {
if (!item.dependItemList?.length) return
item.dependItemList?.forEach(async (dependItem: IDependpendItem) => {
if (dependItem.projectCode) {
dependItem.definitionCodeOptions = await getProcessList(
dependItem.projectCode
)
}
if (dependItem.projectCode && dependItem.definitionCode) {
dependItem.depTaskCodeOptions = await getTaskList(
dependItem.projectCode,
dependItem.definitionCode
)
}
if (dependItem.cycle) {
dependItem.dateOptions = DATE_LSIT[dependItem.cycle]
}
})
})
}
)
return [
...useDependentTimeout(model),
...useRelationCustomParams({
model,
children: (i = 0) => ({
type: 'custom-parameters',
field: 'dependItemList',
span: 18,
children: [
(j = 0) => ({
type: 'select',
field: 'projectCode',
span: 12,
props: {
filterable: true,
onUpdateValue: async (projectCode: number) => {
const item = model.dependTaskList[i].dependItemList[j]
item.definitionCodeOptions = await getProcessList(projectCode)
item.depTaskCode = null
item.definitionCode = null
}
},
options: projectList
}),
(j = 0) => ({
type: 'select',
field: 'definitionCode',
span: 12,
props: {
filterable: true,
onUpdateValue: async (processCode: number) => {
const item = model.dependTaskList[i].dependItemList[j]
item.depTaskCodeOptions = await getTaskList(
item.projectCode,
processCode
)
item.depTaskCode = 0
}
},
options:
model.dependTaskList[i]?.dependItemList[j]
?.definitionCodeOptions || []
}),
(j = 0) => ({
type: 'select',
field: 'depTaskCode',
span: 12,
props: {
filterable: true
},
options:
model.dependTaskList[i]?.dependItemList[j]?.depTaskCodeOptions ||
[]
}),
(j = 0) => ({
type: 'select',
field: 'cycle',
span: 12,
props: {
onUpdateValue: (value: 'month') => {
model.dependTaskList[i].dependItemList[j].dateOptions =
DATE_LSIT[value]
}
},
options: CYCLE_LIST
}),
(j = 0) => ({
type: 'select',
field: 'dateValue',
span: 12,
options:
model.dependTaskList[i]?.dependItemList[j]?.dateOptions || []
})
]
}),
childrenField: 'dependItemList',
name: 'add_dependency'
})
]
}
|
closed
|
apache/dolphinscheduler
|
https://github.com/apache/dolphinscheduler
| 9,003 |
[Bug][UI Next][V1.0.0-Alpha] Alarm instance management edit button floating prompt error.
|
### Search before asking
- [X] I had searched in the [issues](https://github.com/apache/dolphinscheduler/issues?q=is%3Aissue) and found no similar issues.
### What happened

### What you expected to happen
Alarm instance management edit button floating prompt error.
### How to reproduce
Support i18n.
### Anything else
_No response_
### Version
dev
### Are you willing to submit PR?
- [X] Yes I am willing to submit a PR!
### Code of Conduct
- [X] I agree to follow this project's [Code of Conduct](https://www.apache.org/foundation/policies/conduct)
|
https://github.com/apache/dolphinscheduler/issues/9003
|
https://github.com/apache/dolphinscheduler/pull/9005
|
d89c7ac8bb0f4c35cccb89b7cf05afa53fd5fb85
|
5c5f737a0049dc4c61d21091ef3d0ca10b339ade
| 2022-03-18T15:00:53Z |
java
| 2022-03-19T02:16:37Z |
dolphinscheduler-ui-next/src/locales/modules/en_US.ts
|
/*
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership.
* The ASF licenses this file to You under the Apache License, Version 2.0
* (the "License"); you may not use this file except in compliance with
* the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
const login = {
test: 'Test',
userName: 'Username',
userName_tips: 'Please enter your username',
userPassword: 'Password',
userPassword_tips: 'Please enter your password',
login: 'Login'
}
const modal = {
cancel: 'Cancel',
confirm: 'Confirm'
}
const theme = {
light: 'Light',
dark: 'Dark'
}
const userDropdown = {
profile: 'Profile',
password: 'Password',
logout: 'Logout'
}
const menu = {
home: 'Home',
project: 'Project',
resources: 'Resources',
datasource: 'Datasource',
monitor: 'Monitor',
security: 'Security',
project_overview: 'Project Overview',
workflow_relation: 'Workflow Relation',
workflow: 'Workflow',
workflow_definition: 'Workflow Definition',
workflow_instance: 'Workflow Instance',
task: 'Task',
task_instance: 'Task Instance',
task_definition: 'Task Definition',
file_manage: 'File Manage',
udf_manage: 'UDF Manage',
resource_manage: 'Resource Manage',
function_manage: 'Function Manage',
service_manage: 'Service Manage',
master: 'Master',
worker: 'Worker',
db: 'DB',
statistical_manage: 'Statistical Manage',
statistics: 'Statistics',
audit_log: 'Audit Log',
tenant_manage: 'Tenant Manage',
user_manage: 'User Manage',
alarm_group_manage: 'Alarm Group Manage',
alarm_instance_manage: 'Alarm Instance Manage',
worker_group_manage: 'Worker Group Manage',
yarn_queue_manage: 'Yarn Queue Manage',
environment_manage: 'Environment Manage',
k8s_namespace_manage: 'K8S Namespace Manage',
token_manage: 'Token Manage',
task_group_manage: 'Task Group Manage',
task_group_option: 'Task Group Option',
task_group_queue: 'Task Group Queue',
data_quality: 'Data Quality',
task_result: 'Task Result',
rule: 'Rule management'
}
const home = {
task_state_statistics: 'Task State Statistics',
process_state_statistics: 'Process State Statistics',
process_definition_statistics: 'Process Definition Statistics',
number: 'Number',
state: 'State',
submitted_success: 'SUBMITTED_SUCCESS',
running_execution: 'RUNNING_EXECUTION',
ready_pause: 'READY_PAUSE',
pause: 'PAUSE',
ready_stop: 'READY_STOP',
stop: 'STOP',
failure: 'FAILURE',
success: 'SUCCESS',
need_fault_tolerance: 'NEED_FAULT_TOLERANCE',
kill: 'KILL',
waiting_thread: 'WAITING_THREAD',
waiting_depend: 'WAITING_DEPEND',
delay_execution: 'DELAY_EXECUTION',
forced_success: 'FORCED_SUCCESS',
serial_wait: 'SERIAL_WAIT',
ready_block: 'READY_BLOCK',
block: 'BLOCK'
}
const password = {
edit_password: 'Edit Password',
password: 'Password',
confirm_password: 'Confirm Password',
password_tips: 'Please enter your password',
confirm_password_tips: 'Please enter your confirm password',
two_password_entries_are_inconsistent:
'Two password entries are inconsistent',
submit: 'Submit'
}
const profile = {
profile: 'Profile',
edit: 'Edit',
username: 'Username',
email: 'Email',
phone: 'Phone',
state: 'State',
permission: 'Permission',
create_time: 'Create Time',
update_time: 'Update Time',
administrator: 'Administrator',
ordinary_user: 'Ordinary User',
edit_profile: 'Edit Profile',
username_tips: 'Please enter your username',
email_tips: 'Please enter your email',
email_correct_tips: 'Please enter your email in the correct format',
phone_tips: 'Please enter your phone',
state_tips: 'Please choose your state',
enable: 'Enable',
disable: 'Disable',
timezone_success: 'Time zone updated successful',
please_select_timezone: 'Choose timeZone'
}
const monitor = {
master: {
cpu_usage: 'CPU Usage',
memory_usage: 'Memory Usage',
load_average: 'Load Average',
create_time: 'Create Time',
last_heartbeat_time: 'Last Heartbeat Time',
directory_detail: 'Directory Detail',
host: 'Host',
directory: 'Directory'
},
worker: {
cpu_usage: 'CPU Usage',
memory_usage: 'Memory Usage',
load_average: 'Load Average',
create_time: 'Create Time',
last_heartbeat_time: 'Last Heartbeat Time',
directory_detail: 'Directory Detail',
host: 'Host',
directory: 'Directory'
},
db: {
health_state: 'Health State',
max_connections: 'Max Connections',
threads_connections: 'Threads Connections',
threads_running_connections: 'Threads Running Connections'
},
statistics: {
command_number_of_waiting_for_running:
'Command Number Of Waiting For Running',
failure_command_number: 'Failure Command Number',
tasks_number_of_waiting_running: 'Tasks Number Of Waiting Running',
task_number_of_ready_to_kill: 'Task Number Of Ready To Kill'
},
audit_log: {
user_name: 'User Name',
resource_type: 'Resource Type',
project_name: 'Project Name',
operation_type: 'Operation Type',
create_time: 'Create Time',
start_time: 'Start Time',
end_time: 'End Time',
user_audit: 'User Audit',
project_audit: 'Project Audit',
create: 'Create',
update: 'Update',
delete: 'Delete',
read: 'Read'
}
}
const resource = {
file: {
file_manage: 'File Manage',
create_folder: 'Create Folder',
create_file: 'Create File',
upload_files: 'Upload Files',
enter_keyword_tips: 'Please enter keyword',
name: 'Name',
user_name: 'Resource userName',
whether_directory: 'Whether directory',
file_name: 'File Name',
description: 'Description',
size: 'Size',
update_time: 'Update Time',
operation: 'Operation',
edit: 'Edit',
rename: 'Rename',
download: 'Download',
delete: 'Delete',
yes: 'Yes',
no: 'No',
folder_name: 'Folder Name',
enter_name_tips: 'Please enter name',
enter_description_tips: 'Please enter description',
enter_content_tips: 'Please enter the resource content',
file_format: 'File Format',
file_content: 'File Content',
delete_confirm: 'Delete?',
confirm: 'Confirm',
cancel: 'Cancel',
success: 'Success',
file_details: 'File Details',
return: 'Return',
save: 'Save'
},
udf: {
udf_resources: 'UDF resources',
create_folder: 'Create Folder',
upload_udf_resources: 'Upload UDF Resources',
udf_source_name: 'UDF Resource Name',
whether_directory: 'Whether directory',
file_name: 'File Name',
file_size: 'File Size',
description: 'Description',
create_time: 'Create Time',
update_time: 'Update Time',
operation: 'Operation',
yes: 'Yes',
no: 'No',
edit: 'Edit',
download: 'Download',
delete: 'Delete',
delete_confirm: 'Delete?',
success: 'Success',
folder_name: 'Folder Name',
upload: 'Upload',
upload_files: 'Upload Files',
file_upload: 'File Upload',
enter_keyword_tips: 'Please enter keyword',
enter_name_tips: 'Please enter name',
enter_description_tips: 'Please enter description'
},
function: {
udf_function: 'UDF Function',
create_udf_function: 'Create UDF Function',
edit_udf_function: 'Create UDF Function',
udf_function_name: 'UDF Function Name',
class_name: 'Class Name',
type: 'Type',
description: 'Description',
jar_package: 'Jar Package',
update_time: 'Update Time',
operation: 'Operation',
rename: 'Rename',
edit: 'Edit',
delete: 'Delete',
success: 'Success',
package_name: 'Package Name',
udf_resources: 'UDF Resources',
instructions: 'Instructions',
upload_resources: 'Upload Resources',
udf_resources_directory: 'UDF resources directory',
delete_confirm: 'Delete?',
enter_keyword_tips: 'Please enter keyword',
enter_udf_unction_name_tips: 'Please enter a UDF function name',
enter_package_name_tips: 'Please enter a Package name',
enter_select_udf_resources_tips: 'Please select UDF resources',
enter_select_udf_resources_directory_tips:
'Please select UDF resources directory',
enter_instructions_tips: 'Please enter a instructions',
enter_name_tips: 'Please enter name',
enter_description_tips: 'Please enter description'
},
task_group_option: {
manage: 'Task group manage',
option: 'Task group option',
create: 'Create task group',
edit: 'Edit task group',
delete: 'Delete task group',
view_queue: 'View the queue of the task group',
switch_status: 'Switch status',
code: 'Task group code',
name: 'Task group name',
project_name: 'Project name',
resource_pool_size: 'Resource pool size',
resource_pool_size_be_a_number:
'The size of the task group resource pool should be more than 1',
resource_used_pool_size: 'Used resource',
desc: 'Task group desc',
status: 'Task group status',
enable_status: 'Enable',
disable_status: 'Disable',
please_enter_name: 'Please enter task group name',
please_enter_desc: 'Please enter task group description',
please_enter_resource_pool_size:
'Please enter task group resource pool size',
please_select_project: 'Please select a project',
create_time: 'Create time',
update_time: 'Update time',
actions: 'Actions',
please_enter_keywords: 'Please enter keywords'
},
task_group_queue: {
actions: 'Actions',
task_name: 'Task name',
task_group_name: 'Task group name',
project_name: 'Project name',
process_name: 'Process name',
process_instance_name: 'Process instance',
queue: 'Task group queue',
priority: 'Priority',
priority_be_a_number:
'The priority of the task group queue should be a positive number',
force_starting_status: 'Starting status',
in_queue: 'In queue',
task_status: 'Task status',
view: 'View task group queue',
the_status_of_waiting: 'Waiting into the queue',
the_status_of_queuing: 'Queuing',
the_status_of_releasing: 'Released',
modify_priority: 'Edit the priority',
start_task: 'Start the task',
priority_not_empty: 'The value of priority can not be empty',
priority_must_be_number: 'The value of priority should be number',
please_select_task_name: 'Please select a task name',
create_time: 'Create time',
update_time: 'Update time',
edit_priority: 'Edit the task priority'
}
}
const project = {
list: {
create_project: 'Create Project',
edit_project: 'Edit Project',
project_list: 'Project List',
project_tips: 'Please enter your project',
description_tips: 'Please enter your description',
username_tips: 'Please enter your username',
project_name: 'Project Name',
project_description: 'Project Description',
owned_users: 'Owned Users',
workflow_define_count: 'Workflow Define Count',
process_instance_running_count: 'Process Instance Running Count',
description: 'Description',
create_time: 'Create Time',
update_time: 'Update Time',
operation: 'Operation',
edit: 'Edit',
delete: 'Delete',
confirm: 'Confirm',
cancel: 'Cancel',
delete_confirm: 'Delete?'
},
workflow: {
workflow_relation: 'Workflow Relation',
create_workflow: 'Create Workflow',
import_workflow: 'Import Workflow',
workflow_name: 'Workflow Name',
current_selection: 'Current Selection',
online: 'Online',
offline: 'Offline',
refresh: 'Refresh',
show_hide_label: 'Show / Hide Label',
workflow_offline: 'Workflow Offline',
schedule_offline: 'Schedule Offline',
schedule_start_time: 'Schedule Start Time',
schedule_end_time: 'Schedule End Time',
crontab_expression: 'Crontab',
workflow_publish_status: 'Workflow Publish Status',
schedule_publish_status: 'Schedule Publish Status',
workflow_definition: 'Workflow Definition',
workflow_instance: 'Workflow Instance',
status: 'Status',
create_time: 'Create Time',
update_time: 'Update Time',
description: 'Description',
create_user: 'Create User',
modify_user: 'Modify User',
operation: 'Operation',
edit: 'Edit',
start: 'Start',
timing: 'Timing',
timezone: 'Timezone',
up_line: 'Online',
down_line: 'Offline',
copy_workflow: 'Copy Workflow',
cron_manage: 'Cron manage',
delete: 'Delete',
tree_view: 'Tree View',
tree_limit: 'Limit Size',
export: 'Export',
batch_copy: 'Batch Copy',
version_info: 'Version Info',
version: 'Version',
file_upload: 'File Upload',
upload_file: 'Upload File',
upload: 'Upload',
file_name: 'File Name',
success: 'Success',
set_parameters_before_starting: 'Please set the parameters before starting',
set_parameters_before_timing: 'Set parameters before timing',
start_and_stop_time: 'Start and stop time',
next_five_execution_times: 'Next five execution times',
execute_time: 'Execute time',
failure_strategy: 'Failure Strategy',
notification_strategy: 'Notification Strategy',
workflow_priority: 'Workflow Priority',
worker_group: 'Worker Group',
environment_name: 'Environment Name',
alarm_group: 'Alarm Group',
complement_data: 'Complement Data',
startup_parameter: 'Startup Parameter',
whether_dry_run: 'Whether Dry-Run',
continue: 'Continue',
end: 'End',
none_send: 'None',
success_send: 'Success',
failure_send: 'Failure',
all_send: 'All',
whether_complement_data: 'Whether it is a complement process?',
schedule_date: 'Schedule date',
mode_of_execution: 'Mode of execution',
serial_execution: 'Serial execution',
parallel_execution: 'Parallel execution',
parallelism: 'Parallelism',
custom_parallelism: 'Custom Parallelism',
please_enter_parallelism: 'Please enter Parallelism',
please_choose: 'Please Choose',
start_time: 'Start Time',
end_time: 'End Time',
crontab: 'Crontab',
delete_confirm: 'Delete?',
enter_name_tips: 'Please enter name',
switch_version: 'Switch To This Version',
confirm_switch_version: 'Confirm Switch To This Version?',
current_version: 'Current Version',
run_type: 'Run Type',
scheduling_time: 'Scheduling Time',
duration: 'Duration',
run_times: 'Run Times',
fault_tolerant_sign: 'Fault-tolerant Sign',
dry_run_flag: 'Dry-run Flag',
executor: 'Executor',
host: 'Host',
start_process: 'Start Process',
execute_from_the_current_node: 'Execute from the current node',
recover_tolerance_fault_process: 'Recover tolerance fault process',
resume_the_suspension_process: 'Resume the suspension process',
execute_from_the_failed_nodes: 'Execute from the failed nodes',
scheduling_execution: 'Scheduling execution',
rerun: 'Rerun',
stop: 'Stop',
pause: 'Pause',
recovery_waiting_thread: 'Recovery waiting thread',
recover_serial_wait: 'Recover serial wait',
recovery_suspend: 'Recovery Suspend',
recovery_failed: 'Recovery Failed',
gantt: 'Gantt',
name: 'Name',
all_status: 'AllStatus',
submit_success: 'Submitted successfully',
running: 'Running',
ready_to_pause: 'Ready to pause',
ready_to_stop: 'Ready to stop',
failed: 'Failed',
need_fault_tolerance: 'Need fault tolerance',
kill: 'Kill',
waiting_for_thread: 'Waiting for thread',
waiting_for_dependence: 'Waiting for dependence',
waiting_for_dependency_to_complete: 'Waiting for dependency to complete',
delay_execution: 'Delay execution',
forced_success: 'Forced success',
serial_wait: 'Serial wait',
executing: 'Executing',
startup_type: 'Startup Type',
complement_range: 'Complement Range',
parameters_variables: 'Parameters variables',
global_parameters: 'Global parameters',
local_parameters: 'Local parameters',
type: 'Type',
retry_count: 'Retry Count',
submit_time: 'Submit Time',
refresh_status_succeeded: 'Refresh status succeeded',
view_log: 'View log',
update_log_success: 'Update log success',
no_more_log: 'No more logs',
no_log: 'No log',
loading_log: 'Loading Log...',
close: 'Close',
download_log: 'Download Log',
refresh_log: 'Refresh Log',
enter_full_screen: 'Enter full screen',
cancel_full_screen: 'Cancel full screen',
task_state: 'Task status',
mode_of_dependent: 'Mode of dependent',
open: 'Open',
project_name_required: 'Project name is required',
related_items: 'Related items',
project_name: 'Project Name',
project_tips: 'Please select project name'
},
task: {
task_name: 'Task Name',
task_type: 'Task Type',
create_task: 'Create Task',
workflow_instance: 'Workflow Instance',
workflow_name: 'Workflow Name',
workflow_name_tips: 'Please select workflow name',
workflow_state: 'Workflow State',
version: 'Version',
current_version: 'Current Version',
switch_version: 'Switch To This Version',
confirm_switch_version: 'Confirm Switch To This Version?',
description: 'Description',
move: 'Move',
upstream_tasks: 'Upstream Tasks',
executor: 'Executor',
node_type: 'Node Type',
state: 'State',
submit_time: 'Submit Time',
start_time: 'Start Time',
create_time: 'Create Time',
update_time: 'Update Time',
end_time: 'End Time',
duration: 'Duration',
retry_count: 'Retry Count',
dry_run_flag: 'Dry Run Flag',
host: 'Host',
operation: 'Operation',
edit: 'Edit',
delete: 'Delete',
delete_confirm: 'Delete?',
submitted_success: 'Submitted Success',
running_execution: 'Running Execution',
ready_pause: 'Ready Pause',
pause: 'Pause',
ready_stop: 'Ready Stop',
stop: 'Stop',
failure: 'Failure',
success: 'Success',
need_fault_tolerance: 'Need Fault Tolerance',
kill: 'Kill',
waiting_thread: 'Waiting Thread',
waiting_depend: 'Waiting Depend',
delay_execution: 'Delay Execution',
forced_success: 'Forced Success',
view_log: 'View Log',
download_log: 'Download Log',
refresh: 'Refresh',
serial_wait: 'Serial Wait'
},
dag: {
create: 'Create Workflow',
search: 'Search',
download_png: 'Download PNG',
fullscreen_open: 'Open Fullscreen',
fullscreen_close: 'Close Fullscreen',
save: 'Save',
close: 'Close',
format: 'Format',
refresh_dag_status: 'Refresh DAG status',
layout_type: 'Layout Type',
grid_layout: 'Grid',
dagre_layout: 'Dagre',
rows: 'Rows',
cols: 'Cols',
copy_success: 'Copy Success',
workflow_name: 'Workflow Name',
description: 'Description',
tenant: 'Tenant',
timeout_alert: 'Timeout Alert',
global_variables: 'Global Variables',
basic_info: 'Basic Information',
minute: 'Minute',
key: 'Key',
value: 'Value',
success: 'Success',
delete_cell: 'Delete selected edges and nodes',
online_directly: 'Whether to go online the process definition',
update_directly: 'Whether to update the process definition',
dag_name_empty: 'DAG graph name cannot be empty',
positive_integer: 'Please enter a positive integer greater than 0',
prop_empty: 'prop is empty',
prop_repeat: 'prop is repeat',
node_not_created: 'Failed to save node not created',
copy_name: 'Copy Name',
view_variables: 'View Variables',
startup_parameter: 'Startup Parameter'
},
node: {
current_node_settings: 'Current node settings',
instructions: 'Instructions',
view_history: 'View history',
view_log: 'View log',
enter_this_child_node: 'Enter this child node',
name: 'Node name',
name_tips: 'Please enter name (required)',
task_type: 'Task Type',
task_type_tips: 'Please select a task type (required)',
process_name: 'Process Name',
process_name_tips: 'Please select a process (required)',
child_node: 'Child Node',
enter_child_node: 'Enter child node',
run_flag: 'Run flag',
normal: 'Normal',
prohibition_execution: 'Prohibition execution',
description: 'Description',
description_tips: 'Please enter description',
task_priority: 'Task priority',
worker_group: 'Worker group',
worker_group_tips:
'The Worker group no longer exists, please select the correct Worker group!',
environment_name: 'Environment Name',
task_group_name: 'Task group name',
task_group_queue_priority: 'Priority',
number_of_failed_retries: 'Number of failed retries',
times: 'Times',
failed_retry_interval: 'Failed retry interval',
minute: 'Minute',
delay_execution_time: 'Delay execution time',
state: 'State',
branch_flow: 'Branch flow',
cancel: 'Cancel',
loading: 'Loading...',
confirm: 'Confirm',
success: 'Success',
failed: 'Failed',
backfill_tips:
'The newly created sub-Process has not yet been executed and cannot enter the sub-Process',
task_instance_tips:
'The task has not been executed and cannot enter the sub-Process',
branch_tips:
'Cannot select the same node for successful branch flow and failed branch flow',
timeout_alarm: 'Timeout alarm',
timeout_strategy: 'Timeout strategy',
timeout_strategy_tips: 'Timeout strategy must be selected',
timeout_failure: 'Timeout failure',
timeout_period: 'Timeout period',
timeout_period_tips: 'Timeout must be a positive integer',
script: 'Script',
script_tips: 'Please enter script(required)',
resources: 'Resources',
resources_tips: 'Please select resources',
non_resources_tips: 'Please delete all non-existent resources',
useless_resources_tips: 'Unauthorized or deleted resources',
custom_parameters: 'Custom Parameters',
copy_success: 'Copy success',
copy_failed: 'The browser does not support automatic copying',
prop_tips: 'prop(required)',
prop_repeat: 'prop is repeat',
value_tips: 'value(optional)',
value_required_tips: 'value(required)',
pre_tasks: 'Pre tasks',
program_type: 'Program Type',
spark_version: 'Spark Version',
main_class: 'Main Class',
main_class_tips: 'Please enter main class',
main_package: 'Main Package',
main_package_tips: 'Please enter main package',
deploy_mode: 'Deploy Mode',
app_name: 'App Name',
app_name_tips: 'Please enter app name(optional)',
driver_cores: 'Driver Cores',
driver_cores_tips: 'Please enter Driver cores',
driver_memory: 'Driver Memory',
driver_memory_tips: 'Please enter Driver memory',
executor_number: 'Executor Number',
executor_number_tips: 'Please enter Executor number',
executor_memory: 'Executor Memory',
executor_memory_tips: 'Please enter Executor memory',
executor_cores: 'Executor Cores',
executor_cores_tips: 'Please enter Executor cores',
main_arguments: 'Main Arguments',
main_arguments_tips: 'Please enter main arguments',
option_parameters: 'Option Parameters',
option_parameters_tips: 'Please enter option parameters',
positive_integer_tips: 'should be a positive integer',
flink_version: 'Flink Version',
job_manager_memory: 'JobManager Memory',
job_manager_memory_tips: 'Please enter JobManager memory',
task_manager_memory: 'TaskManager Memory',
task_manager_memory_tips: 'Please enter TaskManager memory',
slot_number: 'Slot Number',
slot_number_tips: 'Please enter Slot number',
parallelism: 'Parallelism',
custom_parallelism: 'Configure parallelism',
parallelism_tips: 'Please enter Parallelism',
parallelism_number_tips: 'Parallelism number should be positive integer',
parallelism_complement_tips:
'If there are a large number of tasks requiring complement, you can use the custom parallelism to ' +
'set the complement task thread to a reasonable value to avoid too large impact on the server.',
task_manager_number: 'TaskManager Number',
task_manager_number_tips: 'Please enter TaskManager number',
http_url: 'Http Url',
http_url_tips: 'Please Enter Http Url',
http_method: 'Http Method',
http_parameters: 'Http Parameters',
http_check_condition: 'Http Check Condition',
http_condition: 'Http Condition',
http_condition_tips: 'Please Enter Http Condition',
timeout_settings: 'Timeout Settings',
connect_timeout: 'Connect Timeout',
ms: 'ms',
socket_timeout: 'Socket Timeout',
status_code_default: 'Default response code 200',
status_code_custom: 'Custom response code',
body_contains: 'Content includes',
body_not_contains: 'Content does not contain',
http_parameters_position: 'Http Parameters Position',
target_task_name: 'Target Task Name',
target_task_name_tips: 'Please enter the Pigeon task name',
datasource_type: 'Datasource types',
datasource_instances: 'Datasource instances',
sql_type: 'SQL Type',
sql_type_query: 'Query',
sql_type_non_query: 'Non Query',
sql_statement: 'SQL Statement',
pre_sql_statement: 'Pre SQL Statement',
post_sql_statement: 'Post SQL Statement',
sql_input_placeholder: 'Please enter non-query sql.',
sql_empty_tips: 'The sql can not be empty.',
procedure_method: 'SQL Statement',
procedure_method_tips: 'Please enter the procedure script',
procedure_method_snippet:
'--Please enter the procedure script \n\n--call procedure:call <procedure-name>[(<arg1>,<arg2>, ...)]\n\n--call function:?= call <procedure-name>[(<arg1>,<arg2>, ...)]',
start: 'Start',
edit: 'Edit',
copy: 'Copy',
delete: 'Delete',
custom_job: 'Custom Job',
custom_script: 'Custom Script',
sqoop_job_name: 'Job Name',
sqoop_job_name_tips: 'Please enter Job Name(required)',
direct: 'Direct',
hadoop_custom_params: 'Hadoop Params',
sqoop_advanced_parameters: 'Sqoop Advanced Parameters',
data_source: 'Data Source',
type: 'Type',
datasource: 'Datasource',
datasource_tips: 'Please select the datasource',
model_type: 'ModelType',
form: 'Form',
table: 'Table',
table_tips: 'Please enter Mysql Table(required)',
column_type: 'ColumnType',
all_columns: 'All Columns',
some_columns: 'Some Columns',
column: 'Column',
column_tips: 'Please enter Columns (Comma separated)',
database: 'Database',
database_tips: 'Please enter Hive Database(required)',
hive_table_tips: 'Please enter Hive Table(required)',
hive_partition_keys: 'Hive partition Keys',
hive_partition_keys_tips: 'Please enter Hive Partition Keys',
hive_partition_values: 'Hive partition Values',
hive_partition_values_tips: 'Please enter Hive Partition Values',
export_dir: 'Export Dir',
export_dir_tips: 'Please enter Export Dir(required)',
sql_statement_tips: 'SQL Statement(required)',
map_column_hive: 'Map Column Hive',
map_column_java: 'Map Column Java',
data_target: 'Data Target',
create_hive_table: 'CreateHiveTable',
drop_delimiter: 'DropDelimiter',
over_write_src: 'OverWriteSrc',
hive_target_dir: 'Hive Target Dir',
hive_target_dir_tips: 'Please enter hive target dir',
replace_delimiter: 'ReplaceDelimiter',
replace_delimiter_tips: 'Please enter Replace Delimiter',
target_dir: 'Target Dir',
target_dir_tips: 'Please enter Target Dir(required)',
delete_target_dir: 'DeleteTargetDir',
compression_codec: 'CompressionCodec',
file_type: 'FileType',
fields_terminated: 'FieldsTerminated',
fields_terminated_tips: 'Please enter Fields Terminated',
lines_terminated: 'LinesTerminated',
lines_terminated_tips: 'Please enter Lines Terminated',
is_update: 'IsUpdate',
update_key: 'UpdateKey',
update_key_tips: 'Please enter Update Key',
update_mode: 'UpdateMode',
only_update: 'OnlyUpdate',
allow_insert: 'AllowInsert',
concurrency: 'Concurrency',
concurrency_tips: 'Please enter Concurrency',
sea_tunnel_master: 'Master',
sea_tunnel_master_url: 'Master URL',
sea_tunnel_queue: 'Queue',
sea_tunnel_master_url_tips:
'Please enter the master url, e.g., 127.0.0.1:7077',
switch_condition: 'Condition',
switch_branch_flow: 'Branch Flow',
and: 'and',
or: 'or',
datax_custom_template: 'Custom Template Switch',
datax_json_template: 'JSON',
datax_target_datasource_type: 'Target Datasource Type',
datax_target_database: 'Target Database',
datax_target_table: 'Target Table',
datax_target_table_tips: 'Please enter the name of the target table',
datax_target_database_pre_sql: 'Pre SQL Statement',
datax_target_database_post_sql: 'Post SQL Statement',
datax_non_query_sql_tips: 'Please enter the non-query sql statement',
datax_job_speed_byte: 'Speed(Byte count)',
datax_job_speed_byte_info: '(0 means unlimited)',
datax_job_speed_record: 'Speed(Record count)',
datax_job_speed_record_info: '(0 means unlimited)',
datax_job_runtime_memory: 'Runtime Memory Limits',
datax_job_runtime_memory_xms: 'Low Limit Value',
datax_job_runtime_memory_xmx: 'High Limit Value',
datax_job_runtime_memory_unit: 'G',
current_hour: 'CurrentHour',
last_1_hour: 'Last1Hour',
last_2_hour: 'Last2Hours',
last_3_hour: 'Last3Hours',
last_24_hour: 'Last24Hours',
today: 'today',
last_1_days: 'Last1Days',
last_2_days: 'Last2Days',
last_3_days: 'Last3Days',
last_7_days: 'Last7Days',
this_week: 'ThisWeek',
last_week: 'LastWeek',
last_monday: 'LastMonday',
last_tuesday: 'LastTuesday',
last_wednesday: 'LastWednesday',
last_thursday: 'LastThursday',
last_friday: 'LastFriday',
last_saturday: 'LastSaturday',
last_sunday: 'LastSunday',
this_month: 'ThisMonth',
this_month_begin: 'ThisMonthBegin',
last_month: 'LastMonth',
last_month_begin: 'LastMonthBegin',
last_month_end: 'LastMonthEnd',
month: 'month',
week: 'week',
day: 'day',
hour: 'hour',
add_dependency: 'Add dependency',
waiting_dependent_start: 'Waiting Dependent start',
check_interval: 'Check interval',
waiting_dependent_complete: 'Waiting Dependent complete',
rule_name: 'Rule Name',
null_check: 'NullCheck',
custom_sql: 'CustomSql',
multi_table_accuracy: 'MulTableAccuracy',
multi_table_value_comparison: 'MulTableCompare',
field_length_check: 'FieldLengthCheck',
uniqueness_check: 'UniquenessCheck',
regexp_check: 'RegexpCheck',
timeliness_check: 'TimelinessCheck',
enumeration_check: 'EnumerationCheck',
table_count_check: 'TableCountCheck',
src_connector_type: 'SrcConnType',
src_datasource_id: 'SrcSource',
src_table: 'SrcTable',
src_filter: 'SrcFilter',
src_field: 'SrcField',
statistics_name: 'ActualValName',
check_type: 'CheckType',
operator: 'Operator',
threshold: 'Threshold',
failure_strategy: 'FailureStrategy',
target_connector_type: 'TargetConnType',
target_datasource_id: 'TargetSourceId',
target_table: 'TargetTable',
target_filter: 'TargetFilter',
mapping_columns: 'OnClause',
statistics_execute_sql: 'ActualValExecSql',
comparison_name: 'ExceptedValName',
comparison_execute_sql: 'ExceptedValExecSql',
comparison_type: 'ExceptedValType',
writer_connector_type: 'WriterConnType',
writer_datasource_id: 'WriterSourceId',
target_field: 'TargetField',
field_length: 'FieldLength',
logic_operator: 'LogicOperator',
regexp_pattern: 'RegexpPattern',
deadline: 'Deadline',
datetime_format: 'DatetimeFormat',
enum_list: 'EnumList',
begin_time: 'BeginTime',
fix_value: 'FixValue',
required: 'required',
emr_flow_define_json: 'jobFlowDefineJson',
emr_flow_define_json_tips: 'Please enter the definition of the job flow.'
}
}
const security = {
tenant: {
tenant_manage: 'Tenant Manage',
create_tenant: 'Create Tenant',
search_tips: 'Please enter keywords',
tenant_code: 'Operating System Tenant',
description: 'Description',
queue_name: 'QueueName',
create_time: 'Create Time',
update_time: 'Update Time',
actions: 'Operation',
edit_tenant: 'Edit Tenant',
tenant_code_tips: 'Please enter the operating system tenant',
queue_name_tips: 'Please select queue',
description_tips: 'Please enter a description',
delete_confirm: 'Delete?',
edit: 'Edit',
delete: 'Delete'
},
alarm_group: {
create_alarm_group: 'Create Alarm Group',
edit_alarm_group: 'Edit Alarm Group',
search_tips: 'Please enter keywords',
alert_group_name_tips: 'Please enter your alert group name',
alarm_plugin_instance: 'Alarm Plugin Instance',
alarm_plugin_instance_tips: 'Please select alert plugin instance',
alarm_group_description_tips: 'Please enter your alarm group description',
alert_group_name: 'Alert Group Name',
alarm_group_description: 'Alarm Group Description',
create_time: 'Create Time',
update_time: 'Update Time',
operation: 'Operation',
delete_confirm: 'Delete?',
edit: 'Edit',
delete: 'Delete'
},
worker_group: {
create_worker_group: 'Create Worker Group',
edit_worker_group: 'Edit Worker Group',
search_tips: 'Please enter keywords',
operation: 'Operation',
delete_confirm: 'Delete?',
edit: 'Edit',
delete: 'Delete',
group_name: 'Group Name',
group_name_tips: 'Please enter your group name',
worker_addresses: 'Worker Addresses',
worker_addresses_tips: 'Please select worker addresses',
create_time: 'Create Time',
update_time: 'Update Time'
},
yarn_queue: {
create_queue: 'Create Queue',
edit_queue: 'Edit Queue',
search_tips: 'Please enter keywords',
queue_name: 'Queue Name',
queue_value: 'Queue Value',
create_time: 'Create Time',
update_time: 'Update Time',
operation: 'Operation',
edit: 'Edit',
queue_name_tips: 'Please enter your queue name',
queue_value_tips: 'Please enter your queue value'
},
environment: {
create_environment: 'Create Environment',
edit_environment: 'Edit Environment',
search_tips: 'Please enter keywords',
edit: 'Edit',
delete: 'Delete',
environment_name: 'Environment Name',
environment_config: 'Environment Config',
environment_desc: 'Environment Desc',
worker_groups: 'Worker Groups',
create_time: 'Create Time',
update_time: 'Update Time',
operation: 'Operation',
delete_confirm: 'Delete?',
environment_name_tips: 'Please enter your environment name',
environment_config_tips: 'Please enter your environment config',
environment_description_tips: 'Please enter your environment description',
worker_group_tips: 'Please select worker group'
},
token: {
create_token: 'Create Token',
edit_token: 'Edit Token',
search_tips: 'Please enter keywords',
user: 'User',
user_tips: 'Please select user',
token: 'Token',
token_tips: 'Please enter your token',
expiration_time: 'Expiration Time',
expiration_time_tips: 'Please select expiration time',
create_time: 'Create Time',
update_time: 'Update Time',
operation: 'Operation',
edit: 'Edit',
delete: 'Delete',
delete_confirm: 'Delete?'
},
user: {
user_manage: 'User Manage',
create_user: 'Create User',
update_user: 'Update User',
delete_user: 'Delete User',
delete_confirm: 'Are you sure to delete?',
delete_confirm_tip:
'Deleting user is a dangerous operation,please be careful',
project: 'Project',
resource: 'Resource',
file_resource: 'File Resource',
udf_resource: 'UDF Resource',
datasource: 'Datasource',
udf: 'UDF Function',
authorize_project: 'Project Authorize',
authorize_resource: 'Resource Authorize',
authorize_datasource: 'Datasource Authorize',
authorize_udf: 'UDF Function Authorize',
username: 'Username',
username_exists: 'The username already exists',
username_tips: 'Please enter username',
user_password: 'Password',
user_password_tips:
'Please enter a password containing letters and numbers with a length between 6 and 20',
user_type: 'User Type',
ordinary_user: 'Ordinary users',
administrator: 'Administrator',
tenant_code: 'Tenant',
tenant_id_tips: 'Please select tenant',
queue: 'Queue',
queue_tips: 'Please select a queue',
email: 'Email',
email_empty_tips: 'Please enter email',
emial_correct_tips: 'Please enter the correct email format',
phone: 'Phone',
phone_empty_tips: 'Please enter phone number',
phone_correct_tips: 'Please enter the correct mobile phone format',
state: 'State',
state_enabled: 'Enabled',
state_disabled: 'Disabled',
create_time: 'Create Time',
update_time: 'Update Time',
operation: 'Operation',
edit: 'Edit',
delete: 'Delete',
authorize: 'Authorize',
save_error_msg: 'Failed to save, please retry',
delete_error_msg: 'Failed to delete, please retry',
auth_error_msg: 'Failed to authorize, please retry',
auth_success_msg: 'Authorize succeeded',
enable: 'Enable',
disable: 'Disable'
},
alarm_instance: {
search_input_tips: 'Please input the keywords',
alarm_instance_manage: 'Alarm instance manage',
alarm_instance_name: 'Alarm instance name',
alarm_instance_name_tips: 'Please enter alarm plugin instance name',
alarm_plugin_name: 'Alarm plugin name',
create_time: 'Create Time',
update_time: 'Update Time',
operation: 'Operation',
edit_alarm_instance: 'Edit Alarm Instance',
delete: 'Delete',
delete_confirm: 'Delete?',
confirm: 'Confirm',
cancel: 'Cancel',
submit: 'Submit',
create_alarm_instance: 'Create Alarm Instance',
select_plugin: 'Select plugin',
select_plugin_tips: 'Select Alarm plugin',
instance_parameter_exception: 'Instance parameter exception',
WebHook: 'WebHook',
webHook: 'WebHook',
WarningType: 'Warning Type',
IsEnableProxy: 'Enable Proxy',
Proxy: 'Proxy',
Port: 'Port',
User: 'User',
corpId: 'CorpId',
secret: 'Secret',
Secret: 'Secret',
users: 'Users',
userSendMsg: 'UserSendMsg',
agentId: 'AgentId',
showType: 'Show Type',
receivers: 'Receivers',
receiverCcs: 'ReceiverCcs',
serverHost: 'SMTP Host',
serverPort: 'SMTP Port',
sender: 'Sender',
enableSmtpAuth: 'SMTP Auth',
Password: 'Password',
starttlsEnable: 'SMTP STARTTLS Enable',
sslEnable: 'SMTP SSL Enable',
smtpSslTrust: 'SMTP SSL Trust',
url: 'URL',
requestType: 'Request Type',
headerParams: 'Headers',
bodyParams: 'Body',
contentField: 'Content Field',
Keyword: 'Keyword',
userParams: 'User Params',
path: 'Script Path',
type: 'Type',
sendType: 'Send Type',
username: 'Username',
botToken: 'Bot Token',
chatId: 'Channel Chat Id',
parseMode: 'Parse Mode'
},
k8s_namespace: {
create_namespace: 'Create Namespace',
edit_namespace: 'Edit Namespace',
search_tips: 'Please enter keywords',
k8s_namespace: 'K8S Namespace',
k8s_namespace_tips: 'Please enter k8s namespace',
k8s_cluster: 'K8S Cluster',
k8s_cluster_tips: 'Please enter k8s cluster',
owner: 'Owner',
owner_tips: 'Please enter owner',
tag: 'Tag',
tag_tips: 'Please enter tag',
limit_cpu: 'Limit CPU',
limit_cpu_tips: 'Please enter limit CPU',
limit_memory: 'Limit Memory',
limit_memory_tips: 'Please enter limit memory',
create_time: 'Create Time',
update_time: 'Update Time',
operation: 'Operation',
edit: 'Edit',
delete: 'Delete',
delete_confirm: 'Delete?'
}
}
const datasource = {
datasource: 'DataSource',
create_datasource: 'Create DataSource',
search_input_tips: 'Please input the keywords',
datasource_name: 'Datasource Name',
datasource_name_tips: 'Please enter datasource name',
datasource_user_name: 'Owner',
datasource_type: 'Datasource Type',
datasource_parameter: 'Datasource Parameter',
description: 'Description',
description_tips: 'Please enter description',
create_time: 'Create Time',
update_time: 'Update Time',
operation: 'Operation',
click_to_view: 'Click to view',
delete: 'Delete',
confirm: 'Confirm',
delete_confirm: 'Delete?',
cancel: 'Cancel',
create: 'Create',
edit: 'Edit',
success: 'Success',
test_connect: 'Test Connect',
ip: 'IP',
ip_tips: 'Please enter IP',
port: 'Port',
port_tips: 'Please enter port',
database_name: 'Database Name',
database_name_tips: 'Please enter database name',
oracle_connect_type: 'ServiceName or SID',
oracle_connect_type_tips: 'Please select serviceName or SID',
oracle_service_name: 'ServiceName',
oracle_sid: 'SID',
jdbc_connect_parameters: 'jdbc connect parameters',
principal_tips: 'Please enter Principal',
krb5_conf_tips:
'Please enter the kerberos authentication parameter java.security.krb5.conf',
keytab_username_tips:
'Please enter the kerberos authentication parameter login.user.keytab.username',
keytab_path_tips:
'Please enter the kerberos authentication parameter login.user.keytab.path',
format_tips: 'Please enter format',
connection_parameter: 'connection parameter',
user_name: 'User Name',
user_name_tips: 'Please enter your username',
user_password: 'Password',
user_password_tips: 'Please enter your password'
}
const data_quality = {
task_result: {
task_name: 'Task Name',
workflow_instance: 'Workflow Instance',
rule_type: 'Rule Type',
rule_name: 'Rule Name',
state: 'State',
actual_value: 'Actual Value',
excepted_value: 'Excepted Value',
check_type: 'Check Type',
operator: 'Operator',
threshold: 'Threshold',
failure_strategy: 'Failure Strategy',
excepted_value_type: 'Excepted Value Type',
error_output_path: 'Error Output Path',
username: 'Username',
create_time: 'Create Time',
update_time: 'Update Time',
undone: 'Undone',
success: 'Success',
failure: 'Failure',
single_table: 'Single Table',
single_table_custom_sql: 'Single Table Custom Sql',
multi_table_accuracy: 'Multi Table Accuracy',
multi_table_comparison: 'Multi Table Comparison',
expected_and_actual_or_expected: '(Expected - Actual) / Expected x 100%',
expected_and_actual: 'Expected - Actual',
actual_and_expected: 'Actual - Expected',
actual_or_expected: 'Actual / Expected x 100%'
},
rule: {
actions: 'Actions',
name: 'Rule Name',
type: 'Rule Type',
username: 'User Name',
create_time: 'Create Time',
update_time: 'Update Time',
input_item: 'Rule input item',
view_input_item: 'View input items',
input_item_title: 'Input item title',
input_item_placeholder: 'Input item placeholder',
input_item_type: 'Input item type',
src_connector_type: 'SrcConnType',
src_datasource_id: 'SrcSource',
src_table: 'SrcTable',
src_filter: 'SrcFilter',
src_field: 'SrcField',
statistics_name: 'ActualValName',
check_type: 'CheckType',
operator: 'Operator',
threshold: 'Threshold',
failure_strategy: 'FailureStrategy',
target_connector_type: 'TargetConnType',
target_datasource_id: 'TargetSourceId',
target_table: 'TargetTable',
target_filter: 'TargetFilter',
mapping_columns: 'OnClause',
statistics_execute_sql: 'ActualValExecSql',
comparison_name: 'ExceptedValName',
comparison_execute_sql: 'ExceptedValExecSql',
comparison_type: 'ExceptedValType',
writer_connector_type: 'WriterConnType',
writer_datasource_id: 'WriterSourceId',
target_field: 'TargetField',
field_length: 'FieldLength',
logic_operator: 'LogicOperator',
regexp_pattern: 'RegexpPattern',
deadline: 'Deadline',
datetime_format: 'DatetimeFormat',
enum_list: 'EnumList',
begin_time: 'BeginTime',
fix_value: 'FixValue',
null_check: 'NullCheck',
custom_sql: 'Custom Sql',
single_table: 'Single Table',
single_table_custom_sql: 'Single Table Custom Sql',
multi_table_accuracy: 'Multi Table Accuracy',
multi_table_value_comparison: 'Multi Table Compare',
field_length_check: 'FieldLengthCheck',
uniqueness_check: 'UniquenessCheck',
regexp_check: 'RegexpCheck',
timeliness_check: 'TimelinessCheck',
enumeration_check: 'EnumerationCheck',
table_count_check: 'TableCountCheck',
All: 'All',
FixValue: 'FixValue',
DailyAvg: 'DailyAvg',
WeeklyAvg: 'WeeklyAvg',
MonthlyAvg: 'MonthlyAvg',
Last7DayAvg: 'Last7DayAvg',
Last30DayAvg: 'Last30DayAvg',
SrcTableTotalRows: 'SrcTableTotalRows',
TargetTableTotalRows: 'TargetTableTotalRows'
}
}
const crontab = {
second: 'second',
minute: 'minute',
hour: 'hour',
day: 'day',
month: 'month',
year: 'year',
monday: 'Monday',
tuesday: 'Tuesday',
wednesday: 'Wednesday',
thursday: 'Thursday',
friday: 'Friday',
saturday: 'Saturday',
sunday: 'Sunday',
every_second: 'Every second',
every: 'Every',
second_carried_out: 'second carried out',
second_start: 'Start',
specific_second: 'Specific second(multiple)',
specific_second_tip: 'Please enter a specific second',
cycle_from: 'Cycle from',
to: 'to',
every_minute: 'Every minute',
minute_carried_out: 'minute carried out',
minute_start: 'Start',
specific_minute: 'Specific minute(multiple)',
specific_minute_tip: 'Please enter a specific minute',
every_hour: 'Every hour',
hour_carried_out: 'hour carried out',
hour_start: 'Start',
specific_hour: 'Specific hour(multiple)',
specific_hour_tip: 'Please enter a specific hour',
every_day: 'Every day',
week_carried_out: 'week carried out',
start: 'Start',
day_carried_out: 'day carried out',
day_start: 'Start',
specific_week: 'Specific day of the week(multiple)',
specific_week_tip: 'Please enter a specific week',
specific_day: 'Specific days(multiple)',
specific_day_tip: 'Please enter a days',
last_day_of_month: 'On the last day of the month',
last_work_day_of_month: 'On the last working day of the month',
last_of_month: 'At the last of this month',
before_end_of_month: 'Before the end of this month',
recent_business_day_to_month:
'The most recent business day (Monday to Friday) to this month',
in_this_months: 'In this months',
every_month: 'Every month',
month_carried_out: 'month carried out',
month_start: 'Start',
specific_month: 'Specific months(multiple)',
specific_month_tip: 'Please enter a months',
every_year: 'Every year',
year_carried_out: 'year carried out',
year_start: 'Start',
specific_year: 'Specific year(multiple)',
specific_year_tip: 'Please enter a year',
one_hour: 'hour',
one_day: 'day'
}
export default {
login,
modal,
theme,
userDropdown,
menu,
home,
password,
profile,
monitor,
resource,
project,
security,
datasource,
data_quality,
crontab
}
|
closed
|
apache/dolphinscheduler
|
https://github.com/apache/dolphinscheduler
| 9,003 |
[Bug][UI Next][V1.0.0-Alpha] Alarm instance management edit button floating prompt error.
|
### Search before asking
- [X] I had searched in the [issues](https://github.com/apache/dolphinscheduler/issues?q=is%3Aissue) and found no similar issues.
### What happened

### What you expected to happen
Alarm instance management edit button floating prompt error.
### How to reproduce
Support i18n.
### Anything else
_No response_
### Version
dev
### Are you willing to submit PR?
- [X] Yes I am willing to submit a PR!
### Code of Conduct
- [X] I agree to follow this project's [Code of Conduct](https://www.apache.org/foundation/policies/conduct)
|
https://github.com/apache/dolphinscheduler/issues/9003
|
https://github.com/apache/dolphinscheduler/pull/9005
|
d89c7ac8bb0f4c35cccb89b7cf05afa53fd5fb85
|
5c5f737a0049dc4c61d21091ef3d0ca10b339ade
| 2022-03-18T15:00:53Z |
java
| 2022-03-19T02:16:37Z |
dolphinscheduler-ui-next/src/locales/modules/zh_CN.ts
|
/*
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership.
* The ASF licenses this file to You under the Apache License, Version 2.0
* (the "License"); you may not use this file except in compliance with
* the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
const login = {
test: '测试',
userName: '用户名',
userName_tips: '请输入用户名',
userPassword: '密码',
userPassword_tips: '请输入密码',
login: '登录'
}
const modal = {
cancel: '取消',
confirm: '确定'
}
const theme = {
light: '浅色',
dark: '深色'
}
const userDropdown = {
profile: '用户信息',
password: '密码管理',
logout: '退出登录'
}
const menu = {
home: '首页',
project: '项目管理',
resources: '资源中心',
datasource: '数据源中心',
monitor: '监控中心',
security: '安全中心',
project_overview: '项目概览',
workflow_relation: '工作流关系',
workflow: '工作流',
workflow_definition: '工作流定义',
workflow_instance: '工作流实例',
task: '任务',
task_instance: '任务实例',
task_definition: '任务定义',
file_manage: '文件管理',
udf_manage: 'UDF管理',
resource_manage: '资源管理',
function_manage: '函数管理',
service_manage: '服务管理',
master: 'Master',
worker: 'Worker',
db: 'DB',
statistical_manage: '统计管理',
statistics: 'Statistics',
audit_log: '审计日志',
tenant_manage: '租户管理',
user_manage: '用户管理',
alarm_group_manage: '告警组管理',
alarm_instance_manage: '告警实例管理',
worker_group_manage: 'Worker分组管理',
yarn_queue_manage: 'Yarn队列管理',
environment_manage: '环境管理',
k8s_namespace_manage: 'K8S命名空间管理',
token_manage: '令牌管理',
task_group_manage: '任务组管理',
task_group_option: '任务组配置',
task_group_queue: '任务组队列',
data_quality: '数据质量',
task_result: '任务结果',
rule: '规则管理'
}
const home = {
task_state_statistics: '任务状态统计',
process_state_statistics: '流程状态统计',
process_definition_statistics: '流程定义统计',
number: '数量',
state: '状态',
submitted_success: '提交成功',
running_execution: '正在运行',
ready_pause: '准备暂停',
pause: '暂停',
ready_stop: '准备停止',
stop: '停止',
failure: '失败',
success: '成功',
need_fault_tolerance: '需要容错',
kill: 'KILL',
waiting_thread: '等待线程',
waiting_depend: '等待依赖完成',
delay_execution: '延时执行',
forced_success: '强制成功',
serial_wait: '串行等待',
ready_block: '准备阻断',
block: '阻断'
}
const password = {
edit_password: '修改密码',
password: '密码',
confirm_password: '确认密码',
password_tips: '请输入密码',
confirm_password_tips: '请输入确认密码',
two_password_entries_are_inconsistent: '两次密码输入不一致',
submit: '提交'
}
const profile = {
profile: '用户信息',
edit: '编辑',
username: '用户名',
email: '邮箱',
phone: '手机',
state: '状态',
permission: '权限',
create_time: '创建时间',
update_time: '更新时间',
administrator: '管理员',
ordinary_user: '普通用户',
edit_profile: '编辑用户',
username_tips: '请输入用户名',
email_tips: '请输入邮箱',
email_correct_tips: '请输入正确格式的邮箱',
phone_tips: '请输入手机号',
state_tips: '请选择状态',
enable: '启用',
disable: '禁用',
timezone_success: '时区更新成功',
please_select_timezone: '请选择时区'
}
const monitor = {
master: {
cpu_usage: '处理器使用量',
memory_usage: '内存使用量',
load_average: '平均负载量',
create_time: '创建时间',
last_heartbeat_time: '最后心跳时间',
directory_detail: '目录详情',
host: '主机',
directory: '注册目录'
},
worker: {
cpu_usage: '处理器使用量',
memory_usage: '内存使用量',
load_average: '平均负载量',
create_time: '创建时间',
last_heartbeat_time: '最后心跳时间',
directory_detail: '目录详情',
host: '主机',
directory: '注册目录'
},
db: {
health_state: '健康状态',
max_connections: '最大连接数',
threads_connections: '当前连接数',
threads_running_connections: '数据库当前活跃连接数'
},
statistics: {
command_number_of_waiting_for_running: '待执行的命令数',
failure_command_number: '执行失败的命令数',
tasks_number_of_waiting_running: '待运行任务数',
task_number_of_ready_to_kill: '待杀死任务数'
},
audit_log: {
user_name: '用户名称',
resource_type: '资源类型',
project_name: '项目名称',
operation_type: '操作类型',
create_time: '创建时间',
start_time: '开始时间',
end_time: '结束时间',
user_audit: '用户管理审计',
project_audit: '项目管理审计',
create: '创建',
update: '更新',
delete: '删除',
read: '读取'
}
}
const resource = {
file: {
file_manage: '文件管理',
create_folder: '创建文件夹',
create_file: '创建文件',
upload_files: '上传文件',
enter_keyword_tips: '请输入关键词',
name: '名称',
user_name: '所属用户',
whether_directory: '是否文件夹',
file_name: '文件名称',
description: '描述',
size: '大小',
update_time: '更新时间',
operation: '操作',
edit: '编辑',
rename: '重命名',
download: '下载',
delete: '删除',
yes: '是',
no: '否',
folder_name: '文件夹名称',
enter_name_tips: '请输入名称',
enter_description_tips: '请输入描述',
enter_content_tips: '请输入资源内容',
enter_suffix_tips: '请输入文件后缀',
file_format: '文件格式',
file_content: '文件内容',
delete_confirm: '确定删除吗?',
confirm: '确定',
cancel: '取消',
success: '成功',
file_details: '文件详情',
return: '返回',
save: '保存'
},
udf: {
udf_resources: 'UDF资源',
create_folder: '创建文件夹',
upload_udf_resources: '上传UDF资源',
udf_source_name: 'UDF资源名称',
whether_directory: '是否文件夹',
file_name: '文件名称',
file_size: '文件大小',
description: '描述',
create_time: '创建时间',
update_time: '更新时间',
operation: '操作',
yes: '是',
no: '否',
edit: '编辑',
download: '下载',
delete: '删除',
success: '成功',
folder_name: '文件夹名称',
upload: '上传',
upload_files: '上传文件',
file_upload: '文件上传',
delete_confirm: '确定删除吗?',
enter_keyword_tips: '请输入关键词',
enter_name_tips: '请输入名称',
enter_description_tips: '请输入描述'
},
function: {
udf_function: 'UDF函数',
create_udf_function: '创建UDF函数',
edit_udf_function: '编辑UDF函数',
udf_function_name: 'UDF函数名称',
class_name: '类名',
type: '类型',
description: '描述',
jar_package: 'jar包',
update_time: '更新时间',
operation: '操作',
rename: '重命名',
edit: '编辑',
delete: '删除',
success: '成功',
package_name: '包名类名',
udf_resources: 'UDF资源',
instructions: '使用说明',
upload_resources: '上传资源',
udf_resources_directory: 'UDF资源目录',
delete_confirm: '确定删除吗?',
enter_keyword_tips: '请输入关键词',
enter_udf_unction_name_tips: '请输入UDF函数名称',
enter_package_name_tips: '请输入包名类名',
enter_select_udf_resources_tips: '请选择UDF资源',
enter_select_udf_resources_directory_tips: '请选择UDF资源目录',
enter_instructions_tips: '请输入使用说明',
enter_name_tips: '请输入名称',
enter_description_tips: '请输入描述'
},
task_group_option: {
manage: '任务组管理',
option: '任务组配置',
create: '创建任务组',
edit: '编辑任务组',
delete: '删除任务组',
view_queue: '查看任务组队列',
switch_status: '切换任务组状态',
code: '任务组编号',
name: '任务组名称',
project_name: '项目名称',
resource_pool_size: '资源容量',
resource_used_pool_size: '已用资源',
desc: '描述信息',
status: '任务组状态',
enable_status: '启用',
disable_status: '不可用',
please_enter_name: '请输入任务组名称',
please_enter_desc: '请输入任务组描述',
please_enter_resource_pool_size: '请输入资源容量大小',
resource_pool_size_be_a_number: '资源容量大小必须大于等于1的数值',
please_select_project: '请选择项目',
create_time: '创建时间',
update_time: '更新时间',
actions: '操作',
please_enter_keywords: '请输入搜索关键词'
},
task_group_queue: {
actions: '操作',
task_name: '任务名称',
task_group_name: '任务组名称',
project_name: '项目名称',
process_name: '工作流名称',
process_instance_name: '工作流实例',
queue: '任务组队列',
priority: '组内优先级',
priority_be_a_number: '优先级必须是大于等于0的数值',
force_starting_status: '是否强制启动',
in_queue: '是否排队中',
task_status: '任务状态',
view_task_group_queue: '查看任务组队列',
the_status_of_waiting: '等待入队',
the_status_of_queuing: '排队中',
the_status_of_releasing: '已释放',
modify_priority: '修改优先级',
start_task: '强制启动',
priority_not_empty: '优先级不能为空',
priority_must_be_number: '优先级必须是数值',
please_select_task_name: '请选择节点名称',
create_time: '创建时间',
update_time: '更新时间',
edit_priority: '修改优先级'
}
}
const project = {
list: {
create_project: '创建项目',
edit_project: '编辑项目',
project_list: '项目列表',
project_tips: '请输入项目名称',
description_tips: '请输入项目描述',
username_tips: '请输入所属用户',
project_name: '项目名称',
project_description: '项目描述',
owned_users: '所属用户',
workflow_define_count: '工作流定义数',
process_instance_running_count: '正在运行的流程数',
description: '描述',
create_time: '创建时间',
update_time: '更新时间',
operation: '操作',
edit: '编辑',
delete: '删除',
confirm: '确定',
cancel: '取消',
delete_confirm: '确定删除吗?'
},
workflow: {
workflow_relation: '工作流关系',
create_workflow: '创建工作流',
import_workflow: '导入工作流',
workflow_name: '工作流名称',
current_selection: '当前选择',
online: '已上线',
offline: '已下线',
refresh: '刷新',
show_hide_label: '显示 / 隐藏标签',
workflow_offline: '工作流下线',
schedule_offline: '调度下线',
schedule_start_time: '定时开始时间',
schedule_end_time: '定时结束时间',
crontab_expression: 'Crontab',
workflow_publish_status: '工作流上线状态',
schedule_publish_status: '定时状态',
workflow_definition: '工作流定义',
workflow_instance: '工作流实例',
status: '状态',
create_time: '创建时间',
update_time: '更新时间',
description: '描述',
create_user: '创建用户',
modify_user: '修改用户',
operation: '操作',
edit: '编辑',
confirm: '确定',
cancel: '取消',
start: '运行',
timing: '定时',
timezone: '时区',
up_line: '上线',
down_line: '下线',
copy_workflow: '复制工作流',
cron_manage: '定时管理',
delete: '删除',
tree_view: '工作流树形图',
tree_limit: '限制大小',
export: '导出',
batch_copy: '批量复制',
version_info: '版本信息',
version: '版本',
file_upload: '文件上传',
upload_file: '上传文件',
upload: '上传',
file_name: '文件名称',
success: '成功',
set_parameters_before_starting: '启动前请先设置参数',
set_parameters_before_timing: '定时前请先设置参数',
start_and_stop_time: '起止时间',
next_five_execution_times: '接下来五次执行时间',
execute_time: '执行时间',
failure_strategy: '失败策略',
notification_strategy: '通知策略',
workflow_priority: '流程优先级',
worker_group: 'Worker分组',
environment_name: '环境名称',
alarm_group: '告警组',
complement_data: '补数',
startup_parameter: '启动参数',
whether_dry_run: '是否空跑',
continue: '继续',
end: '结束',
none_send: '都不发',
success_send: '成功发',
failure_send: '失败发',
all_send: '成功或失败都发',
whether_complement_data: '是否是补数',
schedule_date: '调度日期',
mode_of_execution: '执行方式',
serial_execution: '串行执行',
parallel_execution: '并行执行',
parallelism: '并行度',
custom_parallelism: '自定义并行度',
please_enter_parallelism: '请输入并行度',
please_choose: '请选择',
start_time: '开始时间',
end_time: '结束时间',
crontab: 'Crontab',
delete_confirm: '确定删除吗?',
enter_name_tips: '请输入名称',
switch_version: '切换到该版本',
confirm_switch_version: '确定切换到该版本吗?',
current_version: '当前版本',
run_type: '运行类型',
scheduling_time: '调度时间',
duration: '运行时长',
run_times: '运行次数',
fault_tolerant_sign: '容错标识',
dry_run_flag: '空跑标识',
executor: '执行用户',
host: 'Host',
start_process: '启动工作流',
execute_from_the_current_node: '从当前节点开始执行',
recover_tolerance_fault_process: '恢复被容错的工作流',
resume_the_suspension_process: '恢复运行流程',
execute_from_the_failed_nodes: '从失败节点开始执行',
scheduling_execution: '调度执行',
rerun: '重跑',
stop: '停止',
pause: '暂停',
recovery_waiting_thread: '恢复等待线程',
recover_serial_wait: '串行恢复',
recovery_suspend: '恢复运行',
recovery_failed: '恢复失败',
gantt: '甘特图',
name: '名称',
all_status: '全部状态',
submit_success: '提交成功',
running: '正在运行',
ready_to_pause: '准备暂停',
ready_to_stop: '准备停止',
failed: '失败',
need_fault_tolerance: '需要容错',
kill: 'Kill',
waiting_for_thread: '等待线程',
waiting_for_dependence: '等待依赖',
waiting_for_dependency_to_complete: '等待依赖完成',
delay_execution: '延时执行',
forced_success: '强制成功',
serial_wait: '串行等待',
executing: '正在执行',
startup_type: '启动类型',
complement_range: '补数范围',
parameters_variables: '参数变量',
global_parameters: '全局参数',
local_parameters: '局部参数',
type: '类型',
retry_count: '重试次数',
submit_time: '提交时间',
refresh_status_succeeded: '刷新状态成功',
view_log: '查看日志',
update_log_success: '更新日志成功',
no_more_log: '暂无更多日志',
no_log: '暂无日志',
loading_log: '正在努力请求日志中...',
close: '关闭',
download_log: '下载日志',
refresh_log: '刷新日志',
enter_full_screen: '进入全屏',
cancel_full_screen: '取消全屏',
task_state: '任务状态',
mode_of_dependent: '依赖模式',
open: '打开',
project_name_required: '项目名称必填',
related_items: '关联项目',
project_name: '项目名称',
project_tips: '请选择项目'
},
task: {
task_name: '任务名称',
task_type: '任务类型',
create_task: '创建任务',
workflow_instance: '工作流实例',
workflow_name: '工作流名称',
workflow_name_tips: '请选择工作流名称',
workflow_state: '工作流状态',
version: '版本',
current_version: '当前版本',
switch_version: '切换到该版本',
confirm_switch_version: '确定切换到该版本吗?',
description: '描述',
move: '移动',
upstream_tasks: '上游任务',
executor: '执行用户',
node_type: '节点类型',
state: '状态',
submit_time: '提交时间',
start_time: '开始时间',
create_time: '创建时间',
update_time: '更新时间',
end_time: '结束时间',
duration: '运行时间',
retry_count: '重试次数',
dry_run_flag: '空跑标识',
host: '主机',
operation: '操作',
edit: '编辑',
delete: '删除',
delete_confirm: '确定删除吗?',
submitted_success: '提交成功',
running_execution: '正在运行',
ready_pause: '准备暂停',
pause: '暂停',
ready_stop: '准备停止',
stop: '停止',
failure: '失败',
success: '成功',
need_fault_tolerance: '需要容错',
kill: 'KILL',
waiting_thread: '等待线程',
waiting_depend: '等待依赖完成',
delay_execution: '延时执行',
forced_success: '强制成功',
view_log: '查看日志',
download_log: '下载日志',
refresh: '刷新',
serial_wait: '串行等待'
},
dag: {
create: '创建工作流',
search: '搜索',
download_png: '下载工作流图片',
fullscreen_open: '全屏',
fullscreen_close: '退出全屏',
save: '保存',
close: '关闭',
format: '格式化',
refresh_dag_status: '刷新DAG状态',
layout_type: '布局类型',
grid_layout: '网格布局',
dagre_layout: '层次布局',
rows: '行数',
cols: '列数',
copy_success: '复制成功',
workflow_name: '工作流名称',
description: '描述',
tenant: '租户',
timeout_alert: '超时告警',
global_variables: '全局变量',
basic_info: '基本信息',
minute: '分',
key: '键',
value: '值',
success: '成功',
delete_cell: '删除选中的线或节点',
online_directly: '是否上线流程定义',
update_directly: '是否更新流程定义',
dag_name_empty: 'DAG图名称不能为空',
positive_integer: '请输入大于 0 的正整数',
prop_empty: '自定义参数prop不能为空',
prop_repeat: 'prop中有重复',
node_not_created: '未创建节点保存失败',
copy_name: '复制名称',
view_variables: '查看变量',
startup_parameter: '启动参数'
},
node: {
current_node_settings: '当前节点设置',
instructions: '使用说明',
view_history: '查看历史',
view_log: '查看日志',
enter_this_child_node: '进入该子节点',
name: '节点名称',
name_tips: '请输入名称(必填)',
task_type: '任务类型',
task_type_tips: '请选择任务类型(必选)',
process_name: '工作流名称',
process_name_tips: '请选择工作流(必选)',
child_node: '子节点',
enter_child_node: '进入该子节点',
run_flag: '运行标志',
normal: '正常',
prohibition_execution: '禁止执行',
description: '描述',
description_tips: '请输入描述',
task_priority: '任务优先级',
worker_group: 'Worker分组',
worker_group_tips: '该Worker分组已经不存在,请选择正确的Worker分组!',
environment_name: '环境名称',
task_group_name: '任务组名称',
task_group_queue_priority: '组内优先级',
number_of_failed_retries: '失败重试次数',
times: '次',
failed_retry_interval: '失败重试间隔',
minute: '分',
delay_execution_time: '延时执行时间',
state: '状态',
branch_flow: '分支流转',
cancel: '取消',
loading: '正在努力加载中...',
confirm: '确定',
success: '成功',
failed: '失败',
backfill_tips: '新创建子工作流还未执行,不能进入子工作流',
task_instance_tips: '该任务还未执行,不能进入子工作流',
branch_tips: '成功分支流转和失败分支流转不能选择同一个节点',
timeout_alarm: '超时告警',
timeout_strategy: '超时策略',
timeout_strategy_tips: '超时策略必须选一个',
timeout_failure: '超时失败',
timeout_period: '超时时长',
timeout_period_tips: '超时时长必须为正整数',
script: '脚本',
script_tips: '请输入脚本(必填)',
resources: '资源',
resources_tips: '请选择资源',
no_resources_tips: '请删除所有未授权或已删除资源',
useless_resources_tips: '未授权或已删除资源',
custom_parameters: '自定义参数',
copy_failed: '该浏览器不支持自动复制',
prop_tips: 'prop(必填)',
prop_repeat: 'prop中有重复',
value_tips: 'value(选填)',
value_required_tips: 'value(必填)',
pre_tasks: '前置任务',
program_type: '程序类型',
spark_version: 'Spark版本',
main_class: '主函数的Class',
main_class_tips: '请填写主函数的Class',
main_package: '主程序包',
main_package_tips: '请选择主程序包',
deploy_mode: '部署方式',
app_name: '任务名称',
app_name_tips: '请输入任务名称(选填)',
driver_cores: 'Driver核心数',
driver_cores_tips: '请输入Driver核心数',
driver_memory: 'Driver内存数',
driver_memory_tips: '请输入Driver内存数',
executor_number: 'Executor数量',
executor_number_tips: '请输入Executor数量',
executor_memory: 'Executor内存数',
executor_memory_tips: '请输入Executor内存数',
executor_cores: 'Executor核心数',
executor_cores_tips: '请输入Executor核心数',
main_arguments: '主程序参数',
main_arguments_tips: '请输入主程序参数',
option_parameters: '选项参数',
option_parameters_tips: '请输入选项参数',
positive_integer_tips: '应为正整数',
flink_version: 'Flink版本',
job_manager_memory: 'JobManager内存数',
job_manager_memory_tips: '请输入JobManager内存数',
task_manager_memory: 'TaskManager内存数',
task_manager_memory_tips: '请输入TaskManager内存数',
slot_number: 'Slot数量',
slot_number_tips: '请输入Slot数量',
parallelism: '并行度',
custom_parallelism: '自定义并行度',
parallelism_tips: '请输入并行度',
parallelism_number_tips: '并行度必须为正整数',
parallelism_complement_tips:
'如果存在大量任务需要补数时,可以利用自定义并行度将补数的任务线程设置成合理的数值,避免对服务器造成过大的影响',
task_manager_number: 'TaskManager数量',
task_manager_number_tips: '请输入TaskManager数量',
http_url: '请求地址',
http_url_tips: '请填写请求地址(必填)',
http_method: '请求类型',
http_parameters: '请求参数',
http_check_condition: '校验条件',
http_condition: '校验内容',
http_condition_tips: '请填写校验内容',
timeout_settings: '超时设置',
connect_timeout: '连接超时',
ms: '毫秒',
socket_timeout: 'Socket超时',
status_code_default: '默认响应码200',
status_code_custom: '自定义响应码',
body_contains: '内容包含',
body_not_contains: '内容不包含',
http_parameters_position: '参数位置',
target_task_name: '目标任务名',
target_task_name_tips: '请输入Pigeon任务名',
datasource_type: '数据源类型',
datasource_instances: '数据源实例',
sql_type: 'SQL类型',
sql_type_query: '查询',
sql_type_non_query: '非查询',
sql_statement: 'SQL语句',
pre_sql_statement: '前置SQL语句',
post_sql_statement: '后置SQL语句',
sql_input_placeholder: '请输入非查询SQL语句',
sql_empty_tips: '语句不能为空',
procedure_method: 'SQL语句',
procedure_method_tips: '请输入存储脚本',
procedure_method_snippet:
'--请输入存储脚本 \n\n--调用存储过程: call <procedure-name>[(<arg1>,<arg2>, ...)] \n\n--调用存储函数:?= call <procedure-name>[(<arg1>,<arg2>, ...)]',
start: '运行',
edit: '编辑',
copy: '复制节点',
delete: '删除',
custom_job: '自定义任务',
custom_script: '自定义脚本',
sqoop_job_name: '任务名称',
sqoop_job_name_tips: '请输入任务名称(必填)',
direct: '流向',
hadoop_custom_params: 'Hadoop参数',
sqoop_advanced_parameters: 'Sqoop参数',
data_source: '数据来源',
type: '类型',
datasource: '数据源',
datasource_tips: '请选择数据源',
model_type: '模式',
form: '表单',
table: '表名',
table_tips: '请输入Mysql表名(必填)',
column_type: '列类型',
all_columns: '全表导入',
some_columns: '选择列',
column: '列',
column_tips: '请输入列名,用 , 隔开',
database: '数据库',
database_tips: '请输入Hive数据库(必填)',
hive_table_tips: '请输入Hive表名(必填)',
hive_partition_keys: 'Hive 分区键',
hive_partition_keys_tips: '请输入分区键',
hive_partition_values: 'Hive 分区值',
hive_partition_values_tips: '请输入分区值',
export_dir: '数据源路径',
export_dir_tips: '请输入数据源路径(必填)',
sql_statement_tips: 'SQL语句(必填)',
map_column_hive: 'Hive类型映射',
map_column_java: 'Java类型映射',
data_target: '数据目的',
create_hive_table: '是否创建新表',
drop_delimiter: '是否删除分隔符',
over_write_src: '是否覆盖数据源',
hive_target_dir: 'Hive目标路径',
hive_target_dir_tips: '请输入Hive临时目录',
replace_delimiter: '替换分隔符',
replace_delimiter_tips: '请输入替换分隔符',
target_dir: '目标路径',
target_dir_tips: '请输入目标路径(必填)',
delete_target_dir: '是否删除目录',
compression_codec: '压缩类型',
file_type: '保存格式',
fields_terminated: '列分隔符',
fields_terminated_tips: '请输入列分隔符',
lines_terminated: '行分隔符',
lines_terminated_tips: '请输入行分隔符',
is_update: '是否更新',
update_key: '更新列',
update_key_tips: '请输入更新列',
update_mode: '更新类型',
only_update: '只更新',
allow_insert: '无更新便插入',
concurrency: '并发度',
concurrency_tips: '请输入并发度',
sea_tunnel_master: 'Master',
sea_tunnel_master_url: 'Master URL',
sea_tunnel_queue: '队列',
sea_tunnel_master_url_tips: '请直接填写地址,例如:127.0.0.1:7077',
switch_condition: '条件',
switch_branch_flow: '分支流转',
and: '且',
or: '或',
datax_custom_template: '自定义模板',
datax_json_template: 'JSON',
datax_target_datasource_type: '目标源类型',
datax_target_database: '目标源实例',
datax_target_table: '目标表',
datax_target_table_tips: '请输入目标表名',
datax_target_database_pre_sql: '目标库前置SQL',
datax_target_database_post_sql: '目标库后置SQL',
datax_non_query_sql_tips: '请输入非查询SQL语句',
datax_job_speed_byte: '限流(字节数)',
datax_job_speed_byte_info: '(KB,0代表不限制)',
datax_job_speed_record: '限流(记录数)',
datax_job_speed_record_info: '(0代表不限制)',
datax_job_runtime_memory: '运行内存',
datax_job_runtime_memory_xms: '最小内存',
datax_job_runtime_memory_xmx: '最大内存',
datax_job_runtime_memory_unit: 'G',
current_hour: '当前小时',
last_1_hour: '前1小时',
last_2_hour: '前2小时',
last_3_hour: '前3小时',
last_24_hour: '前24小时',
today: '今天',
last_1_days: '昨天',
last_2_days: '前两天',
last_3_days: '前三天',
last_7_days: '前七天',
this_week: '本周',
last_week: '上周',
last_monday: '上周一',
last_tuesday: '上周二',
last_wednesday: '上周三',
last_thursday: '上周四',
last_friday: '上周五',
last_saturday: '上周六',
last_sunday: '上周日',
this_month: '本月',
this_month_begin: '本月初',
last_month: '上月',
last_month_begin: '上月初',
last_month_end: '上月末',
month: '月',
week: '周',
day: '日',
hour: '时',
add_dependency: '添加依赖',
waiting_dependent_start: '等待依赖启动',
check_interval: '检查间隔',
waiting_dependent_complete: '等待依赖完成',
rule_name: '规则名称',
null_check: '空值检测',
custom_sql: '自定义SQL',
multi_table_accuracy: '多表准确性',
multi_table_value_comparison: '两表值比对',
field_length_check: '字段长度校验',
uniqueness_check: '唯一性校验',
regexp_check: '正则表达式',
timeliness_check: '及时性校验',
enumeration_check: '枚举值校验',
table_count_check: '表行数校验',
src_connector_type: '源数据类型',
src_datasource_id: '源数据源',
src_table: '源数据表',
src_filter: '源表过滤条件',
src_field: '源表检测列',
statistics_name: '实际值名',
check_type: '校验方式',
operator: '校验操作符',
threshold: '阈值',
failure_strategy: '失败策略',
target_connector_type: '目标数据类型',
target_datasource_id: '目标数据源',
target_table: '目标数据表',
target_filter: '目标表过滤条件',
mapping_columns: 'ON语句',
statistics_execute_sql: '实际值计算SQL',
comparison_name: '期望值名',
comparison_execute_sql: '期望值计算SQL',
comparison_type: '期望值类型',
writer_connector_type: '输出数据类型',
writer_datasource_id: '输出数据源',
target_field: '目标表检测列',
field_length: '字段长度限制',
logic_operator: '逻辑操作符',
regexp_pattern: '正则表达式',
deadline: '截止时间',
datetime_format: '时间格式',
enum_list: '枚举值列表',
begin_time: '起始时间',
fix_value: '固定值',
required: '必填',
emr_flow_define_json: 'jobFlowDefineJson',
emr_flow_define_json_tips: '请输入工作流定义'
}
}
const security = {
tenant: {
tenant_manage: '租户管理',
create_tenant: '创建租户',
search_tips: '请输入关键词',
tenant_code: '操作系统租户',
description: '描述',
queue_name: '队列',
create_time: '创建时间',
update_time: '更新时间',
actions: '操作',
edit_tenant: '编辑租户',
tenant_code_tips: '请输入操作系统租户',
queue_name_tips: '请选择队列',
description_tips: '请输入描述',
delete_confirm: '确定删除吗?',
edit: '编辑',
delete: '删除'
},
alarm_group: {
create_alarm_group: '创建告警组',
edit_alarm_group: '编辑告警组',
search_tips: '请输入关键词',
alert_group_name_tips: '请输入告警组名称',
alarm_plugin_instance: '告警组实例',
alarm_plugin_instance_tips: '请选择告警组实例',
alarm_group_description_tips: '请输入告警组描述',
alert_group_name: '告警组名称',
alarm_group_description: '告警组描述',
create_time: '创建时间',
update_time: '更新时间',
operation: '操作',
delete_confirm: '确定删除吗?',
edit: '编辑',
delete: '删除'
},
worker_group: {
create_worker_group: '创建Worker分组',
edit_worker_group: '编辑Worker分组',
search_tips: '请输入关键词',
operation: '操作',
delete_confirm: '确定删除吗?',
edit: '编辑',
delete: '删除',
group_name: '分组名称',
group_name_tips: '请输入分组名称',
worker_addresses: 'Worker地址',
worker_addresses_tips: '请选择Worker地址',
create_time: '创建时间',
update_time: '更新时间'
},
yarn_queue: {
create_queue: '创建队列',
edit_queue: '编辑队列',
search_tips: '请输入关键词',
queue_name: '队列名',
queue_value: '队列值',
create_time: '创建时间',
update_time: '更新时间',
operation: '操作',
edit: '编辑',
queue_name_tips: '请输入队列名',
queue_value_tips: '请输入队列值'
},
environment: {
create_environment: '创建环境',
edit_environment: '编辑环境',
search_tips: '请输入关键词',
edit: '编辑',
delete: '删除',
environment_name: '环境名称',
environment_config: '环境配置',
environment_desc: '环境描述',
worker_groups: 'Worker分组',
create_time: '创建时间',
update_time: '更新时间',
operation: '操作',
delete_confirm: '确定删除吗?',
environment_name_tips: '请输入环境名',
environment_config_tips: '请输入环境配置',
environment_description_tips: '请输入环境描述',
worker_group_tips: '请选择Worker分组'
},
token: {
create_token: '创建令牌',
edit_token: '编辑令牌',
search_tips: '请输入关键词',
user: '用户',
user_tips: '请选择用户',
token: '令牌',
token_tips: '请输入令牌',
expiration_time: '失效时间',
expiration_time_tips: '请选择失效时间',
create_time: '创建时间',
update_time: '更新时间',
operation: '操作',
edit: '编辑',
delete: '删除',
delete_confirm: '确定删除吗?'
},
user: {
user_manage: '用户管理',
create_user: '创建用户',
update_user: '更新用户',
delete_user: '删除用户',
delete_confirm: '确定删除吗?',
project: '项目',
resource: '资源',
file_resource: '文件资源',
udf_resource: 'UDF资源',
datasource: '数据源',
udf: 'UDF函数',
authorize_project: '项目授权',
authorize_resource: '资源授权',
authorize_datasource: '数据源授权',
authorize_udf: 'UDF函数授权',
username: '用户名',
username_exists: '用户名已存在',
username_tips: '请输入用户名',
user_password: '密码',
user_password_tips: '请输入包含字母和数字,长度在6~20之间的密码',
user_type: '用户类型',
ordinary_user: '普通用户',
administrator: '管理员',
tenant_code: '租户',
tenant_id_tips: '请选择租户',
queue: '队列',
queue_tips: '默认为租户关联队列',
email: '邮件',
email_empty_tips: '请输入邮箱',
emial_correct_tips: '请输入正确的邮箱格式',
phone: '手机',
phone_empty_tips: '请输入手机号码',
phone_correct_tips: '请输入正确的手机格式',
state: '状态',
state_enabled: '启用',
state_disabled: '停用',
create_time: '创建时间',
update_time: '更新时间',
operation: '操作',
edit: '编辑',
delete: '删除',
authorize: '授权',
save_error_msg: '保存失败,请重试',
delete_error_msg: '删除失败,请重试',
auth_error_msg: '授权失败,请重试',
auth_success_msg: '授权成功',
enable: '启用',
disable: '停用'
},
alarm_instance: {
search_input_tips: '请输入关键字',
alarm_instance_manage: '告警实例管理',
alarm_instance_name: '告警实例名称',
alarm_instance_name_tips: '请输入告警实例名称',
alarm_plugin_name: '告警插件名称',
create_time: '创建时间',
update_time: '更新时间',
operation: '操作',
edit_alarm_instance: '编辑告警实例',
delete: '删除',
delete_confirm: '删除?',
confirm: '确定',
cancel: '取消',
submit: '提交',
create_alarm_instance: '创建告警实例',
select_plugin: '选择插件',
select_plugin_tips: '请选择告警插件',
instance_parameter_exception: '实例参数异常',
WebHook: 'Web钩子',
webHook: 'Web钩子',
WarningType: '告警类型',
IsEnableProxy: '启用代理',
Proxy: '代理',
Port: '端口',
User: '用户',
corpId: '企业ID',
secret: '密钥',
Secret: '密钥',
users: '群员',
userSendMsg: '群员信息',
agentId: '应用ID',
showType: '内容展示类型',
receivers: '收件人',
receiverCcs: '抄送人',
serverHost: 'SMTP服务器',
serverPort: 'SMTP端口',
sender: '发件人',
enableSmtpAuth: '请求认证',
Password: '密码',
starttlsEnable: 'STARTTLS连接',
sslEnable: 'SSL连接',
smtpSslTrust: 'SSL证书信任',
url: 'URL',
requestType: '请求方式',
headerParams: '请求头',
bodyParams: '请求体',
contentField: '内容字段',
Keyword: '关键词',
userParams: '自定义参数',
path: '脚本路径',
type: '类型',
sendType: '发送类型',
username: '用户名',
botToken: '机器人Token',
chatId: '频道ID',
parseMode: '解析类型'
},
k8s_namespace: {
create_namespace: '创建命名空间',
edit_namespace: '编辑命名空间',
search_tips: '请输入关键词',
k8s_namespace: 'K8S命名空间',
k8s_namespace_tips: '请输入k8s命名空间',
k8s_cluster: 'K8S集群',
k8s_cluster_tips: '请输入k8s集群',
owner: '负责人',
owner_tips: '请输入负责人',
tag: '标签',
tag_tips: '请输入标签',
limit_cpu: '最大CPU',
limit_cpu_tips: '请输入最大CPU',
limit_memory: '最大内存',
limit_memory_tips: '请输入最大内存',
create_time: '创建时间',
update_time: '更新时间',
operation: '操作',
edit: '编辑',
delete: '删除',
delete_confirm: '确定删除吗?'
}
}
const datasource = {
datasource: '数据源',
create_datasource: '创建数据源',
search_input_tips: '请输入关键字',
datasource_name: '数据源名称',
datasource_name_tips: '请输入数据源名称',
datasource_user_name: '所属用户',
datasource_type: '数据源类型',
datasource_parameter: '数据源参数',
description: '描述',
description_tips: '请输入描述',
create_time: '创建时间',
update_time: '更新时间',
operation: '操作',
click_to_view: '点击查看',
delete: '删除',
confirm: '确定',
delete_confirm: '删除?',
cancel: '取消',
create: '创建',
edit: '编辑',
success: '成功',
test_connect: '测试连接',
ip: 'IP主机名',
ip_tips: '请输入IP主机名',
port: '端口',
port_tips: '请输入端口',
database_name: '数据库名',
database_name_tips: '请输入数据库名',
oracle_connect_type: '服务名或SID',
oracle_connect_type_tips: '请选择服务名或SID',
oracle_service_name: '服务名',
oracle_sid: 'SID',
jdbc_connect_parameters: 'jdbc连接参数',
principal_tips: '请输入Principal',
krb5_conf_tips: '请输入kerberos认证参数 java.security.krb5.conf',
keytab_username_tips: '请输入kerberos认证参数 login.user.keytab.username',
keytab_path_tips: '请输入kerberos认证参数 login.user.keytab.path',
format_tips: '请输入格式为',
connection_parameter: '连接参数',
user_name: '用户名',
user_name_tips: '请输入用户名',
user_password: '密码',
user_password_tips: '请输入密码'
}
const data_quality = {
task_result: {
task_name: '任务名称',
workflow_instance: '工作流实例',
rule_type: '规则类型',
rule_name: '规则名称',
state: '状态',
actual_value: '实际值',
excepted_value: '期望值',
check_type: '检测类型',
operator: '操作符',
threshold: '阈值',
failure_strategy: '失败策略',
excepted_value_type: '期望值类型',
error_output_path: '错误数据路径',
username: '用户名',
create_time: '创建时间',
update_time: '更新时间',
undone: '未完成',
success: '成功',
failure: '失败',
single_table: '单表检测',
single_table_custom_sql: '自定义SQL',
multi_table_accuracy: '多表准确性',
multi_table_comparison: '两表值对比',
expected_and_actual_or_expected: '(期望值-实际值)/实际值 x 100%',
expected_and_actual: '期望值-实际值',
actual_and_expected: '实际值-期望值',
actual_or_expected: '实际值/期望值 x 100%'
},
rule: {
actions: '操作',
name: '规则名称',
type: '规则类型',
username: '用户名',
create_time: '创建时间',
update_time: '更新时间',
input_item: '规则输入项',
view_input_item: '查看规则输入项信息',
input_item_title: '输入项标题',
input_item_placeholder: '输入项占位符',
input_item_type: '输入项类型',
src_connector_type: '源数据类型',
src_datasource_id: '源数据源',
src_table: '源数据表',
src_filter: '源表过滤条件',
src_field: '源表检测列',
statistics_name: '实际值名',
check_type: '校验方式',
operator: '校验操作符',
threshold: '阈值',
failure_strategy: '失败策略',
target_connector_type: '目标数据类型',
target_datasource_id: '目标数据源',
target_table: '目标数据表',
target_filter: '目标表过滤条件',
mapping_columns: 'ON语句',
statistics_execute_sql: '实际值计算SQL',
comparison_name: '期望值名',
comparison_execute_sql: '期望值计算SQL',
comparison_type: '期望值类型',
writer_connector_type: '输出数据类型',
writer_datasource_id: '输出数据源',
target_field: '目标表检测列',
field_length: '字段长度限制',
logic_operator: '逻辑操作符',
regexp_pattern: '正则表达式',
deadline: '截止时间',
datetime_format: '时间格式',
enum_list: '枚举值列表',
begin_time: '起始时间',
fix_value: '固定值',
null_check: '空值检测',
custom_sql: '自定义SQL',
single_table: '单表检测',
multi_table_accuracy: '多表准确性',
multi_table_value_comparison: '两表值比对',
field_length_check: '字段长度校验',
uniqueness_check: '唯一性校验',
regexp_check: '正则表达式',
timeliness_check: '及时性校验',
enumeration_check: '枚举值校验',
table_count_check: '表行数校验',
all: '全部',
FixValue: '固定值',
DailyAvg: '日均值',
WeeklyAvg: '周均值',
MonthlyAvg: '月均值',
Last7DayAvg: '最近7天均值',
Last30DayAvg: '最近30天均值',
SrcTableTotalRows: '源表总行数',
TargetTableTotalRows: '目标表总行数'
}
}
const crontab = {
second: '秒',
minute: '分',
hour: '时',
day: '天',
month: '月',
year: '年',
monday: '星期一',
tuesday: '星期二',
wednesday: '星期三',
thursday: '星期四',
friday: '星期五',
saturday: '星期六',
sunday: '星期天',
every_second: '每一秒钟',
every: '每隔',
second_carried_out: '秒执行 从',
second_start: '秒开始',
specific_second: '具体秒数(可多选)',
specific_second_tip: '请选择具体秒数',
cycle_from: '周期从',
to: '到',
every_minute: '每一分钟',
minute_carried_out: '分执行 从',
minute_start: '分开始',
specific_minute: '具体分钟数(可多选)',
specific_minute_tip: '请选择具体分钟数',
every_hour: '每一小时',
hour_carried_out: '小时执行 从',
hour_start: '小时开始',
specific_hour: '具体小时数(可多选)',
specific_hour_tip: '请选择具体小时数',
every_day: '每一天',
week_carried_out: '周执行 从',
start: '开始',
day_carried_out: '天执行 从',
day_start: '天开始',
specific_week: '具体星期几(可多选)',
specific_week_tip: '请选择具体周几',
specific_day: '具体天数(可多选)',
specific_day_tip: '请选择具体天数',
last_day_of_month: '在这个月的最后一天',
last_work_day_of_month: '在这个月的最后一个工作日',
last_of_month: '在这个月的最后一个',
before_end_of_month: '在本月底前',
recent_business_day_to_month: '最近的工作日(周一至周五)至本月',
in_this_months: '在这个月的第',
every_month: '每一月',
month_carried_out: '月执行 从',
month_start: '月开始',
specific_month: '具体月数(可多选)',
specific_month_tip: '请选择具体月数',
every_year: '每一年',
year_carried_out: '年执行 从',
year_start: '年开始',
specific_year: '具体年数(可多选)',
specific_year_tip: '请选择具体年数',
one_hour: '小时',
one_day: '日'
}
export default {
login,
modal,
theme,
userDropdown,
menu,
home,
password,
profile,
monitor,
resource,
project,
security,
datasource,
data_quality,
crontab
}
|
closed
|
apache/dolphinscheduler
|
https://github.com/apache/dolphinscheduler
| 9,010 |
[Bug][UI Next][V1.0.0-Alpha] There is a warning message in the task group configuration.
|
### Search before asking
- [X] I had searched in the [issues](https://github.com/apache/dolphinscheduler/issues?q=is%3Aissue) and found no similar issues.
### What happened

### What you expected to happen
There is a warning message in the task group configuration.
### How to reproduce
Fix.
### Anything else
_No response_
### Version
dev
### Are you willing to submit PR?
- [X] Yes I am willing to submit a PR!
### Code of Conduct
- [X] I agree to follow this project's [Code of Conduct](https://www.apache.org/foundation/policies/conduct)
|
https://github.com/apache/dolphinscheduler/issues/9010
|
https://github.com/apache/dolphinscheduler/pull/9011
|
7ca204772b40e0c16e11c7ae9352893a3ee228fb
|
06ef1ae6cd882447d8257503af961a3ea31fbf11
| 2022-03-19T03:29:37Z |
java
| 2022-03-19T05:09:04Z |
dolphinscheduler-ui-next/src/service/modules/task-group/types.ts
|
/*
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership.
* The ASF licenses this file to You under the Apache License, Version 2.0
* (the "License"); you may not use this file except in compliance with
* the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
interface ListReq {
pageNo: number
pageSize: number
projectCode?: number
}
interface TaskGroupIdReq {
id: number
}
interface TaskGroupReq {
name: string
projectCode: number
groupSize: number
status: number
description: string
}
interface TaskGroupUpdateReq extends TaskGroupReq, TaskGroupIdReq {}
interface TaskGroup {
id: number
name: string
projectCode: number
projectName: string
groupSize: number
useSize: number
status: number
description: string
createTime: string
updateTime: string
}
interface TaskGroupRes {
totalList: TaskGroup[]
total: number
totalPage: number
pageSize: number
currentPage: number
start: number
}
interface TaskGroupQueue {
id: number
taskId: number
taskName: string
projectName: string
projectCode: string
processInstanceName: string
groupId: number
processId: number
priority: number
forceStart: number
inQueue: number
status: string
createTime: string
updateTime: string
}
interface TaskGroupQueueRes {
totalList: TaskGroupQueue[]
total: number
totalPage: number
pageSize: number
currentPage: number
start: number
}
interface TaskGroupQueueIdReq {
queueId: number
}
interface TaskGroupQueuePriorityUpdateReq extends TaskGroupQueueIdReq {
priority: number
}
export {
ListReq,
TaskGroupIdReq,
TaskGroupReq,
TaskGroupUpdateReq,
TaskGroup,
TaskGroupRes,
TaskGroupQueue,
TaskGroupQueueRes,
TaskGroupQueueIdReq,
TaskGroupQueuePriorityUpdateReq
}
|
closed
|
apache/dolphinscheduler
|
https://github.com/apache/dolphinscheduler
| 9,010 |
[Bug][UI Next][V1.0.0-Alpha] There is a warning message in the task group configuration.
|
### Search before asking
- [X] I had searched in the [issues](https://github.com/apache/dolphinscheduler/issues?q=is%3Aissue) and found no similar issues.
### What happened

### What you expected to happen
There is a warning message in the task group configuration.
### How to reproduce
Fix.
### Anything else
_No response_
### Version
dev
### Are you willing to submit PR?
- [X] Yes I am willing to submit a PR!
### Code of Conduct
- [X] I agree to follow this project's [Code of Conduct](https://www.apache.org/foundation/policies/conduct)
|
https://github.com/apache/dolphinscheduler/issues/9010
|
https://github.com/apache/dolphinscheduler/pull/9011
|
7ca204772b40e0c16e11c7ae9352893a3ee228fb
|
06ef1ae6cd882447d8257503af961a3ea31fbf11
| 2022-03-19T03:29:37Z |
java
| 2022-03-19T05:09:04Z |
dolphinscheduler-ui-next/src/views/resource/task-group/option/components/form-modal.tsx
|
/*
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership.
* The ASF licenses this file to You under the Apache License, Version 2.0
* (the "License"); you may not use this file except in compliance with
* the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
import { defineComponent, PropType, toRefs, onMounted, ref, Ref } from 'vue'
import { NForm, NFormItem, NInput, NSelect } from 'naive-ui'
import { useForm } from '../use-form'
import Modal from '@/components/modal'
import { createTaskGroup, updateTaskGroup } from '@/service/modules/task-group'
import { queryAllProjectList } from '@/service/modules/projects'
import { SelectMixedOption } from 'naive-ui/lib/select/src/interface'
const props = {
show: {
type: Boolean as PropType<boolean>,
default: false
},
data: {
type: Object as PropType<any>
},
status: {
type: Number as PropType<number>,
default: 0
}
}
const FormModal = defineComponent({
name: 'FormModal',
props,
emits: ['confirm', 'cancel'],
setup(props, { emit }) {
const { state, t } = useForm()
const projectOptions: Ref<Array<SelectMixedOption>> = ref([])
onMounted(() => {
queryAllProjectList().then((res: any[]) => {
res.map((item) => {
const option: SelectMixedOption = {
label: item.name,
value: item.code
}
projectOptions.value.push(option)
})
})
if (props.status === 1) {
state.formData.id = props.data.id
state.formData.name = props.data.name
state.formData.projectCode = props.data.projectCode
state.formData.groupSize = props.data.groupSize
state.formData.status = props.data.status
state.formData.description = props.data.description
} else {
state.formData.groupSize = 10
}
})
const onConfirm = async () => {
if (state.saving) return
state.saving = true
try {
props.status === 1
? await updateTaskGroup(state.formData)
: await createTaskGroup(state.formData)
state.saving = false
emit('confirm')
} catch (err) {
state.saving = false
}
}
const onCancel = () => {
state.formData.projectCode = 0
state.formData.description = ''
emit('cancel')
}
return { ...toRefs(state), t, onConfirm, onCancel, projectOptions }
},
render() {
const { t, onConfirm, onCancel, show, status, projectOptions } = this
return (
<Modal
title={
status === 0
? t('resource.task_group_option.create')
: t('resource.task_group_option.edit')
}
show={show}
onConfirm={onConfirm}
onCancel={onCancel}
confirmDisabled={
!this.formData.name ||
!this.formData.groupSize ||
!this.formData.description
}
confirmLoading={this.saving}
>
<NForm rules={this.rules} ref='formRef'>
<NFormItem label={t('resource.task_group_option.name')} path='name'>
<NInput
v-model={[this.formData.name, 'value']}
placeholder={t('resource.task_group_option.please_enter_name')}
/>
</NFormItem>
<NFormItem
label={t('resource.task_group_option.project_name')}
path='projectCode'
>
<NSelect
options={projectOptions}
v-model:value={this.formData.projectCode}
placeholder={t(
'resource.task_group_option.please_select_project'
)}
/>
</NFormItem>
<NFormItem
label={t('resource.task_group_option.resource_pool_size')}
path='groupSize'
>
<NInput
v-model:value={this.formData.groupSize}
placeholder={t(
'resource.task_group_option.please_enter_resource_pool_size'
)}
/>
</NFormItem>
<NFormItem
label={t('resource.task_group_option.desc')}
path='description'
>
<NInput
v-model={[this.formData.description, 'value']}
type='textarea'
placeholder={t('resource.task_group_option.please_enter_desc')}
/>
</NFormItem>
</NForm>
</Modal>
)
}
})
export default FormModal
|
closed
|
apache/dolphinscheduler
|
https://github.com/apache/dolphinscheduler
| 9,010 |
[Bug][UI Next][V1.0.0-Alpha] There is a warning message in the task group configuration.
|
### Search before asking
- [X] I had searched in the [issues](https://github.com/apache/dolphinscheduler/issues?q=is%3Aissue) and found no similar issues.
### What happened

### What you expected to happen
There is a warning message in the task group configuration.
### How to reproduce
Fix.
### Anything else
_No response_
### Version
dev
### Are you willing to submit PR?
- [X] Yes I am willing to submit a PR!
### Code of Conduct
- [X] I agree to follow this project's [Code of Conduct](https://www.apache.org/foundation/policies/conduct)
|
https://github.com/apache/dolphinscheduler/issues/9010
|
https://github.com/apache/dolphinscheduler/pull/9011
|
7ca204772b40e0c16e11c7ae9352893a3ee228fb
|
06ef1ae6cd882447d8257503af961a3ea31fbf11
| 2022-03-19T03:29:37Z |
java
| 2022-03-19T05:09:04Z |
dolphinscheduler-ui-next/src/views/resource/task-group/option/use-form.ts
|
/*
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership.
* The ASF licenses this file to You under the Apache License, Version 2.0
* (the "License"); you may not use this file except in compliance with
* the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
import { useI18n } from 'vue-i18n'
import { reactive, ref } from 'vue'
import type { FormRules } from 'naive-ui'
import type { TaskGroupUpdateReq } from '@/service/modules/task-group/types'
export function useForm() {
const { t } = useI18n()
const state = reactive({
formRef: ref(),
formData: {
id: 0,
name: '',
projectCode: 0,
groupSize: 0,
status: 1,
description: ''
} as TaskGroupUpdateReq,
saving: false,
rules: {
name: {
required: true,
trigger: ['input', 'blur'],
validator() {
if (state.formData.name === '') {
return new Error(t('resource.task_group_option.please_enter_name'))
}
}
},
description: {
required: true,
trigger: ['input', 'blur'],
validator() {
if (state.formData.description === '') {
return new Error(t('resource.task_group_option.please_enter_desc'))
}
}
}
} as FormRules
})
return { state, t }
}
|
closed
|
apache/dolphinscheduler
|
https://github.com/apache/dolphinscheduler
| 9,009 |
[Bug][UI Next][V1.0.0-Alpha] The information entered after the task group configuration is clicked on the Edit button is incorrect.
|
### Search before asking
- [X] I had searched in the [issues](https://github.com/apache/dolphinscheduler/issues?q=is%3Aissue) and found no similar issues.
### What happened

### What you expected to happen
The information entered after the task group configuration is clicked on the Edit button is incorrect.
### How to reproduce
Make the entered information correct.
### Anything else
_No response_
### Version
dev
### Are you willing to submit PR?
- [X] Yes I am willing to submit a PR!
### Code of Conduct
- [X] I agree to follow this project's [Code of Conduct](https://www.apache.org/foundation/policies/conduct)
|
https://github.com/apache/dolphinscheduler/issues/9009
|
https://github.com/apache/dolphinscheduler/pull/9012
|
d9109739a0e15db8b4b94aec738b3212a91f9712
|
7114c1531ec0a4733afbd6a75cb287e8ffa1a0d5
| 2022-03-19T03:21:50Z |
java
| 2022-03-19T06:51:31Z |
dolphinscheduler-ui-next/src/views/resource/task-group/option/index.tsx
|
/*
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership.
* The ASF licenses this file to You under the Apache License, Version 2.0
* (the "License"); you may not use this file except in compliance with
* the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
import { ref, defineComponent, toRefs, reactive, onMounted } from 'vue'
import {
NButton,
NIcon,
NInput,
NCard,
NDataTable,
NPagination
} from 'naive-ui'
import Card from '@/components/card'
import { SearchOutlined } from '@vicons/antd'
import { useI18n } from 'vue-i18n'
import styles from './index.module.scss'
import { useTable } from './use-table'
import FormModal from './components/form-modal'
const taskGroupOption = defineComponent({
name: 'taskGroupOption',
setup() {
const { t } = useI18n()
const { variables, getTableData } = useTable()
const showModalRef = ref(false)
const modelStatusRef = ref(0)
const searchParamRef = ref()
let updateItemData = reactive({
id: 0,
name: '',
projectCode: 0,
groupSize: 0,
status: 1,
description: ''
})
const requestData = () => {
getTableData({
pageSize: variables.pageSize,
pageNo: variables.page,
name: variables.name
})
}
const resetTableData = () => {
getTableData({
pageSize: variables.pageSize,
pageNo: variables.page,
name: variables.name
})
}
const onCancel = () => {
showModalRef.value = false
}
const onConfirm = () => {
showModalRef.value = false
updateItemData = {
id: 0,
name: '',
projectCode: 0,
groupSize: 0,
status: 1,
description: ''
}
resetTableData()
}
const onUpdatePageSize = () => {
variables.page = 1
resetTableData()
}
const updateItem = (
id: number,
name: string,
projectCode: number,
groupSize: number,
description: string
) => {
modelStatusRef.value = 1
showModalRef.value = true
updateItemData.id = id
updateItemData.name = name
updateItemData.projectCode = projectCode
updateItemData.groupSize = groupSize
updateItemData.description = description
}
const onSearch = () => {
resetTableData()
}
const onCreate = () => {
modelStatusRef.value = 0
showModalRef.value = true
}
onMounted(() => {
requestData()
})
return {
...toRefs(variables),
t,
onCreate,
onSearch,
searchParamRef,
resetTableData,
onUpdatePageSize,
updateItem,
showModalRef,
modelStatusRef,
onCancel,
onConfirm,
updateItemData
}
},
render() {
const {
t,
showModalRef,
modelStatusRef,
onCancel,
onConfirm,
updateItemData,
resetTableData,
onUpdatePageSize,
updateItem,
onSearch
} = this
const { columns } = useTable(updateItem, resetTableData)
return (
<div>
<NCard>
<div class={styles.toolbar}>
<div class={styles.left}>
<NButton
size='small'
type={'primary'}
onClick={() => this.onCreate()}
>
{t('resource.task_group_option.create')}
</NButton>
</div>
<div class={styles.right}>
<NInput
size='small'
v-model={[this.name, 'value']}
placeholder={t(
'resource.task_group_option.please_enter_keywords'
)}
></NInput>
<NButton size='small' type='primary' onClick={onSearch}>
<NIcon>
<SearchOutlined />
</NIcon>
</NButton>
</div>
</div>
</NCard>
<Card
class={styles['table-card']}
title={t('resource.task_group_option.option')}
>
<div>
<NDataTable
columns={columns}
size={'small'}
data={this.tableData}
striped
/>
<div class={styles.pagination}>
<NPagination
v-model:page={this.page}
v-model:page-size={this.pageSize}
page-count={this.totalPage}
show-size-picker
page-sizes={[10, 30, 50]}
show-quick-jumper
onUpdatePage={resetTableData}
onUpdatePageSize={onUpdatePageSize}
/>
</div>
</div>
</Card>
{showModalRef && (
<FormModal
show={showModalRef}
onCancel={onCancel}
onConfirm={onConfirm}
data={updateItemData}
status={modelStatusRef}
/>
)}
</div>
)
}
})
export default taskGroupOption
|
closed
|
apache/dolphinscheduler
|
https://github.com/apache/dolphinscheduler
| 8,996 |
[Bug][UI Next][V1.0.0-Alpha] The new task group configuration item name is displayed as 0.
|
### Search before asking
- [X] I had searched in the [issues](https://github.com/apache/dolphinscheduler/issues?q=is%3Aissue) and found no similar issues.
### What happened

### What you expected to happen
The new task group configuration item name is displayed as 0.
### How to reproduce
should appear empty.
### Anything else
_No response_
### Version
dev
### Are you willing to submit PR?
- [X] Yes I am willing to submit a PR!
### Code of Conduct
- [X] I agree to follow this project's [Code of Conduct](https://www.apache.org/foundation/policies/conduct)
|
https://github.com/apache/dolphinscheduler/issues/8996
|
https://github.com/apache/dolphinscheduler/pull/9014
|
7114c1531ec0a4733afbd6a75cb287e8ffa1a0d5
|
7b190e4ab3ef51bca4515e35dfb12c1fd250d525
| 2022-03-18T14:39:39Z |
java
| 2022-03-19T08:02:35Z |
dolphinscheduler-ui-next/src/service/modules/task-group/types.ts
|
/*
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership.
* The ASF licenses this file to You under the Apache License, Version 2.0
* (the "License"); you may not use this file except in compliance with
* the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
interface ListReq {
pageNo: number
pageSize: number
projectCode?: number
}
interface TaskGroupIdReq {
id: number
}
interface TaskGroupReq {
name: string
projectCode: number
groupSize: string
status: number
description: string
}
interface TaskGroupUpdateReq extends TaskGroupReq, TaskGroupIdReq {}
interface TaskGroup {
id: number
name: string
projectCode: number
projectName: string
groupSize: number
useSize: number
status: number
description: string
createTime: string
updateTime: string
}
interface TaskGroupRes {
totalList: TaskGroup[]
total: number
totalPage: number
pageSize: number
currentPage: number
start: number
}
interface TaskGroupQueue {
id: number
taskId: number
taskName: string
projectName: string
projectCode: string
processInstanceName: string
groupId: number
processId: number
priority: number
forceStart: number
inQueue: number
status: string
createTime: string
updateTime: string
}
interface TaskGroupQueueRes {
totalList: TaskGroupQueue[]
total: number
totalPage: number
pageSize: number
currentPage: number
start: number
}
interface TaskGroupQueueIdReq {
queueId: number
}
interface TaskGroupQueuePriorityUpdateReq extends TaskGroupQueueIdReq {
priority: number
}
export {
ListReq,
TaskGroupIdReq,
TaskGroupReq,
TaskGroupUpdateReq,
TaskGroup,
TaskGroupRes,
TaskGroupQueue,
TaskGroupQueueRes,
TaskGroupQueueIdReq,
TaskGroupQueuePriorityUpdateReq
}
|
closed
|
apache/dolphinscheduler
|
https://github.com/apache/dolphinscheduler
| 8,996 |
[Bug][UI Next][V1.0.0-Alpha] The new task group configuration item name is displayed as 0.
|
### Search before asking
- [X] I had searched in the [issues](https://github.com/apache/dolphinscheduler/issues?q=is%3Aissue) and found no similar issues.
### What happened

### What you expected to happen
The new task group configuration item name is displayed as 0.
### How to reproduce
should appear empty.
### Anything else
_No response_
### Version
dev
### Are you willing to submit PR?
- [X] Yes I am willing to submit a PR!
### Code of Conduct
- [X] I agree to follow this project's [Code of Conduct](https://www.apache.org/foundation/policies/conduct)
|
https://github.com/apache/dolphinscheduler/issues/8996
|
https://github.com/apache/dolphinscheduler/pull/9014
|
7114c1531ec0a4733afbd6a75cb287e8ffa1a0d5
|
7b190e4ab3ef51bca4515e35dfb12c1fd250d525
| 2022-03-18T14:39:39Z |
java
| 2022-03-19T08:02:35Z |
dolphinscheduler-ui-next/src/views/resource/task-group/option/components/form-modal.tsx
|
/*
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership.
* The ASF licenses this file to You under the Apache License, Version 2.0
* (the "License"); you may not use this file except in compliance with
* the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
import { defineComponent, PropType, toRefs, onMounted, ref, Ref } from 'vue'
import { NForm, NFormItem, NInput, NSelect } from 'naive-ui'
import { useForm } from '../use-form'
import Modal from '@/components/modal'
import { createTaskGroup, updateTaskGroup } from '@/service/modules/task-group'
import { queryAllProjectList } from '@/service/modules/projects'
import { SelectMixedOption } from 'naive-ui/lib/select/src/interface'
const props = {
show: {
type: Boolean as PropType<boolean>,
default: false
},
data: {
type: Object as PropType<any>
},
status: {
type: Number as PropType<number>,
default: 0
}
}
const FormModal = defineComponent({
name: 'FormModal',
props,
emits: ['confirm', 'cancel'],
setup(props, { emit }) {
const { state, t } = useForm()
const projectOptions: Ref<Array<SelectMixedOption>> = ref([])
onMounted(() => {
queryAllProjectList().then((res: any[]) => {
res.map((item) => {
const option: SelectMixedOption = {
label: item.name,
value: item.code
}
projectOptions.value.push(option)
})
})
if (props.status === 1) {
state.formData.id = props.data.id
state.formData.name = props.data.name
state.formData.projectCode = props.data.projectCode
state.formData.groupSize = String(props.data.groupSize)
state.formData.status = props.data.status
state.formData.description = props.data.description
} else {
state.formData.groupSize = '10'
}
})
const onConfirm = async () => {
if (state.saving) return
state.saving = true
try {
props.status === 1
? await updateTaskGroup(state.formData)
: await createTaskGroup(state.formData)
state.saving = false
emit('confirm')
} catch (err) {
state.saving = false
}
}
const onCancel = () => {
state.formData.projectCode = 0
state.formData.description = ''
emit('cancel')
}
return { ...toRefs(state), t, onConfirm, onCancel, projectOptions }
},
render() {
const { t, onConfirm, onCancel, show, status, projectOptions } = this
return (
<Modal
title={
status === 0
? t('resource.task_group_option.create')
: t('resource.task_group_option.edit')
}
show={show}
onConfirm={onConfirm}
onCancel={onCancel}
confirmDisabled={
!this.formData.name ||
!this.formData.groupSize ||
!this.formData.description
}
confirmLoading={this.saving}
>
<NForm rules={this.rules} ref='formRef'>
<NFormItem label={t('resource.task_group_option.name')} path='name'>
<NInput
v-model={[this.formData.name, 'value']}
placeholder={t('resource.task_group_option.please_enter_name')}
/>
</NFormItem>
<NFormItem
label={t('resource.task_group_option.project_name')}
path='projectCode'
>
<NSelect
options={projectOptions}
v-model:value={this.formData.projectCode}
placeholder={t(
'resource.task_group_option.please_select_project'
)}
/>
</NFormItem>
<NFormItem
label={t('resource.task_group_option.resource_pool_size')}
path='groupSize'
>
<NInput
v-model:value={this.formData.groupSize}
placeholder={t(
'resource.task_group_option.please_enter_resource_pool_size'
)}
/>
</NFormItem>
<NFormItem
label={t('resource.task_group_option.desc')}
path='description'
>
<NInput
v-model={[this.formData.description, 'value']}
type='textarea'
placeholder={t('resource.task_group_option.please_enter_desc')}
/>
</NFormItem>
</NForm>
</Modal>
)
}
})
export default FormModal
|
closed
|
apache/dolphinscheduler
|
https://github.com/apache/dolphinscheduler
| 8,996 |
[Bug][UI Next][V1.0.0-Alpha] The new task group configuration item name is displayed as 0.
|
### Search before asking
- [X] I had searched in the [issues](https://github.com/apache/dolphinscheduler/issues?q=is%3Aissue) and found no similar issues.
### What happened

### What you expected to happen
The new task group configuration item name is displayed as 0.
### How to reproduce
should appear empty.
### Anything else
_No response_
### Version
dev
### Are you willing to submit PR?
- [X] Yes I am willing to submit a PR!
### Code of Conduct
- [X] I agree to follow this project's [Code of Conduct](https://www.apache.org/foundation/policies/conduct)
|
https://github.com/apache/dolphinscheduler/issues/8996
|
https://github.com/apache/dolphinscheduler/pull/9014
|
7114c1531ec0a4733afbd6a75cb287e8ffa1a0d5
|
7b190e4ab3ef51bca4515e35dfb12c1fd250d525
| 2022-03-18T14:39:39Z |
java
| 2022-03-19T08:02:35Z |
dolphinscheduler-ui-next/src/views/resource/task-group/option/use-form.ts
|
/*
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership.
* The ASF licenses this file to You under the Apache License, Version 2.0
* (the "License"); you may not use this file except in compliance with
* the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
import { useI18n } from 'vue-i18n'
import { reactive, ref } from 'vue'
import type { FormRules } from 'naive-ui'
import type { TaskGroupUpdateReq } from '@/service/modules/task-group/types'
export function useForm() {
const { t } = useI18n()
const state = reactive({
formRef: ref(),
formData: {
id: 0,
name: '',
projectCode: 0,
groupSize: '0',
status: 1,
description: ''
} as TaskGroupUpdateReq,
saving: false,
rules: {
name: {
required: true,
trigger: ['input', 'blur'],
validator() {
if (state.formData.name === '') {
return new Error(t('resource.task_group_option.please_enter_name'))
}
}
},
description: {
required: true,
trigger: ['input', 'blur'],
validator() {
if (state.formData.description === '') {
return new Error(t('resource.task_group_option.please_enter_desc'))
}
}
}
} as FormRules
})
return { state, t }
}
|
closed
|
apache/dolphinscheduler
|
https://github.com/apache/dolphinscheduler
| 9,015 |
[Bug][UI Next][V1.0.0-Alpha] When assigning another project to the task group it can be updated successfully.
|
### Search before asking
- [X] I had searched in the [issues](https://github.com/apache/dolphinscheduler/issues?q=is%3Aissue) and found no similar issues.
### What happened
When I assign another project to the task group It can be updated successfully.
Edit a task group:
<img width="1006" alt="image" src="https://user-images.githubusercontent.com/4928204/159114004-4e2b73f5-d5a7-4115-9a63-834fedbea181.png">
Assign another project and save it:
<img width="878" alt="image" src="https://user-images.githubusercontent.com/4928204/159114006-b6f29f61-2d40-4316-bc78-fb58692f20de.png">
The project's name of the task group couldn't be modified:

### What you expected to happen
I expect that I can modify the project's name for a task group.
### How to reproduce
You can modify a task group and select another project. At last you will see it.
### Anything else
_No response_
### Version
dev
### Are you willing to submit PR?
- [X] Yes I am willing to submit a PR!
### Code of Conduct
- [X] I agree to follow this project's [Code of Conduct](https://www.apache.org/foundation/policies/conduct)
|
https://github.com/apache/dolphinscheduler/issues/9015
|
https://github.com/apache/dolphinscheduler/pull/9017
|
7b190e4ab3ef51bca4515e35dfb12c1fd250d525
|
48dc0a059cbe0335d13afb18b4f9e4a8a06c2fb1
| 2022-03-19T08:39:14Z |
java
| 2022-03-19T11:44:18Z |
dolphinscheduler-ui-next/src/views/resource/task-group/option/components/form-modal.tsx
|
/*
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership.
* The ASF licenses this file to You under the Apache License, Version 2.0
* (the "License"); you may not use this file except in compliance with
* the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
import { defineComponent, PropType, toRefs, onMounted, ref, Ref } from 'vue'
import { NForm, NFormItem, NInput, NSelect } from 'naive-ui'
import { useForm } from '../use-form'
import Modal from '@/components/modal'
import { createTaskGroup, updateTaskGroup } from '@/service/modules/task-group'
import { queryAllProjectList } from '@/service/modules/projects'
import { SelectMixedOption } from 'naive-ui/lib/select/src/interface'
const props = {
show: {
type: Boolean as PropType<boolean>,
default: false
},
data: {
type: Object as PropType<any>
},
status: {
type: Number as PropType<number>,
default: 0
}
}
const FormModal = defineComponent({
name: 'FormModal',
props,
emits: ['confirm', 'cancel'],
setup(props, { emit }) {
const { state, t } = useForm()
const projectOptions: Ref<Array<SelectMixedOption>> = ref([])
onMounted(() => {
queryAllProjectList().then((res: any[]) => {
res.map((item) => {
const option: SelectMixedOption = {
label: item.name,
value: item.code
}
projectOptions.value.push(option)
})
})
if (props.status === 1) {
state.formData.id = props.data.id
state.formData.name = props.data.name
state.formData.projectCode = props.data.projectCode
state.formData.groupSize = String(props.data.groupSize)
state.formData.status = props.data.status
state.formData.description = props.data.description
} else {
state.formData.groupSize = '10'
}
})
const onConfirm = async () => {
if (state.saving) return
state.saving = true
try {
props.status === 1
? await updateTaskGroup(state.formData)
: await createTaskGroup(state.formData)
state.saving = false
emit('confirm')
} catch (err) {
state.saving = false
}
}
const onCancel = () => {
state.formData.projectCode = ''
state.formData.description = ''
emit('cancel')
}
return { ...toRefs(state), t, onConfirm, onCancel, projectOptions }
},
render() {
const { t, onConfirm, onCancel, show, status, projectOptions } = this
return (
<Modal
title={
status === 0
? t('resource.task_group_option.create')
: t('resource.task_group_option.edit')
}
show={show}
onConfirm={onConfirm}
onCancel={onCancel}
confirmDisabled={
!this.formData.name ||
!this.formData.groupSize ||
!this.formData.description
}
confirmLoading={this.saving}
>
<NForm rules={this.rules} ref='formRef'>
<NFormItem label={t('resource.task_group_option.name')} path='name'>
<NInput
v-model={[this.formData.name, 'value']}
placeholder={t('resource.task_group_option.please_enter_name')}
/>
</NFormItem>
<NFormItem
label={t('resource.task_group_option.project_name')}
path='projectCode'
>
<NSelect
options={projectOptions}
v-model:value={this.formData.projectCode}
placeholder={t(
'resource.task_group_option.please_select_project'
)}
/>
</NFormItem>
<NFormItem
label={t('resource.task_group_option.resource_pool_size')}
path='groupSize'
>
<NInput
v-model:value={this.formData.groupSize}
placeholder={t(
'resource.task_group_option.please_enter_resource_pool_size'
)}
/>
</NFormItem>
<NFormItem
label={t('resource.task_group_option.desc')}
path='description'
>
<NInput
v-model={[this.formData.description, 'value']}
type='textarea'
placeholder={t('resource.task_group_option.please_enter_desc')}
/>
</NFormItem>
</NForm>
</Modal>
)
}
})
export default FormModal
|
closed
|
apache/dolphinscheduler
|
https://github.com/apache/dolphinscheduler
| 8,671 |
[Feature][python] Add asc file for python api release file
|
### Search before asking
- [X] I had searched in the [issues](https://github.com/apache/dolphinscheduler/issues?q=is%3Aissue) and found no similar feature requirement.
### Description
In #8343 we already add python tarball and wheel to final distribute files. But it do not add asc file to it(main apache bin and src tarball have). we have to generate asc file by
```sh
gpg --yes --armor --local-user "[email protected]" --output "apache-dolphinscheduler-2.0.5.tar.gz.asc" --detach-sig "apache-dolphinscheduler-2.0.5.tar.gz"
gpg --yes --armor --local-user "[email protected]" --output "apache_dolphinscheduler-2.0.5-py3-none-any.whl.asc" --detach-sig "apache_dolphinscheduler-2.0.5-py3-none-any.whl"
```
we should better make it auto generate.
### Use case
_No response_
### Related issues
_No response_
### Are you willing to submit a PR?
- [X] Yes I am willing to submit a PR!
### Code of Conduct
- [X] I agree to follow this project's [Code of Conduct](https://www.apache.org/foundation/policies/conduct)
|
https://github.com/apache/dolphinscheduler/issues/8671
|
https://github.com/apache/dolphinscheduler/pull/8999
|
48dc0a059cbe0335d13afb18b4f9e4a8a06c2fb1
|
fd5e79bd803a287aa6f7074333029347bcceef1d
| 2022-03-02T14:40:49Z |
java
| 2022-03-19T14:07:24Z |
dolphinscheduler-dist/pom.xml
|
<?xml version="1.0" encoding="UTF-8"?>
<!--
~ Licensed to the Apache Software Foundation (ASF) under one or more
~ contributor license agreements. See the NOTICE file distributed with
~ this work for additional information regarding copyright ownership.
~ The ASF licenses this file to You under the Apache License, Version 2.0
~ (the "License"); you may not use this file except in compliance with
~ the License. You may obtain a copy of the License at
~
~ http://www.apache.org/licenses/LICENSE-2.0
~
~ Unless required by applicable law or agreed to in writing, software
~ distributed under the License is distributed on an "AS IS" BASIS,
~ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
~ See the License for the specific language governing permissions and
~ limitations under the License.
-->
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
<parent>
<artifactId>dolphinscheduler</artifactId>
<groupId>org.apache.dolphinscheduler</groupId>
<version>2.0.4-SNAPSHOT</version>
</parent>
<modelVersion>4.0.0</modelVersion>
<artifactId>dolphinscheduler-dist</artifactId>
<name>${project.artifactId}</name>
<properties>
<maven.deploy.skip>true</maven.deploy.skip>
</properties>
<dependencies>
<dependency>
<groupId>org.apache.dolphinscheduler</groupId>
<artifactId>dolphinscheduler-server</artifactId>
</dependency>
<dependency>
<groupId>org.apache.dolphinscheduler</groupId>
<artifactId>dolphinscheduler-standalone-server</artifactId>
</dependency>
<dependency>
<groupId>org.apache.dolphinscheduler</groupId>
<artifactId>dolphinscheduler-api</artifactId>
</dependency>
<dependency>
<groupId>org.apache.dolphinscheduler</groupId>
<artifactId>dolphinscheduler-alert-server</artifactId>
</dependency>
<dependency>
<groupId>org.apache.dolphinscheduler</groupId>
<artifactId>dolphinscheduler-data-quality</artifactId>
</dependency>
<dependency>
<groupId>org.apache.dolphinscheduler</groupId>
<artifactId>dolphinscheduler-ui-next</artifactId>
</dependency>
<dependency>
<groupId>org.apache.dolphinscheduler</groupId>
<artifactId>dolphinscheduler-tools</artifactId>
</dependency>
</dependencies>
<profiles>
<profile>
<id>release</id>
<build>
<plugins>
<plugin>
<artifactId>maven-assembly-plugin</artifactId>
<executions>
<execution>
<id>dolphinscheduler-bin</id>
<phase>package</phase>
<goals>
<goal>single</goal>
</goals>
<configuration>
<descriptors>
<descriptor>src/main/assembly/dolphinscheduler-bin.xml</descriptor>
</descriptors>
<appendAssemblyId>true</appendAssemblyId>
</configuration>
</execution>
<execution>
<id>src</id>
<phase>package</phase>
<goals>
<goal>single</goal>
</goals>
<configuration>
<descriptors>
<descriptor>src/main/assembly/dolphinscheduler-src.xml</descriptor>
</descriptors>
<appendAssemblyId>true</appendAssemblyId>
</configuration>
</execution>
<execution>
<id>python</id>
<phase>package</phase>
<goals>
<goal>single</goal>
</goals>
<configuration>
<!-- Make final directory with simple name `python`, and without any addtion information -->
<finalName>python</finalName>
<appendAssemblyId>false</appendAssemblyId>
<descriptors>
<descriptor>src/main/assembly/dolphinscheduler-python-api.xml</descriptor>
</descriptors>
</configuration>
</execution>
</executions>
</plugin>
</plugins>
</build>
</profile>
</profiles>
<build>
<finalName>apache-dolphinscheduler-${project.version}</finalName>
</build>
</project>
|
closed
|
apache/dolphinscheduler
|
https://github.com/apache/dolphinscheduler
| 8,671 |
[Feature][python] Add asc file for python api release file
|
### Search before asking
- [X] I had searched in the [issues](https://github.com/apache/dolphinscheduler/issues?q=is%3Aissue) and found no similar feature requirement.
### Description
In #8343 we already add python tarball and wheel to final distribute files. But it do not add asc file to it(main apache bin and src tarball have). we have to generate asc file by
```sh
gpg --yes --armor --local-user "[email protected]" --output "apache-dolphinscheduler-2.0.5.tar.gz.asc" --detach-sig "apache-dolphinscheduler-2.0.5.tar.gz"
gpg --yes --armor --local-user "[email protected]" --output "apache_dolphinscheduler-2.0.5-py3-none-any.whl.asc" --detach-sig "apache_dolphinscheduler-2.0.5-py3-none-any.whl"
```
we should better make it auto generate.
### Use case
_No response_
### Related issues
_No response_
### Are you willing to submit a PR?
- [X] Yes I am willing to submit a PR!
### Code of Conduct
- [X] I agree to follow this project's [Code of Conduct](https://www.apache.org/foundation/policies/conduct)
|
https://github.com/apache/dolphinscheduler/issues/8671
|
https://github.com/apache/dolphinscheduler/pull/8999
|
48dc0a059cbe0335d13afb18b4f9e4a8a06c2fb1
|
fd5e79bd803a287aa6f7074333029347bcceef1d
| 2022-03-02T14:40:49Z |
java
| 2022-03-19T14:07:24Z |
dolphinscheduler-python/pom.xml
|
<?xml version="1.0" encoding="UTF-8"?>
<!--
~ Licensed to the Apache Software Foundation (ASF) under one or more
~ contributor license agreements. See the NOTICE file distributed with
~ this work for additional information regarding copyright ownership.
~ The ASF licenses this file to You under the Apache License, Version 2.0
~ (the "License"); you may not use this file except in compliance with
~ the License. You may obtain a copy of the License at
~
~ http://www.apache.org/licenses/LICENSE-2.0
~
~ Unless required by applicable law or agreed to in writing, software
~ distributed under the License is distributed on an "AS IS" BASIS,
~ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
~ See the License for the specific language governing permissions and
~ limitations under the License.
-->
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
<modelVersion>4.0.0</modelVersion>
<parent>
<groupId>org.apache.dolphinscheduler</groupId>
<artifactId>dolphinscheduler</artifactId>
<version>2.0.4-SNAPSHOT</version>
</parent>
<artifactId>dolphinscheduler-python</artifactId>
<name>${project.artifactId}</name>
<packaging>jar</packaging>
<dependencies>
<!-- dolphinscheduler -->
<dependency>
<groupId>org.apache.dolphinscheduler</groupId>
<artifactId>dolphinscheduler-api</artifactId>
</dependency>
<!--springboot-->
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-web</artifactId>
<exclusions>
<exclusion>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-tomcat</artifactId>
</exclusion>
<exclusion>
<artifactId>log4j-to-slf4j</artifactId>
<groupId>org.apache.logging.log4j</groupId>
</exclusion>
</exclusions>
</dependency>
<dependency>
<groupId>net.sf.py4j</groupId>
<artifactId>py4j</artifactId>
</dependency>
</dependencies>
<build>
<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-jar-plugin</artifactId>
<configuration>
<excludes>
<exclude>*.yaml</exclude>
<exclude>*.xml</exclude>
</excludes>
</configuration>
</plugin>
<plugin>
<artifactId>maven-assembly-plugin</artifactId>
<executions>
<execution>
<id>dolphinscheduler-python-gateway-server</id>
<phase>package</phase>
<goals>
<goal>single</goal>
</goals>
<configuration>
<finalName>python-gateway-server</finalName>
<descriptors>
<descriptor>src/main/assembly/dolphinscheduler-python-gateway-server.xml</descriptor>
</descriptors>
<appendAssemblyId>false</appendAssemblyId>
</configuration>
</execution>
</executions>
</plugin>
</plugins>
</build>
<profiles>
<profile>
<id>docker</id>
<build>
<plugins>
<plugin>
<groupId>org.codehaus.mojo</groupId>
<artifactId>exec-maven-plugin</artifactId>
</plugin>
</plugins>
</build>
</profile>
<profile>
<id>release</id>
<build>
<plugins>
<plugin>
<groupId>org.codehaus.mojo</groupId>
<artifactId>exec-maven-plugin</artifactId>
<executions>
<execution>
<id>python-api-prepare</id>
<phase>prepare-package</phase>
<goals>
<goal>exec</goal>
</goals>
<configuration>
<executable>python3</executable>
<workingDirectory>${project.basedir}/pydolphinscheduler</workingDirectory>
<arguments>
<argument>-m</argument>
<argument>pip</argument>
<argument>install</argument>
<argument>--upgrade</argument>
<argument>pip</argument>
<argument>.[build]</argument>
</arguments>
</configuration>
</execution>
<execution>
<id>python-api-clean</id>
<phase>prepare-package</phase>
<goals>
<goal>exec</goal>
</goals>
<configuration>
<executable>python3</executable>
<workingDirectory>${project.basedir}/pydolphinscheduler</workingDirectory>
<arguments>
<argument>setup.py</argument>
<argument>pre_clean</argument>
</arguments>
</configuration>
</execution>
<execution>
<id>python-api-build</id>
<phase>prepare-package</phase>
<goals>
<goal>exec</goal>
</goals>
<configuration>
<executable>python3</executable>
<workingDirectory>${project.basedir}/pydolphinscheduler</workingDirectory>
<arguments>
<argument>-m</argument>
<argument>build</argument>
</arguments>
</configuration>
</execution>
</executions>
</plugin>
</plugins>
</build>
</profile>
</profiles>
</project>
|
closed
|
apache/dolphinscheduler
|
https://github.com/apache/dolphinscheduler
| 8,671 |
[Feature][python] Add asc file for python api release file
|
### Search before asking
- [X] I had searched in the [issues](https://github.com/apache/dolphinscheduler/issues?q=is%3Aissue) and found no similar feature requirement.
### Description
In #8343 we already add python tarball and wheel to final distribute files. But it do not add asc file to it(main apache bin and src tarball have). we have to generate asc file by
```sh
gpg --yes --armor --local-user "[email protected]" --output "apache-dolphinscheduler-2.0.5.tar.gz.asc" --detach-sig "apache-dolphinscheduler-2.0.5.tar.gz"
gpg --yes --armor --local-user "[email protected]" --output "apache_dolphinscheduler-2.0.5-py3-none-any.whl.asc" --detach-sig "apache_dolphinscheduler-2.0.5-py3-none-any.whl"
```
we should better make it auto generate.
### Use case
_No response_
### Related issues
_No response_
### Are you willing to submit a PR?
- [X] Yes I am willing to submit a PR!
### Code of Conduct
- [X] I agree to follow this project's [Code of Conduct](https://www.apache.org/foundation/policies/conduct)
|
https://github.com/apache/dolphinscheduler/issues/8671
|
https://github.com/apache/dolphinscheduler/pull/8999
|
48dc0a059cbe0335d13afb18b4f9e4a8a06c2fb1
|
fd5e79bd803a287aa6f7074333029347bcceef1d
| 2022-03-02T14:40:49Z |
java
| 2022-03-19T14:07:24Z |
pom.xml
|
<?xml version="1.0" encoding="UTF-8"?>
<!--
~ Licensed to the Apache Software Foundation (ASF) under one or more
~ contributor license agreements. See the NOTICE file distributed with
~ this work for additional information regarding copyright ownership.
~ The ASF licenses this file to You under the Apache License, Version 2.0
~ (the "License"); you may not use this file except in compliance with
~ the License. You may obtain a copy of the License at
~
~ http://www.apache.org/licenses/LICENSE-2.0
~
~ Unless required by applicable law or agreed to in writing, software
~ distributed under the License is distributed on an "AS IS" BASIS,
~ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
~ See the License for the specific language governing permissions and
~ limitations under the License.
-->
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
<modelVersion>4.0.0</modelVersion>
<groupId>org.apache.dolphinscheduler</groupId>
<artifactId>dolphinscheduler</artifactId>
<version>2.0.4-SNAPSHOT</version>
<packaging>pom</packaging>
<name>${project.artifactId}</name>
<url>https://dolphinscheduler.apache.org</url>
<description>Dolphin Scheduler is a distributed and easy-to-expand visual DAG workflow scheduling system, dedicated
to solving the complex dependencies in data processing, making the scheduling system out of the box for data
processing.
</description>
<scm>
<connection>scm:git:https://github.com/apache/dolphinscheduler.git</connection>
<developerConnection>scm:git:https://github.com/apache/dolphinscheduler.git</developerConnection>
<url>https://github.com/apache/dolphinscheduler</url>
<tag>HEAD</tag>
</scm>
<mailingLists>
<mailingList>
<name>DolphinScheduler Developer List</name>
<post>[email protected]</post>
<subscribe>[email protected]</subscribe>
<unsubscribe>[email protected]</unsubscribe>
</mailingList>
</mailingLists>
<parent>
<groupId>org.apache</groupId>
<artifactId>apache</artifactId>
<version>25</version>
</parent>
<properties>
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
<project.reporting.outputEncoding>UTF-8</project.reporting.outputEncoding>
<curator.version>4.3.0</curator.version>
<zookeeper.version>3.4.14</zookeeper.version>
<spring.version>5.3.12</spring.version>
<spring.boot.version>2.5.6</spring.boot.version>
<java.version>1.8</java.version>
<logback.version>1.2.3</logback.version>
<hadoop.version>2.7.3</hadoop.version>
<quartz.version>2.3.2</quartz.version>
<jackson.version>2.10.5</jackson.version>
<mybatis-plus.version>3.2.0</mybatis-plus.version>
<mybatis.spring.version>2.0.1</mybatis.spring.version>
<cron.utils.version>9.1.3</cron.utils.version>
<druid.version>1.2.4</druid.version>
<h2.version>1.4.200</h2.version>
<commons.codec.version>1.11</commons.codec.version>
<commons.logging.version>1.1.1</commons.logging.version>
<httpclient.version>4.4.1</httpclient.version>
<httpcore.version>4.4.1</httpcore.version>
<junit.version>4.12</junit.version>
<mysql.connector.version>8.0.16</mysql.connector.version>
<slf4j.api.version>1.7.5</slf4j.api.version>
<slf4j.log4j12.version>1.7.5</slf4j.log4j12.version>
<commons.collections.version>3.2.2</commons.collections.version>
<commons.httpclient>3.0.1</commons.httpclient>
<commons.beanutils.version>1.9.4</commons.beanutils.version>
<commons.configuration.version>1.10</commons.configuration.version>
<commons.lang.version>2.6</commons.lang.version>
<commons.email.version>1.5</commons.email.version>
<poi.version>4.1.2</poi.version>
<javax.servlet.api.version>3.1.0</javax.servlet.api.version>
<commons.collections4.version>4.1</commons.collections4.version>
<guava.version>24.1-jre</guava.version>
<postgresql.version>42.2.5</postgresql.version>
<hive.jdbc.version>2.1.0</hive.jdbc.version>
<commons.io.version>2.4</commons.io.version>
<oshi.core.version>6.1.1</oshi.core.version>
<clickhouse.jdbc.version>0.1.52</clickhouse.jdbc.version>
<mssql.jdbc.version>6.1.0.jre8</mssql.jdbc.version>
<presto.jdbc.version>0.238.1</presto.jdbc.version>
<spotbugs.version>3.1.12</spotbugs.version>
<checkstyle.version>3.1.2</checkstyle.version>
<curator.test>2.12.0</curator.test>
<frontend-maven-plugin.version>1.6</frontend-maven-plugin.version>
<maven-compiler-plugin.version>3.3</maven-compiler-plugin.version>
<maven-assembly-plugin.version>3.3.0</maven-assembly-plugin.version>
<maven-release-plugin.version>2.5.3</maven-release-plugin.version>
<maven-javadoc-plugin.version>2.10.3</maven-javadoc-plugin.version>
<maven-source-plugin.version>2.4</maven-source-plugin.version>
<maven-surefire-plugin.version>2.22.1</maven-surefire-plugin.version>
<maven-dependency-plugin.version>3.1.1</maven-dependency-plugin.version>
<maven-shade-plugin.version>3.2.1</maven-shade-plugin.version>
<rpm-maven-plugion.version>2.2.0</rpm-maven-plugion.version>
<jacoco.version>0.8.7</jacoco.version>
<jcip.version>1.0</jcip.version>
<maven.deploy.skip>false</maven.deploy.skip>
<cobertura-maven-plugin.version>2.7</cobertura-maven-plugin.version>
<servlet-api.version>2.5</servlet-api.version>
<swagger.version>1.9.3</swagger.version>
<springfox.version>2.9.2</springfox.version>
<swagger-models.version>1.5.24</swagger-models.version>
<guava-retry.version>2.0.0</guava-retry.version>
<protostuff.version>1.7.2</protostuff.version>
<reflections.version>0.9.12</reflections.version>
<byte-buddy.version>1.9.16</byte-buddy.version>
<java-websocket.version>1.5.1</java-websocket.version>
<py4j.version>0.10.9</py4j.version>
<auto-service.version>1.0.1</auto-service.version>
<jacoco.skip>false</jacoco.skip>
<netty.version>4.1.53.Final</netty.version>
<maven-jar-plugin.version>3.2.0</maven-jar-plugin.version>
<powermock.version>2.0.9</powermock.version>
<jsr305.version>3.0.0</jsr305.version>
<commons-compress.version>1.19</commons-compress.version>
<commons-math3.version>3.1.1</commons-math3.version>
<error_prone_annotations.version>2.5.1</error_prone_annotations.version>
<exec-maven-plugin.version>3.0.0</exec-maven-plugin.version>
<janino.version>3.1.6</janino.version>
<kubernetes.version>5.8.0</kubernetes.version>
<hibernate.validator.version>6.2.2.Final</hibernate.validator.version>
<aws.sdk.version>1.12.160</aws.sdk.version>
<joda-time.version>2.10.13</joda-time.version>
<docker.hub>apache</docker.hub>
<docker.repo>${project.name}</docker.repo>
<docker.tag>${project.version}</docker.tag>
<docker.build.skip>true</docker.build.skip>
<docker.push.skip>true</docker.push.skip>
</properties>
<dependencyManagement>
<dependencies>
<dependency>
<groupId>io.netty</groupId>
<artifactId>netty-bom</artifactId>
<version>${netty.version}</version>
<scope>import</scope>
<type>pom</type>
</dependency>
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-parent</artifactId>
<version>${spring.boot.version}</version>
<type>pom</type>
<scope>import</scope>
</dependency>
<dependency>
<groupId>io.netty</groupId>
<artifactId>netty-all</artifactId>
<version>${netty.version}</version>
</dependency>
<dependency>
<groupId>org.java-websocket</groupId>
<artifactId>Java-WebSocket</artifactId>
<version>${java-websocket.version}</version>
</dependency>
<dependency>
<groupId>com.baomidou</groupId>
<artifactId>mybatis-plus-boot-starter</artifactId>
<version>${mybatis-plus.version}</version>
</dependency>
<dependency>
<groupId>com.baomidou</groupId>
<artifactId>mybatis-plus</artifactId>
<version>${mybatis-plus.version}</version>
</dependency>
<!-- quartz-->
<dependency>
<groupId>org.quartz-scheduler</groupId>
<artifactId>quartz</artifactId>
<version>${quartz.version}</version>
</dependency>
<dependency>
<groupId>org.quartz-scheduler</groupId>
<artifactId>quartz-jobs</artifactId>
<version>${quartz.version}</version>
</dependency>
<dependency>
<groupId>com.cronutils</groupId>
<artifactId>cron-utils</artifactId>
<version>${cron.utils.version}</version>
</dependency>
<dependency>
<groupId>com.alibaba</groupId>
<artifactId>druid</artifactId>
<version>${druid.version}</version>
</dependency>
<dependency>
<groupId>org.springframework</groupId>
<artifactId>spring-core</artifactId>
<version>${spring.version}</version>
</dependency>
<dependency>
<groupId>org.springframework</groupId>
<artifactId>spring-context</artifactId>
<version>${spring.version}</version>
</dependency>
<dependency>
<groupId>org.springframework</groupId>
<artifactId>spring-beans</artifactId>
<version>${spring.version}</version>
</dependency>
<dependency>
<groupId>org.springframework</groupId>
<artifactId>spring-tx</artifactId>
<version>${spring.version}</version>
</dependency>
<dependency>
<groupId>org.springframework</groupId>
<artifactId>spring-jdbc</artifactId>
<version>${spring.version}</version>
</dependency>
<dependency>
<groupId>org.springframework</groupId>
<artifactId>spring-test</artifactId>
<version>${spring.version}</version>
<scope>test</scope>
</dependency>
<dependency>
<groupId>org.apache.dolphinscheduler</groupId>
<artifactId>dolphinscheduler-server</artifactId>
<version>${project.version}</version>
</dependency>
<dependency>
<groupId>org.apache.dolphinscheduler</groupId>
<artifactId>dolphinscheduler-master</artifactId>
<version>${project.version}</version>
</dependency>
<dependency>
<groupId>org.apache.dolphinscheduler</groupId>
<artifactId>dolphinscheduler-worker</artifactId>
<version>${project.version}</version>
</dependency>
<dependency>
<groupId>org.apache.dolphinscheduler</groupId>
<artifactId>dolphinscheduler-log-server</artifactId>
<version>${project.version}</version>
</dependency>
<dependency>
<groupId>org.apache.dolphinscheduler</groupId>
<artifactId>dolphinscheduler-standalone-server</artifactId>
<version>${project.version}</version>
</dependency>
<dependency>
<groupId>org.apache.dolphinscheduler</groupId>
<artifactId>dolphinscheduler-common</artifactId>
<version>${project.version}</version>
</dependency>
<dependency>
<groupId>org.apache.dolphinscheduler</groupId>
<artifactId>dolphinscheduler-alert-plugin</artifactId>
<version>${project.version}</version>
</dependency>
<dependency>
<groupId>org.apache.dolphinscheduler</groupId>
<artifactId>dolphinscheduler-registry-plugin</artifactId>
<version>${project.version}</version>
</dependency>
<dependency>
<groupId>org.apache.dolphinscheduler</groupId>
<artifactId>dolphinscheduler-dao</artifactId>
<version>${project.version}</version>
</dependency>
<dependency>
<groupId>org.apache.dolphinscheduler</groupId>
<artifactId>dolphinscheduler-api</artifactId>
<version>${project.version}</version>
</dependency>
<dependency>
<groupId>org.apache.dolphinscheduler</groupId>
<artifactId>dolphinscheduler-remote</artifactId>
<version>${project.version}</version>
</dependency>
<dependency>
<groupId>org.apache.dolphinscheduler</groupId>
<artifactId>dolphinscheduler-service</artifactId>
<version>${project.version}</version>
</dependency>
<dependency>
<groupId>org.apache.dolphinscheduler</groupId>
<artifactId>dolphinscheduler-meter</artifactId>
<version>${project.version}</version>
</dependency>
<dependency>
<groupId>org.apache.dolphinscheduler</groupId>
<artifactId>dolphinscheduler-spi</artifactId>
<version>${project.version}</version>
</dependency>
<dependency>
<groupId>org.apache.dolphinscheduler</groupId>
<artifactId>dolphinscheduler-data-quality</artifactId>
<version>${project.version}</version>
</dependency>
<dependency>
<groupId>org.apache.dolphinscheduler</groupId>
<artifactId>dolphinscheduler-python</artifactId>
<version>${project.version}</version>
</dependency>
<dependency>
<groupId>org.apache.dolphinscheduler</groupId>
<artifactId>dolphinscheduler-alert-api</artifactId>
<version>${project.version}</version>
</dependency>
<dependency>
<groupId>org.apache.dolphinscheduler</groupId>
<artifactId>dolphinscheduler-alert-server</artifactId>
<version>${project.version}</version>
</dependency>
<dependency>
<groupId>org.apache.dolphinscheduler</groupId>
<artifactId>dolphinscheduler-alert-dingtalk</artifactId>
<version>${project.version}</version>
</dependency>
<dependency>
<groupId>org.apache.dolphinscheduler</groupId>
<artifactId>dolphinscheduler-alert-email</artifactId>
<version>${project.version}</version>
</dependency>
<dependency>
<groupId>org.apache.dolphinscheduler</groupId>
<artifactId>dolphinscheduler-alert-feishu</artifactId>
<version>${project.version}</version>
</dependency>
<dependency>
<groupId>org.apache.dolphinscheduler</groupId>
<artifactId>dolphinscheduler-alert-http</artifactId>
<version>${project.version}</version>
</dependency>
<dependency>
<groupId>org.apache.dolphinscheduler</groupId>
<artifactId>dolphinscheduler-alert-script</artifactId>
<version>${project.version}</version>
</dependency>
<dependency>
<groupId>org.apache.dolphinscheduler</groupId>
<artifactId>dolphinscheduler-alert-slack</artifactId>
<version>${project.version}</version>
</dependency>
<dependency>
<groupId>org.apache.dolphinscheduler</groupId>
<artifactId>dolphinscheduler-alert-wechat</artifactId>
<version>${project.version}</version>
</dependency>
<dependency>
<groupId>org.apache.dolphinscheduler</groupId>
<artifactId>dolphinscheduler-alert-pagerduty</artifactId>
<version>${project.version}</version>
</dependency>
<dependency>
<groupId>org.apache.dolphinscheduler</groupId>
<artifactId>dolphinscheduler-alert-webexteams</artifactId>
<version>${project.version}</version>
</dependency>
<dependency>
<groupId>org.apache.dolphinscheduler</groupId>
<artifactId>dolphinscheduler-alert-telegram</artifactId>
<version>${project.version}</version>
</dependency>
<dependency>
<groupId>org.apache.dolphinscheduler</groupId>
<artifactId>dolphinscheduler-registry-api</artifactId>
<version>${project.version}</version>
</dependency>
<dependency>
<groupId>org.apache.dolphinscheduler</groupId>
<artifactId>dolphinscheduler-registry-zookeeper</artifactId>
<version>${project.version}</version>
</dependency>
<dependency>
<groupId>org.apache.dolphinscheduler</groupId>
<artifactId>dolphinscheduler-datasource-plugin</artifactId>
<version>${project.version}</version>
</dependency>
<dependency>
<groupId>org.apache.dolphinscheduler</groupId>
<artifactId>dolphinscheduler-datasource-all</artifactId>
<version>${project.version}</version>
</dependency>
<dependency>
<groupId>org.apache.dolphinscheduler</groupId>
<artifactId>dolphinscheduler-datasource-api</artifactId>
<version>${project.version}</version>
</dependency>
<dependency>
<groupId>org.apache.dolphinscheduler</groupId>
<artifactId>dolphinscheduler-datasource-clickhouse</artifactId>
<version>${project.version}</version>
</dependency>
<dependency>
<groupId>org.apache.dolphinscheduler</groupId>
<artifactId>dolphinscheduler-datasource-db2</artifactId>
<version>${project.version}</version>
</dependency>
<dependency>
<groupId>org.apache.dolphinscheduler</groupId>
<artifactId>dolphinscheduler-datasource-hive</artifactId>
<version>${project.version}</version>
</dependency>
<dependency>
<groupId>org.apache.dolphinscheduler</groupId>
<artifactId>dolphinscheduler-datasource-mysql</artifactId>
<version>${project.version}</version>
</dependency>
<dependency>
<groupId>org.apache.dolphinscheduler</groupId>
<artifactId>dolphinscheduler-datasource-oracle</artifactId>
<version>${project.version}</version>
</dependency>
<dependency>
<groupId>org.apache.dolphinscheduler</groupId>
<artifactId>dolphinscheduler-datasource-postgresql</artifactId>
<version>${project.version}</version>
</dependency>
<dependency>
<groupId>org.apache.dolphinscheduler</groupId>
<artifactId>dolphinscheduler-datasource-sqlserver</artifactId>
<version>${project.version}</version>
</dependency>
<dependency>
<groupId>org.apache.dolphinscheduler</groupId>
<artifactId>dolphinscheduler-datasource-redshift</artifactId>
<version>${project.version}</version>
</dependency>
<dependency>
<groupId>org.apache.dolphinscheduler</groupId>
<artifactId>dolphinscheduler-task-api</artifactId>
<version>${project.version}</version>
</dependency>
<dependency>
<groupId>org.apache.dolphinscheduler</groupId>
<artifactId>dolphinscheduler-task-all</artifactId>
<version>${project.version}</version>
</dependency>
<dependency>
<groupId>org.apache.dolphinscheduler</groupId>
<artifactId>dolphinscheduler-ui-next</artifactId>
<version>${project.version}</version>
</dependency>
<dependency>
<groupId>org.apache.dolphinscheduler</groupId>
<artifactId>dolphinscheduler-tools</artifactId>
<version>${project.version}</version>
</dependency>
<dependency>
<groupId>org.apache.curator</groupId>
<artifactId>curator-framework</artifactId>
<version>${curator.version}</version>
<exclusions>
<exclusion>
<groupId>org.slf4j</groupId>
<artifactId>slf4j-log4j12</artifactId>
</exclusion>
</exclusions>
</dependency>
<dependency>
<groupId>org.apache.zookeeper</groupId>
<artifactId>zookeeper</artifactId>
<version>${zookeeper.version}</version>
<exclusions>
<exclusion>
<groupId>org.slf4j</groupId>
<artifactId>slf4j-log4j12</artifactId>
</exclusion>
<exclusion>
<artifactId>netty</artifactId>
<groupId>io.netty</groupId>
</exclusion>
<exclusion>
<groupId>com.github.spotbugs</groupId>
<artifactId>spotbugs-annotations</artifactId>
</exclusion>
</exclusions>
</dependency>
<dependency>
<groupId>org.apache.curator</groupId>
<artifactId>curator-client</artifactId>
<version>${curator.version}</version>
<exclusions>
<exclusion>
<groupId>log4j-1.2-api</groupId>
<artifactId>org.apache.logging.log4j</artifactId>
</exclusion>
</exclusions>
</dependency>
<dependency>
<groupId>org.apache.curator</groupId>
<artifactId>curator-recipes</artifactId>
<version>${curator.version}</version>
<exclusions>
<exclusion>
<groupId>org.apache.zookeeper</groupId>
<artifactId>zookeeper</artifactId>
</exclusion>
</exclusions>
</dependency>
<dependency>
<groupId>org.apache.curator</groupId>
<artifactId>curator-test</artifactId>
<version>${curator.test}</version>
</dependency>
<dependency>
<groupId>commons-codec</groupId>
<artifactId>commons-codec</artifactId>
<version>${commons.codec.version}</version>
</dependency>
<dependency>
<groupId>commons-logging</groupId>
<artifactId>commons-logging</artifactId>
<version>${commons.logging.version}</version>
</dependency>
<dependency>
<groupId>org.apache.httpcomponents</groupId>
<artifactId>httpclient</artifactId>
<version>${httpclient.version}</version>
</dependency>
<dependency>
<groupId>org.apache.httpcomponents</groupId>
<artifactId>httpcore</artifactId>
<version>${httpcore.version}</version>
</dependency>
<dependency>
<groupId>com.fasterxml.jackson.core</groupId>
<artifactId>jackson-annotations</artifactId>
<version>${jackson.version}</version>
</dependency>
<dependency>
<groupId>com.fasterxml.jackson.core</groupId>
<artifactId>jackson-databind</artifactId>
<version>${jackson.version}</version>
</dependency>
<dependency>
<groupId>com.fasterxml.jackson.core</groupId>
<artifactId>jackson-core</artifactId>
<version>${jackson.version}</version>
</dependency>
<!--protostuff-->
<dependency>
<groupId>io.protostuff</groupId>
<artifactId>protostuff-core</artifactId>
<version>${protostuff.version}</version>
</dependency>
<dependency>
<groupId>io.protostuff</groupId>
<artifactId>protostuff-runtime</artifactId>
<version>${protostuff.version}</version>
</dependency>
<dependency>
<groupId>net.bytebuddy</groupId>
<artifactId>byte-buddy</artifactId>
<version>${byte-buddy.version}</version>
</dependency>
<dependency>
<groupId>org.reflections</groupId>
<artifactId>reflections</artifactId>
<version>${reflections.version}</version>
</dependency>
<dependency>
<groupId>junit</groupId>
<artifactId>junit</artifactId>
<version>${junit.version}</version>
</dependency>
<dependency>
<groupId>mysql</groupId>
<artifactId>mysql-connector-java</artifactId>
<version>${mysql.connector.version}</version>
<scope>test</scope>
</dependency>
<dependency>
<groupId>com.h2database</groupId>
<artifactId>h2</artifactId>
<version>${h2.version}</version>
</dependency>
<dependency>
<groupId>org.slf4j</groupId>
<artifactId>slf4j-api</artifactId>
<version>${slf4j.api.version}</version>
</dependency>
<dependency>
<groupId>org.slf4j</groupId>
<artifactId>slf4j-log4j12</artifactId>
<version>${slf4j.log4j12.version}</version>
</dependency>
<dependency>
<groupId>commons-collections</groupId>
<artifactId>commons-collections</artifactId>
<version>${commons.collections.version}</version>
</dependency>
<dependency>
<groupId>commons-httpclient</groupId>
<artifactId>commons-httpclient</artifactId>
<version>${commons.httpclient}</version>
</dependency>
<dependency>
<groupId>commons-beanutils</groupId>
<artifactId>commons-beanutils</artifactId>
<version>${commons.beanutils.version}</version>
</dependency>
<dependency>
<groupId>commons-configuration</groupId>
<artifactId>commons-configuration</artifactId>
<version>${commons.configuration.version}</version>
</dependency>
<dependency>
<groupId>commons-lang</groupId>
<artifactId>commons-lang</artifactId>
<version>${commons.lang.version}</version>
</dependency>
<dependency>
<groupId>ch.qos.logback</groupId>
<artifactId>logback-classic</artifactId>
<version>${logback.version}</version>
</dependency>
<dependency>
<groupId>ch.qos.logback</groupId>
<artifactId>logback-core</artifactId>
<version>${logback.version}</version>
</dependency>
<dependency>
<groupId>org.apache.commons</groupId>
<artifactId>commons-email</artifactId>
<version>${commons.email.version}</version>
</dependency>
<!--excel poi-->
<dependency>
<groupId>org.apache.poi</groupId>
<artifactId>poi</artifactId>
<version>${poi.version}</version>
</dependency>
<dependency>
<groupId>org.apache.poi</groupId>
<artifactId>poi-ooxml</artifactId>
<version>${poi.version}</version>
</dependency>
<!-- hadoop -->
<dependency>
<groupId>org.apache.hadoop</groupId>
<artifactId>hadoop-common</artifactId>
<version>${hadoop.version}</version>
<exclusions>
<exclusion>
<artifactId>slf4j-log4j12</artifactId>
<groupId>org.slf4j</groupId>
</exclusion>
<exclusion>
<artifactId>com.sun.jersey</artifactId>
<groupId>jersey-json</groupId>
</exclusion>
<exclusion>
<groupId>junit</groupId>
<artifactId>junit</artifactId>
</exclusion>
</exclusions>
</dependency>
<dependency>
<groupId>org.apache.hadoop</groupId>
<artifactId>hadoop-client</artifactId>
<version>${hadoop.version}</version>
</dependency>
<dependency>
<groupId>org.apache.hadoop</groupId>
<artifactId>hadoop-hdfs</artifactId>
<version>${hadoop.version}</version>
</dependency>
<dependency>
<groupId>org.apache.hadoop</groupId>
<artifactId>hadoop-yarn-common</artifactId>
<version>${hadoop.version}</version>
</dependency>
<dependency>
<groupId>org.apache.hadoop</groupId>
<artifactId>hadoop-aws</artifactId>
<version>${hadoop.version}</version>
</dependency>
<dependency>
<groupId>org.apache.commons</groupId>
<artifactId>commons-collections4</artifactId>
<version>${commons.collections4.version}</version>
</dependency>
<dependency>
<groupId>com.google.guava</groupId>
<artifactId>guava</artifactId>
<version>${guava.version}</version>
</dependency>
<dependency>
<groupId>org.postgresql</groupId>
<artifactId>postgresql</artifactId>
<version>${postgresql.version}</version>
</dependency>
<dependency>
<groupId>org.apache.hive</groupId>
<artifactId>hive-jdbc</artifactId>
<version>${hive.jdbc.version}</version>
</dependency>
<dependency>
<groupId>commons-io</groupId>
<artifactId>commons-io</artifactId>
<version>${commons.io.version}</version>
</dependency>
<dependency>
<groupId>com.github.oshi</groupId>
<artifactId>oshi-core</artifactId>
<version>${oshi.core.version}</version>
<exclusions>
<exclusion>
<groupId>org.slf4j</groupId>
<artifactId>slf4j-simple</artifactId>
</exclusion>
<exclusion>
<groupId>org.junit.jupiter</groupId>
<artifactId>junit-jupiter-api</artifactId>
</exclusion>
<exclusion>
<groupId>org.hamcrest</groupId>
<artifactId>hamcrest</artifactId>
</exclusion>
</exclusions>
</dependency>
<dependency>
<groupId>ru.yandex.clickhouse</groupId>
<artifactId>clickhouse-jdbc</artifactId>
<version>${clickhouse.jdbc.version}</version>
</dependency>
<dependency>
<groupId>com.microsoft.sqlserver</groupId>
<artifactId>mssql-jdbc</artifactId>
<version>${mssql.jdbc.version}</version>
</dependency>
<dependency>
<groupId>com.facebook.presto</groupId>
<artifactId>presto-jdbc</artifactId>
<version>${presto.jdbc.version}</version>
</dependency>
<dependency>
<groupId>javax.servlet</groupId>
<artifactId>servlet-api</artifactId>
<version>${servlet-api.version}</version>
</dependency>
<dependency>
<groupId>javax.servlet</groupId>
<artifactId>javax.servlet-api</artifactId>
<version>${javax.servlet.api.version}</version>
</dependency>
<dependency>
<groupId>io.springfox</groupId>
<artifactId>springfox-swagger2</artifactId>
<version>${springfox.version}</version>
</dependency>
<dependency>
<groupId>io.springfox</groupId>
<artifactId>springfox-swagger-ui</artifactId>
<version>${springfox.version}</version>
</dependency>
<dependency>
<groupId>io.swagger</groupId>
<artifactId>swagger-models</artifactId>
<version>${swagger-models.version}</version>
</dependency>
<dependency>
<groupId>com.github.xiaoymin</groupId>
<artifactId>swagger-bootstrap-ui</artifactId>
<version>${swagger.version}</version>
</dependency>
<dependency>
<groupId>com.github.rholder</groupId>
<artifactId>guava-retrying</artifactId>
<version>${guava-retry.version}</version>
</dependency>
<dependency>
<groupId>org.ow2.asm</groupId>
<artifactId>asm</artifactId>
<version>6.2.1</version>
</dependency>
<dependency>
<groupId>javax.activation</groupId>
<artifactId>activation</artifactId>
<version>1.1</version>
</dependency>
<dependency>
<groupId>com.sun.mail</groupId>
<artifactId>javax.mail</artifactId>
<version>1.6.2</version>
</dependency>
<dependency>
<groupId>net.sf.py4j</groupId>
<artifactId>py4j</artifactId>
<version>${py4j.version}</version>
</dependency>
<dependency>
<groupId>org.codehaus.janino</groupId>
<artifactId>janino</artifactId>
<version>${janino.version}</version>
</dependency>
<dependency>
<groupId>com.google.code.findbugs</groupId>
<artifactId>jsr305</artifactId>
<version>${jsr305.version}</version>
</dependency>
<dependency>
<groupId>org.apache.commons</groupId>
<artifactId>commons-compress</artifactId>
<version>${commons-compress.version}</version>
</dependency>
<dependency>
<groupId>org.apache.commons</groupId>
<artifactId>commons-math3</artifactId>
<version>${commons-math3.version}</version>
</dependency>
<dependency>
<groupId>com.google.errorprone</groupId>
<artifactId>error_prone_annotations</artifactId>
<version>${error_prone_annotations.version}</version>
</dependency>
<dependency>
<groupId>io.fabric8</groupId>
<artifactId>kubernetes-client</artifactId>
<version>${kubernetes.version}</version>
</dependency>
<!-- https://mvnrepository.com/artifact/org.hibernate.validator/hibernate-validator -->
<dependency>
<groupId>org.hibernate.validator</groupId>
<artifactId>hibernate-validator</artifactId>
<version>${hibernate.validator.version}</version>
</dependency>
<dependency>
<groupId>com.amazonaws</groupId>
<artifactId>aws-java-sdk-emr</artifactId>
<version>${aws.sdk.version}</version>
</dependency>
<dependency>
<groupId>joda-time</groupId>
<artifactId>joda-time</artifactId>
<version>${joda-time.version}</version>
</dependency>
</dependencies>
</dependencyManagement>
<build>
<pluginManagement>
<plugins>
<plugin>
<groupId>org.codehaus.mojo</groupId>
<artifactId>rpm-maven-plugin</artifactId>
<version>${rpm-maven-plugion.version}</version>
<inherited>false</inherited>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-compiler-plugin</artifactId>
<configuration>
<source>${java.version}</source>
<target>${java.version}</target>
<testSource>${java.version}</testSource>
<testTarget>${java.version}</testTarget>
</configuration>
<version>${maven-compiler-plugin.version}</version>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-release-plugin</artifactId>
<version>${maven-release-plugin.version}</version>
<configuration>
<tagNameFormat>@{project.version}</tagNameFormat>
</configuration>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-assembly-plugin</artifactId>
<version>${maven-assembly-plugin.version}</version>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-javadoc-plugin</artifactId>
<version>${maven-javadoc-plugin.version}</version>
<configuration>
<source>8</source>
<failOnError>false</failOnError>
</configuration>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-dependency-plugin</artifactId>
<version>${maven-dependency-plugin.version}</version>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-shade-plugin</artifactId>
<version>${maven-shade-plugin.version}</version>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-jar-plugin</artifactId>
<version>${maven-jar-plugin.version}</version>
</plugin>
<plugin>
<groupId>org.codehaus.mojo</groupId>
<artifactId>exec-maven-plugin</artifactId>
<version>${exec-maven-plugin.version}</version>
<executions>
<execution>
<id>docker-build</id>
<phase>package</phase>
<goals>
<goal>exec</goal>
</goals>
<configuration>
<skip>${docker.build.skip}</skip>
<executable>docker</executable>
<workingDirectory>${project.basedir}</workingDirectory>
<arguments>
<argument>build</argument>
<argument>--no-cache</argument>
<argument>-t</argument>
<argument>${docker.hub}/${docker.repo}:${docker.tag}</argument>
<argument>-t</argument>
<argument>${docker.hub}/${docker.repo}:latest</argument>
<argument>${project.basedir}</argument>
<argument>--file=src/main/docker/Dockerfile</argument>
</arguments>
</configuration>
</execution>
<execution>
<id>docker-push</id>
<phase>deploy</phase>
<goals>
<goal>exec</goal>
</goals>
<configuration>
<skip>${docker.push.skip}</skip>
<environmentVariables>
<DOCKER_BUILDKIT>1</DOCKER_BUILDKIT>
</environmentVariables>
<executable>docker</executable>
<workingDirectory>${project.basedir}</workingDirectory>
<arguments>
<argument>buildx</argument>
<argument>build</argument>
<argument>--no-cache</argument>
<argument>--push</argument>
<argument>-t</argument>
<argument>${docker.hub}/${docker.repo}:${docker.tag}</argument>
<argument>-t</argument>
<argument>${docker.hub}/${docker.repo}:latest</argument>
<argument>${project.basedir}</argument>
<argument>--file=src/main/docker/Dockerfile</argument>
</arguments>
</configuration>
</execution>
</executions>
</plugin>
</plugins>
</pluginManagement>
<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-javadoc-plugin</artifactId>
<version>${maven-javadoc-plugin.version}</version>
<executions>
<execution>
<id>attach-javadocs</id>
<goals>
<goal>jar</goal>
</goals>
</execution>
</executions>
<configuration>
<aggregate>true</aggregate>
<charset>${project.build.sourceEncoding}</charset>
<encoding>${project.build.sourceEncoding}</encoding>
<docencoding>${project.build.sourceEncoding}</docencoding>
</configuration>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-release-plugin</artifactId>
<version>${maven-release-plugin.version}</version>
<configuration>
<autoVersionSubmodules>true</autoVersionSubmodules>
<tagNameFormat>@{project.version}</tagNameFormat>
<tagBase>${project.version}</tagBase>
</configuration>
<dependencies>
<dependency>
<groupId>org.apache.maven.scm</groupId>
<artifactId>maven-scm-provider-jgit</artifactId>
<version>1.9.5</version>
</dependency>
</dependencies>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-compiler-plugin</artifactId>
<version>${maven-compiler-plugin.version}</version>
<configuration>
<source>${java.version}</source>
<target>${java.version}</target>
<encoding>${project.build.sourceEncoding}</encoding>
<skip>false</skip><!--not skip compile test classes-->
</configuration>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-surefire-plugin</artifactId>
<version>${maven-surefire-plugin.version}</version>
<dependencies>
<dependency>
<groupId>org.apache.maven.surefire</groupId>
<artifactId>surefire-junit4</artifactId>
<version>${maven-surefire-plugin.version}</version>
</dependency>
</dependencies>
<configuration>
<systemPropertyVariables>
<jacoco-agent.destfile>${project.build.directory}/jacoco.exec</jacoco-agent.destfile>
</systemPropertyVariables>
</configuration>
</plugin>
<!-- jenkins plugin jacoco report-->
<plugin>
<groupId>org.jacoco</groupId>
<artifactId>jacoco-maven-plugin</artifactId>
<version>${jacoco.version}</version>
<configuration>
<skip>${jacoco.skip}</skip>
<dataFile>${project.build.directory}/jacoco.exec</dataFile>
</configuration>
<executions>
<execution>
<id>default-instrument</id>
<goals>
<goal>instrument</goal>
</goals>
</execution>
<execution>
<id>default-restore-instrumented-classes</id>
<goals>
<goal>restore-instrumented-classes</goal>
</goals>
<configuration>
<excludes>com/github/dreamhead/moco/*</excludes>
</configuration>
</execution>
<execution>
<id>default-report</id>
<goals>
<goal>report</goal>
</goals>
</execution>
</executions>
</plugin>
<plugin>
<groupId>com.github.spotbugs</groupId>
<artifactId>spotbugs-maven-plugin</artifactId>
<version>${spotbugs.version}</version>
<configuration>
<xmlOutput>true</xmlOutput>
<threshold>medium</threshold>
<effort>default</effort>
<excludeFilterFile>dev-config/spotbugs-exclude.xml</excludeFilterFile>
<failOnError>true</failOnError>
</configuration>
<dependencies>
<dependency>
<groupId>com.github.spotbugs</groupId>
<artifactId>spotbugs</artifactId>
<version>4.0.0-beta4</version>
</dependency>
</dependencies>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-checkstyle-plugin</artifactId>
<version>${checkstyle.version}</version>
<dependencies>
<dependency>
<groupId>com.puppycrawl.tools</groupId>
<artifactId>checkstyle</artifactId>
<version>8.45</version>
</dependency>
</dependencies>
<configuration>
<consoleOutput>true</consoleOutput>
<encoding>UTF-8</encoding>
<configLocation>style/checkstyle.xml</configLocation>
<failOnViolation>true</failOnViolation>
<violationSeverity>warning</violationSeverity>
<includeTestSourceDirectory>true</includeTestSourceDirectory>
<sourceDirectories>
<sourceDirectory>${project.build.sourceDirectory}</sourceDirectory>
</sourceDirectories>
<excludes>**\/generated-sources\/</excludes>
</configuration>
<executions>
<execution>
<phase>compile</phase>
<goals>
<goal>check</goal>
</goals>
</execution>
</executions>
</plugin>
<plugin>
<groupId>org.codehaus.mojo</groupId>
<artifactId>cobertura-maven-plugin</artifactId>
<version>${cobertura-maven-plugin.version}</version>
<configuration>
<check>
</check>
<aggregate>true</aggregate>
<outputDirectory>./target/cobertura</outputDirectory>
<encoding>${project.build.sourceEncoding}</encoding>
<quiet>true</quiet>
<format>xml</format>
<instrumentation>
<ignoreTrivial>true</ignoreTrivial>
</instrumentation>
</configuration>
</plugin>
<plugin>
<artifactId>maven-source-plugin</artifactId>
<version>${maven-source-plugin.version}</version>
<executions>
<execution>
<id>attach-sources</id>
<goals>
<goal>jar</goal>
</goals>
</execution>
</executions>
</plugin>
</plugins>
</build>
<profiles>
<profile>
<id>docker</id>
<properties>
<docker.build.skip>false</docker.build.skip>
<docker.push.skip>false</docker.push.skip>
</properties>
</profile>
</profiles>
<dependencies>
<!--
NOTE: only development / test phase dependencies (scope = test / provided)
that won't be packaged into final jar can be declared here.
For example: annotation processors, test dependencies that are used by most
of the submodules.
-->
<dependency>
<groupId>junit</groupId>
<artifactId>junit</artifactId>
<scope>test</scope>
</dependency>
<dependency>
<groupId>org.jacoco</groupId>
<artifactId>org.jacoco.agent</artifactId>
<version>${jacoco.version}</version>
<classifier>runtime</classifier>
<scope>test</scope>
</dependency>
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-configuration-processor</artifactId>
<optional>true</optional>
</dependency>
<dependency>
<groupId>com.google.auto.service</groupId>
<artifactId>auto-service</artifactId>
<version>${auto-service.version}</version>
<scope>provided</scope>
</dependency>
<dependency>
<groupId>org.powermock</groupId>
<artifactId>powermock-api-mockito2</artifactId>
<version>${powermock.version}</version>
<scope>test</scope>
</dependency>
<dependency>
<groupId>org.powermock</groupId>
<artifactId>powermock-module-junit4</artifactId>
<version>${powermock.version}</version>
<scope>test</scope>
</dependency>
<dependency>
<groupId>org.powermock</groupId>
<artifactId>powermock-core</artifactId>
<version>${powermock.version}</version>
<scope>test</scope>
</dependency>
</dependencies>
<modules>
<module>dolphinscheduler-alert</module>
<module>dolphinscheduler-spi</module>
<module>dolphinscheduler-registry</module>
<module>dolphinscheduler-task-plugin</module>
<module>dolphinscheduler-server</module>
<module>dolphinscheduler-common</module>
<module>dolphinscheduler-api</module>
<module>dolphinscheduler-dao</module>
<module>dolphinscheduler-dist</module>
<module>dolphinscheduler-remote</module>
<module>dolphinscheduler-service</module>
<module>dolphinscheduler-microbench</module>
<module>dolphinscheduler-data-quality</module>
<module>dolphinscheduler-standalone-server</module>
<module>dolphinscheduler-datasource-plugin</module>
<module>dolphinscheduler-python</module>
<module>dolphinscheduler-meter</module>
<module>dolphinscheduler-master</module>
<module>dolphinscheduler-worker</module>
<module>dolphinscheduler-log-server</module>
<module>dolphinscheduler-tools</module>
<module>dolphinscheduler-ui-next</module>
</modules>
</project>
|
closed
|
apache/dolphinscheduler
|
https://github.com/apache/dolphinscheduler
| 9,021 |
[Feature][E2E] Recover sub_process e2e test in ui-next
|
### Search before asking
- [X] I had searched in the [issues](https://github.com/apache/dolphinscheduler/issues?q=is%3Aissue) and found no similar feature requirement.
### Description
_No response_
### Use case
_No response_
### Related issues
_No response_
### Are you willing to submit a PR?
- [X] Yes I am willing to submit a PR!
### Code of Conduct
- [X] I agree to follow this project's [Code of Conduct](https://www.apache.org/foundation/policies/conduct)
|
https://github.com/apache/dolphinscheduler/issues/9021
|
https://github.com/apache/dolphinscheduler/pull/9023
|
fd5e79bd803a287aa6f7074333029347bcceef1d
|
82394ba81d54cab5ada8be06990ec52e486a91b9
| 2022-03-20T02:59:05Z |
java
| 2022-03-20T05:11:48Z |
dolphinscheduler-e2e/dolphinscheduler-e2e-case/src/test/java/org/apache/dolphinscheduler/e2e/cases/WorkflowE2ETest.java
|
/*
* Licensed to Apache Software Foundation (ASF) under one or more contributor
* license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright
* ownership. Apache Software Foundation (ASF) licenses this file to you under
* the Apache License, Version 2.0 (the "License"); you may
* not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied. See the License for the
* specific language governing permissions and limitations
* under the License.
*/
package org.apache.dolphinscheduler.e2e.cases;
import org.apache.dolphinscheduler.e2e.core.DolphinScheduler;
import org.apache.dolphinscheduler.e2e.pages.LoginPage;
import org.apache.dolphinscheduler.e2e.pages.common.NavBarPage;
import org.apache.dolphinscheduler.e2e.pages.project.ProjectDetailPage;
import org.apache.dolphinscheduler.e2e.pages.project.ProjectPage;
import org.apache.dolphinscheduler.e2e.pages.project.workflow.WorkflowDefinitionTab;
import org.apache.dolphinscheduler.e2e.pages.project.workflow.WorkflowForm.TaskType;
import org.apache.dolphinscheduler.e2e.pages.project.workflow.WorkflowInstanceTab;
import org.apache.dolphinscheduler.e2e.pages.project.workflow.WorkflowInstanceTab.Row;
import org.apache.dolphinscheduler.e2e.pages.project.workflow.task.ShellTaskForm;
import org.apache.dolphinscheduler.e2e.pages.project.workflow.task.SubWorkflowTaskForm;
import org.apache.dolphinscheduler.e2e.pages.security.SecurityPage;
import org.apache.dolphinscheduler.e2e.pages.security.TenantPage;
import org.apache.dolphinscheduler.e2e.pages.security.UserPage;
import org.junit.jupiter.api.AfterAll;
import org.junit.jupiter.api.BeforeAll;
import org.junit.jupiter.api.Order;
import org.junit.jupiter.api.Test;
import org.openqa.selenium.By;
import org.openqa.selenium.remote.RemoteWebDriver;
import org.openqa.selenium.support.ui.ExpectedConditions;
import org.openqa.selenium.support.ui.WebDriverWait;
import static org.assertj.core.api.Assertions.assertThat;
import static org.awaitility.Awaitility.await;
@DolphinScheduler(composeFiles = "docker/basic/docker-compose.yaml")
class WorkflowE2ETest {
private static final String project = "test-workflow-1";
private static final String user = "admin";
private static final String password = "dolphinscheduler123";
private static final String email = "[email protected]";
private static final String phone = "15800000000";
private static final String tenant = System.getProperty("user.name");
private static RemoteWebDriver browser;
@BeforeAll
public static void setup() {
UserPage userPage = new LoginPage(browser)
.login("admin", "dolphinscheduler123")
.goToNav(SecurityPage.class)
.goToTab(TenantPage.class)
.create(tenant)
.goToNav(SecurityPage.class)
.goToTab(UserPage.class);
new WebDriverWait(userPage.driver(), 20).until(ExpectedConditions.visibilityOfElementLocated(
new By.ByClassName("name")));
userPage.update(user, user, password, email, phone, tenant)
.goToNav(ProjectPage.class)
.create(project)
;
}
// @AfterAll
// public static void cleanup() {
// new NavBarPage(browser)
// .goToNav(ProjectPage.class)
// .goTo(project)
// .goToTab(WorkflowDefinitionTab.class)
// .cancelPublishAll()
// .deleteAll()
// ;
//
// new NavBarPage(browser)
// .goToNav(ProjectPage.class)
// .delete(project)
// .goToNav(SecurityPage.class)
// .goToTab(TenantPage.class)
// .delete(tenant)
// ;
// }
@Test
@Order(1)
void testCreateWorkflow() {
final String workflow = "test-workflow-1";
WorkflowDefinitionTab workflowDefinitionPage =
new ProjectPage(browser)
.goTo(project)
.goToTab(WorkflowDefinitionTab.class);
workflowDefinitionPage
.createWorkflow()
.<ShellTaskForm> addTask(TaskType.SHELL)
.script("echo ${today}\necho ${global_param}\n")
.name("test-1")
.addParam("today", "${system.datetime}")
.submit()
.submit()
.name(workflow)
.tenant(tenant)
.addGlobalParam("global_param", "hello world")
.submit()
;
await().untilAsserted(() -> assertThat(workflowDefinitionPage.workflowList())
.as("Workflow list should contain newly-created workflow")
.anyMatch(
it -> it.getText().contains(workflow)
));
workflowDefinitionPage.publish(workflow);
}
// @Test
// @Order(10)
// void testCreateSubWorkflow() {
// final String workflow = "test-sub-workflow-1";
//
// WorkflowDefinitionTab workflowDefinitionPage =
// new ProjectPage(browser)
// .goToNav(ProjectPage.class)
// .goTo(project)
// .goToTab(WorkflowDefinitionTab.class);
//
// workflowDefinitionPage
// .createWorkflow()
//
// .<SubWorkflowTaskForm> addTask(TaskType.SUB_PROCESS)
// .childNode("test-workflow-1")
// .name("test-sub-1")
// .submit()
//
// .submit()
// .name(workflow)
// .tenant(tenant)
// .addGlobalParam("global_param", "hello world")
// .submit()
// ;
//
// await().untilAsserted(() -> assertThat(
// workflowDefinitionPage.workflowList()
// ).anyMatch(it -> it.getText().contains(workflow)));
//
// workflowDefinitionPage.publish(workflow);
// }
@Test
@Order(30)
void testRunWorkflow() {
final String workflow = "test-workflow-1";
final ProjectDetailPage projectPage =
new ProjectPage(browser)
.goToNav(ProjectPage.class)
.goTo(project);
projectPage
.goToTab(WorkflowInstanceTab.class)
.deleteAll();
projectPage
.goToTab(WorkflowDefinitionTab.class)
.run(workflow)
.submit();
await().untilAsserted(() -> {
browser.navigate().refresh();
final Row row = projectPage
.goToTab(WorkflowInstanceTab.class)
.instances()
.iterator()
.next();
assertThat(row.isSuccess()).isTrue();
assertThat(row.executionTime()).isEqualTo(1);
});
// Test rerun
projectPage
.goToTab(WorkflowInstanceTab.class)
.instances()
.stream()
.filter(it -> it.rerunButton().isDisplayed())
.iterator()
.next()
.rerun();
await().untilAsserted(() -> {
browser.navigate().refresh();
final Row row = projectPage
.goToTab(WorkflowInstanceTab.class)
.instances()
.iterator()
.next();
assertThat(row.isSuccess()).isTrue();
assertThat(row.executionTime()).isEqualTo(2);
});
}
}
|
closed
|
apache/dolphinscheduler
|
https://github.com/apache/dolphinscheduler
| 9,021 |
[Feature][E2E] Recover sub_process e2e test in ui-next
|
### Search before asking
- [X] I had searched in the [issues](https://github.com/apache/dolphinscheduler/issues?q=is%3Aissue) and found no similar feature requirement.
### Description
_No response_
### Use case
_No response_
### Related issues
_No response_
### Are you willing to submit a PR?
- [X] Yes I am willing to submit a PR!
### Code of Conduct
- [X] I agree to follow this project's [Code of Conduct](https://www.apache.org/foundation/policies/conduct)
|
https://github.com/apache/dolphinscheduler/issues/9021
|
https://github.com/apache/dolphinscheduler/pull/9023
|
fd5e79bd803a287aa6f7074333029347bcceef1d
|
82394ba81d54cab5ada8be06990ec52e486a91b9
| 2022-03-20T02:59:05Z |
java
| 2022-03-20T05:11:48Z |
dolphinscheduler-e2e/dolphinscheduler-e2e-case/src/test/java/org/apache/dolphinscheduler/e2e/pages/project/workflow/WorkflowDefinitionTab.java
|
/*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied. See the License for the
* specific language governing permissions and limitations
* under the License.
*
*/
package org.apache.dolphinscheduler.e2e.pages.project.workflow;
import lombok.Getter;
import org.apache.dolphinscheduler.e2e.pages.common.NavBarPage;
import org.apache.dolphinscheduler.e2e.pages.project.ProjectDetailPage;
import org.openqa.selenium.By;
import org.openqa.selenium.JavascriptExecutor;
import org.openqa.selenium.WebElement;
import org.openqa.selenium.remote.RemoteWebDriver;
import org.openqa.selenium.support.FindBy;
import org.openqa.selenium.support.FindBys;
import java.util.List;
import java.util.function.Supplier;
import java.util.stream.Collectors;
@Getter
public final class WorkflowDefinitionTab extends NavBarPage implements ProjectDetailPage.Tab {
@FindBy(className = "btn-create-process")
private WebElement buttonCreateProcess;
@FindBy(className = "select-all")
private WebElement checkBoxSelectAll;
@FindBy(className = "btn-delete-all")
private WebElement buttonDeleteAll;
@FindBys({
@FindBy(className = "n-popconfirm__action"),
@FindBy(className = "n-button--primary-type"),
})
private WebElement buttonConfirm;
@FindBy(className = "items")
private List<WebElement> workflowList;
public WorkflowDefinitionTab(RemoteWebDriver driver) {
super(driver);
}
public WorkflowForm createWorkflow() {
buttonCreateProcess().click();
return new WorkflowForm(driver);
}
public WorkflowDefinitionTab publish(String workflow) {
workflowList()
.stream()
.filter(it -> it.findElement(By.className("workflow-name")).getAttribute("innerText").equals(workflow))
.flatMap(it -> it.findElements(By.className("btn-publish")).stream())
.filter(WebElement::isDisplayed)
.findFirst()
.orElseThrow(() -> new RuntimeException("Can not find publish button in workflow definition"))
.click();
return this;
}
public WorkflowRunDialog run(String workflow) {
workflowList()
.stream()
.filter(it -> it.findElement(By.className("workflow-name")).getAttribute("innerText").equals(workflow))
.flatMap(it -> it.findElements(By.className("btn-run")).stream())
.filter(WebElement::isDisplayed)
.findFirst()
.orElseThrow(() -> new RuntimeException("Can not find run button in workflow definition"))
.click();
return new WorkflowRunDialog(this);
}
public WorkflowDefinitionTab cancelPublishAll() {
List<WebElement> cancelButtons = workflowList()
.stream()
.flatMap(it -> it.findElements(By.className("btn-publish")).stream())
.filter(WebElement::isDisplayed)
.collect(Collectors.toList());
for (WebElement cancelButton : cancelButtons) {
cancelButton.click();
driver().navigate().refresh();
}
return this;
}
public WorkflowDefinitionTab deleteAll() {
if (workflowList().isEmpty()) {
return this;
}
checkBoxSelectAll().click();
buttonDeleteAll().click();
((JavascriptExecutor) driver).executeScript("arguments[0].click();", buttonConfirm());
return this;
}
}
|
closed
|
apache/dolphinscheduler
|
https://github.com/apache/dolphinscheduler
| 9,021 |
[Feature][E2E] Recover sub_process e2e test in ui-next
|
### Search before asking
- [X] I had searched in the [issues](https://github.com/apache/dolphinscheduler/issues?q=is%3Aissue) and found no similar feature requirement.
### Description
_No response_
### Use case
_No response_
### Related issues
_No response_
### Are you willing to submit a PR?
- [X] Yes I am willing to submit a PR!
### Code of Conduct
- [X] I agree to follow this project's [Code of Conduct](https://www.apache.org/foundation/policies/conduct)
|
https://github.com/apache/dolphinscheduler/issues/9021
|
https://github.com/apache/dolphinscheduler/pull/9023
|
fd5e79bd803a287aa6f7074333029347bcceef1d
|
82394ba81d54cab5ada8be06990ec52e486a91b9
| 2022-03-20T02:59:05Z |
java
| 2022-03-20T05:11:48Z |
dolphinscheduler-e2e/dolphinscheduler-e2e-case/src/test/java/org/apache/dolphinscheduler/e2e/pages/project/workflow/task/SubWorkflowTaskForm.java
|
/*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied. See the License for the
* specific language governing permissions and limitations
* under the License.
*
*/
package org.apache.dolphinscheduler.e2e.pages.project.workflow.task;
import org.apache.dolphinscheduler.e2e.pages.project.workflow.WorkflowForm;
import lombok.Getter;
import org.openqa.selenium.By;
import org.openqa.selenium.WebDriver;
import org.openqa.selenium.WebElement;
import org.openqa.selenium.support.FindBy;
import org.openqa.selenium.support.FindBys;
import org.openqa.selenium.support.ui.ExpectedConditions;
import org.openqa.selenium.support.ui.WebDriverWait;
import java.util.List;
@Getter
public final class SubWorkflowTaskForm extends TaskNodeForm {
@FindBys({
@FindBy(className = "select-child-node"),
@FindBy(className = "n-base-selection"),
})
private WebElement btnSelectChildNodeDropdown;
@FindBy(className = "n-base-select-option__content")
private List<WebElement> selectChildNode;
private WebDriver driver;
public SubWorkflowTaskForm(WorkflowForm parent) {
super(parent);
this.driver = parent.driver();
}
public SubWorkflowTaskForm childNode(String node) {
btnSelectChildNodeDropdown().click();
new WebDriverWait(driver, 5).until(ExpectedConditions.visibilityOfElementLocated(new By.ByClassName(
"n-base-select-option__content")));
selectChildNode()
.stream()
.filter(it -> it.getText().contains(node))
.findFirst()
.orElseThrow(() -> new RuntimeException(String.format("No %s in child node dropdown list", node)))
.click();
return this;
}
}
|
closed
|
apache/dolphinscheduler
|
https://github.com/apache/dolphinscheduler
| 9,001 |
[Bug][UI Next][V1.0.0-Alpha] There is a problem with the language support of the PagerDuty alarm instance.
|
### Search before asking
- [X] I had searched in the [issues](https://github.com/apache/dolphinscheduler/issues?q=is%3Aissue) and found no similar issues.
### What happened

### What you expected to happen
There is a problem with the language support of the PagerDuty alarm instance.
### How to reproduce
Support i18n.
### Anything else
_No response_
### Version
dev
### Are you willing to submit PR?
- [X] Yes I am willing to submit a PR!
### Code of Conduct
- [X] I agree to follow this project's [Code of Conduct](https://www.apache.org/foundation/policies/conduct)
|
https://github.com/apache/dolphinscheduler/issues/9001
|
https://github.com/apache/dolphinscheduler/pull/9027
|
82394ba81d54cab5ada8be06990ec52e486a91b9
|
7ada204bda28853891708d4b7a4ca1217d5a4718
| 2022-03-18T14:56:57Z |
java
| 2022-03-20T06:32:16Z |
dolphinscheduler-ui-next/src/locales/modules/en_US.ts
|
/*
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership.
* The ASF licenses this file to You under the Apache License, Version 2.0
* (the "License"); you may not use this file except in compliance with
* the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
const login = {
test: 'Test',
userName: 'Username',
userName_tips: 'Please enter your username',
userPassword: 'Password',
userPassword_tips: 'Please enter your password',
login: 'Login'
}
const modal = {
cancel: 'Cancel',
confirm: 'Confirm'
}
const theme = {
light: 'Light',
dark: 'Dark'
}
const userDropdown = {
profile: 'Profile',
password: 'Password',
logout: 'Logout'
}
const menu = {
home: 'Home',
project: 'Project',
resources: 'Resources',
datasource: 'Datasource',
monitor: 'Monitor',
security: 'Security',
project_overview: 'Project Overview',
workflow_relation: 'Workflow Relation',
workflow: 'Workflow',
workflow_definition: 'Workflow Definition',
workflow_instance: 'Workflow Instance',
task: 'Task',
task_instance: 'Task Instance',
task_definition: 'Task Definition',
file_manage: 'File Manage',
udf_manage: 'UDF Manage',
resource_manage: 'Resource Manage',
function_manage: 'Function Manage',
service_manage: 'Service Manage',
master: 'Master',
worker: 'Worker',
db: 'DB',
statistical_manage: 'Statistical Manage',
statistics: 'Statistics',
audit_log: 'Audit Log',
tenant_manage: 'Tenant Manage',
user_manage: 'User Manage',
alarm_group_manage: 'Alarm Group Manage',
alarm_instance_manage: 'Alarm Instance Manage',
worker_group_manage: 'Worker Group Manage',
yarn_queue_manage: 'Yarn Queue Manage',
environment_manage: 'Environment Manage',
k8s_namespace_manage: 'K8S Namespace Manage',
token_manage: 'Token Manage',
task_group_manage: 'Task Group Manage',
task_group_option: 'Task Group Option',
task_group_queue: 'Task Group Queue',
data_quality: 'Data Quality',
task_result: 'Task Result',
rule: 'Rule management'
}
const home = {
task_state_statistics: 'Task State Statistics',
process_state_statistics: 'Process State Statistics',
process_definition_statistics: 'Process Definition Statistics',
number: 'Number',
state: 'State',
submitted_success: 'SUBMITTED_SUCCESS',
running_execution: 'RUNNING_EXECUTION',
ready_pause: 'READY_PAUSE',
pause: 'PAUSE',
ready_stop: 'READY_STOP',
stop: 'STOP',
failure: 'FAILURE',
success: 'SUCCESS',
need_fault_tolerance: 'NEED_FAULT_TOLERANCE',
kill: 'KILL',
waiting_thread: 'WAITING_THREAD',
waiting_depend: 'WAITING_DEPEND',
delay_execution: 'DELAY_EXECUTION',
forced_success: 'FORCED_SUCCESS',
serial_wait: 'SERIAL_WAIT',
ready_block: 'READY_BLOCK',
block: 'BLOCK'
}
const password = {
edit_password: 'Edit Password',
password: 'Password',
confirm_password: 'Confirm Password',
password_tips: 'Please enter your password',
confirm_password_tips: 'Please enter your confirm password',
two_password_entries_are_inconsistent:
'Two password entries are inconsistent',
submit: 'Submit'
}
const profile = {
profile: 'Profile',
edit: 'Edit',
username: 'Username',
email: 'Email',
phone: 'Phone',
state: 'State',
permission: 'Permission',
create_time: 'Create Time',
update_time: 'Update Time',
administrator: 'Administrator',
ordinary_user: 'Ordinary User',
edit_profile: 'Edit Profile',
username_tips: 'Please enter your username',
email_tips: 'Please enter your email',
email_correct_tips: 'Please enter your email in the correct format',
phone_tips: 'Please enter your phone',
state_tips: 'Please choose your state',
enable: 'Enable',
disable: 'Disable',
timezone_success: 'Time zone updated successful',
please_select_timezone: 'Choose timeZone'
}
const monitor = {
master: {
cpu_usage: 'CPU Usage',
memory_usage: 'Memory Usage',
load_average: 'Load Average',
create_time: 'Create Time',
last_heartbeat_time: 'Last Heartbeat Time',
directory_detail: 'Directory Detail',
host: 'Host',
directory: 'Directory'
},
worker: {
cpu_usage: 'CPU Usage',
memory_usage: 'Memory Usage',
load_average: 'Load Average',
create_time: 'Create Time',
last_heartbeat_time: 'Last Heartbeat Time',
directory_detail: 'Directory Detail',
host: 'Host',
directory: 'Directory'
},
db: {
health_state: 'Health State',
max_connections: 'Max Connections',
threads_connections: 'Threads Connections',
threads_running_connections: 'Threads Running Connections'
},
statistics: {
command_number_of_waiting_for_running:
'Command Number Of Waiting For Running',
failure_command_number: 'Failure Command Number',
tasks_number_of_waiting_running: 'Tasks Number Of Waiting Running',
task_number_of_ready_to_kill: 'Task Number Of Ready To Kill'
},
audit_log: {
user_name: 'User Name',
resource_type: 'Resource Type',
project_name: 'Project Name',
operation_type: 'Operation Type',
create_time: 'Create Time',
start_time: 'Start Time',
end_time: 'End Time',
user_audit: 'User Audit',
project_audit: 'Project Audit',
create: 'Create',
update: 'Update',
delete: 'Delete',
read: 'Read'
}
}
const resource = {
file: {
file_manage: 'File Manage',
create_folder: 'Create Folder',
create_file: 'Create File',
upload_files: 'Upload Files',
enter_keyword_tips: 'Please enter keyword',
name: 'Name',
user_name: 'Resource userName',
whether_directory: 'Whether directory',
file_name: 'File Name',
description: 'Description',
size: 'Size',
update_time: 'Update Time',
operation: 'Operation',
edit: 'Edit',
rename: 'Rename',
download: 'Download',
delete: 'Delete',
yes: 'Yes',
no: 'No',
folder_name: 'Folder Name',
enter_name_tips: 'Please enter name',
enter_description_tips: 'Please enter description',
enter_content_tips: 'Please enter the resource content',
file_format: 'File Format',
file_content: 'File Content',
delete_confirm: 'Delete?',
confirm: 'Confirm',
cancel: 'Cancel',
success: 'Success',
file_details: 'File Details',
return: 'Return',
save: 'Save'
},
udf: {
udf_resources: 'UDF resources',
create_folder: 'Create Folder',
upload_udf_resources: 'Upload UDF Resources',
udf_source_name: 'UDF Resource Name',
whether_directory: 'Whether directory',
file_name: 'File Name',
file_size: 'File Size',
description: 'Description',
create_time: 'Create Time',
update_time: 'Update Time',
operation: 'Operation',
yes: 'Yes',
no: 'No',
edit: 'Edit',
download: 'Download',
delete: 'Delete',
delete_confirm: 'Delete?',
success: 'Success',
folder_name: 'Folder Name',
upload: 'Upload',
upload_files: 'Upload Files',
file_upload: 'File Upload',
enter_keyword_tips: 'Please enter keyword',
enter_name_tips: 'Please enter name',
enter_description_tips: 'Please enter description'
},
function: {
udf_function: 'UDF Function',
create_udf_function: 'Create UDF Function',
edit_udf_function: 'Create UDF Function',
udf_function_name: 'UDF Function Name',
class_name: 'Class Name',
type: 'Type',
description: 'Description',
jar_package: 'Jar Package',
update_time: 'Update Time',
operation: 'Operation',
rename: 'Rename',
edit: 'Edit',
delete: 'Delete',
success: 'Success',
package_name: 'Package Name',
udf_resources: 'UDF Resources',
instructions: 'Instructions',
upload_resources: 'Upload Resources',
udf_resources_directory: 'UDF resources directory',
delete_confirm: 'Delete?',
enter_keyword_tips: 'Please enter keyword',
enter_udf_unction_name_tips: 'Please enter a UDF function name',
enter_package_name_tips: 'Please enter a Package name',
enter_select_udf_resources_tips: 'Please select UDF resources',
enter_select_udf_resources_directory_tips:
'Please select UDF resources directory',
enter_instructions_tips: 'Please enter a instructions',
enter_name_tips: 'Please enter name',
enter_description_tips: 'Please enter description'
},
task_group_option: {
manage: 'Task group manage',
option: 'Task group option',
create: 'Create task group',
edit: 'Edit task group',
delete: 'Delete task group',
view_queue: 'View the queue of the task group',
switch_status: 'Switch status',
code: 'Task group code',
name: 'Task group name',
project_name: 'Project name',
resource_pool_size: 'Resource pool size',
resource_pool_size_be_a_number:
'The size of the task group resource pool should be more than 1',
resource_used_pool_size: 'Used resource',
desc: 'Task group desc',
status: 'Task group status',
enable_status: 'Enable',
disable_status: 'Disable',
please_enter_name: 'Please enter task group name',
please_enter_desc: 'Please enter task group description',
please_enter_resource_pool_size:
'Please enter task group resource pool size',
please_select_project: 'Please select a project',
create_time: 'Create time',
update_time: 'Update time',
actions: 'Actions',
please_enter_keywords: 'Please enter keywords'
},
task_group_queue: {
actions: 'Actions',
task_name: 'Task name',
task_group_name: 'Task group name',
project_name: 'Project name',
process_name: 'Process name',
process_instance_name: 'Process instance',
queue: 'Task group queue',
priority: 'Priority',
priority_be_a_number:
'The priority of the task group queue should be a positive number',
force_starting_status: 'Starting status',
in_queue: 'In queue',
task_status: 'Task status',
view: 'View task group queue',
the_status_of_waiting: 'Waiting into the queue',
the_status_of_queuing: 'Queuing',
the_status_of_releasing: 'Released',
modify_priority: 'Edit the priority',
start_task: 'Start the task',
priority_not_empty: 'The value of priority can not be empty',
priority_must_be_number: 'The value of priority should be number',
please_select_task_name: 'Please select a task name',
create_time: 'Create time',
update_time: 'Update time',
edit_priority: 'Edit the task priority'
}
}
const project = {
list: {
create_project: 'Create Project',
edit_project: 'Edit Project',
project_list: 'Project List',
project_tips: 'Please enter your project',
description_tips: 'Please enter your description',
username_tips: 'Please enter your username',
project_name: 'Project Name',
project_description: 'Project Description',
owned_users: 'Owned Users',
workflow_define_count: 'Workflow Define Count',
process_instance_running_count: 'Process Instance Running Count',
description: 'Description',
create_time: 'Create Time',
update_time: 'Update Time',
operation: 'Operation',
edit: 'Edit',
delete: 'Delete',
confirm: 'Confirm',
cancel: 'Cancel',
delete_confirm: 'Delete?'
},
workflow: {
workflow_relation: 'Workflow Relation',
create_workflow: 'Create Workflow',
import_workflow: 'Import Workflow',
workflow_name: 'Workflow Name',
current_selection: 'Current Selection',
online: 'Online',
offline: 'Offline',
refresh: 'Refresh',
show_hide_label: 'Show / Hide Label',
workflow_offline: 'Workflow Offline',
schedule_offline: 'Schedule Offline',
schedule_start_time: 'Schedule Start Time',
schedule_end_time: 'Schedule End Time',
crontab_expression: 'Crontab',
workflow_publish_status: 'Workflow Publish Status',
schedule_publish_status: 'Schedule Publish Status',
workflow_definition: 'Workflow Definition',
workflow_instance: 'Workflow Instance',
status: 'Status',
create_time: 'Create Time',
update_time: 'Update Time',
description: 'Description',
create_user: 'Create User',
modify_user: 'Modify User',
operation: 'Operation',
edit: 'Edit',
start: 'Start',
timing: 'Timing',
timezone: 'Timezone',
up_line: 'Online',
down_line: 'Offline',
copy_workflow: 'Copy Workflow',
cron_manage: 'Cron manage',
delete: 'Delete',
tree_view: 'Tree View',
tree_limit: 'Limit Size',
export: 'Export',
batch_copy: 'Batch Copy',
version_info: 'Version Info',
version: 'Version',
file_upload: 'File Upload',
upload_file: 'Upload File',
upload: 'Upload',
file_name: 'File Name',
success: 'Success',
set_parameters_before_starting: 'Please set the parameters before starting',
set_parameters_before_timing: 'Set parameters before timing',
start_and_stop_time: 'Start and stop time',
next_five_execution_times: 'Next five execution times',
execute_time: 'Execute time',
failure_strategy: 'Failure Strategy',
notification_strategy: 'Notification Strategy',
workflow_priority: 'Workflow Priority',
worker_group: 'Worker Group',
environment_name: 'Environment Name',
alarm_group: 'Alarm Group',
complement_data: 'Complement Data',
startup_parameter: 'Startup Parameter',
whether_dry_run: 'Whether Dry-Run',
continue: 'Continue',
end: 'End',
none_send: 'None',
success_send: 'Success',
failure_send: 'Failure',
all_send: 'All',
whether_complement_data: 'Whether it is a complement process?',
schedule_date: 'Schedule date',
mode_of_execution: 'Mode of execution',
serial_execution: 'Serial execution',
parallel_execution: 'Parallel execution',
parallelism: 'Parallelism',
custom_parallelism: 'Custom Parallelism',
please_enter_parallelism: 'Please enter Parallelism',
please_choose: 'Please Choose',
start_time: 'Start Time',
end_time: 'End Time',
crontab: 'Crontab',
delete_confirm: 'Delete?',
enter_name_tips: 'Please enter name',
switch_version: 'Switch To This Version',
confirm_switch_version: 'Confirm Switch To This Version?',
current_version: 'Current Version',
run_type: 'Run Type',
scheduling_time: 'Scheduling Time',
duration: 'Duration',
run_times: 'Run Times',
fault_tolerant_sign: 'Fault-tolerant Sign',
dry_run_flag: 'Dry-run Flag',
executor: 'Executor',
host: 'Host',
start_process: 'Start Process',
execute_from_the_current_node: 'Execute from the current node',
recover_tolerance_fault_process: 'Recover tolerance fault process',
resume_the_suspension_process: 'Resume the suspension process',
execute_from_the_failed_nodes: 'Execute from the failed nodes',
scheduling_execution: 'Scheduling execution',
rerun: 'Rerun',
stop: 'Stop',
pause: 'Pause',
recovery_waiting_thread: 'Recovery waiting thread',
recover_serial_wait: 'Recover serial wait',
recovery_suspend: 'Recovery Suspend',
recovery_failed: 'Recovery Failed',
gantt: 'Gantt',
name: 'Name',
all_status: 'AllStatus',
submit_success: 'Submitted successfully',
running: 'Running',
ready_to_pause: 'Ready to pause',
ready_to_stop: 'Ready to stop',
failed: 'Failed',
need_fault_tolerance: 'Need fault tolerance',
kill: 'Kill',
waiting_for_thread: 'Waiting for thread',
waiting_for_dependence: 'Waiting for dependence',
waiting_for_dependency_to_complete: 'Waiting for dependency to complete',
delay_execution: 'Delay execution',
forced_success: 'Forced success',
serial_wait: 'Serial wait',
executing: 'Executing',
startup_type: 'Startup Type',
complement_range: 'Complement Range',
parameters_variables: 'Parameters variables',
global_parameters: 'Global parameters',
local_parameters: 'Local parameters',
type: 'Type',
retry_count: 'Retry Count',
submit_time: 'Submit Time',
refresh_status_succeeded: 'Refresh status succeeded',
view_log: 'View log',
update_log_success: 'Update log success',
no_more_log: 'No more logs',
no_log: 'No log',
loading_log: 'Loading Log...',
close: 'Close',
download_log: 'Download Log',
refresh_log: 'Refresh Log',
enter_full_screen: 'Enter full screen',
cancel_full_screen: 'Cancel full screen',
task_state: 'Task status',
mode_of_dependent: 'Mode of dependent',
open: 'Open',
project_name_required: 'Project name is required',
related_items: 'Related items',
project_name: 'Project Name',
project_tips: 'Please select project name'
},
task: {
online: 'Online',
offline: 'Offline',
task_name: 'Task Name',
task_type: 'Task Type',
create_task: 'Create Task',
workflow_instance: 'Workflow Instance',
workflow_name: 'Workflow Name',
workflow_name_tips: 'Please select workflow name',
workflow_state: 'Workflow State',
version: 'Version',
current_version: 'Current Version',
switch_version: 'Switch To This Version',
confirm_switch_version: 'Confirm Switch To This Version?',
description: 'Description',
move: 'Move',
upstream_tasks: 'Upstream Tasks',
executor: 'Executor',
node_type: 'Node Type',
state: 'State',
submit_time: 'Submit Time',
start_time: 'Start Time',
create_time: 'Create Time',
update_time: 'Update Time',
end_time: 'End Time',
duration: 'Duration',
retry_count: 'Retry Count',
dry_run_flag: 'Dry Run Flag',
host: 'Host',
operation: 'Operation',
edit: 'Edit',
delete: 'Delete',
delete_confirm: 'Delete?',
submitted_success: 'Submitted Success',
running_execution: 'Running Execution',
ready_pause: 'Ready Pause',
pause: 'Pause',
ready_stop: 'Ready Stop',
stop: 'Stop',
failure: 'Failure',
success: 'Success',
need_fault_tolerance: 'Need Fault Tolerance',
kill: 'Kill',
waiting_thread: 'Waiting Thread',
waiting_depend: 'Waiting Depend',
delay_execution: 'Delay Execution',
forced_success: 'Forced Success',
view_log: 'View Log',
download_log: 'Download Log',
refresh: 'Refresh',
serial_wait: 'Serial Wait'
},
dag: {
create: 'Create Workflow',
search: 'Search',
download_png: 'Download PNG',
fullscreen_open: 'Open Fullscreen',
fullscreen_close: 'Close Fullscreen',
save: 'Save',
close: 'Close',
format: 'Format',
refresh_dag_status: 'Refresh DAG status',
layout_type: 'Layout Type',
grid_layout: 'Grid',
dagre_layout: 'Dagre',
rows: 'Rows',
cols: 'Cols',
copy_success: 'Copy Success',
workflow_name: 'Workflow Name',
description: 'Description',
tenant: 'Tenant',
timeout_alert: 'Timeout Alert',
global_variables: 'Global Variables',
basic_info: 'Basic Information',
minute: 'Minute',
key: 'Key',
value: 'Value',
success: 'Success',
delete_cell: 'Delete selected edges and nodes',
online_directly: 'Whether to go online the process definition',
update_directly: 'Whether to update the process definition',
dag_name_empty: 'DAG graph name cannot be empty',
positive_integer: 'Please enter a positive integer greater than 0',
prop_empty: 'prop is empty',
prop_repeat: 'prop is repeat',
node_not_created: 'Failed to save node not created',
copy_name: 'Copy Name',
view_variables: 'View Variables',
startup_parameter: 'Startup Parameter'
},
node: {
current_node_settings: 'Current node settings',
instructions: 'Instructions',
view_history: 'View history',
view_log: 'View log',
enter_this_child_node: 'Enter this child node',
name: 'Node name',
name_tips: 'Please enter name (required)',
task_type: 'Task Type',
task_type_tips: 'Please select a task type (required)',
process_name: 'Process Name',
process_name_tips: 'Please select a process (required)',
child_node: 'Child Node',
enter_child_node: 'Enter child node',
run_flag: 'Run flag',
normal: 'Normal',
prohibition_execution: 'Prohibition execution',
description: 'Description',
description_tips: 'Please enter description',
task_priority: 'Task priority',
worker_group: 'Worker group',
worker_group_tips:
'The Worker group no longer exists, please select the correct Worker group!',
environment_name: 'Environment Name',
task_group_name: 'Task group name',
task_group_queue_priority: 'Priority',
number_of_failed_retries: 'Number of failed retries',
times: 'Times',
failed_retry_interval: 'Failed retry interval',
minute: 'Minute',
delay_execution_time: 'Delay execution time',
state: 'State',
branch_flow: 'Branch flow',
cancel: 'Cancel',
loading: 'Loading...',
confirm: 'Confirm',
success: 'Success',
failed: 'Failed',
backfill_tips:
'The newly created sub-Process has not yet been executed and cannot enter the sub-Process',
task_instance_tips:
'The task has not been executed and cannot enter the sub-Process',
branch_tips:
'Cannot select the same node for successful branch flow and failed branch flow',
timeout_alarm: 'Timeout alarm',
timeout_strategy: 'Timeout strategy',
timeout_strategy_tips: 'Timeout strategy must be selected',
timeout_failure: 'Timeout failure',
timeout_period: 'Timeout period',
timeout_period_tips: 'Timeout must be a positive integer',
script: 'Script',
script_tips: 'Please enter script(required)',
resources: 'Resources',
resources_tips: 'Please select resources',
non_resources_tips: 'Please delete all non-existent resources',
useless_resources_tips: 'Unauthorized or deleted resources',
custom_parameters: 'Custom Parameters',
copy_success: 'Copy success',
copy_failed: 'The browser does not support automatic copying',
prop_tips: 'prop(required)',
prop_repeat: 'prop is repeat',
value_tips: 'value(optional)',
value_required_tips: 'value(required)',
pre_tasks: 'Pre tasks',
program_type: 'Program Type',
spark_version: 'Spark Version',
main_class: 'Main Class',
main_class_tips: 'Please enter main class',
main_package: 'Main Package',
main_package_tips: 'Please enter main package',
deploy_mode: 'Deploy Mode',
app_name: 'App Name',
app_name_tips: 'Please enter app name(optional)',
driver_cores: 'Driver Cores',
driver_cores_tips: 'Please enter Driver cores',
driver_memory: 'Driver Memory',
driver_memory_tips: 'Please enter Driver memory',
executor_number: 'Executor Number',
executor_number_tips: 'Please enter Executor number',
executor_memory: 'Executor Memory',
executor_memory_tips: 'Please enter Executor memory',
executor_cores: 'Executor Cores',
executor_cores_tips: 'Please enter Executor cores',
main_arguments: 'Main Arguments',
main_arguments_tips: 'Please enter main arguments',
option_parameters: 'Option Parameters',
option_parameters_tips: 'Please enter option parameters',
positive_integer_tips: 'should be a positive integer',
flink_version: 'Flink Version',
job_manager_memory: 'JobManager Memory',
job_manager_memory_tips: 'Please enter JobManager memory',
task_manager_memory: 'TaskManager Memory',
task_manager_memory_tips: 'Please enter TaskManager memory',
slot_number: 'Slot Number',
slot_number_tips: 'Please enter Slot number',
parallelism: 'Parallelism',
custom_parallelism: 'Configure parallelism',
parallelism_tips: 'Please enter Parallelism',
parallelism_number_tips: 'Parallelism number should be positive integer',
parallelism_complement_tips:
'If there are a large number of tasks requiring complement, you can use the custom parallelism to ' +
'set the complement task thread to a reasonable value to avoid too large impact on the server.',
task_manager_number: 'TaskManager Number',
task_manager_number_tips: 'Please enter TaskManager number',
http_url: 'Http Url',
http_url_tips: 'Please Enter Http Url',
http_method: 'Http Method',
http_parameters: 'Http Parameters',
http_check_condition: 'Http Check Condition',
http_condition: 'Http Condition',
http_condition_tips: 'Please Enter Http Condition',
timeout_settings: 'Timeout Settings',
connect_timeout: 'Connect Timeout',
ms: 'ms',
socket_timeout: 'Socket Timeout',
status_code_default: 'Default response code 200',
status_code_custom: 'Custom response code',
body_contains: 'Content includes',
body_not_contains: 'Content does not contain',
http_parameters_position: 'Http Parameters Position',
target_task_name: 'Target Task Name',
target_task_name_tips: 'Please enter the Pigeon task name',
datasource_type: 'Datasource types',
datasource_instances: 'Datasource instances',
sql_type: 'SQL Type',
sql_type_query: 'Query',
sql_type_non_query: 'Non Query',
sql_statement: 'SQL Statement',
pre_sql_statement: 'Pre SQL Statement',
post_sql_statement: 'Post SQL Statement',
sql_input_placeholder: 'Please enter non-query sql.',
sql_empty_tips: 'The sql can not be empty.',
procedure_method: 'SQL Statement',
procedure_method_tips: 'Please enter the procedure script',
procedure_method_snippet:
'--Please enter the procedure script \n\n--call procedure:call <procedure-name>[(<arg1>,<arg2>, ...)]\n\n--call function:?= call <procedure-name>[(<arg1>,<arg2>, ...)]',
start: 'Start',
edit: 'Edit',
copy: 'Copy',
delete: 'Delete',
custom_job: 'Custom Job',
custom_script: 'Custom Script',
sqoop_job_name: 'Job Name',
sqoop_job_name_tips: 'Please enter Job Name(required)',
direct: 'Direct',
hadoop_custom_params: 'Hadoop Params',
sqoop_advanced_parameters: 'Sqoop Advanced Parameters',
data_source: 'Data Source',
type: 'Type',
datasource: 'Datasource',
datasource_tips: 'Please select the datasource',
model_type: 'ModelType',
form: 'Form',
table: 'Table',
table_tips: 'Please enter Mysql Table(required)',
column_type: 'ColumnType',
all_columns: 'All Columns',
some_columns: 'Some Columns',
column: 'Column',
column_tips: 'Please enter Columns (Comma separated)',
database: 'Database',
database_tips: 'Please enter Hive Database(required)',
hive_table_tips: 'Please enter Hive Table(required)',
hive_partition_keys: 'Hive partition Keys',
hive_partition_keys_tips: 'Please enter Hive Partition Keys',
hive_partition_values: 'Hive partition Values',
hive_partition_values_tips: 'Please enter Hive Partition Values',
export_dir: 'Export Dir',
export_dir_tips: 'Please enter Export Dir(required)',
sql_statement_tips: 'SQL Statement(required)',
map_column_hive: 'Map Column Hive',
map_column_java: 'Map Column Java',
data_target: 'Data Target',
create_hive_table: 'CreateHiveTable',
drop_delimiter: 'DropDelimiter',
over_write_src: 'OverWriteSrc',
hive_target_dir: 'Hive Target Dir',
hive_target_dir_tips: 'Please enter hive target dir',
replace_delimiter: 'ReplaceDelimiter',
replace_delimiter_tips: 'Please enter Replace Delimiter',
target_dir: 'Target Dir',
target_dir_tips: 'Please enter Target Dir(required)',
delete_target_dir: 'DeleteTargetDir',
compression_codec: 'CompressionCodec',
file_type: 'FileType',
fields_terminated: 'FieldsTerminated',
fields_terminated_tips: 'Please enter Fields Terminated',
lines_terminated: 'LinesTerminated',
lines_terminated_tips: 'Please enter Lines Terminated',
is_update: 'IsUpdate',
update_key: 'UpdateKey',
update_key_tips: 'Please enter Update Key',
update_mode: 'UpdateMode',
only_update: 'OnlyUpdate',
allow_insert: 'AllowInsert',
concurrency: 'Concurrency',
concurrency_tips: 'Please enter Concurrency',
sea_tunnel_master: 'Master',
sea_tunnel_master_url: 'Master URL',
sea_tunnel_queue: 'Queue',
sea_tunnel_master_url_tips:
'Please enter the master url, e.g., 127.0.0.1:7077',
switch_condition: 'Condition',
switch_branch_flow: 'Branch Flow',
and: 'and',
or: 'or',
datax_custom_template: 'Custom Template Switch',
datax_json_template: 'JSON',
datax_target_datasource_type: 'Target Datasource Type',
datax_target_database: 'Target Database',
datax_target_table: 'Target Table',
datax_target_table_tips: 'Please enter the name of the target table',
datax_target_database_pre_sql: 'Pre SQL Statement',
datax_target_database_post_sql: 'Post SQL Statement',
datax_non_query_sql_tips: 'Please enter the non-query sql statement',
datax_job_speed_byte: 'Speed(Byte count)',
datax_job_speed_byte_info: '(0 means unlimited)',
datax_job_speed_record: 'Speed(Record count)',
datax_job_speed_record_info: '(0 means unlimited)',
datax_job_runtime_memory: 'Runtime Memory Limits',
datax_job_runtime_memory_xms: 'Low Limit Value',
datax_job_runtime_memory_xmx: 'High Limit Value',
datax_job_runtime_memory_unit: 'G',
current_hour: 'CurrentHour',
last_1_hour: 'Last1Hour',
last_2_hour: 'Last2Hours',
last_3_hour: 'Last3Hours',
last_24_hour: 'Last24Hours',
today: 'today',
last_1_days: 'Last1Days',
last_2_days: 'Last2Days',
last_3_days: 'Last3Days',
last_7_days: 'Last7Days',
this_week: 'ThisWeek',
last_week: 'LastWeek',
last_monday: 'LastMonday',
last_tuesday: 'LastTuesday',
last_wednesday: 'LastWednesday',
last_thursday: 'LastThursday',
last_friday: 'LastFriday',
last_saturday: 'LastSaturday',
last_sunday: 'LastSunday',
this_month: 'ThisMonth',
this_month_begin: 'ThisMonthBegin',
last_month: 'LastMonth',
last_month_begin: 'LastMonthBegin',
last_month_end: 'LastMonthEnd',
month: 'month',
week: 'week',
day: 'day',
hour: 'hour',
add_dependency: 'Add dependency',
waiting_dependent_start: 'Waiting Dependent start',
check_interval: 'Check interval',
waiting_dependent_complete: 'Waiting Dependent complete',
rule_name: 'Rule Name',
null_check: 'NullCheck',
custom_sql: 'CustomSql',
multi_table_accuracy: 'MulTableAccuracy',
multi_table_value_comparison: 'MulTableCompare',
field_length_check: 'FieldLengthCheck',
uniqueness_check: 'UniquenessCheck',
regexp_check: 'RegexpCheck',
timeliness_check: 'TimelinessCheck',
enumeration_check: 'EnumerationCheck',
table_count_check: 'TableCountCheck',
src_connector_type: 'SrcConnType',
src_datasource_id: 'SrcSource',
src_table: 'SrcTable',
src_filter: 'SrcFilter',
src_field: 'SrcField',
statistics_name: 'ActualValName',
check_type: 'CheckType',
operator: 'Operator',
threshold: 'Threshold',
failure_strategy: 'FailureStrategy',
target_connector_type: 'TargetConnType',
target_datasource_id: 'TargetSourceId',
target_table: 'TargetTable',
target_filter: 'TargetFilter',
mapping_columns: 'OnClause',
statistics_execute_sql: 'ActualValExecSql',
comparison_name: 'ExceptedValName',
comparison_execute_sql: 'ExceptedValExecSql',
comparison_type: 'ExceptedValType',
writer_connector_type: 'WriterConnType',
writer_datasource_id: 'WriterSourceId',
target_field: 'TargetField',
field_length: 'FieldLength',
logic_operator: 'LogicOperator',
regexp_pattern: 'RegexpPattern',
deadline: 'Deadline',
datetime_format: 'DatetimeFormat',
enum_list: 'EnumList',
begin_time: 'BeginTime',
fix_value: 'FixValue',
required: 'required',
emr_flow_define_json: 'jobFlowDefineJson',
emr_flow_define_json_tips: 'Please enter the definition of the job flow.'
}
}
const security = {
tenant: {
tenant_manage: 'Tenant Manage',
create_tenant: 'Create Tenant',
search_tips: 'Please enter keywords',
tenant_code: 'Operating System Tenant',
description: 'Description',
queue_name: 'QueueName',
create_time: 'Create Time',
update_time: 'Update Time',
actions: 'Operation',
edit_tenant: 'Edit Tenant',
tenant_code_tips: 'Please enter the operating system tenant',
queue_name_tips: 'Please select queue',
description_tips: 'Please enter a description',
delete_confirm: 'Delete?',
edit: 'Edit',
delete: 'Delete'
},
alarm_group: {
create_alarm_group: 'Create Alarm Group',
edit_alarm_group: 'Edit Alarm Group',
search_tips: 'Please enter keywords',
alert_group_name_tips: 'Please enter your alert group name',
alarm_plugin_instance: 'Alarm Plugin Instance',
alarm_plugin_instance_tips: 'Please select alert plugin instance',
alarm_group_description_tips: 'Please enter your alarm group description',
alert_group_name: 'Alert Group Name',
alarm_group_description: 'Alarm Group Description',
create_time: 'Create Time',
update_time: 'Update Time',
operation: 'Operation',
delete_confirm: 'Delete?',
edit: 'Edit',
delete: 'Delete'
},
worker_group: {
create_worker_group: 'Create Worker Group',
edit_worker_group: 'Edit Worker Group',
search_tips: 'Please enter keywords',
operation: 'Operation',
delete_confirm: 'Delete?',
edit: 'Edit',
delete: 'Delete',
group_name: 'Group Name',
group_name_tips: 'Please enter your group name',
worker_addresses: 'Worker Addresses',
worker_addresses_tips: 'Please select worker addresses',
create_time: 'Create Time',
update_time: 'Update Time'
},
yarn_queue: {
create_queue: 'Create Queue',
edit_queue: 'Edit Queue',
search_tips: 'Please enter keywords',
queue_name: 'Queue Name',
queue_value: 'Queue Value',
create_time: 'Create Time',
update_time: 'Update Time',
operation: 'Operation',
edit: 'Edit',
queue_name_tips: 'Please enter your queue name',
queue_value_tips: 'Please enter your queue value'
},
environment: {
create_environment: 'Create Environment',
edit_environment: 'Edit Environment',
search_tips: 'Please enter keywords',
edit: 'Edit',
delete: 'Delete',
environment_name: 'Environment Name',
environment_config: 'Environment Config',
environment_desc: 'Environment Desc',
worker_groups: 'Worker Groups',
create_time: 'Create Time',
update_time: 'Update Time',
operation: 'Operation',
delete_confirm: 'Delete?',
environment_name_tips: 'Please enter your environment name',
environment_config_tips: 'Please enter your environment config',
environment_description_tips: 'Please enter your environment description',
worker_group_tips: 'Please select worker group'
},
token: {
create_token: 'Create Token',
edit_token: 'Edit Token',
search_tips: 'Please enter keywords',
user: 'User',
user_tips: 'Please select user',
token: 'Token',
token_tips: 'Please enter your token',
expiration_time: 'Expiration Time',
expiration_time_tips: 'Please select expiration time',
create_time: 'Create Time',
update_time: 'Update Time',
operation: 'Operation',
edit: 'Edit',
delete: 'Delete',
delete_confirm: 'Delete?'
},
user: {
user_manage: 'User Manage',
create_user: 'Create User',
update_user: 'Update User',
delete_user: 'Delete User',
delete_confirm: 'Are you sure to delete?',
delete_confirm_tip:
'Deleting user is a dangerous operation,please be careful',
project: 'Project',
resource: 'Resource',
file_resource: 'File Resource',
udf_resource: 'UDF Resource',
datasource: 'Datasource',
udf: 'UDF Function',
authorize_project: 'Project Authorize',
authorize_resource: 'Resource Authorize',
authorize_datasource: 'Datasource Authorize',
authorize_udf: 'UDF Function Authorize',
username: 'Username',
username_exists: 'The username already exists',
username_tips: 'Please enter username',
user_password: 'Password',
user_password_tips:
'Please enter a password containing letters and numbers with a length between 6 and 20',
user_type: 'User Type',
ordinary_user: 'Ordinary users',
administrator: 'Administrator',
tenant_code: 'Tenant',
tenant_id_tips: 'Please select tenant',
queue: 'Queue',
queue_tips: 'Please select a queue',
email: 'Email',
email_empty_tips: 'Please enter email',
emial_correct_tips: 'Please enter the correct email format',
phone: 'Phone',
phone_empty_tips: 'Please enter phone number',
phone_correct_tips: 'Please enter the correct mobile phone format',
state: 'State',
state_enabled: 'Enabled',
state_disabled: 'Disabled',
create_time: 'Create Time',
update_time: 'Update Time',
operation: 'Operation',
edit: 'Edit',
delete: 'Delete',
authorize: 'Authorize',
save_error_msg: 'Failed to save, please retry',
delete_error_msg: 'Failed to delete, please retry',
auth_error_msg: 'Failed to authorize, please retry',
auth_success_msg: 'Authorize succeeded',
enable: 'Enable',
disable: 'Disable'
},
alarm_instance: {
search_input_tips: 'Please input the keywords',
alarm_instance_manage: 'Alarm instance manage',
alarm_instance_name: 'Alarm instance name',
alarm_instance_name_tips: 'Please enter alarm plugin instance name',
alarm_plugin_name: 'Alarm plugin name',
create_time: 'Create Time',
update_time: 'Update Time',
operation: 'Operation',
edit_alarm_instance: 'Edit Alarm Instance',
delete: 'Delete',
edit: 'Edit',
delete_confirm: 'Delete?',
confirm: 'Confirm',
cancel: 'Cancel',
submit: 'Submit',
create_alarm_instance: 'Create Alarm Instance',
select_plugin: 'Select plugin',
select_plugin_tips: 'Select Alarm plugin',
instance_parameter_exception: 'Instance parameter exception',
WebHook: 'WebHook',
webHook: 'WebHook',
WarningType: 'Warning Type',
IsEnableProxy: 'Enable Proxy',
Proxy: 'Proxy',
Port: 'Port',
User: 'User',
corpId: 'CorpId',
secret: 'Secret',
Secret: 'Secret',
users: 'Users',
userSendMsg: 'UserSendMsg',
agentId: 'AgentId',
showType: 'Show Type',
receivers: 'Receivers',
receiverCcs: 'ReceiverCcs',
serverHost: 'SMTP Host',
serverPort: 'SMTP Port',
sender: 'Sender',
enableSmtpAuth: 'SMTP Auth',
Password: 'Password',
starttlsEnable: 'SMTP STARTTLS Enable',
sslEnable: 'SMTP SSL Enable',
smtpSslTrust: 'SMTP SSL Trust',
url: 'URL',
requestType: 'Request Type',
headerParams: 'Headers',
bodyParams: 'Body',
contentField: 'Content Field',
Keyword: 'Keyword',
userParams: 'User Params',
path: 'Script Path',
type: 'Type',
sendType: 'Send Type',
username: 'Username',
botToken: 'Bot Token',
chatId: 'Channel Chat Id',
parseMode: 'Parse Mode'
},
k8s_namespace: {
create_namespace: 'Create Namespace',
edit_namespace: 'Edit Namespace',
search_tips: 'Please enter keywords',
k8s_namespace: 'K8S Namespace',
k8s_namespace_tips: 'Please enter k8s namespace',
k8s_cluster: 'K8S Cluster',
k8s_cluster_tips: 'Please enter k8s cluster',
owner: 'Owner',
owner_tips: 'Please enter owner',
tag: 'Tag',
tag_tips: 'Please enter tag',
limit_cpu: 'Limit CPU',
limit_cpu_tips: 'Please enter limit CPU',
limit_memory: 'Limit Memory',
limit_memory_tips: 'Please enter limit memory',
create_time: 'Create Time',
update_time: 'Update Time',
operation: 'Operation',
edit: 'Edit',
delete: 'Delete',
delete_confirm: 'Delete?'
}
}
const datasource = {
datasource: 'DataSource',
create_datasource: 'Create DataSource',
search_input_tips: 'Please input the keywords',
datasource_name: 'Datasource Name',
datasource_name_tips: 'Please enter datasource name',
datasource_user_name: 'Owner',
datasource_type: 'Datasource Type',
datasource_parameter: 'Datasource Parameter',
description: 'Description',
description_tips: 'Please enter description',
create_time: 'Create Time',
update_time: 'Update Time',
operation: 'Operation',
click_to_view: 'Click to view',
delete: 'Delete',
confirm: 'Confirm',
delete_confirm: 'Delete?',
cancel: 'Cancel',
create: 'Create',
edit: 'Edit',
success: 'Success',
test_connect: 'Test Connect',
ip: 'IP',
ip_tips: 'Please enter IP',
port: 'Port',
port_tips: 'Please enter port',
database_name: 'Database Name',
database_name_tips: 'Please enter database name',
oracle_connect_type: 'ServiceName or SID',
oracle_connect_type_tips: 'Please select serviceName or SID',
oracle_service_name: 'ServiceName',
oracle_sid: 'SID',
jdbc_connect_parameters: 'jdbc connect parameters',
principal_tips: 'Please enter Principal',
krb5_conf_tips:
'Please enter the kerberos authentication parameter java.security.krb5.conf',
keytab_username_tips:
'Please enter the kerberos authentication parameter login.user.keytab.username',
keytab_path_tips:
'Please enter the kerberos authentication parameter login.user.keytab.path',
format_tips: 'Please enter format',
connection_parameter: 'connection parameter',
user_name: 'User Name',
user_name_tips: 'Please enter your username',
user_password: 'Password',
user_password_tips: 'Please enter your password'
}
const data_quality = {
task_result: {
task_name: 'Task Name',
workflow_instance: 'Workflow Instance',
rule_type: 'Rule Type',
rule_name: 'Rule Name',
state: 'State',
actual_value: 'Actual Value',
excepted_value: 'Excepted Value',
check_type: 'Check Type',
operator: 'Operator',
threshold: 'Threshold',
failure_strategy: 'Failure Strategy',
excepted_value_type: 'Excepted Value Type',
error_output_path: 'Error Output Path',
username: 'Username',
create_time: 'Create Time',
update_time: 'Update Time',
undone: 'Undone',
success: 'Success',
failure: 'Failure',
single_table: 'Single Table',
single_table_custom_sql: 'Single Table Custom Sql',
multi_table_accuracy: 'Multi Table Accuracy',
multi_table_comparison: 'Multi Table Comparison',
expected_and_actual_or_expected: '(Expected - Actual) / Expected x 100%',
expected_and_actual: 'Expected - Actual',
actual_and_expected: 'Actual - Expected',
actual_or_expected: 'Actual / Expected x 100%'
},
rule: {
actions: 'Actions',
name: 'Rule Name',
type: 'Rule Type',
username: 'User Name',
create_time: 'Create Time',
update_time: 'Update Time',
input_item: 'Rule input item',
view_input_item: 'View input items',
input_item_title: 'Input item title',
input_item_placeholder: 'Input item placeholder',
input_item_type: 'Input item type',
src_connector_type: 'SrcConnType',
src_datasource_id: 'SrcSource',
src_table: 'SrcTable',
src_filter: 'SrcFilter',
src_field: 'SrcField',
statistics_name: 'ActualValName',
check_type: 'CheckType',
operator: 'Operator',
threshold: 'Threshold',
failure_strategy: 'FailureStrategy',
target_connector_type: 'TargetConnType',
target_datasource_id: 'TargetSourceId',
target_table: 'TargetTable',
target_filter: 'TargetFilter',
mapping_columns: 'OnClause',
statistics_execute_sql: 'ActualValExecSql',
comparison_name: 'ExceptedValName',
comparison_execute_sql: 'ExceptedValExecSql',
comparison_type: 'ExceptedValType',
writer_connector_type: 'WriterConnType',
writer_datasource_id: 'WriterSourceId',
target_field: 'TargetField',
field_length: 'FieldLength',
logic_operator: 'LogicOperator',
regexp_pattern: 'RegexpPattern',
deadline: 'Deadline',
datetime_format: 'DatetimeFormat',
enum_list: 'EnumList',
begin_time: 'BeginTime',
fix_value: 'FixValue',
null_check: 'NullCheck',
custom_sql: 'Custom Sql',
single_table: 'Single Table',
single_table_custom_sql: 'Single Table Custom Sql',
multi_table_accuracy: 'Multi Table Accuracy',
multi_table_value_comparison: 'Multi Table Compare',
field_length_check: 'FieldLengthCheck',
uniqueness_check: 'UniquenessCheck',
regexp_check: 'RegexpCheck',
timeliness_check: 'TimelinessCheck',
enumeration_check: 'EnumerationCheck',
table_count_check: 'TableCountCheck',
All: 'All',
FixValue: 'FixValue',
DailyAvg: 'DailyAvg',
WeeklyAvg: 'WeeklyAvg',
MonthlyAvg: 'MonthlyAvg',
Last7DayAvg: 'Last7DayAvg',
Last30DayAvg: 'Last30DayAvg',
SrcTableTotalRows: 'SrcTableTotalRows',
TargetTableTotalRows: 'TargetTableTotalRows'
}
}
const crontab = {
second: 'second',
minute: 'minute',
hour: 'hour',
day: 'day',
month: 'month',
year: 'year',
monday: 'Monday',
tuesday: 'Tuesday',
wednesday: 'Wednesday',
thursday: 'Thursday',
friday: 'Friday',
saturday: 'Saturday',
sunday: 'Sunday',
every_second: 'Every second',
every: 'Every',
second_carried_out: 'second carried out',
second_start: 'Start',
specific_second: 'Specific second(multiple)',
specific_second_tip: 'Please enter a specific second',
cycle_from: 'Cycle from',
to: 'to',
every_minute: 'Every minute',
minute_carried_out: 'minute carried out',
minute_start: 'Start',
specific_minute: 'Specific minute(multiple)',
specific_minute_tip: 'Please enter a specific minute',
every_hour: 'Every hour',
hour_carried_out: 'hour carried out',
hour_start: 'Start',
specific_hour: 'Specific hour(multiple)',
specific_hour_tip: 'Please enter a specific hour',
every_day: 'Every day',
week_carried_out: 'week carried out',
start: 'Start',
day_carried_out: 'day carried out',
day_start: 'Start',
specific_week: 'Specific day of the week(multiple)',
specific_week_tip: 'Please enter a specific week',
specific_day: 'Specific days(multiple)',
specific_day_tip: 'Please enter a days',
last_day_of_month: 'On the last day of the month',
last_work_day_of_month: 'On the last working day of the month',
last_of_month: 'At the last of this month',
before_end_of_month: 'Before the end of this month',
recent_business_day_to_month:
'The most recent business day (Monday to Friday) to this month',
in_this_months: 'In this months',
every_month: 'Every month',
month_carried_out: 'month carried out',
month_start: 'Start',
specific_month: 'Specific months(multiple)',
specific_month_tip: 'Please enter a months',
every_year: 'Every year',
year_carried_out: 'year carried out',
year_start: 'Start',
specific_year: 'Specific year(multiple)',
specific_year_tip: 'Please enter a year',
one_hour: 'hour',
one_day: 'day'
}
export default {
login,
modal,
theme,
userDropdown,
menu,
home,
password,
profile,
monitor,
resource,
project,
security,
datasource,
data_quality,
crontab
}
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.