-
Notifications
You must be signed in to change notification settings - Fork 53
BIT-2414: Log organization events #686
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
Conversation
New Issues
Fixed Issues
|
Bitwarden code coverageTotal coverage:
|
File | Coverage |
---|---|
BitwardenShared/Core/Autofill/Services/AutofillCredentialService.swift | 95.93% |
BitwardenShared/Core/Platform/Services/EventService.swift | 97.78% |
BitwardenShared/Core/Platform/Services/ServiceContainer.swift | 97.41% |
BitwardenShared/Core/Platform/Services/StateService.swift | 97.50% |
BitwardenShared/Core/Platform/Services/Stores/AppSettingsStore.swift | 95.69% |
BitwardenShared/Core/Vault/Models/Domain/Organization.swift | 96.67% |
BitwardenShared/UI/Vault/Extensions/Alert+Vault.swift | 100.00% |
BitwardenShared/UI/Vault/Helpers/AutofillHelper.swift | 97.04% |
BitwardenShared/UI/Vault/Vault/AutofillList/VaultAutofillListProcessor.swift | 90.97% |
BitwardenShared/UI/Vault/Vault/VaultGroup/VaultGroupProcessor.swift | 97.42% |
BitwardenShared/UI/Vault/Vault/VaultList/VaultListProcessor.swift | 96.47% |
BitwardenShared/UI/Vault/Vault/VaultList/VaultListView.swift | 96.23% |
BitwardenShared/UI/Vault/VaultItem/AddEditItem/AddEditItemProcessor.swift | 92.32% |
BitwardenShared/UI/Vault/VaultItem/VaultItemCoordinator.swift | 95.44% |
BitwardenShared/UI/Vault/VaultItem/ViewItem/ViewItemAction.swift | 98.39% |
BitwardenShared/UI/Vault/VaultItem/ViewItem/ViewItemProcessor.swift | 96.57% |
Powered by Slather
Generated by 🚫 Danger
BitwardenShared/Core/Autofill/Services/AutofillCredentialServiceTests.swift
Show resolved
Hide resolved
BitwardenShared/UI/Vault/VaultItem/ViewItem/ViewItemProcessor.swift
Outdated
Show resolved
Hide resolved
BitwardenShared/UI/Vault/VaultItem/ViewItem/ViewItemProcessor.swift
Outdated
Show resolved
Hide resolved
BitwardenShared/UI/Vault/VaultItem/AddEditItem/AddEditItemProcessor.swift
Outdated
Show resolved
Hide resolved
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## main #686 +/- ##
==========================================
+ Coverage 87.82% 87.89% +0.07%
==========================================
Files 562 563 +1
Lines 27973 28131 +158
==========================================
+ Hits 24566 24725 +159
+ Misses 3407 3406 -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.
LGTM 🎉 The only thing to improve would be to add the tests that are missing in the Codecov report unless they are very trivial.
I was having a hard time getting Codecov to tell me what it thought was missing, but now it has that, so I'll see what I can do |
🎟️ Tracking
BIT-2414
📔 Objective
This starts logging organizational events, particularly these:
clientViewed
clientToggledPasswordVisible
clientToggledHiddenFieldVisible
clientToggledCardCodeVisible
clientCopiedPassword
clientCopiedHiddenField
clientCopiedCardCode
clientAutofilled
clientToggledCardNumberVisible
Since these were the ones logged in the MAUI app.
Event storage itself is in the
EventService
, which will be expanded in a Future PR to actually send the events to the server; this just stores them.I was uncertain of where best to draw boundaries with wrapper functions, most notably because logging the events is
async throws
; I settled on a wrapper that does a default handling of the error (logging it) but not a wrapper that puts things in aTask
. It seemed reasonable to me that we'd want to maintain the understanding that logging an event is async at the call site, but save the 4 lines of boilerplate to catch an error and log it. I'm open to discussion on this, however.⏰ Reminders before review
🦮 Reviewer guidelines
:+1:
) or similar for great changes:memo:
) or ℹ️ (:information_source:
) for notes or general info:question:
) for questions:thinking:
) or 💭 (:thought_balloon:
) for more open inquiry that's not quite a confirmed issue and could potentially benefit from discussion:art:
) for suggestions / improvements:x:
) or:warning:
) for more significant problems or concerns needing attention:seedling:
) or ♻️ (:recycle:
) for future improvements or indications of technical debt:pick:
) for minor or nitpick changes