Skip to content

feat(partners): drop partner contact email after invitation workflow#134

Merged
albanm merged 3 commits into
masterfrom
fix-partners-emails
Jun 26, 2026
Merged

feat(partners): drop partner contact email after invitation workflow#134
albanm merged 3 commits into
masterfrom
fix-partners-emails

Conversation

@albanm

@albanm albanm commented Jun 26, 2026

Copy link
Copy Markdown
Member

Stop persisting the partner contactEmail once it is no longer needed.

What changed:

  • Remove contactEmail when a partner invitation is accepted (validatePartner).
  • Don't store contactEmail for superadmin-created established partnerships (_create); drop it from that endpoint's request schema and the superadmin UI.
  • Make contactEmail optional in the Partner schema (pending invitations still carry it).
  • Add upgrade/8.20.1/remove-established-partner-emails.ts to strip it from existing established partnerships.

Why: the email is only used during the invitation workflow; keeping it afterward is unnecessary personal information that goes stale over time.

Heads-up: the migration permanently removes the field from established partners (idempotent); /partners/_create now rejects a contactEmail body field (superadmin-only, sole caller updated).

albanm and others added 3 commits June 26, 2026 12:11
The partner contactEmail is only needed during the invitation workflow.
Remove it once a partnership is established (on accept and in the
superadmin _create path), make it optional in the schema, and add a
migration that strips it from existing established partnerships.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
@albanm albanm merged commit 913cdae into master Jun 26, 2026
3 checks passed
@albanm albanm deleted the fix-partners-emails branch June 26, 2026 12:15
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant