Skip to content

feat(thread): compute a thread summary whenever we receive new events #5042

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

Closed
wants to merge 8 commits into from

Conversation

bnjbvr
Copy link
Member

@bnjbvr bnjbvr commented May 14, 2025

This also contains the minimal scaffolding for storing thread information in a room.

More to come soon:

  • propagate thread summary updates as a new kind of update
  • handle those in the timeline (stash pending thread summary updates, etc.)

Part of #5036 (#4869).

@bnjbvr bnjbvr requested a review from a team as a code owner May 14, 2025 15:35
@bnjbvr bnjbvr requested review from Hywan and removed request for a team May 14, 2025 15:35
@bnjbvr bnjbvr marked this pull request as draft May 14, 2025 15:35
@bnjbvr bnjbvr removed the request for review from Hywan May 14, 2025 15:35
@bnjbvr
Copy link
Member Author

bnjbvr commented May 14, 2025

(put back to draft state, as it was intended to be, but I forgot to click the button before opening the PR.)

// If there's a bundled relation, but it's not a thread, we can still extract
// without failing.
let mut relations = BundledMessageLikeRelations::new();
relations.replace = Some(Box::new(f.text_msg("hello wrold!").into_raw()));
Copy link
Member Author

Choose a reason for hiding this comment

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

hah, it was supposed to be the replacement event for a message that had a typo in it, but of course the typos bot is unhappy with such a test setup krkrkr

Copy link

codecov bot commented May 14, 2025

Codecov Report

Attention: Patch coverage is 92.13483% with 7 lines in your changes missing coverage. Please review.

Project coverage is 85.81%. Comparing base (40ffd40) to head (e9fa81b).
Report is 32 commits behind head on main.

Files with missing lines Patch % Lines
...tes/matrix-sdk/src/event_cache/room/threads/mod.rs 89.70% 7 Missing ⚠️
Additional details and impacted files
@@           Coverage Diff           @@
##             main    #5042   +/-   ##
=======================================
  Coverage   85.80%   85.81%           
=======================================
  Files         332      334    +2     
  Lines       36195    36276   +81     
=======================================
+ Hits        31056    31129   +73     
- Misses       5139     5147    +8     

☔ 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.

@bnjbvr bnjbvr force-pushed the bnjbvr/basic-thread-summary branch 2 times, most recently from b2012ba to 38b43f0 Compare May 19, 2025 15:18
@bnjbvr bnjbvr force-pushed the bnjbvr/basic-thread-summary branch from 38b43f0 to 47b73c7 Compare May 26, 2025 15:15
@bnjbvr bnjbvr force-pushed the bnjbvr/basic-thread-summary branch from 47b73c7 to 9610a1d Compare May 27, 2025 15:32
@bnjbvr
Copy link
Member Author

bnjbvr commented May 28, 2025

Superseded by #5126, which this PR has been split up into, and rejiggered a bit.

@bnjbvr bnjbvr closed this May 28, 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.

1 participant