Skip to content

Add reusable development seed dataset - #167

Merged
HamptonMakes merged 3 commits into
mainfrom
reusable-development-seeds
Jul 28, 2026
Merged

Add reusable development seed dataset#167
HamptonMakes merged 3 commits into
mainfrom
reusable-development-seeds

Conversation

@HamptonMakes

Copy link
Copy Markdown
Collaborator

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: 9192c02e10

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

Comment thread db/seeds/development.rb
def seed_plan_types
PLAN_TYPES.index_with do |attributes|
PlanType.find_or_initialize_by(name: attributes.fetch(:name)).tap do |plan_type|
plan_type.assign_attributes(attributes)

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

P2 Badge Preserve customized plan-type attributes when reseeding

When an existing installation has customized one of the built-in plan types, every db:seed run overwrites its description, icon, and default tags via assign_attributes; for example, an ADR type with the previous adr default tag is silently changed to architecture. Use create-only defaults or update only blank fields so rerunning seeds remains non-destructive.

AGENTS.md reference: AGENTS.md:L104-L107

Useful? React with 👍 / 👎.

Comment thread db/seeds/development.rb Outdated
Comment on lines +339 to +340
plans = seed_documents(users, plan_types)
seed_shared_library_examples(users, plans)

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

P2 Badge Restore review threads in the demo seed

On a fresh database, this call sequence creates documents and placements but no comments or comment threads; a repo-wide search of db/seeds* finds no other creation path. Because this commit removes the previous seeded threads, the central inline review, triage, highlight, and popover flows can no longer be demonstrated after the documented setup procedure.

AGENTS.md reference: AGENTS.md:L104-L107

Useful? React with 👍 / 👎.

@HamptonMakes
HamptonMakes merged commit 609e1b3 into main Jul 28, 2026
4 checks passed
@HamptonMakes
HamptonMakes deleted the reusable-development-seeds branch July 28, 2026 19:39
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