Skip to content
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

Tiny collection of tiny small edits around Sliding Sync #3830

Merged

Conversation

Hywan
Copy link
Member

@Hywan Hywan commented Aug 12, 2024

This PR is a tiny collection of really small patches I've done while trying to debug bugs about the sliding sync native implementation.

Hywan added 2 commits August 12, 2024 11:55
This patch asserts that when subscribing to a new room, the old room
subscriptions are still present. Is it the behaviour we want? Probably
not, but this is the standard behaviour right now, and we need to assert
it.
…data`.

This patch changes the visibility of
`SlidingSyncList::invalidate_sticky_data` from `pub` to `pub(super)`.
This is the only place where it must be accessible from.
@Hywan Hywan requested a review from a team as a code owner August 12, 2024 09:59
@Hywan Hywan requested review from bnjbvr and removed request for a team August 12, 2024 09:59
crates/matrix-sdk/src/sliding_sync/mod.rs Outdated Show resolved Hide resolved
Copy link

codecov bot commented Aug 12, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 84.13%. Comparing base (be404f6) to head (fe01f13).
Report is 7 commits behind head on main.

Additional details and impacted files
@@           Coverage Diff           @@
##             main    #3830   +/-   ##
=======================================
  Coverage   84.13%   84.13%           
=======================================
  Files         263      263           
  Lines       27592    27593    +1     
=======================================
+ Hits        23214    23215    +1     
  Misses       4378     4378           

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

Hywan added 2 commits August 12, 2024 13:30
This patch adds a `trace` log for `must_process_rooms_response`. That's
useful for debugging weird bugs.
Even if the visual output is the same, it's semantically better to have
`<a><code>…</code></a>` rather than `<code><a>…</a></code>` I believe.
@Hywan Hywan force-pushed the chore-sdk-sliding-sync-room-subscriptions-various branch from b8230d4 to fe01f13 Compare August 12, 2024 11:30
@Hywan Hywan enabled auto-merge (rebase) August 12, 2024 11:31
@Hywan Hywan merged commit 35b62a1 into matrix-org:main Aug 12, 2024
40 checks passed
@Hywan Hywan mentioned this pull request Aug 14, 2024
32 tasks
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.

2 participants