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

New variable relation filter syntax + upgrade command #9765

Open
wants to merge 5 commits into
base: main
Choose a base branch
from

Conversation

eliasylonen
Copy link
Contributor

@eliasylonen eliasylonen commented Jan 21, 2025

An example of the new syntax for relation filter values:

["5f72796c-727f-47eb-aab0-e8c61d1fc052", "de65f27f-685f-4388-bc38-8396c19f88af", "{{CURRENT_WORKSPACE_MEMBER}}"]

});
}

await this.workspaceMigrationRunnerService.executeMigrationFromPendingMigrations(
Copy link
Member

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;

Copy link
Member

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,
);

Copy link
Member

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants