Skip to content

Fix aggregate operation update on dates on kanban views #12115

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

Merged
merged 1 commit into from
May 19, 2025
Merged

Conversation

ijreilly
Copy link
Collaborator

Copy link
Contributor

@greptile-apps greptile-apps bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

PR Summary

This PR fixes a type mismatch in aggregate operation handling for kanban views, particularly focusing on date operations like 'earliest/latest'.

  • Fixed state management in packages/twenty-front/src/modules/views/hooks/useUpdateViewAggregate.ts to store original operation in recordIndexKanbanAggregateOperationState while using converted operation for view updates
  • Added test coverage in packages/twenty-front/src/modules/views/hooks/__tests__/useUpdateViewAggregate.test.tsx to verify correct conversion of DATE_AGGREGATE_OPERATIONS.earliest to AGGREGATE_OPERATIONS.min

2 file(s) reviewed, 1 comment(s)
Edit PR Review Bot Settings | Greptile

Copy link
Contributor

🚀 Preview Environment Ready!

Your preview environment is available at: http://bore.pub:29972

This environment will automatically shut down when the PR is closed or after 5 hours.

@ijreilly ijreilly merged commit a875311 into main May 19, 2025
54 checks passed
@ijreilly ijreilly deleted the fix-aggregate branch May 19, 2025 12:19
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.

Cannot query operation MIN on field createdAt
2 participants