keystonejs/keystone-classic

Multiple relationship display confusing

Open

#2319 aperta il 23 feb 2016

Vedi su GitHub
 (5 commenti) (0 reazioni) (0 assegnatari)JavaScript (2288 fork)batch import
UXhelp wanted

Metriche repository

Star
 (14.656 star)
Metriche merge PR
 (Nessuna PR mergiata in 30 g)

Descrizione

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.

Guida contributor