chore: add seed db script#42
Conversation
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configurationConfiguration used: Organization UI Review profile: CHILL Plan: Pro Run ID: 📒 Files selected for processing (3)
💤 Files with no reviewable changes (1)
🚧 Files skipped from review as they are similar to previous changes (1)
WalkthroughAdds a Bun database seeding command that resets and populates Telegram tables with encrypted synthetic data, while Telegram message router procedures use an exported cipher instance. ChangesTelegram Data Tooling
Possibly related PRs
🚥 Pre-merge checks | ✅ 4✅ Passed checks (4 passed)
✨ Finishing Touches📝 Generate docstrings
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. Comment |
There was a problem hiding this comment.
Actionable comments posted: 2
🤖 Prompt for all review comments with AI agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.
Inline comments:
In `@scripts/seed-db.ts`:
- Around line 12-69: Apply the repository’s Biome formatter to
scripts/seed-db.ts and commit the resulting formatting changes, ensuring the
file passes bun run biome ci . without altering its behavior.
- Around line 48-62: Protect the force reseeding branch in the seed script by
requiring an explicit development/non-production database guard before executing
the TRUNCATE through DB.execute. Update the existing force handling around argv
and the existing-data check so --force exits safely when the configured database
target is not explicitly approved, while preserving normal seeding and the
existing refusal behavior for populated databases without --force.
🪄 Autofix (Beta)
Fix all unresolved CodeRabbit comments on this PR:
- Push a commit to this branch (recommended)
- Create a new PR with the fixes
ℹ️ Review info
⚙️ Run configuration
Configuration used: Organization UI
Review profile: CHILL
Plan: Pro
Run ID: 3b52a2f7-014e-430c-bc9a-dbe27ab0139f
📒 Files selected for processing (2)
package.jsonscripts/seed-db.ts
- Drop `@/server` import from `seed-db` and `seed-user` - Keep seeding scripts lightweight and self-contained
No description provided.