Skip to content

Conversation

@pixlwave
Copy link
Member

@pixlwave pixlwave commented Nov 24, 2025

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/parent result was Ok without checking if the event was Some.

Long story short, this PR fixes it all 🤦‍♂️

@pixlwave pixlwave requested a review from stefanceriu November 24, 2025 13:47
@pixlwave pixlwave requested a review from a team as a code owner November 24, 2025 13:47
@codspeed-hq
Copy link

codspeed-hq bot commented Nov 24, 2025

CodSpeed Performance Report

Merging #5890 will not alter performance

Comparing doug/spaces-fix (be7699e) with main (ae90708)

Summary

✅ 27 untouched
⏩ 23 skipped1

Footnotes

  1. 23 benchmarks were skipped, so the baseline results were used instead. If they were deleted from the codebase, click here and archive them to remove them from the performance reports.

@pixlwave pixlwave changed the title Doug/spaces fix Spaces: Fix removing a space child when the relationship is only 1-way. Nov 24, 2025
Copy link
Member

@stefanceriu stefanceriu left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Oupsie 🙃

@codecov
Copy link

codecov bot commented Nov 24, 2025

Codecov Report

❌ Patch coverage is 98.92473% with 2 lines in your changes missing coverage. Please review.
✅ Project coverage is 88.64%. Comparing base (ae90708) to head (be7699e).
⚠️ Report is 2 commits behind head on main.
✅ All tests successful. No failed tests found.

Files with missing lines Patch % Lines
crates/matrix-sdk-ui/src/spaces/mod.rs 98.92% 0 Missing and 2 partials ⚠️
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.
📢 Have feedback on the report? Share it here.

@stefanceriu
Copy link
Member

Benchmarks are failing with a 503 on curl -fsSL https://github.com/CodSpeedHQ/runner/releases/download/v$RUNNER_VERSION/codspeed-runner-installer.sh | bash -s -- --quiet (duh) so I'll just go ahead and merge it.

@stefanceriu stefanceriu merged commit aa79e34 into main Nov 24, 2025
52 of 62 checks passed
@stefanceriu stefanceriu deleted the doug/spaces-fix branch November 24, 2025 15:37
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants