Repository navigation
[CI] (0e81558) rails/fizzy - #4257
Closed
wizard-ci-bot[bot] wants to merge 2 commits into
Closed
wizard-ci-bot[bot] wants to merge 2 commits into
wizard-ci-bot[bot] wants to merge 2 commits into
Conversation
Author
PR Evaluation ReportSummaryThis PR integrates PostHog into a Ruby on Rails app ("fizzy") by adding the
Confidence score: 4/5 👍
File changes
App sanity check ✅
Issues
|
| Criteria | Result | Description |
|---|---|---|
| PostHog SDKs installed | Yes | Both posthog-ruby (~> 3.0) and posthog-rails added to Gemfile |
| PostHog client initialized | Yes | PostHog.init block with api_key and host in initializer; PostHog::Rails.configure sets up auto exception capture, ActiveJob, and user context |
| capture() | Yes | 14 meaningful PostHog.capture() calls via capture_posthog_event helper across controllers |
| identify() | N/A | Server-only app; user context handled via posthog_distinct_id on User model and capture_user_context config |
| Error tracking | Yes | auto_capture_exceptions: true, report_rescued_exceptions: true, auto_instrument_active_job: true — comprehensive error tracking setup |
| Reverse proxy | N/A | Server-only app — reverse proxy not applicable |
Issues
None.
Other completed criteria
- API key loaded from
ENV["POSTHOG_PROJECT_TOKEN"]— not hardcoded - Host loaded from
ENV["POSTHOG_HOST"]— correctly configured posthog_distinct_iduses stableid.to_s(UUID) — proper distinct ID strategyposthog_current_userconfigured ascurrent_user_methodfor automatic user association- Guard pattern (
if Rails.configuration.x.posthog.enabled) prevents errors when PostHog is not configured - Uses
PostHog.capture()class-level methods as documented for Rails (not instance methods)
PostHog insights and events ✅
| Filename | PostHog events | Description |
|---|---|---|
signups/completions_controller.rb |
account_created |
Tracks new account signups |
account/cancellations_controller.rb |
account_canceled |
Tracks account deletions — captures distinct_id before cancel |
account/exports_controller.rb |
data_export_requested |
Tracks data export requests |
boards_controller.rb |
board_created |
Tracks board creation with all_access property |
boards/publications_controller.rb |
board_published |
Tracks board publication |
cards_controller.rb |
card_created |
Tracks card creation with creation_source: "api" |
cards/publishes_controller.rb |
card_published |
Tracks card publishing with add_another property |
cards/closures_controller.rb |
card_closed, card_reopened |
Tracks card lifecycle state changes |
cards/assignments_controller.rb |
card_assignment_toggled |
Tracks assignment changes |
cards/comments_controller.rb |
comment_created |
Tracks comment creation |
my/access_tokens_controller.rb |
access_token_created |
Tracks token creation with permission property |
webhooks_controller.rb |
webhook_created |
Tracks webhook creation |
config/initializers/posthog.rb |
capturedException (auto) |
Automatic exception capture via posthog-rails |
Issues
None.
Other completed criteria
- Events represent real user actions mapping to actual product flows (signup → create boards → publish cards → manage account)
- Events enable product insights — can build signup-to-engagement funnels, retention analysis on board/card creation
- Several events include enriched properties (
all_access,creation_source,permission,add_another) - No PII in event properties — distinct IDs are UUIDs, no emails or names in capture properties
- Event names follow consistent
snake_case[object]_[verb]convention - Smart detail:
account_canceledcapturesdistinct_idbefore the cancel call, preventing potential issues if the user record is destroyed
Reviewed by wizard workbench PR evaluator
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.
Automated wizard CI run
Source: wizard-pr
Trigger ID:
0e81558App:
rails/fizzyApp directory:
apps/rails/fizzyWorkbench branch:
wizard-ci-0e81558-rails-fizzyWizard branch:
release-please--branches--main--components--wizardContext Mill branch:
mainPostHog (MCP) branch:
masterTimestamp: 2026-09-29T08:41:37.810Z
Duration: 454.7s
YARA Scanner