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

Telemetry | Add additional properties to posthog UTD errors #7776

Merged
merged 2 commits into from
Apr 15, 2024

Conversation

BillCarsonFr
Copy link
Member

Pull Request Checklist

Based on #7775

Last step of #7767

Add the new properties isMatrixOrg, isFederated and wasVisibleToUser.

Note: wasVisibleToUser is always true for now, as the UTD are reported only from the EventFormatter.
Additional work is needed to report visible vs not visible. This would require to move down the DecryptionFailureTracker into the SDK

  • I read the contributing guide
  • UI change has been tested on both light and dark themes, in portrait and landscape orientations and on iPhone and iPad simulators
  • Accessibility has been taken into account.
  • Pull request is based on the develop branch
  • Pull request contains a changelog file in ./changelog.d
  • You've made a self review of your PR
  • Pull request includes screenshots or videos of UI changes
  • Pull request includes a sign off

Base automatically changed from valere/analytics_expected_utds to develop April 11, 2024 08:58
@BillCarsonFr BillCarsonFr marked this pull request as ready for review April 11, 2024 08:58
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.

Very nice 👍

@@ -103,6 +103,17 @@ class DecryptionFailureTracker: NSObject {
failure.eventLocalAgeMillis = Int(exactly: eventRelativeAgeMillis)
failure.trustOwnIdentityAtTimeOfFailure = isSessionVerified

let myDomain = userId.components(separatedBy: ":")[1]
Copy link
Member

Choose a reason for hiding this comment

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

Probably safer to do .last here instead of [1]. Who knows how it can all go wrong and crash.

Copy link

codecov bot commented Apr 15, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 12.27%. Comparing base (d0890d5) to head (a5d4d1c).
Report is 2 commits behind head on develop.

❗ Current head a5d4d1c differs from pull request most recent head afd6dee. Consider uploading reports for the commit afd6dee to get more accurate results

Additional details and impacted files
@@             Coverage Diff             @@
##           develop    #7776      +/-   ##
===========================================
+ Coverage    12.25%   12.27%   +0.01%     
===========================================
  Files         1651     1651              
  Lines       164133   164167      +34     
  Branches     67490    67499       +9     
===========================================
+ Hits         20116    20148      +32     
  Misses      143346   143346              
- Partials       671      673       +2     
Flag Coverage Δ
unittests 6.13% <100.00%> (+0.01%) ⬆️

Flags with carried forward coverage won't be shown. Click here to find out more.

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

Copy link

sonarcloud bot commented Apr 15, 2024

Quality Gate Passed Quality Gate passed

Issues
0 New issues
0 Accepted issues

Measures
0 Security Hotspots
No data about Coverage
No data about Duplication

See analysis details on SonarCloud

@BillCarsonFr BillCarsonFr merged commit 087f0cc into develop Apr 15, 2024
5 checks passed
@BillCarsonFr BillCarsonFr deleted the valere/analytics_posthog_complete branch April 15, 2024 08:45
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