Skip to content
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

Merged
merged 6 commits into from
Sep 29, 2023

Conversation

ndowmon
Copy link
Contributor

@ndowmon ndowmon commented May 11, 2023

For safety, we should nudge developers to always supply targetFilterKeys: string[][].

@ndowmon ndowmon requested a review from a team May 11, 2023 17:05
@@ -32,7 +32,7 @@ type RelationshipPropertyValue =
| null
| RelationshipMapping;

export type TargetFilterKey = string | string[];
export type TargetFilterKey = string[];
Copy link
Contributor Author

@ndowmon ndowmon May 11, 2023

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.

Copy link
Contributor Author

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>']]

Copy link
Contributor

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>']

@zemberdotnet zemberdotnet requested a review from a team as a code owner September 28, 2023 17:38
@zemberdotnet zemberdotnet merged commit 13ff45a into main Sep 29, 2023
@zemberdotnet zemberdotnet deleted the disallow-string-target-filter-keys branch September 29, 2023 14:56
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants