Skip to content

Commit

Permalink
renaming events based on data team request
Browse files Browse the repository at this point in the history
  • Loading branch information
dana-yaish committed Oct 3, 2023
1 parent ef9f461 commit 5e74574
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 7 deletions.
10 changes: 5 additions & 5 deletions shared/analytics_tracking/events.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,12 +14,12 @@

class Events(Enum):
ACCOUNT_ACTIVATED_REPOSITORY_ON_UPLOAD = (
"Codecov - Account Activated Repository On Upload"
"codecov.account.activated_repository_on_upload"
)
ACCOUNT_ACTIVATED_REPOSITORY = "Codecov - Account Activated Repository"
ACCOUNT_UPLOADED_COVERAGE_REPORT = "Codecov - Account Uploaded Coverage Report"
USER_SIGNED_IN = "Codecov - User Signed In"
USER_SIGNED_UP = "Codecov - User Signed Up"
ACCOUNT_ACTIVATED_REPOSITORY = "codecov.account.activated_repository"
ACCOUNT_UPLOADED_COVERAGE_REPORT = "codecov.account.uploaded_coverage_report"
USER_SIGNED_IN = "codecov.user.signed_in"
USER_SIGNED_UP = "codecov.user.signed_up"


class Event:
Expand Down
4 changes: 2 additions & 2 deletions tests/unit/test_analytics_tracking.py
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,7 @@ def test_track_event_is_enterprise(mock_segment, mocker):
mock_track = mocker.patch("shared.analytics_tracking.segment.analytics.track")
analytics_tool = get_tools_manager()
analytics_tool.track_event(
"Codecov - Account Uploaded Coverage Report",
"codecov.account.uploaded_coverage_report",
is_enterprise=True,
event_data={"test": True},
)
Expand Down Expand Up @@ -169,7 +169,7 @@ class uuid(object):
assert event.serialize() == {
"uuid": "AAEC",
"timestamp": 1694476800.0,
"type": "Codecov - Account Activated Repository",
"type": "codecov.account.activated_repository_on_upload",
"data": {"user_id": "1234", "repo_id": "1234", "branch": "test_branch"},
}

Expand Down

0 comments on commit 5e74574

Please sign in to comment.