Skip to content

fix(admin): set poc to owner email when creating organization - #2037

Open
rohilsurana wants to merge 1 commit into
mainfrom
fix/admin-create-org-poc
Open

rohilsurana wants to merge 1 commit into
mainfrom
fix/admin-create-org-poc

Conversation

@rohilsurana

Copy link
Copy Markdown
Member

Summary

The admin "Create organization" panel saved only country in the org metadata. So orgs created there had no poc (point of contact email).

This change saves the owner email as poc when the panel creates an org. The email is lowercased, so it matches the email stored on the owner's user record.

Effects

  • New orgs created from the admin panel get metadata.poc set to the owner email.
  • The "Creator" column in the admin org list reads metadata.poc. It will now show the owner email for these orgs, instead of an empty cell.
  • The edit form already keeps existing metadata, so poc stays after later edits.
  • The server needs no change. The default org metaschema allows extra keys.

Not in this PR

  • Orgs created from the panel before this change still have no poc. They need a one time backfill.

Testing

  • eslint and tsc show no new errors. The warnings and errors that remain were already there.
  • There are no UI tests for admin views, so this was not covered by a test.

@vercel

vercel Bot commented Nov 2, 2026 •

Copy link
Copy Markdown

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

Project Deployment Actions Updated
frontier Ready Ready Preview Nov 2, 2026 5:46am UTC

@coderabbitai

coderabbitai Bot commented Nov 2, 2026 •

Copy link
Copy Markdown
Contributor

Review in Change Stack →

No actionable comments were generated in the recent review.

Recent review info
Run configuration
Commits

Reviewing files that changed from the base of the PR and between 8190c1f and 9efae9d.

Files selected for processing: 1
  • web/sdk/admin/views/organizations/list/create.tsx

Included review availability: This review used your included allowance. Your plan provides up to 2 included reviews per hour; 1 remain after this review.

Summary

Summary by CodeRabbit

  • Bug Fixes
    • Organization creation now includes the owner’s email in lowercase as point-of-contact metadata.

Organization creation now sets metadata.poc to the owner email converted to lowercase.

Changes: Organization creation

Layer / File(s) Summary
Add owner email to creation payload
web/sdk/admin/views/organizations/list/create.tsx
The submission payload now includes metadata.poc, set to the lowercased owner email.

Estimated code review effort: 1 (Trivial) | ~3 minutes

Change: Bug fix

Possibly related PRs

Suggested reviewers: rohanchkrabrty

Merge Risk: Minimal · up to 9efae

The new owner-email metadata has no established merge-blocking issue. Merge after normal checks; older organizations still require the stated backfill.

Pre-merge checks: Passed 2
Check name Status Explanation
Linked Issues check Passed Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check Passed Check skipped because no linked issues were found for this pull request.
  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

Share

@coveralls

Copy link
Copy Markdown

Coverage Report for CI Build 41395913700

Coverage remained the same at 55.992%

Details

  • Coverage remained the same as the base build.
  • Patch coverage: No coverable lines changed in this PR.
  • No coverage regressions found.

Uncovered Changes

No uncovered changes found.

Coverage Regressions

No coverage regressions found.


Coverage Stats

Coverage Status
Relevant Lines: 42145
Covered Lines: 23598
Line Coverage: 55.99%
Coverage Strength: 19.68 hits per line

💛 - Coveralls

@rohilsurana
rohilsurana marked this pull request as ready for review November 2, 2026 08:56
@Shreyag02
Shreyag02 self-requested a review November 3, 2026 05:04

This branch was successfully deployed

1 active deployment
Preview — 9efae9d5 Deployed Nov 2, 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.

3 participants