Provide the reason why an event was an expected UTD#4384
Conversation
9df9c0b to
5575637
Compare
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## main #4384 +/- ##
=======================================
Coverage 85.28% 85.28%
=======================================
Files 282 282
Lines 31196 31207 +11
=======================================
+ Hits 26605 26615 +10
- Misses 4591 4592 +1 ☔ View full report in Codecov by Sentry. |
stefanceriu
left a comment
There was a problem hiding this comment.
Super nice and clear, lgtm! 👏
BillCarsonFr
left a comment
There was a problem hiding this comment.
I think we need a 3rd variant to stay consistent with web, or we need to update web to be consistent with EX
c8658d0 to
ebbde1a
Compare
There was a problem hiding this comment.
I think it's an improvement but I'd like to have some follow up tasks.
For example we fallback to Unknwown in determine_historical. It's a bit annoying because we report Unknwown in posthog as OlmKeysNotSent which sounds bad. This key was never sent. So maybe we need a BackupUnknown that would be mapped to something else in posthog (or we check the event age before reporting in posthog)
And just another comment, I though that we were caching the exists_on_server() but I don't see that in this PR?
Are we going to do a server query at ~every UTD report?
Thank you for checking. Yes, that was done in #4356 so our call to |
68cc73e to
dca0482
Compare
Follow-up task is here: element-hq/element-meta#2666 |
Part of element-hq/element-meta#2638
Distinguish between 3 cases where we can't find keys for an old message:
HistoricalMessageAndBackupIsDisabledHistoricalMessageAndDeviceIsUnverifiedUnknown