You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
As a Developer I want the ability to control what Link Type are accepted on a given Link Field so that I can prevent user from selecting nonsensical link type.
Acceptance criteria
Individual LinkField have a configuration option to exclude/include specific link type.
Link type are auto detected from the child class of Link.
"Link Registry" concept is removed.
Note
A good approch to implementing this is that possible link types are passed as props on the React component rather than an GraphQL query. AnyFiled has a good example of this implementation.
The current implementation passes link type via a GraphQL query that can not be customised for individual links.
I think removing registry through this card makes a lot of sense because managing possible link type is intertwined with controlling what type of links can be created via a specific field.
AnyField does the "Possible link types are passed as props on the React component" pretty well I think. So we should look there for inspiration.
I'm not sure about those two ACs.
(LinkField that point to a relation with a specific Link Type only accept this Type)
That's very intuitive for the developer, but getting AnyField to autodetech relationship type was a massive pain on the back side.
(Allow specific link type to be turn off by default)
The idea here is that maybe you have a very esoteric LinkType that most LinkField shouldn't accept.
Story
As a Developer I want the ability to control what Link Type are accepted on a given Link Field so that I can prevent user from selecting nonsensical link type.
Acceptance criteria
Note
Things that were considered and rejected
Pull requests
The text was updated successfully, but these errors were encountered: