fix: incorrect number of feature flag composition when publishing feature subgraphs#3031
Conversation
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configurationConfiguration used: Organization UI Review profile: CHILL Plan: Pro Run ID: 📒 Files selected for processing (1)
🚧 Files skipped from review as they are similar to previous changes (1)
Walkthrough
ChangesAffected feature flag scoping
Estimated code review effort🎯 2 (Simple) | ⏱️ ~10 minutes Possibly related PRs
🚥 Pre-merge checks | ✅ 5✅ Passed checks (5 passed)
✨ Finishing Touches📝 Generate docstrings
Comment |
There was a problem hiding this comment.
Actionable comments posted: 1
🤖 Prompt for all review comments with AI agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.
Inline comments:
In `@controlplane/test/feature-flag/feature-flag-integration.test.ts`:
- Around line 4120-4122: The test is only checking the total composition count,
so it can miss an unintended recomposition of the base graph. In feature-flag
integration test around the existing assertNumberOfCompositions and
assertFeatureFlagExecutionConfig calls, add the base-graph-only assertion using
excludeFeatureFlagCompositions to verify the base graph did not recompose, and
also verify the new feature-flag composition is associated with ffName2.
🪄 Autofix (Beta)
Fix all unresolved CodeRabbit comments on this PR:
- Push a commit to this branch (recommended)
- Create a new PR with the fixes
ℹ️ Review info
⚙️ Run configuration
Configuration used: Organization UI
Review profile: CHILL
Plan: Pro
Run ID: 99b7be8b-c99d-4815-aa63-961aea5e0450
📒 Files selected for processing (2)
controlplane/src/core/repositories/SubgraphRepository.tscontrolplane/test/feature-flag/feature-flag-integration.test.ts
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## main #3031 +/- ##
===========================================
+ Coverage 46.52% 65.49% +18.96%
===========================================
Files 1121 335 -786
Lines 154989 48737 -106252
Branches 10061 5424 -4637
===========================================
- Hits 72111 31918 -40193
+ Misses 81042 16793 -64249
+ Partials 1836 26 -1810
🚀 New features to boost your workflow:
|
Summary by CodeRabbit
Checklist
Open Source AI Manifesto
This project follows the principles of the Open Source AI Manifesto. Please ensure your contribution aligns with its principles.