-
Notifications
You must be signed in to change notification settings - Fork 2.5k
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
Fix viewFilter operand for dateTime fields #7306
Fix viewFilter operand for dateTime fields #7306
Conversation
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.
PR Summary
This pull request introduces a new command to fix view filter operands for date-time fields, updating 'lessThan' to 'before' and 'moreThan' to 'after' across all active workspaces.
- Added
FixViewFilterOperandForDateTimeCommand
inpackages/twenty-server/src/database/commands/upgrade-version/0-30/0-30-fix-view-filter-operand-for-date-time.command.ts
- Included
FixViewFilterOperandForDateTimeCommand
inUpgradeTo0_30Command
constructor but not executed inexecuteActiveWorkspacesCommand
- Added
FixViewFilterOperandForDateTimeCommand
toUpgradeTo0_30CommandModule
providers - Consider executing
fixViewFilterOperandForDateTimeCommand
inexecuteActiveWorkspacesCommand
to apply the fix during upgrades
3 file(s) reviewed, 2 comment(s)
Edit PR Review Bot Settings
const dataSourceMetadata = | ||
await this.dataSourceService.getLastDataSourceMetadataFromWorkspaceId( | ||
workspaceId, | ||
); |
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.
style: dataSourceMetadata is fetched but not used. Consider removing if unnecessary.
@@ -28,6 +29,7 @@ export class UpgradeTo0_30Command extends ActiveWorkspacesCommandRunner { | |||
private readonly setStaleMessageSyncBackToPendingCommand: SetStaleMessageSyncBackToPendingCommand, | |||
private readonly fixEmailFieldsToEmailsCommand: FixEmailFieldsToEmailsCommand, | |||
private readonly migratePhoneFieldsToPhones: MigratePhoneFieldsToPhonesCommand, | |||
private readonly fixViewFilterOperandForDateTimeCommand: FixViewFilterOperandForDateTimeCommand, |
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.
logic: New command injected but not used in executeActiveWorkspacesCommand
No description provided.