Skip to content

fix: keep stored person data when merging a matched record - #39

Merged
VolodymyrLinuxovich merged 3 commits into
mainfrom
fix/person-merge-keeps-data
Oct 31, 2026
Merged

VolodymyrLinuxovich merged 3 commits into
mainfrom
fix/person-merge-keeps-data

Conversation

@VolodymyrLinuxovich

Copy link
Copy Markdown
Owner

Fixes #38

Summary

persistProviderPerson now merges a matched record instead of overwriting it. Empty incoming values keep the stored ones. Lists are combined without duplicates. The stored provider and provider person id stay when no new id arrives. The search text is rebuilt from the merged record. New people are still created from the full record.

Validation

  • New tests in person-merge.test.ts. Both fail on main.
  • npm test passes with 176 tests.
  • npm run typecheck and npm run lint pass.

@vercel

vercel Bot commented Oct 7, 2026 •

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated
largevcmodel Ready Ready Preview Nov 1, 2026 12:01am UTC

@VolodymyrLinuxovich
VolodymyrLinuxovich merged commit 741eefc into main Oct 31, 2026
5 of 6 checks passed

This branch was successfully deployed

1 active deployment
Preview — 724f2129 Deployed Nov 1, 2026 by vercel[bot]
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.

Merging a known person erases their stored emails and bio

1 participant