-
Notifications
You must be signed in to change notification settings - Fork 1.2k
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
base: dev
Are you sure you want to change the base?
Conversation
…ition、TaskClient.createTaskDefinition 传入 taskGroupId 参数
@@ -75,16 +73,12 @@ public void addInterceptors(InterceptorRegistry registry) { | |||
registry.addInterceptor(localeChangeInterceptor()); | |||
// 注册Sa-Token的路由拦截器 | |||
registry.addInterceptor(new SaInterceptor(handler -> { | |||
SaRouter.match("/openapi/**", r -> { |
There was a problem hiding this comment.
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
There was a problem hiding this comment.
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
There was a problem hiding this 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
Purpose of the pull request
Refer to this issue: #3482 (comment)
Brief change log
dinky-admin
APIController adds two APIs and sa-token varification.