Spaces: Fix removing a space child when the relationship is only 1-way.#5890
Conversation
CodSpeed Performance ReportMerging #5890 will not alter performanceComparing Summary
Footnotes
|
Make sure to also check the Option inside the Result when looking for the event.
8a89cef to
be7699e
Compare
Codecov Report❌ Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## main #5890 +/- ##
==========================================
+ Coverage 88.61% 88.64% +0.03%
==========================================
Files 362 362
Lines 103070 103146 +76
Branches 103070 103146 +76
==========================================
+ Hits 91331 91436 +105
+ Misses 7496 7462 -34
- Partials 4243 4248 +5 ☔ View full report in Codecov by Sentry. |
|
Benchmarks are failing with a 503 on |
Seconds before #5871 auto-merged, I noticed that removing a child from a space where only the m.space.parent was set would never work as I copy & pasted an early return to fix #5871 (comment) instead of using an
if { } else { }.Then I noticed there were no tests for removing the child…
Then I noticed that the removal was checking if the
m.space.child/parentresult wasOkwithout checking if the event wasSome.Long story short, this PR fixes it all 🤦♂️