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.

貢獻者指南