-
Notifications
You must be signed in to change notification settings - Fork 193
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
MPP-3668 collect domain address telemetry #4323
Conversation
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.
Thanks @say-yawn, this looks good to me, and the functions you moved feel like they belong in their new homes. A few nits, and merge when ready.
...grations/0060_add_num_deleted_relay_addresses_and_num_deleted_domain_addresses_to_profile.py
Outdated
Show resolved
Hide resolved
domain_address = DomainAddress.objects.create( | ||
user=user_profile.user, | ||
address=address, | ||
user=user_profile.user, address=address, first_emailed_at=first_emailed_at |
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.
Nice update!
@@ -334,6 +334,43 @@ def test_delete_mozmail_deleted_address_object(self): | |||
deleted_count = DeletedAddress.objects.filter(address_hash=address_hash).count() | |||
assert deleted_count == 1 | |||
|
|||
def test_delete_increments_values_on_profile(self): |
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.
😍 tests!
@@ -314,6 +315,30 @@ def switch_link(key, value): | |||
return HttpResponse(wrapped_email) | |||
|
|||
|
|||
def _store_reply_record( |
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.
👍 better here with the rest of the email processing code. Someday, I'll move it all to emails/processing.py
or similar...
"id" integer NOT NULL PRIMARY KEY AUTOINCREMENT, | ||
"num_deleted_relay_addresses" integer unsigned NOT NULL CHECK ( | ||
"num_deleted_relay_addresses" >= 0 | ||
) DEFAULT 0, |
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.
👍 GOT EM
New feature description
Collect domain address telemetry for:
Optionally collect data on number of deleted addresses per user
Checklist (Definition of Done)