Skip to content

Commit

Permalink
[Feature]: 新建主子表字段时,最大主子表层级深度从3改为6 #6867
Browse files Browse the repository at this point in the history
  • Loading branch information
yinlianghui committed May 21, 2024
1 parent 9045e48 commit 417aef7
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion packages/objectql/src/types/object.ts
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ const METADATA_CACHER_SERVICE_NAME = 'metadata-cachers-service'
// 其3层指的是A-B-C-D,它们都有父子关系,A作为最顶层,该对象上不可以再创建主表子表关系字段,但是B、C、D上可以;
// 或者如果当前对象上创建的主表子表关系字段指向的对象是D,那么也会超过3层的层级限制;
// 又或者中间加一层M先连接B再连接C,形成A-B-M-C-D,也会超过3层的层级限制;
export const MAX_MASTER_DETAIL_LEAVE = 3;
export const MAX_MASTER_DETAIL_LEAVE = 6;

/**
* 判断传入的paths中每条path下是否有重复对象名称,返回第一个重复的对象名称
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import _ = require('lodash')
// 其3层指的是A-B-C-D,它们都有父子关系,A作为最顶层,该对象上不可以再创建主表子表关系字段,但是B、C、D上可以;
// 或者如果当前对象上创建的主表子表关系字段指向的对象是D,那么也会超过3层的层级限制;
// 又或者中间加一层M先连接B再连接C,形成A-B-M-C-D,也会超过3层的层级限制;
export const MAX_MASTER_DETAIL_LEAVE = 3;
export const MAX_MASTER_DETAIL_LEAVE = 6;

/**
* 判断传入的paths中最大层级深度
Expand Down

0 comments on commit 417aef7

Please sign in to comment.