Repository navigation
feat: allow Mongo data export and export_file_type - #681
Merged
Merged
Conversation
PR Reviewer Guide 🔍(Review updated until commit 76886f1)
|
PR Code Suggestions ✨No code suggestions found for the PR. |
Whitelist MongoDB for data export; accept export_file_type with CSV default.
sjjian
force-pushed
the
dms-feat-1004
branch
from
November 23, 2026 03:12
7990db5 to
76886f1
Compare
|
Persistent review updated to latest commit 76886f1 |
staroffish
self-requested a review
November 23, 2026 05:32
staroffish
approved these changes
Nov 23, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
User description
关联的 issue
https://github.com/actiontech/dms-ee/issues/1004
描述你的变更
supportedDataExportDBTypes放开 MongoDBexport_file_type(CSV/JSON,缺省 CSV)确认项(pr提交后操作)
Tip
请在指定复审人之前,确认并完成以下事项,完成后✅
not_compatibleneed_update_docMade with Cursor
Description
增加导出文件类型参数(CSV/JSON),默认 CSV
支持 MongoDB 数据导出
添加参数标准化及错误校验逻辑
更新 API 文档(Swagger JSON/YAML)
Diagram Walkthrough
File Walkthrough
data_export_task.go
数据导出任务结构体新增导出文件类型字段api/dms/service/v1/data_export_task.go
const.go
支持数据导出类型中新增 MongoDBinternal/dms/pkg/constant/const.go
data_export_workflow.go
新增导出文件类型标准化及错误处理逻辑internal/dms/service/data_export_workflow.go
const_test.go
测试用例调整,新增 MongoDB 验证internal/dms/pkg/constant/const_test.go
swagger.json
更新 swagger json 增加导出文件类型字段api/swagger.json
swagger.yaml
更新 swagger yaml 增加导出文件类型字段api/swagger.yaml