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

Fix message participant assignation bug #8857

Conversation

bosiraphael
Copy link
Contributor

Closes #8846

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 critical bug where removing an email from a person incorrectly linked all email participants to that person, by improving participant matching logic and query precision.

  • Replaced string comparisons with TypeORM's Equal operator in /packages/twenty-server/src/modules/match-participant/match-participant.service.ts for more precise handle matching
  • Removed unnecessary TypeOrmModule and FieldMetadataEntity dependencies from /packages/twenty-server/src/modules/match-participant/match-participant.module.ts
  • Added proper null handling for person and workspaceMember fields in unmatchParticipants method
  • Improved participant unlinking logic to only affect participants with matching handles

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

@charlesBochet charlesBochet merged commit 743169a into main Dec 3, 2024
17 of 19 checks passed
@charlesBochet charlesBochet deleted the 8846-bug-if-i-remove-the-email-of-a-person-all-the-email-participants-are-linked-to-that-person branch December 3, 2024 22:27
mdrazak2001 pushed a commit to mdrazak2001/twenty that referenced this pull request Dec 4, 2024
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.

[Bug] If I remove the email of a person, all the email participants are linked to that person
2 participants