Repository navigation
feat: respect per-flag insightsEnabled for evaluation events - #21
cosmos-explorer wants to merge 1 commit into
Conversation
|
No actionable comments were generated in the recent review.
|
| Layer / File(s) | Summary |
|---|---|
Gate evaluation events and verify delivery fbclient/evaluator.py, fbclient/client.py, fbclient/common_types.py, tests/test_insights_enabled.py, README.md |
The evaluator omits flag events only when insights are explicitly false. The client skips ineligible flag events. Tests cover synchronized and external flag data, evaluations, updates, snapshots, and existing event suppression. Documentation describes the behavior. |
Estimated code review effort: 2 (Simple) | ~10 minutes
Change: Feature
Suggested reviewers: dsun0720
Merge Risk: 
Minimal · up to a1ab7
-
No actionable merge-blocking risk was identified.
Pre-merge checks: 
4 · 
1
-
Failed checks: 1 warning Passed checks: 4 passedFull details: Docstring Coverage
-
Explanation
Docstring coverage is 14.29% which is insufficient. The required threshold is 80.00%. Docstring coverage is scoped to functions touched by this diff with cyclomatic complexity of at least 2. Documentation-only edits and deletions within surviving functions are included; unchanged diff context and fully deleted functions are excluded. Analyzed 7 functions across 4 files. (1 skipped: 1 unsupported.)
Resolution
Write docstrings for the functions missing them to satisfy the coverage threshold.
-
Finishing Touches
-
Generate docstrings
-
- Commit to this branch
- Create a new PR
Generate unit tests (beta)
-
- Commit to this branch
- Create a new PR
-
- Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts
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.
Feature flags with
insightsEnabled: falsecurrently still produce evaluation events. Suppress those records while keeping evaluation values, variation IDs, match reasons, and experiment eligibility unchanged. Missing, null, and non-boolean settings retain the evaluation server's default-enabled behavior.Summary by CodeRabbit
insightsEnabledtofalsedisables collection; missing or other values leave it enabled.

Confidence Score: 5/5
The PR appears safe to merge; no actionable issues were found.Summary
Adds per-flag control over evaluation event collection.
No actionable issues found.
Reviews (1) · Last reviewed commit: "feat: respect per-flag insightsEnabled f..." · Reviewed by Greptile