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(event/sync_communication): add distinct while querying communication links #23322

Merged
merged 1 commit into from
Nov 21, 2023

Conversation

akhilnarang
Copy link
Member

There's cases where these are duplicated - have noticed it happening in power of 2.
The duplication needs to be investigated separately - it seems like deduplication is only being called for Email communication
https://github.com/frappe/frappe/blob/develop/frappe/core/doctype/communication/communication.py#L167-L170

Internal Reference: 5969

…ation links

There's cases where these are duplicated

Signed-off-by: Akhil Narang <me@akhilnarang.dev>
@akhilnarang akhilnarang requested review from a team, shariquerik and ankush and removed request for a team November 21, 2023 07:42
@github-actions github-actions bot added the add-test-cases Add test case to validate fix or enhancement label Nov 21, 2023
@akhilnarang akhilnarang added backport version-14-hotfix backport to version 14 backport version-15-hotfix Backport the PR to v15 and removed add-test-cases Add test case to validate fix or enhancement labels Nov 21, 2023
Copy link

codecov bot commented Nov 21, 2023

Codecov Report

Merging #23322 (da1fb2f) into develop (90cf6bb) will increase coverage by 0.00%.
Report is 1 commits behind head on develop.
The diff coverage is 50.00%.

Additional details and impacted files
@@           Coverage Diff            @@
##           develop   #23322   +/-   ##
========================================
  Coverage    62.27%   62.27%           
========================================
  Files          771      771           
  Lines        73822    73821    -1     
  Branches      6342     6342           
========================================
+ Hits         45974    45975    +1     
+ Misses       24239    24237    -2     
  Partials      3609     3609           
Flag Coverage Δ
server 70.73% <50.00%> (-0.02%) ⬇️

Flags with carried forward coverage won't be shown. Click here to find out more.

@ankush ankush merged commit 878314c into frappe:develop Nov 21, 2023
24 of 25 checks passed
@akhilnarang akhilnarang deleted the communication-link-distinct-name branch November 21, 2023 10:15
ankush added a commit that referenced this pull request Nov 21, 2023
…-23322

fix(event/sync_communication): add `distinct` while querying communication links (backport #23322)
ankush added a commit that referenced this pull request Nov 21, 2023
…-23322

fix(event/sync_communication): add `distinct` while querying communication links (backport #23322)
@github-actions github-actions bot locked as resolved and limited conversation to collaborators Dec 6, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
backport version-14-hotfix backport to version 14 backport version-15-hotfix Backport the PR to v15
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants