Repository navigation
feat(backend): add realistic, deterministic seed data generation - #1847
Merged
Akanimoh12 merged 2 commits intoNov 27, 2026
Merged
Akanimoh12 merged 2 commits into
Akanimoh12 merged 2 commits into
Conversation
Replace the 3-user placeholder seed with a dependency-free generator matched to the test-implement-drips schema: - Configurable volume via SEED_SCALE (small|medium|large|xl) and SEED_USERS - Realistic data: varied credit-score signals, skewed tip distribution, streaks, and every goal/subscription/webhook/tip lifecycle state - Guaranteed edge cases: zero-tip creator, maximum-length fields, expired goals/subscriptions/tokens/challenges, REFUNDED tips, anti-gaming self/wash tips - Fully deterministic (seeded PRNG + fixed time anchor); same SEED yields byte-identical rows for reproducible bug reports - SEED_DRY_RUN mode verifies referential integrity with no database - Documented in backend/README.md Closes Akanimoh12#1381
…rets Replace high-entropy, secret-shaped seed values (hashedKey, hashedToken, webhook secret, auth nonce) with deterministic 'seed-fake-*' placeholders so the secrets scanner (gitleaks) does not flag generated test data, and reviewers can see at a glance they are not real credentials. Dropped the 'whsec_' prefix (a real Stripe webhook-secret pattern).
Akanimoh12
merged commit Nov 27, 2026
f0f01a1
into
Akanimoh12:test-implement-drips
4 of 10 checks passed
This branch had an error being deployed
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.
Replace the 3-user placeholder seed with a dependency-free generator matched to the test-implement-drips schema:
Closes #1381
Description
Closes #
Linked Issue
Type of Change
Please mark the options that are relevant:
Changes Made
How to Test
cd frontend-scaffold && npm run typecheck && npm run lint && npm testcd backend && npm run typecheck && npm run lint && npm testTesting Notes
Checklist
💻 Smart Contract Changes (if applicable)
cargo fmt -- --checkpasses successfully.cargo clippy -- -D warningsruns without any warnings.cargo test.🎨 Frontend Changes (if applicable)
npm run typecheckornpx tsc --noEmit).npm run lintshows no linting errors.npm run build.⚙️ General
console.logor debug code remains in production files.mainbranch.Screenshots / Demos (if applicable)