Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Feature] [admin] 2 new APIs in openapi: 1. create catalogues ,task and send it to DolphinScheduer 2. save task content #3578

Draft
wants to merge 35 commits into
base: dev
Choose a base branch
from

Conversation

Yangxiaotian
Copy link
Contributor

Purpose of the pull request

Refer to this issue: #3482 (comment)

Brief change log

dinky-admin

APIController adds two APIs and sa-token varification.

  1. /createTaskAndSend2Ds
  2. /saveTask

yangxiaotian and others added 30 commits April 23, 2024 19:04
…ition、TaskClient.createTaskDefinition 传入 taskGroupId 参数
@Zzm0809 Zzm0809 added the New Feature New feature label Jun 7, 2024
@Zzm0809 Zzm0809 added this to the 1.1.0 milestone Jun 7, 2024
@Zzm0809 Zzm0809 linked an issue Jun 7, 2024 that may be closed by this pull request
3 tasks
@@ -75,16 +73,12 @@ public void addInterceptors(InterceptorRegistry registry) {
registry.addInterceptor(localeChangeInterceptor());
// 注册Sa-Token的路由拦截器
registry.addInterceptor(new SaInterceptor(handler -> {
SaRouter.match("/openapi/**", r -> {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Don't do this, openapi can't add authentication at the moment, it will cause Dolphinscheduler to be unable to schedule tasks

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yes, I realized this, and the last code was only applying 2 new apis

Copy link
Contributor

@gaoyan1998 gaoyan1998 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why do you combine create catalog, create job, publish job, push ds function in one interface, this is not reasonable, they do not belong to the same function, should be separate interface

@Zzm0809 Zzm0809 marked this pull request as draft June 13, 2024 02:33
@aiwenmo aiwenmo modified the milestones: 1.1.0, 1.3.0 Nov 24, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
New Feature New feature
Projects
Status: Doing
Development

Successfully merging this pull request may close these issues.

[Feature][admin] an openapi support catalogues and task creating
4 participants