8000 No duplicate detection to feed person merge · Issue #23 · iblai/crm · GitHub
[go: up one dir, main page]

Skip to content

No duplicate detection to feed person merge #23

Open

Description

@mamigot

What the CRM needs

Candidate duplicates — the same person entered twice with different casing, a typo in the name, or a second email — so someone can review and merge them.

What exists

POST /api/crm/persons/merge/ does the merge well (iblai-api-crm → references/workflows.md, including the link-vs-invite-vs-merge triage), but finding duplicates is left to the client. With no search (#4) and no email filter, that means downloading every person.

Where it bites today

components/crm/people/person-merge-dialog.tsx makes the user pick duplicates by hand from the loaded page. Imports (#9) will create duplicates at scale with no way to surface them.

Proposal

GET /api/crm/persons/duplicates/ returning groups matched on normalized primary_email / emails and fuzzy name within the same organization, plus a ?primary_email= exact filter so a create form can warn before saving.

Activity

  1. added
    api-gap
    on Sep 23, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    api-gap

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions

      0