-
Notifications
You must be signed in to change notification settings - Fork 2.6k
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
New variable relation filter syntax + upgrade command #9765
base: main
Are you sure you want to change the base?
Conversation
}); | ||
} | ||
|
||
await this.workspaceMigrationRunnerService.executeMigrationFromPendingMigrations( |
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 will never break in prod @charlesBochet?
|
||
const { selectedRecordIds, isCurrentWorkspaceMemberSelected } = | ||
jsonRelationFilterValueResult.data; | ||
|
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.
I'm wondering if we should also convert dates to {{}}. We don't need it because it requires a special operand but maybe it would have been best for consistency. In any case it'd be best in a separate PRs even if it's to edit the same command.
cc @charlesBochet to decide. I'm ok to not doing dates, I think we can always do it later.
const parsedFilterValue = relationFilterValueSchema.parse( | ||
viewFilterUsedInDropdown?.value, | ||
); | ||
|
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.
I was initially hoping we could do something a bit more elegant that replaces {{ }} at a higher level for all filter types, but it's maybe more pragmatic to go for that! Fine with me. cc @charlesBochet again
An example of the new syntax for relation filter values:
["5f72796c-727f-47eb-aab0-e8c61d1fc052", "de65f27f-685f-4388-bc38-8396c19f88af", "{{CURRENT_WORKSPACE_MEMBER}}"]