Repository navigation
feat(dataset): link contributors to user accounts via placeholder accounts - #7280
Merged
Merged
Conversation
…ounts Co-Authored-By: Claude Fable 5 <[email protected]>
Contributor
Automated Reviewer SuggestionsBased on the
|
Codecov Report❌ Patch coverage is Additional details and impacted files@@ Coverage Diff @@
## main #7280 +/- ##
============================================
- Coverage 83.03% 82.90% -0.13%
- Complexity 4107 4116 +9
============================================
Files 1165 1163 -2
Lines 46405 46327 -78
Branches 5171 5166 -5
============================================
- Hits 38531 38408 -123
- Misses 6171 6220 +49
+ Partials 1703 1699 -4
*This pull request uses carry forward flags. Click here to find out more. ☔ View full report in Codecov by Harness. 🚀 New features to boost your workflow:
|
Contributor
|
| config | throughput | MB/s | latency | max Δ latest / 7d | |
|---|---|---|---|---|---|
| 🔴 | bs=10 sw=10 sl=64 | 352 | 0.215 | 27,452/37,237/37,237 us | 🔴 +21.5% / 🔴 +142.8% |
| 🔴 | bs=100 sw=10 sl=64 | 761 | 0.465 | 131,135/155,312/155,312 us | 🔴 +15.1% / 🔴 +47.5% |
| ⚪ | bs=1000 sw=10 sl=64 | 898 | 0.548 | 1,110,757/1,209,020/1,209,020 us | ⚪ within ±5% / 🔴 +20.6% |
Baseline details
Latest main 7f6402d from same runner
| config | metric | PR | latest main | 7d avg | Δ latest | Δ 7d |
|---|---|---|---|---|---|---|
| bs=10 sw=10 sl=64 | throughput | 352 tuples/sec | 441 tuples/sec | 791.9 tuples/sec | -20.2% | -55.5% |
| bs=10 sw=10 sl=64 | MB/s | 0.215 MB/s | 0.269 MB/s | 0.483 MB/s | -20.1% | -55.5% |
| bs=10 sw=10 sl=64 | p50 | 27,452 us | 22,589 us | 12,391 us | +21.5% | +121.5% |
| bs=10 sw=10 sl=64 | p95 | 37,237 us | 34,537 us | 15,336 us | +7.8% | +142.8% |
| bs=10 sw=10 sl=64 | p99 | 37,237 us | 34,537 us | 18,924 us | +7.8% | +96.8% |
| bs=100 sw=10 sl=64 | throughput | 761 tuples/sec | 819 tuples/sec | 1,018 tuples/sec | -7.1% | -25.3% |
| bs=100 sw=10 sl=64 | MB/s | 0.465 MB/s | 0.5 MB/s | 0.622 MB/s | -7.0% | -25.2% |
| bs=100 sw=10 sl=64 | p50 | 131,135 us | 121,340 us | 98,925 us | +8.1% | +32.6% |
| bs=100 sw=10 sl=64 | p95 | 155,312 us | 134,910 us | 105,265 us | +15.1% | +47.5% |
| bs=100 sw=10 sl=64 | p99 | 155,312 us | 134,910 us | 112,729 us | +15.1% | +37.8% |
| bs=1000 sw=10 sl=64 | throughput | 898 tuples/sec | 925 tuples/sec | 1,051 tuples/sec | -2.9% | -14.6% |
| bs=1000 sw=10 sl=64 | MB/s | 0.548 MB/s | 0.564 MB/s | 0.641 MB/s | -2.8% | -14.6% |
| bs=1000 sw=10 sl=64 | p50 | 1,110,757 us | 1,075,433 us | 964,104 us | +3.3% | +15.2% |
| bs=1000 sw=10 sl=64 | p95 | 1,209,020 us | 1,152,145 us | 1,002,343 us | +4.9% | +20.6% |
| bs=1000 sw=10 sl=64 | p99 | 1,209,020 us | 1,152,145 us | 1,030,483 us | +4.9% | +17.3% |
Raw CSV
config_idx,batch_size,schema_width,string_len,num_batches,total_ms,total_tuples,total_bytes,tuples_per_sec,mb_per_sec,lat_p50_us,lat_p95_us,lat_p99_us
0,10,10,64,20,568.32,200,128000,352,0.215,27451.59,37237.29,37237.29
1,100,10,64,20,2626.58,2000,1280000,761,0.465,131135.35,155312.34,155312.34
2,1000,10,64,20,22272.69,20000,12800000,898,0.548,1110756.74,1209020.07,1209020.07…access resources Co-Authored-By: Claude Fable 5 <[email protected]>
Co-Authored-By: Claude Fable 5 <[email protected]>
Co-Authored-By: Claude Fable 5 <[email protected]>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What changes were proposed in this PR?
This PR links dataset contributors to user accounts by email, so a contributor can later own their contributions with a real account. Follow-up to #6952 (backend) and #6953 (frontend).
Changes:
uid, so existing contributor links keep working. It still needs admin approval before it can log in and do anything, and an account that already has a password or Google login can never be taken over.Design notes:
EmailUtilin the two older email checks, are left as follow-ups.Demo
First, the dataset owner adds a contributor whose email is not associated with an existing user account.
A placeholder user account is then created and displayed on the admin user page.
The contributor can claim the placeholder account by registering with the same email address through local or Google sign-in.
After the account is claimed, the updated account information is shown on the admin user page.

Any related issues, documentation, discussions?
Closes #6976
Related to #6926
How was this PR tested?
17 new ScalaTest cases covering linking (existing user, placeholder creation and reuse, no-email, invalid/duplicate email), claiming (uid preserved, INACTIVE kept, login after claim, credentialed accounts not claimable, taken username rejected, case-variant duplicate registration rejected), the placeholder grant guard in each of the four access resources, and the shared EmailUtil. The pre-existing AuthResource and access-resource tests still pass. Fresh-DDL and migrated schemas verified identical via pg_dump diff.
Was this PR authored or co-authored using generative AI tooling?
Generated-by: Claude Code (Claude Fable 5)