Repository navigation
Description
Feature Summary
Contributors are currently plain-text metadata. When a contributor's email matches a registered user, the two are not connected, and when the person registers later, their past attributions are not associated with their account.
This feature links contributor records to user accounts by normalized email address. Contributor metadata remains local to each dataset. For example, the same person may appear as John Doe in one dataset and Jonh Doe in another. These names, roles, and affiliations are not shared globally. However, both contributor records reference the same global user account through the shared email address.
This feature links contributors to user accounts by email. If a contributor's email does not match any existing user, a placeholder account is created automatically. When that person later registers with the same email, they claim the placeholder account, and their past dataset attributions are associated with it.
Proposed Solution or Design
User Experience
When adding a contributor, the user may provide:
Name: John Doe
Email: johndoe@example (optional)
- If an email is provided, the platform resolves it against existing user accounts.
- If a matching user exists, the contributor is linked to that account.
- If no matching user exists, the platform creates an inactive placeholder account and links the contributor to it.
- If no email is provided, the contributor is saved as dataset-local metadata only, with uid = NULL. No user account or placeholder account is created.
Storage
dataset_contributorgains a nullableuidFK (ON DELETE SET NULL)usergainsis_placeholder BOOLEAN NOT NULL DEFAULT FALSE;ck_nulltestis relaxed to allow credential-less placeholder rows
Linking (file-service): on saving contributors, an email is resolved against the user table (normalized: lower/trim).
- Match: bind
uid - no match: create a placeholder user (INACTIVE,
is_placeholder = true, comment notes the origin dataset) and bind it.
Claiming (auth)
- Password registration: if the email matches a row with
is_placeholder = true, set the password on that row and clear the flag instead of rejecting with "exists". Only credential-less placeholder rows are claimable; real accounts (including INACTIVE ones awaiting approval) are never claimable. - Google login: the existing claim-by-email branch additionally clears
is_placeholder. Google login already proves mailbox ownership.
Trust model: a claimed account stays INACTIVE, so login is still gated by the existing admin approval.
Placeholders are only created by users with dataset write access, and each has a traceable sponsor (the dataset owner), so admins can verify claims out-of-band.
Affected Area
Storage / Metadata
Activity
chenlica commentedon Aug 2, 2026
@xuang7: can you summarize our offline discussion ideally with visual diagrams?
github-actions commentedon Aug 3, 2026
👋 Thanks for opening this issue, @xuang7!
It looks like the issue description doesn't quite follow our template yet:
Filling out the template helps reviewers understand and triage your contribution faster. Please edit the description to complete it. This message will disappear automatically once the template is followed.
You can find the template prompts by editing the description, or see CONTRIBUTING.md for the full contribution flow.
xuang7 commentedon Aug 3, 2026
The issue description has been updated. In summary, the dataset owner can update contributor metadata for a specific dataset. The system uses the provided email as the unique identifier to match an existing user account. If no matching user exists, it creates an inactive placeholder account and links it to the contributor record.
The email field can also be optional. If no email is provided, the contributor remains plain-text, dataset-local metadata and is not linked to any user account.
Multiple contributor records from different datasets can therefore link to the same user account, even if the displayed name, role, or affiliation differs across datasets.
feat(dataset): link contributors to user accounts via placeholder acc…