Skip to content

Reverting broken filter from #12352

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 3 commits into from
May 28, 2025
Merged

Conversation

prastoin
Copy link
Contributor

@prastoin prastoin commented May 28, 2025

Introdution

Reverting introduced bug by #12082

We need to address the bug that was "fixed" by this in order to refresh the recordFilters state, will have a look with @lucasbordeau 🙏

@prastoin prastoin requested a review from lucasbordeau May 28, 2025 12:04
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 reverts changes that introduced bugs in filter functionality, focusing on proper filter initialization and state management.

  • Added hasInitializedCurrentRecordFiltersComponentFamilyState.ts to track per-view filter initialization using RecordFiltersComponentInstanceContext
  • Modified ViewBarRecordFilterEffect.tsx to use useRecoilComponentFamilyStateV2 instead of useRecoilComponentStateV2 for better state management
  • Removed isDeeplyEqual check in filter updates to prevent unnecessary re-renders
  • Added similar initialization tracking for filter groups and sorts in ViewBarRecordFilterGroupEffect and ViewBarRecordSortEffect
  • Improved view bar details component to handle filter state changes more efficiently

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

Copy link
Contributor

@lucasbordeau lucasbordeau left a comment

Choose a reason for hiding this comment

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

LGTM

@prastoin prastoin enabled auto-merge (squash) May 28, 2025 12:13
@prastoin prastoin merged commit 689e4cc into main May 28, 2025
52 checks passed
@prastoin prastoin deleted the prastoin-revert-record-filter-refactor branch May 28, 2025 12:20
jordan-chalupka pushed a commit to InsurOS/twenty that referenced this pull request May 28, 2025
# Introdution
Reverting introduced bug by
twentyhq#12082

We need to address the bug that was "fixed" by this in order to refresh
the recordFilters state, will have a look with @lucasbordeau 🙏
abdulrahmancodes pushed a commit to abdulrahmancodes/twenty that referenced this pull request Jun 2, 2025
# Introdution
Reverting introduced bug by
twentyhq#12082

We need to address the bug that was "fixed" by this in order to refresh
the recordFilters state, will have a look with @lucasbordeau 🙏
abdulrahmancodes pushed a commit to abdulrahmancodes/twenty that referenced this pull request Jun 2, 2025
# Introdution
Reverting introduced bug by
twentyhq#12082

We need to address the bug that was "fixed" by this in order to refresh
the recordFilters state, will have a look with @lucasbordeau 🙏
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.

2 participants