-
Notifications
You must be signed in to change notification settings - Fork 258
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
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. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Super nice and clear, lgtm! 👏
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
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.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
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:
HistoricalMessageAndBackupIsDisabled
HistoricalMessageAndDeviceIsUnverified
Unknown