You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
geminiyu233
changed the title
labelCategories及connectionCategories的id为什么设计是从0开始连续自增的呢?
V2.0中labelCategories及connectionCategories的id为什么设计是从0开始连续自增的呢?
Sep 25, 2019
在使用升级的V2.0后,我的data格式如下:
labelCategories及connectionCategories从数据库取出来的的id是乱序,并非是从0开始连续自增的,这样就会导致对label新增的时候,新增的label名称并非选中的label名,connections也是同样的。
对此我有两点问题:
1、不是很明白作者为什么要设计labelCategories及connectionCategories的id是从0开始连续自增的?
2、这样对版本迁移非常不友好呢,像我司开始用您的V1.0版本是允许labelCategories及connectionCategories的id随意的,升级V2.0版本后,若要按此规则的话,之前用V1.0版本标注的数据都不能用了呢,请问有什么解决办法吗?(目前我的办法是将后端传过来的数据labelCategories及connectionCategories的id处理成从0开始连续自增,在标注结束后,提交保存前,再对应还原数据库的labelCategories及connectionCategories的id)
The text was updated successfully, but these errors were encountered: