Skip to content

feat: propagate categories from parent/child questions to conditional posts#4525

Draft
SylvainChevalier wants to merge 1 commit intomainfrom
claude/issue-4524-conditionals-should-have-all-the
Draft

feat: propagate categories from parent/child questions to conditional posts#4525
SylvainChevalier wants to merge 1 commit intomainfrom
claude/issue-4524-conditionals-should-have-all-the

Conversation

@SylvainChevalier
Copy link
Copy Markdown
Contributor

Closes #4524

When a conditional post is created or updated, categories from the condition and condition_child questions' posts are now automatically added to the conditional post. Includes a data migration to backfill existing conditional posts.

Generated with Claude Code

… posts

When a conditional post is created or updated, categories from the
condition and condition_child questions' posts are now automatically
added to the conditional post. Includes a data migration to backfill
existing conditional posts.

Closes #4524

Co-authored-by: Sylvain <SylvainChevalier@users.noreply.github.com>
@coderabbitai
Copy link
Copy Markdown
Contributor

coderabbitai bot commented Mar 23, 2026

Important

Review skipped

Draft detected.

Please check the settings in the CodeRabbit UI or the .coderabbit.yaml file in this repository. To trigger a single review, invoke the @coderabbitai review command.

⚙️ Run configuration

Configuration used: Path: .coderabbit.yaml

Review profile: CHILL

Plan: Pro

Run ID: 4b2a713e-e086-4aba-8143-c6541a424558

You can disable this status message by setting the reviews.review_status to false in the CodeRabbit configuration file.

Use the checkbox below for a quick retry:

  • 🔍 Trigger review
✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Commit unit tests in branch claude/issue-4524-conditionals-should-have-all-the

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.

❤️ Share

Comment @coderabbitai help to get the list of available commands and usage tips.

@github-actions
Copy link
Copy Markdown
Contributor

github-actions bot commented Mar 23, 2026

🚀 Preview Environment

Your preview environment is ready!

Resource Details
🌐 Preview URL https://metaculus-pr-4525-claude-issue-4524-conditionals-preview.mtcl.cc
📦 Docker Image ghcr.io/metaculus/metaculus:claude-issue-4524-conditionals-should-have-all-the-28707be
🗄️ PostgreSQL NeonDB branch preview/pr-4525-claude-issue-4524-conditionals
Redis Fly Redis mtc-redis-pr-4525-claude-issue-4524-conditionals

Details

  • Commit: 28707beb3c5171fcb25cf7988edd4f9796711e43
  • Branch: claude/issue-4524-conditionals-should-have-all-the
  • Fly App: metaculus-pr-4525-claude-issue-4524-conditionals

ℹ️ Preview Environment Info

Isolation:

  • PostgreSQL and Redis are fully isolated from production
  • Each PR gets its own database branch and Redis instance
  • Changes pushed to this PR will trigger a new deployment

Limitations:

  • Background workers and cron jobs are not deployed in preview environments
  • If you need to test background jobs, use Heroku staging environments

Cleanup:

  • This preview will be automatically destroyed when the PR is closed

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.

Conditionals should have all the categories of their parent and child questions

1 participant