keystonejs/keystone-classic

Multiple relationship display confusing

Open

#2,319 opened on Feb 23, 2016

View on GitHub
 (5 comments) (0 reactions) (0 assignees)JavaScript (14,656 stars) (2,288 forks)batch import
UXhelp wanted

Description

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.

Contributor guide