Skip to content

refactor(sdk): Remove SlidingSyncRoom 🎉 #5047

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

Merged
merged 10 commits into from
May 19, 2025

Conversation

Hywan
Copy link
Member

@Hywan Hywan commented May 16, 2025

Et in Arcadia ego (Nicolas Poussin)

Et in Arcadia ego means “Me (the Death) are even in Arcadia (the country of delights)”, or “Me (who is the Death) has even lived in Arcadia”. It can be understood as “Even in an ideal country, no one escapes the fate of mortals”. It includes SlidingSyncRoom.


It's my great honor to submit this patch that closes #3079 by removing the entire SlidingSyncRoom type. This was a long-standing tech debt that has been introduced at the beginning of the sliding sync experiment. Sadly, this type has spread in the SDK, and it took a bit of time to get rid of it. Now, it's different. Now the time has come to burn it.


Hywan added a commit to Hywan/matrix-rust-sdk that referenced this pull request May 16, 2025
Copy link

codecov bot commented May 16, 2025

Codecov Report

Attention: Patch coverage is 94.11765% with 1 line in your changes missing coverage. Please review.

Project coverage is 85.82%. Comparing base (ac2c7f4) to head (c63975a).
Report is 16 commits behind head on main.

Files with missing lines Patch % Lines
crates/matrix-sdk/src/sliding_sync/builder.rs 83.33% 1 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##             main    #5047      +/-   ##
==========================================
- Coverage   85.85%   85.82%   -0.04%     
==========================================
  Files         325      324       -1     
  Lines       35936    35874      -62     
==========================================
- Hits        30854    30790      -64     
- Misses       5082     5084       +2     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

Hywan added a commit to Hywan/matrix-rust-sdk that referenced this pull request May 16, 2025
@Hywan Hywan force-pushed the fix-sdk-sliding-sync-room branch from b18bf0e to e368dbb Compare May 16, 2025 13:13
Hywan added 8 commits May 16, 2025 15:13
This patch removes the `SlidingSync::get_room` method. The goal is to
remove `SlidingSyncRoom`.
This patch removes `SlidingSync::get_number_of_rooms`. The goal is to
remove `SlidingSyncRoom`.
This patch removes `SlidingSync::get_rooms` and `get_all_rooms`. The
goal is to remove `SlidingSyncRoom`.
This patch stops maintaining/updating `SlidingSync::rooms`. The goal is
to remove `SlidingSyncRoom`.
This patch removes the `SlidingSync::rooms` field. A cascade of removal
happens, and many part of the code is simplified. The most notable is
`FrozenSlidingSync`.
This patch FINALLY removes `SlidingSyncRoom`, youhou!
This patch removes `FrozenSlidingSync`. Its unique field is supposed to
be stored in the crypto store.
@Hywan Hywan force-pushed the fix-sdk-sliding-sync-room branch 2 times, most recently from 7acda1f to 89cd768 Compare May 16, 2025 13:33
@Hywan Hywan force-pushed the fix-sdk-sliding-sync-room branch from 89cd768 to 4370d02 Compare May 16, 2025 13:34
@Hywan Hywan changed the title refactor(sdk): Remove SlidingSyncRoom refactor(sdk): Remove SlidingSyncRoom 🎉 May 16, 2025
@Hywan Hywan marked this pull request as ready for review May 16, 2025 13:40
@Hywan Hywan requested a review from a team as a code owner May 16, 2025 13:40
@Hywan Hywan requested review from stefanceriu and removed request for a team May 16, 2025 13:40
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.

🔥

@Hywan Hywan enabled auto-merge (rebase) May 19, 2025 13:44
@Hywan Hywan merged commit 9809e1b into matrix-org:main May 19, 2025
42 checks passed
Hywan added a commit that referenced this pull request May 19, 2025
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.

[Meta] SlidingSyncRoom tech debt
2 participants