-
Notifications
You must be signed in to change notification settings - Fork 16
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Disallow string option from TargetFilterKey #904
Conversation
@@ -32,7 +32,7 @@ type RelationshipPropertyValue = | |||
| null | |||
| RelationshipMapping; | |||
|
|||
export type TargetFilterKey = string | string[]; | |||
export type TargetFilterKey = string[]; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is technically a major type change, but not a major functionality change, so I would prefer to release a minor version here rather than a major version.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@softwarewright can you confirm that the following two configurations are equivalent?
targetFilterKeys: ['<ROOT>']
targetFilterKeys: [['<ROOT>']]
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@ndowmon [['<ROOT_ENTITY>']]
is not equivalent to ['<ROOT>']
For safety, we should nudge developers to always supply
targetFilterKeys: string[][]
.