-
-
Notifications
You must be signed in to change notification settings - Fork 0
fix: Correct logic for adjusting right value in subtree size calculation in NestedSetsBehavior
class.
#55
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
…ion in `NestedSetsBehavior` class.
WalkthroughThis update refactors internal logic in the Changes
Sequence Diagram(s)sequenceDiagram
participant Test as Test Suite
participant Child2 as Node ($child2)
participant Child1 as Node ($child1)
participant Behavior as NestedSetsBehavior
Test->>Child2: Set 'lft' attribute to 3
Test->>Child2: Save node
Test->>Child2: appendTo(Child1)
Child2->>Behavior: executeSameTreeMove()
Behavior->>Behavior: Adjust left/right values (new unified logic)
Behavior-->>Child2: Update node positions
Test->>Test: Verify cache invalidation
Possibly related PRs
Poem
Warning There were issues while running some tools. Please review the errors and either fix the tool's configuration or disable the tool if it's a critical failure. 🔧 PHPStan (2.1.15)Note: Using configuration file /phpstan.neon. 📜 Recent review detailsConfiguration used: CodeRabbit UI 📒 Files selected for processing (3)
🧰 Additional context used🧠 Learnings (1)📓 Common learnings
⏰ Context from checks skipped due to timeout of 90000ms (18)
🔇 Additional comments (6)
✨ Finishing Touches
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. 🪧 TipsChatThere are 3 ways to chat with CodeRabbit:
SupportNeed help? Create a ticket on our support page for assistance with any issues or questions. Note: Be mindful of the bot's finite context window. It's strongly recommended to break down tasks such as reading entire modules into smaller chunks. For a focused discussion, use review comments to chat about specific files and their changes, instead of using the PR comments. CodeRabbit Commands (Invoked using PR comments)
Other keywords and placeholders
CodeRabbit Configuration File (
|
…g in `NestedSetsBehavior` class.
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## main #55 +/- ##
===========================================
Coverage 100.00% 100.00%
+ Complexity 137 136 -1
===========================================
Files 4 4
Lines 554 537 -17
===========================================
- Hits 554 537 -17 ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
…t in the same tree.
…arameters in `forAppendTo` and related methods.
Summary by CodeRabbit
Refactor
Tests