keystonejs/keystone-classic

Multiple relationship display confusing

Open

#2,319 创建于 2016年2月23日

在 GitHub 查看
 (5 评论) (0 反应) (0 负责人)JavaScript (2,288 fork)batch import
UXhelp wanted

仓库指标

Star
 (14,656 star)
PR 合并指标
 (30 天内没有已合并 PR)

描述

If I have a list that defines multiple relationships as follows:

MyList.relationship({ ref: 'RefList', path: 'listPath1', refPath: 'refPath1' });
MyList.relationship({ ref: 'RefList', path: 'listPath2', refPath: 'refPath2' });
MyList.relationship({ ref: 'RefList', path: 'listPath3', refPath: 'refPath3' });

then the Admin UI shows it like this:

Relationships

Ref List

No related Ref List

Ref List

No related Ref List

Ref List

Name        Foo       Bar
refPath1    foo1      bar1

No where is the path defined in the relationship definition used to distinguish the relationship listing, instead the referenced relationship name (ref) is used, which makes looking at the display confusing since it's hard to tell which is which.

贡献者指南