Skip to content

[PM-34427] Fix Users can edit and save sends with the hide email address option enabled#7511

Merged
harr1424 merged 2 commits intorcfrom
cherry-pick-pm-34427
Apr 20, 2026
Merged

[PM-34427] Fix Users can edit and save sends with the hide email address option enabled#7511
harr1424 merged 2 commits intorcfrom
cherry-pick-pm-34427

Conversation

@harr1424
Copy link
Copy Markdown
Contributor

(cherry picked from commit 7c20581)

🎟️ Tracking

https://bitwarden.atlassian.net/browse/PM-34427

📔 Objective

Existing Policy Sync logic (SendControls, SendOptions, and DisableSend sync events) was pre-assigning a valid GUID to new Policy entities before calling UpsertAsync, which routed to Policy_Update and silently affected 0 rows instead of inserting.

The Id is now left as default(Guid) so UpsertAsync correctly routes to CreateAsync on first sync. Only first-time syncs were affected (when no legacy/target row existed yet), which is why this behavior appeared intermittent.

(cherry picked from commit 7c20581)
@harr1424 harr1424 requested a review from a team as a code owner April 20, 2026 18:49
@harr1424 harr1424 requested a review from jrmccannon April 20, 2026 18:49
@harr1424 harr1424 changed the base branch from main to rc April 20, 2026 18:49
@harr1424 harr1424 changed the title fix sync bug (#7509) [PM-34427] Fix Users can edit and save sends with the hide email address option enabled Apr 20, 2026
@github-actions
Copy link
Copy Markdown
Contributor

github-actions Bot commented Apr 20, 2026

Logo
Checkmarx One – Scan Summary & Detailsfc857e93-6865-4e1e-8aed-436fbc63bd48

Great job! No new security vulnerabilities introduced in this pull request

@codecov
Copy link
Copy Markdown

codecov Bot commented Apr 20, 2026

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 59.11%. Comparing base (a2efc74) to head (1525936).
⚠️ Report is 99 commits behind head on rc.

Additional details and impacted files
@@            Coverage Diff             @@
##               rc    #7511      +/-   ##
==========================================
+ Coverage   58.51%   59.11%   +0.59%     
==========================================
  Files        2060     2078      +18     
  Lines       91410    91529     +119     
  Branches     8144     8141       -3     
==========================================
+ Hits        53492    54105     +613     
+ Misses      36015    35496     -519     
- Partials     1903     1928      +25     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
(cherry picked from commit 327290c)
@sonarqubecloud
Copy link
Copy Markdown

@harr1424 harr1424 merged commit 3371bb6 into rc Apr 20, 2026
43 of 44 checks passed
@harr1424 harr1424 deleted the cherry-pick-pm-34427 branch April 20, 2026 23:40
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