Conversation
|
The latest updates on your projects. Learn more about Vercel for GitHub. 3 Skipped Deployments
|
|
Navigate logical layers of code changes, visualize relationships, and explore their blast radius. No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configurationConfiguration used: Organization UI Review profile: ASSERTIVE Plan: Advanced Run ID: 📒 Files selected for processing (2)
Included review availability: Your plan provides up to 8 included reviews per hour; 5 remain after this review. 📝 WalkthroughWalkthrough
Priority: ⬇️ Low Estimated code review effort: 3 (Moderate) | ~20 minutes Merge Risk: ⚪ Minimal · up to New cohorts now get rule data on their managed segment, and a data migration backfills existing live cohort segments with the same rule. That covers both requirements from the linked issue. The migration leaves deleted, unmanaged and already-populated segments unchanged. No outstanding issues block merging. 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. Comment |
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## main #8579 +/- ##
=======================================
Coverage 98.80% 98.80%
=======================================
Files 1631 1633 +2
Lines 66920 66974 +54
=======================================
+ Hits 66123 66177 +54
Misses 797 797 ☔ View full report in Codecov by Harness. 🚀 New features to boost your workflow:
|
A cohort creates its segment's rule and condition as rows, and is the one path that leaves `Segment.rules_data` unset. The backfill migration only covered segments that existed when it ran, so every cohort created since carries none. That is invisible today, since evaluation reads the rows. It stops being invisible the moment anything reads the field instead: a segment with no rules matches nobody, so cohort membership would quietly stop applying. Build the cohort unsaved to learn the trait key its membership is keyed on, so the segment can be created carrying its rules in one write.
2c745eb to
83f58f6
Compare
Docker builds report
|
There was a problem hiding this comment.
Actionable comments posted: 1
ℹ️ Review info
⚙️ Run configuration
Configuration used: Organization UI
Review profile: ASSERTIVE
Plan: Advanced
Run ID: 2ab1e43b-ef9a-493e-a6c3-cbc9d4571354
📒 Files selected for processing (3)
api/cohorts/services.pyapi/tests/unit/cohorts/test_services.pydocs/docs/deployment-self-hosting/observability/_events-catalogue.md
Included review availability: Your plan provides up to 8 included reviews per hour; 6 remain after this review.
✅ private-cloud · depot-ubuntu-latest-arm-16 — run #20690 (attempt 1)Playwright Test Results (private-cloud - depot-ubuntu-latest-arm-16)Details
🗂️ Previous results✅ private-cloud · depot-ubuntu-latest-16 — run #20690 (attempt 1)Playwright Test Results (private-cloud - depot-ubuntu-latest-16)Details
✅ oss · depot-ubuntu-latest-arm-16 — run #20690 (attempt 1)Playwright Test Results (oss - depot-ubuntu-latest-arm-16)Details
✅ oss · depot-ubuntu-latest-16 — run #20690 (attempt 1)Playwright Test Results (oss - depot-ubuntu-latest-16)Details
✅ private-cloud · depot-ubuntu-latest-arm-16 — run #20688 (attempt 1)Playwright Test Results (private-cloud - depot-ubuntu-latest-arm-16)Details
✅ private-cloud · depot-ubuntu-latest-16 — run #20688 (attempt 1)Playwright Test Results (private-cloud - depot-ubuntu-latest-16)Details
✅ oss · depot-ubuntu-latest-arm-16 — run #20688 (attempt 1)Playwright Test Results (oss - depot-ubuntu-latest-arm-16)Details
✅ oss · depot-ubuntu-latest-16 — run #20688 (attempt 1)Playwright Test Results (oss - depot-ubuntu-latest-16)Details
|
Visual Regression19 screenshots compared. See report for details. |
Thanks for submitting a PR! Please check the boxes below:
docs/if required so people know about the feature.Changes
Closes #8507.
How did you test this code?
Unit tests.