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

feat(sdk): compute_limited is only useful for the SS proxy #3832

Conversation

Hywan
Copy link
Member

@Hywan Hywan commented Aug 12, 2024

This patch restricts the call to compute_limited to the sliding sync proxy implementation (aka MCS3575). It is not necessary for the sliding sync native implementation (aka Simplified MSC3575). The proxy doesn't implement the limited flag, contrary to Synapse. Let's not run workarounds when we don't need them.

@Hywan Hywan requested a review from a team as a code owner August 12, 2024 11:29
@Hywan Hywan requested review from stefanceriu and bnjbvr and removed request for a team August 12, 2024 11:29
Copy link

codecov bot commented Aug 12, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 84.11%. Comparing base (d143c61) to head (b2f64ef).
Report is 1 commits behind head on main.

Additional details and impacted files
@@           Coverage Diff           @@
##             main    #3832   +/-   ##
=======================================
  Coverage   84.11%   84.11%           
=======================================
  Files         263      263           
  Lines       27582    27582           
=======================================
+ Hits        23200    23201    +1     
+ Misses       4382     4381    -1     

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

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.

👍

Copy link
Member

@bnjbvr bnjbvr left a comment

Choose a reason for hiding this comment

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

👍

This patch restricts the call to `compute_limited` to the sliding sync
proxy implementation (aka MCS3575). It is not necessary for the sliding
sync native implementation (aka Simplified MSC3575). The proxy doesn't
implement the `limited` flag, contrary to Synapse. Let's not run
workarounds when we don't need them.
@Hywan Hywan force-pushed the fix-sdk-sliding-sync-compute-limited-only-for-proxy branch from 709d6e6 to b2f64ef Compare August 12, 2024 12:51
@Hywan Hywan enabled auto-merge (rebase) August 12, 2024 12:51
@Hywan Hywan merged commit bdfc300 into matrix-org:main Aug 12, 2024
40 checks passed
@Hywan Hywan mentioned this pull request Aug 14, 2024
33 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.

3 participants