Skip to content

fix: analytics dashboard sync message and slack org matching#765

Merged
bokelley merged 1 commit into
mainfrom
bokelley/fix-slack-errors
Jan 14, 2026
Merged

fix: analytics dashboard sync message and slack org matching#765
bokelley merged 1 commit into
mainfrom
bokelley/fix-slack-errors

Conversation

@bokelley

Copy link
Copy Markdown
Contributor

Summary

  • Fix undefined values in analytics sync message (used processed instead of non-existent imported/skipped fields)
  • Improve Stripe subscription sync to skip deleted customers gracefully rather than counting as failures
  • Add migration to handle NULL product names in product_revenue view (shows "Unlabeled Product" instead of filtering out)
  • Fix org-filters to check organization_domains table for Slack user → organization matching (was only checking organizations.email_domain)
  • Add better logging and fallbacks for product name retrieval during Stripe backfill

Test plan

  • TypeCheck passes
  • All 241 tests pass
  • Local Docker testing shows analytics page loads correctly
  • Migration applies successfully

🤖 Generated with Claude Code

- Fix undefined values in sync message by using correct field names (processed vs imported)
- Improve Stripe subscription sync to skip deleted customers gracefully
- Add migration to handle NULL product names in product_revenue view
- Fix org-filters to check organization_domains table for Slack user matching
- Add better logging and fallbacks for product name retrieval

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
@bokelley bokelley merged commit 9001cb7 into main Jan 14, 2026
5 checks passed
bokelley added a commit that referenced this pull request Jan 16, 2026
- Fix undefined values in sync message by using correct field names (processed vs imported)
- Improve Stripe subscription sync to skip deleted customers gracefully
- Add migration to handle NULL product names in product_revenue view
- Fix org-filters to check organization_domains table for Slack user matching
- Add better logging and fallbacks for product name retrieval

Co-authored-by: Claude Opus 4.5 <noreply@anthropic.com>
bokelley added a commit that referenced this pull request Jan 20, 2026
- Fix undefined values in sync message by using correct field names (processed vs imported)
- Improve Stripe subscription sync to skip deleted customers gracefully
- Add migration to handle NULL product names in product_revenue view
- Fix org-filters to check organization_domains table for Slack user matching
- Add better logging and fallbacks for product name retrieval

Co-authored-by: Claude Opus 4.5 <noreply@anthropic.com>
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