-
Notifications
You must be signed in to change notification settings - Fork 288
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
openapi(dm): add task config template releated openapi #3656
openapi(dm): add task config template releated openapi #3656
Conversation
[REVIEW NOTIFICATION] This pull request has been approved by:
To complete the pull request process, please ask the reviewers in the list to review by filling The full list of commands accepted by this bot can be found here. Reviewer can indicate their review by submitting an approval review. |
/hold need add new batch import api after meeting with PM😅 |
dm/dm/master/openapi.go
Outdated
@@ -822,6 +823,123 @@ func (s *Server) DMAPIOperateTableStructure(c *gin.Context, taskName string, sou | |||
} | |||
} | |||
|
|||
// DMAPIBatchImportTaskConfig create task_config_template url is: (POST /api/v1/task_configs/batch_import). | |||
func (s *Server) DMAPIBatchImportTaskConfig(c *gin.Context) { |
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.
this api is for this feature
dm/openapi/spec/dm.yaml
Outdated
schema: | ||
$ref: "#/components/schemas/ErrorWithMessage" | ||
|
||
/api/v1/task_configs: |
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.
maybe use this path pattern ? 🤔
- list/create
api/vi/tasks/configs
? - batch_import
api/vi/tasks/configs/batch_import
- delete/get/update
api/vi/tasks/{task-name}/configs
need suggestion from other reviewers
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.
My point:
list/create api/vi/tasks/configs?
batch_import api/vi/tasks/configs/import
delete/get/update api/vi/tasks/configs/{task-name}
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.
addressed in f585588
ptal
/unhold could you please take another look for this pr ? thanks 🧡🧡🧡 /cc @glorv @okJiang @lance6716 |
please check this api spec of task config if the api is sufficient for webui /cc @zoubingwu |
@Ehco1996: GitHub didn't allow me to request PR reviews from the following users: zoubingwu. Note that only pingcap members and repo collaborators can review this PR, and authors cannot review their own PRs. In response to this:
Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository. |
Codecov Report
Flags with carried forward coverage won't be shown. Click here to find out more. @@ Coverage Diff @@
## master #3656 +/- ##
================================================
- Coverage 57.0741% 54.8943% -2.1799%
================================================
Files 478 484 +6
Lines 56551 59671 +3120
================================================
+ Hits 32276 32756 +480
- Misses 20978 23596 +2618
- Partials 3297 3319 +22 |
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.
rest lgtm
could you please take another look for this pr ? thanks 🧡🧡🧡 |
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.
Rest LGTM
dm/openapi/spec/dm.yaml
Outdated
schema: | ||
$ref: "#/components/schemas/ErrorWithMessage" | ||
|
||
/api/v1/task_configs: |
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.
My point:
list/create api/vi/tasks/configs?
batch_import api/vi/tasks/configs/import
delete/get/update api/vi/tasks/configs/{task-name}
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.
LGTM
/merge |
This pull request has been accepted and is ready to merge. Commit hash: 6634f5f
|
/run-integration-test |
/run-integration-test |
/run-kafka-integration-test |
/run-integration-test |
/run-kafka-integration-test |
/run-kafka-integration-test /tidb=pr/30773 |
What problem does this PR solve?
subtask of https://github.com/pingcap/ticdc/issues/3583
What is changed and how it works?
as title, need https://github.com/pingcap/ticdc/pull/3620 merged first
Check List
Tests
Code changes
Side effects
Related changes
Release note