thx / rap2-delos

阿里妈妈前端团队出品的开源接口管理工具RAP第二代
http://rap2.taobao.org
MIT License
7.64k stars 1.35k forks source link

导出RAP Data,重新创建,导入Rap2数据失败 #821

Open sysail opened 3 years ago

sysail commented 3 years ago

BUG描述 导入失败,请检查文件格式,详细错误:导入失败: notNull Violation: Interface.name cannot be null, notNull Violation: Interface.url cannot be null, notNull Violation: Interface.method cannot be null.

复现步骤 导出RAP Data,之后删除Docker重新创建,导入Rap2数据失败。

环境

附加信息

yanmin7857 commented 3 years ago

同问

imfine911 commented 3 years ago

同问,期待答复

zhouyuan3 commented 2 years ago

一样的问题,很急等待答复

zhouyuan3 commented 2 years ago

很丑陋得解决了,把导出的interfaces里的数据改一下格式一个一个接口导入进去,实际导入的格式是 { "itf":{ "id": 578, "name": "1 分组", "url": "/biz", "method": "POST", "bodyOption": null, "description": "", "priority": 1, "status": 200, "creatorId": 100000015, "lockerId": null, "moduleId": 97, "repositoryId": 34, "createdAt": "2018-08-29T05:23:27.000Z", "updatedAt": "2020-09-15T10:21:18.000Z", "deletedAt": null, "locker": null }, "properties": [ { "id": 7594, "scope": "request", "type": "Object", "pos": 2, "name": "biz_grp", "rule": "", "value": "", "description": "", "parentId": -1, "priority": 2569, "interfaceId": 578, "creatorId": 100000012, "moduleId": 97, "repositoryId": 34, "required": false, "createdAt": "2018-08-29T05:23:27.000Z", "updatedAt": "2020-09-15T10:21:18.000Z", "deletedAt": null }

lujay commented 2 years ago

可以明示下么 , 没看懂 你改了什么 @zhouyuan3 哈哈

lujay commented 2 years ago

我直接用数据库导出导入 了, 这个没问题,不过 单个仓库的json导出导入还是没能解决

Wo-com commented 1 year ago

依次点击 :点击团队 >(进入任意一个团队,没有就创建一个)> 点击导入仓库 > 选中RAP2 Data >(把导出的仓库数据复制到[文档数据])> 点击提交