Skip to content

Reduce dev seed volume for workshop logs and monthly reports - #2474

Merged
maebeale merged 1 commit into
mainfrom
maebeale/reduce-dev-seed-records
Sep 1, 2026
Merged

Reduce dev seed volume for workshop logs and monthly reports#2474
maebeale merged 1 commit into
mainfrom
maebeale/reduce-dev-seed-records

Conversation

@maebeale

@maebeale maebeale commented Sep 1, 2026

Copy link
Copy Markdown
Collaborator

🤖 suggested review level: 1 Skim 👀 dev-only seed counts, no app logic or schema

Local dev was seeding 89 workshop logs and 89 monthly reports — far more than needed to exercise those pages, so this trims each to ~18 while keeping the varied per-workshop/month history and date spacing.

What is the goal of this PR and why is this important?

The dev sample dataset created 89 workshop logs and 89 monthly reports, cluttering the workspace DB with more rows than dev work needs.

How did you approach the change?

Lowered the seed loop counts in db/seeds/dev/workshop_logs.rb and db/seeds/dev/monthly_reports.rb (primary batch 30→8, tail batches [15,12,9,…][4,3,2,1], admin 5→3) and made the workshop-log summary puts compute its count instead of hardcoding 89.

Anything else to add?

Dev-only seeds; no production seeds, app logic, or schema touched.

89 of each was more than dev needs to exercise the pages; trim to ~18
per user while keeping the varied history and date spacing.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
@maebeale
maebeale marked this pull request as ready for review September 1, 2026 03:47
@maebeale
maebeale merged commit b356355 into main Sep 1, 2026
3 checks passed
@maebeale
maebeale deleted the maebeale/reduce-dev-seed-records branch September 1, 2026 03:48
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.

1 participant